I have found esphome and have built some great sensors and updated a few of my tasmota devices as well.
Going good with the basic coding but just cant get my head around the automations, i have been working on building the sensor as stated in the esphome automations sensor https://esphome.io/guides/automations.html .
I have the humidity sensor working with a value range as per the above site address eg.
What im trying to do is set the above and below values to a home assistant sensor
that can adjust the humidity level with an input_slider`
Ive
built the slider on my home assistant and have the values showing on the
esphome web server interface,
Just stuck with getting this value into
esphome.yaml. Below is what im looking to do
humidity:
name: "Humidity"
on_value_range:
- above: 65.0 { i want this to be the home assistant sensor with id "humidity_set"}
then:
- switch.turn_on: dehumid_switch
- below: 50.0 { i want this to be the home assistant sensor with id "humidity_set"}
then:
- switch.turn_off: dehumid_switch
update_interval: 10s
OR
If humidity rises above my slider value then turn on my dehumidifier, and when the humidity drops below my slider value then turn off my dehumidifier
Please any help would be very greatful, and thankyou in advance
im making IOT Device with my ESP-32 and would like it to function as a stand alone device as i believe its best for HA failure or any other reason to add a dial or switch that connects directly to HA but can also work in conditions by itsself, just sounds logical to make the device communicate with itself first before needing to send data to my HA Setup
There are arguments both ways - ideally home assistant should know everything and all automations should be done there. Then everything is centralised.
so whats tour way of doing this then could you provide me with some automations in HA as well as anyone else with some proactive advice would be appreciated
im making IOT Device with my ESP-32 that i would like to get sensor value from my ha to perform a basic automation to turn a relay on all values will be provided to and from both HA and my Iot device. need help with some basic coding please see my first post any help with coding my espyaml