i was wondering what is best practice to integrate 433mhz door/window sensors with ESPHome.
I see remote receiver component
is what I would use, but it is not completely clear to me how to create a binary sensor which “stays on” for the whole time while the door/window is open.
Accoding to the link, in fact, this:
Binary Sensor
The remote_receiver binary sensor lets you track when a button on a remote control is pressed.
Each time the pre-defined signal is received, the binary sensor will briefly go ON and then immediately OFF.
I’m having the same issue and my wiring is correct, so I’d agree with Future Tense something is not working with Esphome…I’m not smart enough to work it out though
Not correct. a ‘cover’ is a blind or garage door etc, where there is control to open / close. Monitoring of an existing door as being open of closed is a binary sensor.
That said, it’s not 100% clear what @mspinolo is trying to do here, control or monitor…?
assuming the same as my use case, a sensor to detect wether the door is open or closed, my sensors send an RF code when the door is going from closed to open and a different code when going from open to closed, I found a thread on the forum that helped me put this together which seems to work well for me.
So if that’s the case @mspinolo needs to clarify, and it is in fact a binary_sensor as per your code. Hopefully what you have posted will help @mspinolo out. Thanks for sharing
I have a question regarding the scope of ID variables. For instance, the ID deep_sleep_1 in the code below. Is that a global variable or local variable? Specifically, I want to know if I have to change the name of the ID for each ESP when I have several ESPs with identical code. I do use substitutions for the main name of the ESP. Thanks in advance for your responses.
I am trying to control my blinds with Esphome because those are my last ESP devices that are not using it. I am using servos to open/close the blinds automatically depending on the light measured by the LDR. All the hardware is hosted inside the blinds and it is not visible from the outside for aesthetic reasons. The nodemcu wakes up every 30 minutes, measures the light level outside and opens/closes the blinds automatically and then goes into deep sleep. Everything runs with rechargeable batteries connected to solar panels. So far I was successful until I was implementing the Prevent action for deep sleep. I want to prevent deep sleep in case I want to perform an update via OTA. The documentation to do that suggests to use and mqtt message to trigger the prevent action.
When enabling MQTT and you do not use the “native API” for Home Assistant, you must remove the api: line from your ESPHome configuration, otherwise the ESP will reboot every 5 minutes because no client connected to the native API.