• 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


Connect digital weather sensor
#31
Hi meloen,

I try bit 9 but also the Battery symbols is red.

Is there an easy why to figure out which bit it is or did I have to test all 262 pulses?

What's about a pilight-receive with full battery and then use empty batterys?

Wher can "I" see the right count of bit is used for battery status?

Thanks Peter
 
Reply
#32
You don't have to test all bits, most bits are already known:

ID: 0 till 7
Temperature: 14 till 23
Humidity: 24 till 30

Remaining 8-13 and 31-36. If I look at your readings at the first post, bit 9 and 36 are always one. A real test with almost empty batteries should be the best. For more explanation on the protocol, please check the wiki. Summary:

Code:
1111 0111 0101 00 0011111110 0101110 001001 1

and simply start counting, first bit is bit 0. Get the idea?
 
Reply
#33
Is the protocol working now?
 
Reply
#34
Hi meloen,

I hope that I found time today to test all remaining bits 8-13 and 31-36 for the right Battery Status.

On Weekend I have modify my humble pi board with a LPF..

Regards Peter
 
Reply
#35
Hi meloen,

I stopped the pilight service and start a pilight debug....

Some time nothing happens other one I recieve only short string.. strange.

Here are the results with empty Battery:
Code:
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         76
binlen:         19
pulselen:       267

Raw code:
534 4005 534 4005 534 4005 534 4272 534 4005 534 1869 534 4005 534 2136 534 2136 534 4005 534 4005 534 2136 534 2136 534 2136 534 2136 534 4005 534 2136 534 2136 534 2136 534 2136 534 2136 534 2136 534 2136 534 2136 534 4005 534 2136 534 2136 534 2136 534 2136 534 2136 534 2136 534 4005 534 2136 534 4005 534 2136 534 2136 534 2136 534 9078
Binary code:
1111111111111111111
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         4
binlen:         1
pulselen:       264

Raw code:
528 2112 528 8976
Binary code:
1

25.4 °C / 50% / Empty Battery:
Code:
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         76
binlen:         19
pulselen:       264

Raw code:
528 4224 528 3960 528 3960 528 3960 528 4224 528 2112 528 4224 528 2112 528 2112 528 3960 528 4224 528 2112 528 2112 528 2112 528 2112 528 2112 528 4224 528 4224 528 4224 528 4224 528 4224 528 4224 528 4224 528 2112 528 2112 528 4224 528 4224 528 2112 528 2112 528 4224 528 2112 528 2112 528 2112 528 2112 528 4224 528 4224 528 2112 528 8976
Binary code:
1111111111111111111

24.7 / 51 / Empty
Code:
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         76
binlen:         19
pulselen:       264

Raw code:
528 3960 528 3960 792 3960 528 3960 528 3960 528 2112 528 3960 792 1848 792 2112 528 3960 528 3960 528 2112 528 2112 528 2112 528 2112 528 2112 528 3960 528 3960 528 3960 792 3960 528 2112 528 2112 528 3960 528 3960 528 2112 528 3960 528 3960 528 2112 528 3960 528 3960 528 4224 528 2112 528 2112 528 2112 528 3960 528 2112 528 3960 528 8976
Binary code:
1111111111111111111

24.32 / 55 / Empty Battery
Code:
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 4240 530 3975 530 3975 530 4240 530 3975 530 2120 530 4240 530 2120 530 2120 530 3975 530 3975 530 2120 530 2120 530 2120 530 2120 530 2120 530 3975 530 3975 530 4240 530 3975 530 2120 530 2120 530 3975 530 3975 530 2120 530 4240 530 3975 530 2120 530 3975 530 3975 530 3975 530 2120 530 2120 530 2120 530 3975 530 2120 530 3975 530 9010
Binary code:
1111111111111111111

Now with Full Battery:
24.2 / 55 /Full Battery
Code:
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         4
binlen:         1
pulselen:       263

Raw code:
526 2104 526 8942
Binary code:
1

24.3/ 54 / Full
Code:
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         4
binlen:         1
pulselen:       266

Raw code:
532 2128 532 9044
Binary code:
1

Last try
24.4 / 52 / Full
Code:
root@raspberrypi:/home/pi# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 3975 530 1855 530 3975 530 3975 530 2120 530 2120 530 3975 530 2120 530 2120 530 3975 530 3975 530 2120 530 2120 530 2120 530 2120 530 2120 530 3975 530 3975 530 3975 530 3975 530 2120 530 3975 530 2120 530 2120 530 2120 530 3975 530 4240 530 2120 530 3975 530 2120 530 2120 530 4240 530 3975 530 2120 530 3975 530 2120 530 2120 530 9010
Binary code:
1111111111111111111

Maybe that give you and me the hint where the bit for the Battery is...

Regards Peter

Hi meloen,

put the sender back to "outside" and play around a little bit with settings.json.

Run the pilight-daemon -D and see some wether data from my sensor with differnet ID!
Code:
[ Mar 18 22:31:47:48970] pilight-daemon: DEBUG: broadcasted: {"code":{"version":2,"lpf":80,"hpf":16000},"origin":"receiver","protocol":"pilight_firmware","uuid":"0000-00-00-4b-f48aaa","repeats":2}
[Mar 18 22:32:00:585350] pilight-daemon: DEBUG: caught minimum # of repeats 1 of teknihall
[Mar 18 22:32:00:585687] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 18 22:32:00:587032] pilight-daemon: DEBUG: broadcasted: {"code":{"id":178,"temperature":153,"humidity":540,"battery":0},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":1}
[Mar 18 22:32:00:893020] pilight-daemon: DEBUG: caught minimum # of repeats 2 of teknihall
[Mar 18 22:32:00:893320] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 18 22:32:00:894706] pilight-daemon: DEBUG: broadcasted: {"code":{"id":178,"temperature":153,"humidity":540,"battery":0},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":2}
[Mar 18 22:32:50:483607] pilight-daemon: DEBUG: called pilight_firmware parseBinary()
[Mar 18 22:32:50:484878] pilight-daemon: DEBUG: broadcasted: {"code":{"version":2,"lpf":80,"hpf":16000},"origin":"receiver","protocol":"pilight_firmware","uuid":"0000-00-00-4b-f48aaa","repeats":1}
[Mar 18 22:32:56:869362] pilight-daemon: DEBUG: caught minimum # of repeats 1 of teknihall
[Mar 18 22:32:56:869685] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 18 22:32:56:871016] pilight-daemon: DEBUG: broadcasted: {"code":{"id":178,"temperature":148,"humidity":560,"battery":0},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":1}
[ Mar 18 22:32:57:17110] pilight-daemon: DEBUG: caught minimum # of repeats 2 of teknihall
[ Mar 18 22:32:57:17492] pilight-daemon: DEBUG: called teknihall parseCode()
[ Mar 18 22:32:57:18864] pilight-daemon: DEBUG: broadcasted: {"code":{"id":178,"temperature":148,"humidity":560,"battery":0},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":2}
[Mar 18 22:32:57:164917] pilight-daemon: DEBUG: caught minimum # of repeats 3 of teknihall
[Mar 18 22:32:57:165243] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 18 22:32:57:166595] pilight-daemon: DEBUG: broadcasted: {"code":{"id":178,"temperature":148,"humidity":560,"battery":0},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":3}

You wrote my sensor should be ID 130 but it looks it is now ID 178....

Regards Peter
 
Reply
#36
How did you check that the battery was empty enough, did the display or led of the sensor showed something?

Binary conversion:

Code:
25.4 / 50 / empty
11111010 011000 0011111110 0110010 000110

24.7 / 51 / Empty
11111010 011000 0011110011 0110111 000101

24.4 / 52 / Full
10110010 011000 0011110100 0110100 110100

Based on this, bits 33 or 34 look like the battery bit, but I have to check it with your previous reading.

Regarding the ID, the ID changes after your pull the batteries, so it's normal that it has changed. It's a bit annoying when testing, but normally you replace the batteries once every few months.
 
Reply
#37
Hi meloen,

I tried bit 33 and 34....

Bit 34 looks better because it's grean when the Empty-battery symbol is not enable in the sender display.

Now I have some very old empty batteries inside and the results are strange because it looks like I have now an other ID for the device and Battery is 1:

Code:
[Mar 20 19:34:56:874402] pilight-daemon: DEBUG: broadcasted: {"code":{"id":81,"temperature":264,"humidity":350,"battery":1},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":11}
[ Mar 20 19:34:57:23849] pilight-daemon: DEBUG: caught minimum # of repeats 12 of teknihall
[ Mar 20 19:34:57:24154] pilight-daemon: DEBUG: called teknihall parseCode()
[ Mar 20 19:34:57:25561] pilight-daemon: DEBUG: broadcasted: {"code":{"id":81,"temperature":264,"humidity":350,"battery":1},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":12}
[Mar 20 19:34:57:460241] pilight-daemon: DEBUG: caught minimum # of repeats 13 of teknihall
[Mar 20 19:34:57:460546] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 20 19:34:57:461916] pilight-daemon: DEBUG: broadcasted: {"code":{"id":81,"temperature":264,"humidity":350,"battery":1},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":13}
[Mar 20 19:34:57:611390] pilight-daemon: DEBUG: caught minimum # of repeats 14 of teknihall
[Mar 20 19:34:57:611689] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 20 19:34:57:613082] pilight-daemon: DEBUG: broadcasted: {"code":{"id":81,"temperature":264,"humidity":350,"battery":1},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":14}
[Mar 20 19:34:57:762413] pilight-daemon: DEBUG: caught minimum # of repeats 15 of teknihall
[Mar 20 19:34:57:762740] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 20 19:34:57:764132] pilight-daemon: DEBUG: broadcasted: {"code":{"id":81,"temperature":264,"humidity":350,"battery":1},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":15}
[Mar 20 19:34:57:913469] pilight-daemon: DEBUG: caught minimum # of repeats 16 of teknihall
[Mar 20 19:34:57:913803] pilight-daemon: DEBUG: called teknihall parseCode()
[Mar 20 19:34:57:915154] pilight-daemon: DEBUG: broadcasted: {"code":{"id":81,"temperature":264,"humidity":350,"battery":1},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":16}
[ Mar 20 19:34:58:64484] pilight-daemon: DEBUG: caught minimum # of repeats 17 of teknihall
[ Mar 20 19:34:58:64810] pilight-daemon: DEBUG: called teknihall parseCode()
[ Mar 20 19:34:58:66303] pilight-daemon: DEBUG: broadcasted: {"code":{"id":81,"temperature":264,"humidity":350,"battery":1},"origin":"receiver","protocol":"teknihall","uuid":"0000-00-00-4b-f48aaa","repeats":17}
[Mar 20 19:35:08:356834] pilight-daemon: DEBUG: called pilight_firmware parseBinary()
[Mar 20 19:35:08:358174] pilight-daemon: DEBUG: broadcasted: {"code":{"version":2,"lpf":80,"hpf":16000},"origin":"receiver","protocol":"pilight_firmware","uuid":"0000-00-00-4b-f48aaa","repeats":1}
[Mar 20 19:36:11:739454] pilight-daemon: DEBUG: called pilight_firmware parseBinary()
[Mar 20 19:36:11:740763] pilight-daemon: DEBUG: broadcasted: {"code":{"version":2,"lpf":80,"hpf":16000},"origin":"receiver","protocol":"pilight_firmware","uuid":"0000-00-00-4b-f48aaa","repeats":1}

26.3°C /30 / Empty Battery
Code:
root@raspberrypi:/home/pi/pilight# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 2120 530 4240 530 2120 530 4240 530 2120 530 2120 530 2120 530 3975 530 4240 530 3975 530 4240 530 2120 530 2120 530 2120 530 2120 530 3975 530 2120 530 2120 530 2120 530 2120 530 4240 530 2120 530 4240 530 2120 530 2120 530 2120 530 4240 530 4240 530 4240 530 3975 530 2120 530 4240 530 2120 530 3975 530 3975 530 3975 530 2120 530 9010
Binary code:
1111111111111111111

And another one:

25.9°C / 32 / Empyt:

Code:
root@raspberrypi:/home/pi/pilight# pilight-debug
Now press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
It is possible that the debugger needs to be restarted when it does
not show anything. This is because it's then following a wrong lead.
--[RESULTS]--

hardware:       433gpio
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 2120 530 3975 530 2120 530 3975 530 2120 530 2120 530 2120 530 4240 530 3975 530 3975 530 3975 530 2120 530 2120 530 2120 530 2120 530 3975 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 3975 795 3975 530 2120 530 3975 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 3975 530 3975 530 4240 530 2120 530 2120 530 9010
Binary code:
1111111111111111111
 
Reply
#38
The ID changes after you remove/replace the batteries. Is the sensor displaying a low battery alert? Compared several of your measures, but cannot find a unique bit that reflects a low/full battery. I doubt if the sensor sends a low battery signal at all:

Code:
11111010 011000 0011111110 0110010 000110 - 25.4 / 50 / Empty
11111010 011000 0011110011 0110111 000101 - 24.7 / 51 / Empty
10110010 011000 0011110100 0110100 110100 - 24.4 / 52 / Full
11110111 010100 0011111110 0101110 001001 - 25.4 / 46 / Full
11110111 010000 0000101011 1010011 110111 -  4.3 / 83 / Full
 
Reply
#39
Hi meloen,

The sensor have a "Half Batterie" Symbol that's on when I am insert old empty battery.

I wondering that the ID is changed when I used other batteries.

Maybe the sensor send a voltage Status with more than one bit.

Regards Peter
 
Reply
#40
Guys, cannot add much but have a look at http://goughlui.com/?p=5395
for the Teknihall hardware sensor model number is GT-WT-01 and sheets

"The model GE08-350 leads us to this datasheet from the company, G E-Chip Technology (HK). The datasheet tells us it’s an ASK 433.92Mhz TX module, thus giving us hope that it would be decodable by rtl_433."
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Partially Supported] TFA / Conrad Weather Yves 203 25,980 03-27-2020, 01:21 PM
Last Post: Ascenion
  [Fully Supported] KlikAanKlikUit Motion Sensor koen01 37 15,155 03-26-2020, 02:46 PM
Last Post: Gisto
  Digoo / Baldr / Nexus / Rubicson temperature/humidity sensor thielj 12 3,059 02-10-2020, 10:54 PM
Last Post: ha_username
  Support for Temperaturee sensor clona 4 460 02-10-2020, 02:52 PM
Last Post: clona
  inFactory Weather Sensors porst17 1 356 12-26-2019, 06:43 PM
Last Post: porst17
  gs-iwds07 window sensor Loggisch 48 17,259 12-09-2019, 07:14 PM
Last Post: curlymo
Lightbulb [Fully Supported] Kaku Door sensor (AMST-606) geerttttt 53 28,309 10-19-2019, 06:26 PM
Last Post: curlymo
  433MHz PIR sensor from Amazon ha_username 0 696 09-29-2019, 11:44 PM
Last Post: ha_username
  Bresser 3Ch weather sensors Harald654 13 5,937 02-15-2019, 01:06 PM
Last Post: saak2820
  Pearl weatherstation sensor for FWS-686 & FWS-665 chklump 13 6,356 08-12-2018, 05:34 PM
Last Post: fourty2

Forum Jump:


Browsing: 1 Guest(s)