Open TheFes opened 3 years ago
I'm interested in this also as I'd prefer to not have to use MQTT and just the ESPHome integration.
From reading the readme. The co-processor that does all of the power management waits for the ESP to tell it that it's connected to the MQTT server before passing on the PIR event.
It seems the co-processor is 90% of the problem here. You could technically bypass the co processor, but you'd lose the energy efficiency for running on batteries.
At that point... just use a wemos d1 or similar board with a cheap PIR and run it off USB somewhere in the house.
Until I figure out how to compile this older code on 2023 ESPHome environment, I'm probably going to abandon this device in favour of making my own with a generic esp dev board and 3D print a nice enclosure instead.
Is MQTT required to have the door sensor working in Home Assistant? I would expect that the binary sensor is exposed to HA, and the status of the binary sensor could be used to trigger automations.
In case it is not required, would the code then also work without the custom component? So something like this?