Sonoff DW1 sensor open and close signal

Good Day,

I’ve configured my sonoff DW1 sensor to transmit a signal when it is either opened or closed however it sends the same message each time the state is changed. How do I change the state on home assistance if from open to close and vice versa if the data the device sends is the same?

Regards
Nishol

You dont :frowning:
The Sonoff DW1 can ONLY send a message when it opens, it cannot send when it closes. Huge flaw in the design, but I did the same mistake, and is now stuck with 12 of those useless DW1 :frowning:

Yeah. Same. Stuck with a bunch of one way sensors. I wrote a blog post here how I hacked it at least to be a close sensor , but it’s still a useless device. https://snlr.us/s/sonoff-dw1-disappoints-harder-than-me/