# Signal data from sonoff sensor DW1 needed

**URL:** <https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126>\
**Category:** Developers\
**Created:** [December 31, 2018, 12:27pm UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126 "2018-12-31T12:27:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dolfje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dolfje/32/3319_2.png) [@Dolfje](https://community.homey.app/u/Dolfje)\
**Post date:** [December 31, 2018, 12:27pm UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/1 "2018-12-31T12:27:52Z")

</div>

Hey all,

I’m busy with creating standalone app for the Sonoff sensor dw1 (to most probably create afterwards a merge request on the Sonoff app itself). I already decoded the signal and created the signal definition. But now I want to decode what’s inside. If it has some predefined key and then an ID. As I have only one sensor, I’m stuck. If you have have a Sonoff dw1, do you want to copy the raw data from [https://developer.athom.com/tools/signals](https://developer.athom.com/tools/signals) and send it to me?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 31, 2018, 12:45pm UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/2 "2018-12-31T12:45:02Z")

</div>

I have one, I think (not at home at the moment so can’t check).

From what I remember, there’s a fairly typical EV1527 chip inside that generates a code. If it is that chip, it’s a 24-bit code, a 20 bit identifier and 4 “on/off” bits. I think you can set which one of those should be set with a jumper inside the device.

I’d be happy to merge your app into the Sonoff app once you have it working. When I’m back home I’ll generate some data for you if you still need it.

---

<div class="post-metadata">

**Author:** ![Dolfje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dolfje/32/3319_2.png) [@Dolfje](https://community.homey.app/u/Dolfje)\
**Post date:** [January 2, 2019, 9:15am UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/3 "2019-01-02T09:15:53Z")

</div>

Thank you for the input already. I though it would be a full identifier, but the on/off bits is new. I see in the sensor the 4 on/off switches, but they are soldered (so no hard switch). Hopefully not all dw1 sensors have the same 20bit identifier. Else it will be problematic to find the correct dw1 to have each window/door send a unique identifier.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 2, 2019, 10:57am UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/4 "2019-01-02T10:57:05Z")

</div>

I forgot, I soldered them by hand 😅

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/564f5e0ffa70e29f2f95211538b8a02e2d59c4ea.jpeg)

Turns out that I already created an app for this a while ago, never finished it. All it does it detect and show the signals it receives. I just pushed it to [Github](https://github.com/robertklep/name.klep.sonoff-rf-sensors) in case you’re interested.

For my device, it outputs the following:

```auto
2019-01-02 11:50:12 [log] [SonoffRFSensorApp] SonoffRFSensorApp is running...
received from a device: [0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1] isRepetition: false
code = 84763, id = 5297, d0 = true, d1 = false, d2 = true, d3 = true

```

The code (“84763”) is the full signal code, and should be unique for each device. It can subsequently be decoded into an id, and 4 “switch bits”. As you can see, the bit values correspond to the solder bridges (key1 = d0, key2 = d1, etc).

I also confirmed that the code is correct using my Sonoff RF bridge:

```auto
ele/sonoff-rf-bridge/RESULT {"RfReceived":{"Sync":12600,"Low":370,"High":1180,"Data":"014B1B","RfKey":"None"}}

```

(`0x014B1B` === `84763`)

---

<div class="post-metadata">

**Author:** ![Dieter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dieter/32/5163_2.png) [@Dieter](https://community.homey.app/u/Dieter)\
**Post date:** [March 1, 2019, 10:23pm UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/5 "2019-03-01T22:23:27Z")

</div>

Hey Dolfje,

Thx alvast om dit te proberen!

Nog enige update met de app? heb wel interesse in deze sensors rechtstreeks te gebruiken.

grtz

---

<div class="post-metadata">

**Author:** ![Dieter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dieter/32/5163_2.png) [@Dieter](https://community.homey.app/u/Dieter)\
**Post date:** [March 13, 2019, 3:38am UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/7 "2019-03-13T03:38:09Z")

</div>

Zou deze app ook welk leuk vinden!! Nog enige update? thx

Edit: sorry for non English

I would really like this app to!! Any update? Thx

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [March 13, 2019, 2:39pm UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/8 "2019-03-13T14:39:59Z")

</div>

If you could please keep the conversation in English as much as possible, then more people will be able to participate and help you. If you would rather not or can’t communicate in English then please check out Non-English boards at

[https://community.homey.app/c/non-english](https://community.homey.app/c/non-english)

[Nederlands (Dutch)](https://community.homey.app/c/non-english/nederlands), [Dansk (Danish)](https://community.homey.app/c/non-english/dansk), [Deutsch (German)](https://community.homey.app/c/non-english/deutsch), [Svenska (Swedish)](https://community.homey.app/c/non-english/svenska), [Français (French)](https://community.homey.app/c/non-english/francais), [Polskie (Polish)](https://community.homey.app/c/non-english/polskie), [Fiński (Finnish)](https://community.homey.app/c/non-english/finski)

---

<div class="post-metadata">

**Author:** ![Jannick](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jannick/32/27301_2.png) [@Jannick](https://community.homey.app/u/Jannick)\
**Post date:** [June 12, 2019, 9:29am UTC](https://community.homey.app/t/signal-data-from-sonoff-sensor-dw1-needed/6126/9 "2019-06-12T09:29:14Z")

</div>

Is there any update on this? Would love to use these sensors, but they aren’t supported in the Sonoff app on Homey. Thanks!
