The door sensor with Bluetooth its maker kept quiet about
The Sonoff DW2 is a cheap door and window sensor. As sold it works like this: the door opens, the sensor wakes, joins Wi-Fi, reaches the eWeLink cloud and only then reports. That is slow and it drains the battery. Without an account and the internet the sensor does nothing.
What is inside
The sensor’s chip has not only Wi-Fi but Bluetooth too. The box does not say a word about it, and the factory firmware does not use it day to day.
What we did
We wrote our own firmware, Hugo Door. When the door moves, the sensor sends a short, encrypted Bluetooth message and goes back to sleep. Wi-Fi is never switched on at all.
- Instant reaction. No waiting for the sensor to join a network and reach a cloud.
- Far better battery life. The sensor is asleep almost all the time.
- Encrypted. Only your Home Assistant can read the messages, with a key that belongs to you.
- No setup. Home Assistant finds the sensor by itself: door, button and battery level.
What to know
The sensor needs a Bluetooth receiver nearby. In our home that job is done by the same relays that switch the lights. We saved a copy of the factory firmware before the change, so there is a way back.