I have a Sonoff DW2 433mhz door sensor mounted on a door, it correctly reports if the door opens or closes but seemingly goes into some sort of sleep mode and its state defaults to unavailable after a short period.
The problem is that I want to use this door sensor to check if the door has been left open i.e. if state is on then I know the door is open and I can have an automation check for this state but because its going into unavailable mode it is not reporting that the door is open.
Any ideas on how to somehow retain last state or prevent it from going into unavailable state?
I’m just running it off a Sonoff RF Bridge so do not have a sensor config for it. Below extract on the Sonoff console when the states changed and screen grab of the sensor, I’m just monitoring for state changes.
@tom_l thanks for your config, I’m being a dork I did setup this sensor in my binarysensors.yaml file, please see below. I set this up quite a while ago and then never used it so kind of forgot what all I had done…
I can’t for the life of me register the DW2 as closed no matter what I do…
Press ADD alarm in Ewelink app and open. No problem, alarm added.
Press ADD and shut but it doesn’t register.
Could I have a faulty product or am I being a donut and missing something?
Just discovered after buying a few of these that this is only for open status! So I’ll never know when that door closes. I ask why! Can anyone tell me the use case here?
I had 4 … sold them on. Useless for automation and battery life is dire. Busy with Sonoff SV flashed with ESPHome and reed switches to do door open/close sensing.