• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


[Fully Supported] No-brand temp/humidity sensor (alecto_ws1700)
#1
 
Reply
#2
Update, some above the above are not correct. Did some new measurements. Besides the differences below, there seems to be something changing after a battery swap. Binary results without a swap:


Temp differences:

22.6 / 39% / 3 111100000010000011
22.5 / 39% / 3 111100000010010011
22.4 / 39% / 3 111100000010000011

22.1 / 39% / 2 111100010011110011
21.9 / 39% / 2 111100010011010011

22.8 / 41% / 2 111100010010110001
22.5 / 41% / 2 111100010010010001


Channel differences

21.9 / 39% / 2 111100010011010011
21.9 / 39% / 1 111100000011010011

22.8 / 41% / 2 111100010010110001
22.8 / 41% / 3 111100000010100001

Will measure more later for humidity.
 
Reply
#3
I need the actual raw codes instead of these binary's.
 
Reply
#4
OK,

Temp difference

Code:
20.3 / 43% / ch 1
--[RESULTS]--

hardware:       433gpio
pulse:          14
rawlen:         74
binlen:         18
pulselen:       270

Raw code:
540 1890 540 3780 540 1890 540 3780 540 3780 540 3780 540 3780 540 3780 540 1890 540 1890 540 3780 540 3780 540 3780 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 3780 540 3780 540 1890 540 1890 540 4050 540 1890 540 4050 540 4050 540 1890 540 1890 540 4050 540 1890 540 3780 540 1890 540 3780 540 3780 540 9180
Binary code:
111101000010010001

20.5 / 43% / ch 1

--[RESULTS]--

hardware:       433gpio
pulse:          14
rawlen:         74
binlen:         18
pulselen:       270

Raw code:
540 1890 540 3780 540 1890 540 3780 540 3780 540 3780 540 3780 540 3780 540 1890 540 1890 540 3780 540 4050 540 3780 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 3780 540 3780 540 1890 540 1890 540 4050 540 3780 540 1890 540 4050 540 1890 540 1890 540 4050 540 1890 540 3780 540 1890 540 3780 540 3780 540 9180
Binary code:
111101000010110001

20.8 / 43% / ch 1

--[RESULTS]--

hardware:       433gpio
pulse:          14
rawlen:         74
binlen:         18
pulselen:       270

Raw code:
540 1890 540 3780 540 1890 540 3780 540 4050 540 3780 540 3780 540 4050 540 1890 540 1890 540 3780 540 3780 540 3780 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 4050 540 3780 540 1890 540 4050 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 4050 540 1890 540 3780 540 1890 540 3780 540 3780 540 9180
Binary code:
111101000011000001


Humidity difference
(not sure if pulselen 271 causes issues)

Code:
22.7 / 39%  / 1

--[RESULTS]--

hardware:       433gpio
pulse:          14
rawlen:         74
binlen:         18
pulselen:       271

Raw code:
542 1897 542 3794 542 1897 542 3794 542 1897 542 3794 542 3794 542 3794 542 1897 542 1897 542 3794 542 1897 542 3794 542 1897 542 1897 542 1897 542 1897 542 1897 542 1897 542 1897 542 3794 542 3794 542 3794 542 1897 542 1897 542 1897 542 3794 542 3794 542 1897 542 1897 542 3794 542 1897 542 1897 542 3794 542 3794 542 3794 542 9214
Binary code:
111100000010010011

22.7 / 45% /  1

--[RESULTS]--

hardware:       433gpio
pulse:          15
rawlen:         74
binlen:         18
pulselen:       270

Raw code:
540 1890 540 3780 540 1890 540 3780 540 3780 540 3780 540 4050 540 3780 540 1890 540 1890 540 3780 540 3780 540 3780 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 3780 540 4050 540 3780 540 1890 540 1890 540 1890 540 3780 540 3780 540 1890 540 1890 540 3780 540 1890 540 4050 540 3780 540 1890 540 4050 540 9180
Binary code:
111101000010010011


Channel differences

Code:
23.9 / 45 / 3

--[RESULTS]--

hardware:       433gpio
pulse:          14
rawlen:         74
binlen:         18
pulselen:       271

Raw code:
542 1897 542 3794 542 1897 542 3794 542 3794 542 3794 542 3794 542 3794 542 1897 542 1897 542 3794 542 3794 542 3794 542 1897 542 3794 542 1897 542 1897 542 1897 542 1897 542 1897 542 3794 542 4065 542 3794 542 1897 542 3794 542 3794 542 3794 542 3794 542 1897 542 1897 542 4065 542 1897 542 3794 542 3794 542 1897 542 3794 542 9214
Binary code:
111101000010110011

23.9 / 45 / 2

--[RESULTS]--

hardware:       433gpio
pulse:          15
rawlen:         74
binlen:         18
pulselen:       270

Raw code:
540 1890 540 3780 540 1890 540 3780 540 3780 540 3780 540 3780 540 4050 540 1890 540 1890 540 4050 540 3780 540 3780 540 3780 540 1890 540 3780 540 1890 540 1890 540 1890 540 1890 540 4050 540 4050 540 4050 540 1890 540 4050 540 3780 540 3780 540 3780 540 1890 540 1890 540 3780 540 1890 540 3780 540 3780 540 1890 540 4050 540 9180
Binary code:
111101110010110011

23.9 / 45 / 1

--[RESULTS]--

hardware:       433gpio
pulse:          14
rawlen:         74
binlen:         18
pulselen:       270

Raw code:
540 1890 540 3780 540 1890 540 3780 540 3780 540 3780 540 3780 540 3780 540 1890 540 1890 540 3780 540 3780 540 4050 540 3780 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 4050 540 3780 540 3780 540 1890 540 3780 540 4050 540 3780 540 3780 540 1890 540 1890 540 4050 540 1890 540 3780 540 3780 540 1890 540 3780 540 9180
Binary code:
111101100010110011
 
Reply
#5
The sensor contains a SL-TX583 transmitter. Based on this page:



Quote:// constants for slicing up the 32-bit weather data packet//

bottom 8 bits are humidity
second 8 bits are temp, as deci-degrees celsisu

next 1 bit is set if button is pressed forcing data to transmit, rather than timed transmit

next 2 bits channel 0-2 marked 1-3 on transmitter units

next 1 bit is always set on all my transmitters (could indicate celsius, data is always sent in C regardless. Doesn't seem to be battery good status. unused feature?)

OTOH this bytes seems to change to a random value any time a transmitter resets, doesn't change after that...Doesn't seem to be battery related.


Based on the above, grouping by 2 pulses to make 1 bit seems to makes sense. In total we have a 36 bit code with 1 bit footer.

Code:
540 1890 540 3780 540 1890 540 3780 540 3780 540 3780 540 3780 540 3780 540 1890 540 1890 540 3780 540 4050 540 3780 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 3780 540 3780 540 1890 540 1890 540 4050 540 3780 540 1890 540 4050 540 1890 540 1890 540 4050 540 1890 540 3780 540 1890 540 3780 540 3780 540 9180

- first 4 bits (1-4) are always 0101

- next 8 bits (5-12) are device id

- next 1 bit (13) I assume is battery, 1 = good, 0 = low

- next 1 bit (14) is tx mode, 0 = auto 1 = manual

- next 2 bits (15-16) are channel setting (00 = channel 1, 01 = channel 2, 10 = channel 3)

- next 12 bits (17-28) are temp (e.g. 540 1890 540 1890 540 1890 540 1890 540 3780 540 3780 540 1890 540 1890 540 4050 540 1890 540 4050 540 4050 = 000011001011 = 20.3)

- next 8 bits (29-36) are humidity (e.g. 540 1890 540 1890 540 4050 540 1890 540 3780 540 1890 540 3780 540 3780 = 00101011 = 43%)

- Last bit (37), or two pulses (e.g. 540 9180) seems to be the footer

Remarks:

- Device always sends in Celsius, despite of the display setting
- Device ID changes after battery replacing
 
Reply
#6
It shouldn't be that difficult to create a new protocol based on alecto.
 
Reply
#7
You have a pull request for the threechan protocol, please be aware that this is my first one on git and my first c programming...
 
Reply
#8
I'm also interested in this protocol as it could usable for my temperature sensors.

Is it already included in the dev tree?
 
Reply
#9
Yes, it is the dev three and on the wiki. Curious about your experience with your sensor.
 
Reply
#10
Thanks to elektronaut69 (https://github.com/pimatic/pimatic/issues/45) I fixed a bug in this protocol. However I'm not able to fix another one. About once every 50 readings, the first bit of temperature is wrong (1 instead of 0). This leads to this:

[Image: bhgTFH1l.jpg]

Testing with:

Code:
threechan->pulse = 14;

Code:
threechan->pulse = 15;

and

Code:
protocol_plslen_add(threechan, 270);

Code:
protocol_plslen_add(threechan, 266);

didn't help much. Running pilight-debug is not really possible, because most times it's the 3rd/4th repeat of the transmission that goes wrong.

Any suggestions?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Lightbulb [Fully Supported] Kaku Door sensor (AMST-606) geerttttt 53 24,619 10-19-2019, 06:26 PM
Last Post: curlymo
  Digoo / Baldr / Nexus / Rubicson temperature/humidity sensor thielj 4 1,439 09-30-2019, 04:48 PM
Last Post: curlymo
  433MHz PIR sensor from Amazon ha_username 0 116 09-29-2019, 11:44 PM
Last Post: ha_username
  [Partially Supported] TFA / Conrad Weather Yves 184 12,279 03-31-2019, 05:22 PM
Last Post: curlymo
  gs-iwds07 window sensor Loggisch 46 13,035 01-02-2019, 09:11 PM
Last Post: curlymo
  [Fully Supported] DHT22 IcedEarth 86 31,888 11-18-2018, 09:33 AM
Last Post: curlymo
  Pearl weatherstation sensor for FWS-686 & FWS-665 chklump 13 4,784 08-12-2018, 05:34 PM
Last Post: fourty2
  TFA 30.3160 Pool Sensor wseifert 4 933 05-30-2018, 09:24 AM
Last Post: wseifert
  [Fully Supported] Arctech Old Martin 111 35,821 03-27-2018, 04:43 PM
Last Post: genfersee
Lightbulb BH1750 i2c digital illuminance sensor marcm 14 3,714 02-25-2018, 08:40 PM
Last Post: morph027

Forum Jump:


Browsing: 2 Guest(s)