Sonoff DW2-Wi-Fi Door Sensor and Node-Red

Okay, very first points very first, the DW2-Wi-Wi door sensor is as it says, WiFi, not RF or Bluetooth (nevertheless it does use BT to set up with the eWeLink Application in the to start with location).

Sonoff DW2-Wi-Fi Door Sensor and Node-Red

I seemed below on Amazon and browse a person declaring the product was practically impossible to pair – mine paired with the Sonoff eWeLink Application rather substantially quickly – I believe that person must’ve applied the incorrect pairing approach. The suitable process with this system is Bluetooth.

A person else commented on battery everyday living, which is supposed to be 3 months, the consumer explained they bought significantly much less than that – but did not specify what variety of AAA batteries they utilized. I’ve had this situation with ESP8266 and AAA batteries (see my CRICKETS short article) – Kodak for instance really don’t previous any time at all so I simply stopped working with them ages in the past. I usually use GPExtra AAA batteries from Amazon and somewhere else as they are cheap and feel to past. If I need to have prolonged daily life I go for Energizer Final Lithium AAA.

So, just what chip DO Sonoff use for this door sensor? NOT an ESP32 – but something else: OPL1000.

Sonoff DW2-Wi-Fi door sensor

I’m not acquainted with that chip – but there you have it -opened up.

Sonoff DW2-Wi-Fi door sensor

Once I experienced the system speaking to eWeLink, I went to my Node-Crimson installation and appeared up my node-purple-contrib-ewelink nodes which do the job high-quality as very well, unce the unit has been paired into the eWeLink App – from there, the Node-Pink nodes no longer require your phone switched on.

node-red-contrib-ewelink nodes

I’ve been messing with this all day and the battery indicator in the Sonoff Application nevertheless claims full and my nodes report 100 (think 100%) – clearly it would just take months or months to test battery lifetime so I’ll depart this sensor and it is magnet on a door someplace.

In my initial report I left sensors on doors on the British isles household we no longer personal (and I left them on the doors… dohhh!)

Importantly the sensor studies each ON and OFF point out (open and closed) as nicely as WiFi signal stage and battery degree. I also got the firmware specifics: 1000.2.1195 – a later on edition than the to start with DW2-WiFi I received a when ago… see the first weblog entry which also lined other Sonoff merchandise.

Sensor operating gap

For the above Node-Purple nodes, the to start with eWeLink node (eWeLink Gadgets) requirements almost nothing a lot more than your totally free eWeLink account qualifications (ie a sequence of numbers and letters with a period part way via) and the 2nd (eWeLink Function Listener) requires the identical code and a system ID which can be picked up from the output of the first node.

The Perform node is how I get out helpful facts.

As for the gap wanted – my hand is very normal dimension. Judge for oneself. Of program if you really don’t want to use Node-Pink, the Sonoff eWeLink App is alright. For the history, I’m not acquiring the node-red-contrib-ewelink node (eWeLink event listener) 100% responsible – I AM discovering the App 100% dependable. For the Application with my WiFi turned off and Bluetooth turned off – which indicates the spherical vacation has to be via Sonoff servers, I’m discovering considerably less than .5 seconds reaction time to be standard for screen reaction. With my cell phone in my pocket, audio notifications probably 1-20 seconds (and I JUST realised I can customise notifications on a for each-app foundation – how did I skip out on that right until now!)

msg.payload = "Device " + msg.payload.deviceid + "=" + msg.payload.params.switch + world wide.get("handyDate")
return msg

Facebooktwitterpinterestlinkedin