I have ESP32 based temp measuring device in my greenhouse. Data is sent via mqtt protocol. Node-Red is capturing mqtt message and saves data to influxDB. I measure temp in several locations, but here important are temp at the top of greenhouse and soil temp. I would like to have solution where I can turn device when certain temp conditions are met. I have ventilator that moves air from the top of greenhouse under surface and therefore warm up soil during cold spring days.
I have flashed ESPhome to sonoff device and not sure what can I do next. I have tested sonoff device with Home Assistant, I can turn it on and off.
What kind of solution can I make ?
1. Best would be that NodeRed checks temp vs condition that I set up and send message to turn on or off to sonoff device?
2. Can Home Assistant be used for that purpose?
3. I could change micropython code in ESP32 to check conditions, but then again, I need to send some message to sonoff device.
turning on and off ESPHOME Sonoff
- CmdrDeLiver
- Posts: 27
- Joined: Thu Dec 05, 2019 6:30 pm
Re: turning on and off ESPHOME Sonoff
Hi ajocius,
Mike
Did you use a guide to do this? A link to it might help as there are several different ways to go about this and it makes a difference to access your modified Sonoff.
Any of your solutions are possible. NodeRed is likely the most straight forward. This guide shows how to write functions in NodeRed. You may find clues to your solution in the guides linked here.What kind of solution can I make ?
Mike
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: turning on and off ESPHOME Sonoff
Absolutely. You can make all kinds of automations in HomeAssistant. and esphome is very easy on the microcontroller side.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode