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?
You dont
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