Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding DCF message from WH31E/DNT000005 #1290

Merged
merged 13 commits into from
Jan 26, 2025
Merged

Conversation

elektron-bbs
Copy link
Contributor

@elektron-bbs elektron-bbs commented Jan 20, 2025

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added / modified (needed for for bug fixes / features)
  • commandref has been added / updated (needed for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
  • Bugfix (please link issue)
  • Feature enhancement
  • Documentation update
  • Unittest enhancement
  • other
  • What is the current behavior?
    (You can also link to an open issue here, if this describes the current behavior)
    No decoding of the DCF messages of the sensors WH31E and DNT000005.

  • What is the new behavior (if this is a feature change)?
    Decoding of DCF messages from sensors WH31E and DNT000005.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    no

  • Other information:
    Added length_max attribute in SD_ProtocolData.pm for all WH series sensors to disable error messages when receiving other sensors.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.56%. Comparing base (9a34ef3) to head (e1c5c90).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1290      +/-   ##
==========================================
+ Coverage   84.31%   85.56%   +1.24%     
==========================================
  Files         138      140       +2     
  Lines       10301    10347      +46     
  Branches     1691     1701      +10     
==========================================
+ Hits         8685     8853     +168     
+ Misses       1615     1493     -122     
  Partials        1        1              
Flag Coverage Δ
fhem 77.85% <100.00%> (+1.48%) ⬆️
modules 85.56% <100.00%> (+1.24%) ⬆️
perl 95.29% <100.00%> (+0.03%) ⬆️
unittests 85.56% <100.00%> (+1.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elektron-bbs elektron-bbs requested a review from sidey79 January 20, 2025 20:18
@elektron-bbs elektron-bbs changed the title Decoding DFC message from WH31E/DNT000005 Decoding DCF message from WH31E/DNT000005 Jan 21, 2025
@sidey79
Copy link
Contributor

sidey79 commented Jan 21, 2025

Ich habe folgendes Verstanden,

es gibt eine T/H Sensor der sendet auch ein DCF Zeitsignal .

Ist das korrekt?

@HomeAutoUser
Copy link
Contributor

Ich habe folgendes Verstanden,

es gibt eine T/H Sensor der sendet auch ein DCF Zeitsignal .

Ist das korrekt?

@sidey79 das ist korrekt. -> Link dazu

2025-01-21_02:06:52 SD_WS_125_DCF 97: 2025-01-21 02:06:53
2025-01-21_02:06:52 SD_WS_125_DCF dcf: 2025-01-21 02:06:53
2025-01-21_02:06:52 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:06:52 SD_WS_125_DCF RAWMSG: MN;D=5297102501210206537E1900364D;R=8;A=12;
2025-01-21_02:06:52 SD_WS_125_DCF DMSG: W125#5297102501210206537E1900364D
2025-01-21_02:06:52 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:06:52 SD_WS_125_DCF RSSI: -70

@sidey79
Copy link
Contributor

sidey79 commented Jan 21, 2025

@HomeAutoUser

Okay Danke für die Bestätigung.

Wieso packen wir das Zeitsignal dann nicht als Reading in das jeweilige device? Dafür gibt es ja bestimmt eine Erklärung :)

@HomeAutoUser
Copy link
Contributor

@HomeAutoUser

Okay Danke für die Bestätigung.

Wieso packen wir das Zeitsignal dann nicht als Reading in das jeweilige device? Dafür gibt es ja bestimmt eine Erklärung :)

Die Erklärung ist eigentlich einfach, da ich bei mehreren Sensoren jeweils zur "selben Zeit" dann ein Reading hätte, so dachten wir, ist ein zentrales Device übersichtlicher. (DFC Zeit kommt bei allen Sensoren fast identisch)

  • Im Logfile wird alles registriert. Welches Sensor (ID) zu welchem Zeitpunkt es empfangen hatte.
  • Im "state" des neuen Devices steht der letzte Zeitempfang.

zur besseren Vorstellung
Auszug Device List:

Internals:
   CODE       SD_WS_125_DCF
   DEF        SD_WS_125_DCF
   FVERSION   14_SD_WS.pm:v1.1.5-s26982/2024-09-08
   NAME       SD_WS_125_DCF
   NR         174
   STATE      Defined
   TYPE       SD_WS
   READINGS:
     2025-01-21 02:06:52   dcf             2025-01-21 02:06:53
     2025-01-17 02:01:24   model           SD_WS_125_TH
     2025-01-21 02:06:52   state           97: 2025-01-21 02:06:53
     2025-01-17 02:01:24   type            WH31e, WH31b, DP50, DNT000005
Attributes:
   room       System

Auszug Logfile:

2025-01-18_02:01:40 SD_WS_125_DCF 97: 2025-01-18 02:01:41
2025-01-18_02:01:40 SD_WS_125_DCF dcf: 2025-01-18 02:01:41
2025-01-18_02:01:40 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:01:40 SD_WS_125_DCF RAWMSG: MN;D=5297102501180201413EB900038C;R=10;A=12;
2025-01-18_02:01:40 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:01:40 SD_WS_125_DCF RSSI: -69
2025-01-18_02:01:40 SD_WS_125_DCF DMSG: W125#5297102501180201413EB900038C
2025-01-18_02:01:40 SD_WS_125_DCF 97: 2025-01-18 02:01:41
2025-01-18_02:01:40 SD_WS_125_DCF dcf: 2025-01-18 02:01:41
2025-01-18_02:01:40 SD_WS_125_DCF DMSG: W125#5297102501180201413EB9003A83
2025-01-18_02:01:40 SD_WS_125_DCF RSSI: -68.5
2025-01-18_02:01:40 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:01:40 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:01:40 SD_WS_125_DCF RAWMSG: MN;D=5297102501180201413EB9003A83;R=11;A=12;
2025-01-18_02:01:52 SD_WS_125_DCF 50: 2025-01-18 02:01:53
2025-01-18_02:01:52 SD_WS_125_DCF dcf: 2025-01-18 02:01:53
2025-01-18_02:01:52 SD_WS_125_DCF RSSI: -54
2025-01-18_02:01:52 SD_WS_125_DCF DMSG: W125#5250112501180201539BE20007FE
2025-01-18_02:01:52 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:01:52 SD_WS_125_DCF RAWMSG: MN;D=5250112501180201539BE20007FE;R=40;A=12;
2025-01-18_02:01:52 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:01:52 SD_WS_125_DCF 50: 2025-01-18 02:01:53
2025-01-18_02:01:52 SD_WS_125_DCF dcf: 2025-01-18 02:01:53
2025-01-18_02:01:52 SD_WS_125_DCF DMSG: W125#5250112501180201539BE2000D9A
2025-01-18_02:01:52 SD_WS_125_DCF RSSI: -53.5
2025-01-18_02:01:52 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:01:52 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:01:52 SD_WS_125_DCF RAWMSG: MN;D=5250112501180201539BE2000D9A;R=41;A=12;
2025-01-18_02:02:46 SD_WS_125_DCF 97: 2025-01-18 02:02:47
2025-01-18_02:02:46 SD_WS_125_DCF dcf: 2025-01-18 02:02:47
2025-01-18_02:02:46 SD_WS_125_DCF DMSG: W125#529710250118020247B537001BCE
2025-01-18_02:02:46 SD_WS_125_DCF RSSI: -71
2025-01-18_02:02:46 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:02:46 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:02:46 SD_WS_125_DCF RAWMSG: MN;D=529710250118020247B537001BCE;R=6;A=12;
2025-01-18_02:02:46 SD_WS_125_DCF 97: 2025-01-18 02:02:47
2025-01-18_02:02:46 SD_WS_125_DCF dcf: 2025-01-18 02:02:47
2025-01-18_02:02:46 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:02:46 SD_WS_125_DCF RAWMSG: MN;D=529710250118020247B5370016CA;R=9;A=12;
2025-01-18_02:02:46 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:02:46 SD_WS_125_DCF RSSI: -69.5
2025-01-18_02:02:46 SD_WS_125_DCF DMSG: W125#529710250118020247B5370016CA
2025-01-18_02:02:54 SD_WS_125_DCF 50: 2025-01-18 02:02:55
2025-01-18_02:02:54 SD_WS_125_DCF dcf: 2025-01-18 02:02:55
2025-01-18_02:02:54 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:02:54 SD_WS_125_DCF RAWMSG: MN;D=525011250118020255105A001280;R=40;A=12;
2025-01-18_02:02:54 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:02:54 SD_WS_125_DCF RSSI: -54
2025-01-18_02:02:54 SD_WS_125_DCF DMSG: W125#525011250118020255105A001280
2025-01-18_02:02:54 SD_WS_125_DCF 50: 2025-01-18 02:02:55
2025-01-18_02:02:54 SD_WS_125_DCF dcf: 2025-01-18 02:02:55
2025-01-18_02:02:54 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:02:54 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:02:54 SD_WS_125_DCF RAWMSG: MN;D=525011250118020255105A003E50;R=41;A=12;
2025-01-18_02:02:54 SD_WS_125_DCF DMSG: W125#525011250118020255105A003E50
2025-01-18_02:02:54 SD_WS_125_DCF RSSI: -53.5
2025-01-18_02:03:52 SD_WS_125_DCF 97: 2025-01-18 02:03:53
2025-01-18_02:03:52 SD_WS_125_DCF dcf: 2025-01-18 02:03:53
2025-01-18_02:03:52 SD_WS_125_DCF DMSG: W125#529710250118020353C655002B17
2025-01-18_02:03:52 SD_WS_125_DCF RSSI: -70
2025-01-18_02:03:52 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:03:52 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:03:52 SD_WS_125_DCF RAWMSG: MN;D=529710250118020353C655002B17;R=8;A=12;
2025-01-18_02:03:52 SD_WS_125_DCF 97: 2025-01-18 02:03:53
2025-01-18_02:03:52 SD_WS_125_DCF dcf: 2025-01-18 02:03:53
2025-01-18_02:03:52 SD_WS_125_DCF RSSI: -69.5
2025-01-18_02:03:52 SD_WS_125_DCF DMSG: W125#529710250118020353C6550017FC
2025-01-18_02:03:52 SD_WS_125_DCF RAWMSG: MN;D=529710250118020353C6550017FC;R=9;A=12;
2025-01-18_02:03:52 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:03:52 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:03:56 SD_WS_125_DCF 50: 2025-01-18 02:03:57
2025-01-18_02:03:56 SD_WS_125_DCF dcf: 2025-01-18 02:03:57
2025-01-18_02:03:56 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:03:56 SD_WS_125_DCF RAWMSG: MN;D=52501125011802035786D30030AC;R=41;A=12;
2025-01-18_02:03:56 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:03:56 SD_WS_125_DCF RSSI: -53.5
2025-01-18_02:03:56 SD_WS_125_DCF DMSG: W125#52501125011802035786D30030AC
2025-01-18_02:03:56 SD_WS_125_DCF 50: 2025-01-18 02:03:57
2025-01-18_02:03:56 SD_WS_125_DCF dcf: 2025-01-18 02:03:57
2025-01-18_02:03:56 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:03:56 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:03:56 SD_WS_125_DCF RAWMSG: MN;D=52501125011802035786D300115B;R=42;A=12;
2025-01-18_02:03:56 SD_WS_125_DCF DMSG: W125#52501125011802035786D300115B
2025-01-18_02:03:56 SD_WS_125_DCF RSSI: -53
2025-01-18_02:04:58 SD_WS_125_DCF 97: 2025-01-18 02:04:59
2025-01-18_02:04:58 SD_WS_125_DCF dcf: 2025-01-18 02:04:59
2025-01-18_02:04:58 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:04:58 SD_WS_125_DCF RAWMSG: MN;D=529710250118020459B3490006BD;R=8;A=12;
2025-01-18_02:04:58 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:04:58 SD_WS_125_DCF DMSG: W125#529710250118020459B3490006BD
2025-01-18_02:04:58 SD_WS_125_DCF RSSI: -70
2025-01-18_02:04:58 SD_WS_125_DCF 50: 2025-01-18 02:04:59
2025-01-18_02:04:58 SD_WS_125_DCF dcf: 2025-01-18 02:04:59
2025-01-18_02:04:58 SD_WS_125_DCF RAWMSG: MN;D=52501125011802045937870019A4;R=42;A=12;
2025-01-18_02:04:58 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:04:58 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:04:58 SD_WS_125_DCF RSSI: -53
2025-01-18_02:04:58 SD_WS_125_DCF DMSG: W125#52501125011802045937870019A4
2025-01-18_02:04:58 SD_WS_125_DCF 50: 2025-01-18 02:04:59
2025-01-18_02:04:58 SD_WS_125_DCF dcf: 2025-01-18 02:04:59
2025-01-18_02:04:58 SD_WS_125_DCF RSSI: -53
2025-01-18_02:04:58 SD_WS_125_DCF DMSG: W125#52501125011802045937870022C6
2025-01-18_02:04:58 SD_WS_125_DCF RAWMSG: MN;D=52501125011802045937870022C6;R=42;A=12;
2025-01-18_02:04:58 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:04:58 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:06:00 SD_WS_125_DCF 50: 2025-01-18 02:06:01
2025-01-18_02:06:00 SD_WS_125_DCF dcf: 2025-01-18 02:06:01
2025-01-18_02:06:00 SD_WS_125_DCF RSSI: -53
2025-01-18_02:06:00 SD_WS_125_DCF DMSG: W125#5250112501180206012923002C90
2025-01-18_02:06:00 SD_WS_125_DCF RAWMSG: MN;D=5250112501180206012923002C90;R=42;A=12;
2025-01-18_02:06:00 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:06:00 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:06:00 SD_WS_125_DCF 50: 2025-01-18 02:06:01
2025-01-18_02:06:00 SD_WS_125_DCF dcf: 2025-01-18 02:06:01
2025-01-18_02:06:00 SD_WS_125_DCF FREQAFC: 21
2025-01-18_02:06:00 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:06:00 SD_WS_125_DCF RAWMSG: MN;D=5250112501180206012923003A5F;R=43;A=13;
2025-01-18_02:06:00 SD_WS_125_DCF DMSG: W125#5250112501180206012923003A5F
2025-01-18_02:06:00 SD_WS_125_DCF RSSI: -52.5
2025-01-18_02:06:04 SD_WS_125_DCF 97: 2025-01-18 02:06:05
2025-01-18_02:06:04 SD_WS_125_DCF dcf: 2025-01-18 02:06:05
2025-01-18_02:06:04 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:06:04 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:06:04 SD_WS_125_DCF RAWMSG: MN;D=52971025011802060569AD002BA1;R=6;A=12;
2025-01-18_02:06:04 SD_WS_125_DCF DMSG: W125#52971025011802060569AD002BA1
2025-01-18_02:06:04 SD_WS_125_DCF RSSI: -71
2025-01-18_02:06:04 SD_WS_125_DCF 97: 2025-01-18 02:06:05
2025-01-18_02:06:04 SD_WS_125_DCF dcf: 2025-01-18 02:06:05
2025-01-18_02:06:04 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:06:04 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:06:04 SD_WS_125_DCF RAWMSG: MN;D=52971025011802060569AD000F16;R=6;A=12;
2025-01-18_02:06:04 SD_WS_125_DCF DMSG: W125#52971025011802060569AD000F16
2025-01-18_02:06:04 SD_WS_125_DCF RSSI: -71
2025-01-18_02:07:02 SD_WS_125_DCF 50: 2025-01-18 02:07:03
2025-01-18_02:07:02 SD_WS_125_DCF dcf: 2025-01-18 02:07:03
2025-01-18_02:07:02 SD_WS_125_DCF RSSI: -53.5
2025-01-18_02:07:02 SD_WS_125_DCF DMSG: W125#525011250118020703BFBC000587
2025-01-18_02:07:02 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:07:02 SD_WS_125_DCF RAWMSG: MN;D=525011250118020703BFBC000587;R=41;A=12;
2025-01-18_02:07:02 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:07:02 SD_WS_125_DCF 50: 2025-01-18 02:07:03
2025-01-18_02:07:02 SD_WS_125_DCF dcf: 2025-01-18 02:07:03
2025-01-18_02:07:02 SD_WS_125_DCF DMSG: W125#525011250118020703BFBC002D17
2025-01-18_02:07:02 SD_WS_125_DCF RSSI: -52.5
2025-01-18_02:07:02 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:07:02 SD_WS_125_DCF RAWMSG: MN;D=525011250118020703BFBC002D17;R=43;A=12;
2025-01-18_02:07:02 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:07:10 SD_WS_125_DCF 97: 2025-01-18 02:07:11
2025-01-18_02:07:10 SD_WS_125_DCF dcf: 2025-01-18 02:07:11
2025-01-18_02:07:10 SD_WS_125_DCF RSSI: -69.5
2025-01-18_02:07:10 SD_WS_125_DCF DMSG: W125#5297102501180207111A6B0029EC
2025-01-18_02:07:10 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:07:10 SD_WS_125_DCF RAWMSG: MN;D=5297102501180207111A6B0029EC;R=9;A=12;
2025-01-18_02:07:10 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:07:10 SD_WS_125_DCF 97: 2025-01-18 02:07:11
2025-01-18_02:07:10 SD_WS_125_DCF dcf: 2025-01-18 02:07:11
2025-01-18_02:07:10 SD_WS_125_DCF RAWMSG: MN;D=5297102501180207111A6B003733;R=8;A=12;
2025-01-18_02:07:10 SD_WS_125_DCF Protocol_ID: 125
2025-01-18_02:07:10 SD_WS_125_DCF FREQAFC: 19
2025-01-18_02:07:10 SD_WS_125_DCF RSSI: -70
2025-01-18_02:07:10 SD_WS_125_DCF DMSG: W125#5297102501180207111A6B003733
2025-01-21_02:01:13 SD_WS_125_DCF 50: 2025-01-21 02:01:13
2025-01-21_02:01:13 SD_WS_125_DCF dcf: 2025-01-21 02:01:13
2025-01-21_02:01:13 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:01:13 SD_WS_125_DCF RAWMSG: MN;D=5250132501210201138A9C002C35;R=33;A=12;
2025-01-21_02:01:13 SD_WS_125_DCF DMSG: W125#5250132501210201138A9C002C35
2025-01-21_02:01:13 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:01:13 SD_WS_125_DCF RSSI: -57.5
2025-01-21_02:01:13 SD_WS_125_DCF 50: 2025-01-21 02:01:13
2025-01-21_02:01:13 SD_WS_125_DCF dcf: 2025-01-21 02:01:13
2025-01-21_02:01:13 SD_WS_125_DCF RAWMSG: MN;D=5250132501210201138A9C000610;R=33;A=12;
2025-01-21_02:01:13 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:01:13 SD_WS_125_DCF RSSI: -57.5
2025-01-21_02:01:13 SD_WS_125_DCF DMSG: W125#5250132501210201138A9C000610
2025-01-21_02:01:13 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:01:22 SD_WS_125_DCF 97: 2025-01-21 02:01:23
2025-01-21_02:01:22 SD_WS_125_DCF dcf: 2025-01-21 02:01:23
2025-01-21_02:01:22 SD_WS_125_DCF DMSG: W125#529710250121020123288E001281
2025-01-21_02:01:22 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:01:22 SD_WS_125_DCF RSSI: -70
2025-01-21_02:01:22 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:01:22 SD_WS_125_DCF RAWMSG: MN;D=529710250121020123288E001281;R=8;A=12;
2025-01-21_02:01:22 SD_WS_125_DCF 97: 2025-01-21 02:01:23
2025-01-21_02:01:22 SD_WS_125_DCF dcf: 2025-01-21 02:01:23
2025-01-21_02:01:22 SD_WS_125_DCF DMSG: W125#529710250121020123288E001986
2025-01-21_02:01:22 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:01:22 SD_WS_125_DCF RSSI: -69.5
2025-01-21_02:01:22 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:01:22 SD_WS_125_DCF RAWMSG: MN;D=529710250121020123288E001986;R=9;A=12;
2025-01-21_02:02:15 SD_WS_125_DCF 50: 2025-01-21 02:02:15
2025-01-21_02:02:15 SD_WS_125_DCF dcf: 2025-01-21 02:02:15
2025-01-21_02:02:15 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:02:15 SD_WS_125_DCF DMSG: W125#525013250121020215011600198D
2025-01-21_02:02:15 SD_WS_125_DCF RSSI: -58
2025-01-21_02:02:15 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:02:15 SD_WS_125_DCF RAWMSG: MN;D=525013250121020215011600198D;R=32;A=12;
2025-01-21_02:02:15 SD_WS_125_DCF 50: 2025-01-21 02:02:15
2025-01-21_02:02:15 SD_WS_125_DCF dcf: 2025-01-21 02:02:15
2025-01-21_02:02:15 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:02:15 SD_WS_125_DCF RAWMSG: MN;D=52501325012102021501160019B8;R=32;A=12;
2025-01-21_02:02:15 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:02:15 SD_WS_125_DCF DMSG: W125#52501325012102021501160019B8
2025-01-21_02:02:15 SD_WS_125_DCF RSSI: -58
2025-01-21_02:02:28 SD_WS_125_DCF 97: 2025-01-21 02:02:29
2025-01-21_02:02:28 SD_WS_125_DCF dcf: 2025-01-21 02:02:29
2025-01-21_02:02:28 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:02:28 SD_WS_125_DCF RAWMSG: MN;D=529710250121020229DE4B001DB3;R=6;A=13;
2025-01-21_02:02:28 SD_WS_125_DCF DMSG: W125#529710250121020229DE4B001DB3
2025-01-21_02:02:28 SD_WS_125_DCF FREQAFC: 21
2025-01-21_02:02:28 SD_WS_125_DCF RSSI: -71
2025-01-21_02:02:28 SD_WS_125_DCF 97: 2025-01-21 02:02:29
2025-01-21_02:02:28 SD_WS_125_DCF dcf: 2025-01-21 02:02:29
2025-01-21_02:02:28 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:02:28 SD_WS_125_DCF RAWMSG: MN;D=529710250121020229DE4B0027AC;R=8;A=13;
2025-01-21_02:02:28 SD_WS_125_DCF DMSG: W125#529710250121020229DE4B0027AC
2025-01-21_02:02:28 SD_WS_125_DCF FREQAFC: 21
2025-01-21_02:02:28 SD_WS_125_DCF RSSI: -70
2025-01-21_02:03:17 SD_WS_125_DCF 50: 2025-01-21 02:03:17
2025-01-21_02:03:17 SD_WS_125_DCF dcf: 2025-01-21 02:03:17
2025-01-21_02:03:17 SD_WS_125_DCF RSSI: -57.5
2025-01-21_02:03:17 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:03:17 SD_WS_125_DCF DMSG: W125#52501325012102031797AF0000B6
2025-01-21_02:03:17 SD_WS_125_DCF RAWMSG: MN;D=52501325012102031797AF0000B6;R=33;A=12;
2025-01-21_02:03:17 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:03:17 SD_WS_125_DCF 50: 2025-01-21 02:03:17
2025-01-21_02:03:17 SD_WS_125_DCF dcf: 2025-01-21 02:03:17
2025-01-21_02:03:17 SD_WS_125_DCF DMSG: W125#52501325012102031797AF002895
2025-01-21_02:03:17 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:03:17 SD_WS_125_DCF RSSI: -57.5
2025-01-21_02:03:17 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:03:17 SD_WS_125_DCF RAWMSG: MN;D=52501325012102031797AF002895;R=33;A=12;
2025-01-21_02:03:34 SD_WS_125_DCF 97: 2025-01-21 02:03:35
2025-01-21_02:03:34 SD_WS_125_DCF dcf: 2025-01-21 02:03:35
2025-01-21_02:03:34 SD_WS_125_DCF FREQAFC: 21
2025-01-21_02:03:34 SD_WS_125_DCF DMSG: W125#529710250121020335148E00052B
2025-01-21_02:03:34 SD_WS_125_DCF RSSI: -69
2025-01-21_02:03:34 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:03:34 SD_WS_125_DCF RAWMSG: MN;D=529710250121020335148E00052B;R=10;A=13;
2025-01-21_02:03:34 SD_WS_125_DCF 97: 2025-01-21 02:03:35
2025-01-21_02:03:34 SD_WS_125_DCF dcf: 2025-01-21 02:03:35
2025-01-21_02:03:34 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:03:34 SD_WS_125_DCF RAWMSG: MN;D=529710250121020335148E001055;R=11;A=12;
2025-01-21_02:03:34 SD_WS_125_DCF DMSG: W125#529710250121020335148E001055
2025-01-21_02:03:34 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:03:34 SD_WS_125_DCF RSSI: -68.5
2025-01-21_02:04:19 SD_WS_125_DCF 50: 2025-01-21 02:04:19
2025-01-21_02:04:19 SD_WS_125_DCF dcf: 2025-01-21 02:04:19
2025-01-21_02:04:19 SD_WS_125_DCF RSSI: -57.5
2025-01-21_02:04:19 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:04:19 SD_WS_125_DCF DMSG: W125#5250132501210204192641001082
2025-01-21_02:04:19 SD_WS_125_DCF RAWMSG: MN;D=5250132501210204192641001082;R=33;A=12;
2025-01-21_02:04:19 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:04:19 SD_WS_125_DCF 50: 2025-01-21 02:04:19
2025-01-21_02:04:19 SD_WS_125_DCF dcf: 2025-01-21 02:04:19
2025-01-21_02:04:19 SD_WS_125_DCF RAWMSG: MN;D=525013250121020419264100148D;R=32;A=12;
2025-01-21_02:04:19 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:04:19 SD_WS_125_DCF RSSI: -58
2025-01-21_02:04:19 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:04:19 SD_WS_125_DCF DMSG: W125#525013250121020419264100148D
2025-01-21_02:04:40 SD_WS_125_DCF 97: 2025-01-21 02:04:41
2025-01-21_02:04:40 SD_WS_125_DCF dcf: 2025-01-21 02:04:41
2025-01-21_02:04:40 SD_WS_125_DCF DMSG: W125#529710250121020441860D000F94
2025-01-21_02:04:40 SD_WS_125_DCF FREQAFC: 21
2025-01-21_02:04:40 SD_WS_125_DCF RSSI: -70
2025-01-21_02:04:40 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:04:40 SD_WS_125_DCF RAWMSG: MN;D=529710250121020441860D000F94;R=8;A=13;
2025-01-21_02:04:40 SD_WS_125_DCF 97: 2025-01-21 02:04:41
2025-01-21_02:04:40 SD_WS_125_DCF dcf: 2025-01-21 02:04:41
2025-01-21_02:04:40 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:04:40 SD_WS_125_DCF RAWMSG: MN;D=529710250121020441860D0039D4;R=9;A=12;
2025-01-21_02:04:40 SD_WS_125_DCF DMSG: W125#529710250121020441860D0039D4
2025-01-21_02:04:40 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:04:40 SD_WS_125_DCF RSSI: -69.5
2025-01-21_02:05:21 SD_WS_125_DCF 50: 2025-01-21 02:05:21
2025-01-21_02:05:21 SD_WS_125_DCF dcf: 2025-01-21 02:05:21
2025-01-21_02:05:21 SD_WS_125_DCF RAWMSG: MN;D=525013250121020521AED2003A23;R=33;A=12;
2025-01-21_02:05:21 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:05:21 SD_WS_125_DCF RSSI: -57.5
2025-01-21_02:05:21 SD_WS_125_DCF DMSG: W125#525013250121020521AED2003A23
2025-01-21_02:05:21 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:05:21 SD_WS_125_DCF 50: 2025-01-21 02:05:21
2025-01-21_02:05:21 SD_WS_125_DCF dcf: 2025-01-21 02:05:21
2025-01-21_02:05:21 SD_WS_125_DCF RSSI: -58
2025-01-21_02:05:21 SD_WS_125_DCF DMSG: W125#525013250121020521AED2002632
2025-01-21_02:05:21 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:05:21 SD_WS_125_DCF RAWMSG: MN;D=525013250121020521AED2002632;R=32;A=12;
2025-01-21_02:05:21 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:05:46 SD_WS_125_DCF 97: 2025-01-21 02:05:47
2025-01-21_02:05:46 SD_WS_125_DCF dcf: 2025-01-21 02:05:47
2025-01-21_02:05:46 SD_WS_125_DCF RAWMSG: MN;D=529710250121020547D4620011D2;R=7;A=12;
2025-01-21_02:05:46 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:05:46 SD_WS_125_DCF RSSI: -70.5
2025-01-21_02:05:46 SD_WS_125_DCF DMSG: W125#529710250121020547D4620011D2
2025-01-21_02:05:46 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:05:46 SD_WS_125_DCF 97: 2025-01-21 02:05:47
2025-01-21_02:05:46 SD_WS_125_DCF dcf: 2025-01-21 02:05:47
2025-01-21_02:05:46 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:05:46 SD_WS_125_DCF RAWMSG: MN;D=529710250121020547D4620009FE;R=5;A=12;
2025-01-21_02:05:46 SD_WS_125_DCF DMSG: W125#529710250121020547D4620009FE
2025-01-21_02:05:46 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:05:46 SD_WS_125_DCF RSSI: -71.5
2025-01-21_02:06:23 SD_WS_125_DCF 50: 2025-01-21 02:06:23
2025-01-21_02:06:23 SD_WS_125_DCF dcf: 2025-01-21 02:06:23
2025-01-21_02:06:23 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:06:23 SD_WS_125_DCF RAWMSG: MN;D=525013250121020623E108000703;R=33;A=12;
2025-01-21_02:06:23 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:06:23 SD_WS_125_DCF DMSG: W125#525013250121020623E108000703
2025-01-21_02:06:23 SD_WS_125_DCF RSSI: -57.5
2025-01-21_02:06:52 SD_WS_125_DCF 97: 2025-01-21 02:06:53
2025-01-21_02:06:52 SD_WS_125_DCF dcf: 2025-01-21 02:06:53
2025-01-21_02:06:52 SD_WS_125_DCF Protocol_ID: 125
2025-01-21_02:06:52 SD_WS_125_DCF RAWMSG: MN;D=5297102501210206537E1900364D;R=8;A=12;
2025-01-21_02:06:52 SD_WS_125_DCF DMSG: W125#5297102501210206537E1900364D
2025-01-21_02:06:52 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:06:52 SD_WS_125_DCF RSSI: -70
2025-01-21_02:06:52 SD_WS_125_DCF 97: 2025-01-21 02:06:53
2025-01-21_02:06:52 SD_WS_125_DCF dcf: 2025-01-21 02:06:53
2025-01-21_02:06:52 SD_WS_125_DCF RSSI: -69.5
2025-01-21_02:06:52 SD_WS_125_DCF DMSG: W125#5297102501210206537E19000228
2025-01-21_02:06:52 SD_WS_125_DCF FREQAFC: 19
2025-01-21_02:06:52 SD_WS_125_DCF RAWMSG: MN;D=5297102501210206537E19000228;R=9;A=12;
2025-01-21_02:06:52 SD_WS_125_DCF Protocol_ID: 125

@sidey79
Copy link
Contributor

sidey79 commented Jan 21, 2025

@HomeAutoUser
Danke. Ich habe mir das mit dem einen festen Device schon gedacht. Die Zeit sollte da tatsächlich nicht unterschiedlich sein.
Ob das aber wirklich so schlau ist? Der state müsste sich dann ja ständig verändern, wenn unterschiedliche Sensoren senden.

Mir würde beim State dann auch noch einfallen, dass ich es vielleicht anders formatieren möchte und dann würde ich als Reading die Sekunden oder Angaben wie Stunde, Minute usw. vermissen damit ich es per stateformat in anderer Form darstellen kann.

Wäre das interessant?

@HomeAutoUser
Copy link
Contributor

@sidey79 , über die bzw. das Reading kann man natürlich sich austauschen was gut oder angebracht für den User besser erscheint. Formatierung mit "stateformat" könnte man überdenken, aber da hatten wir bisher keine Einfälle, welche uns günstig erschienen.

Was würde deiner Meinung nach sinnvoll sein? @elektron-bbs sieht das Ganze vielleicht aus einer anderen Sicht wieder.

Für mich wäre maximal interessant, wann die Zeit synchronisiert wurde und welcher Sensor.
Die Denkweise mit "stateformat" hatte ich für meinen Zweck nicht bedacht.

@elektron-bbs
Copy link
Contributor Author

Erstmal soweit vorerst alles korrekt. Es handelt sich um den Sensor DNT000005, der das gleiche Protokoll verwendet wie z.B. der WH31E. Alle x Stunden (den Abstand haben wir noch nicht ermittelt) sendet er 6 mal je zwei Zeitnachrichten..

Ich wollte das Reading dcf auch zuerst dem jeweiligen Sensor zuordnen, das ging aber nicht weil kein Kanal in den Zeitnachrichten enthalten ist und so haben wir uns überlegt ein Device anzulegen (SD_WS_125_DCF), wo von allen Sensoren die Zeitnachrichten landen.

Die Ausgabe von state ist verschieden je nach Sensorident:

50: 2025-01-21 02:05:21
97: 2025-01-21 02:06:53

Einzelne Reading für Jahr, Monat, Tag usw. anzulegen halte ich für übertrieben. Ein individuelles Stateformat kann man sich ja auch aus dem Reading dcf basteln.

Die kleinen Änderungen bei LaCrosse 1 und 2 schlummern bei mir schon lange. Ich habe sie jetzt bei dieser Gelegenheit gleich mit hier eingebaut, weil mir ein extra Branch, Pull request usw. dafür zu aufwändig erschien.

@sidey79
Copy link
Contributor

sidey79 commented Jan 21, 2025

Ok stateformat mit substr oder sowas dann?

Gibt es überhaupt einen Anwendungsfall für die Zeit? Also würde jemand damit einen Zeitserver betreiben wollen?

Theoretisch ginge das aber ich würde das maximal machen weil es vielleicht cool klingt :)

@elektron-bbs
Copy link
Contributor Author

Ok stateformat mit substr oder sowas dann?

Oder split oder wie auch immer...

Gibt es überhaupt einen Anwendungsfall für die Zeit? Also würde jemand damit einen Zeitserver betreiben wollen?

Mir fällt eigentlich auch keine sinnvolle Anwendung ein.
Höchstens wenn jemand abgeschottet vom Internet genaue Zeit braucht.

@HomeAutoUser
Copy link
Contributor

Sind hier noch Änderungen gewünscht oder können wir das so übernehmen nach der Freigabe @sidey79 ?

@sidey79
Copy link
Contributor

sidey79 commented Jan 26, 2025

Das Verhalten mit dem Zeit Gerät, lässt sich das in der Commandref beschreiben?
So ganz intuitiv erscheint mir das ja nicht, dass es nur eines gibt und was die jeweiligen Werte bedeuten. ;)

elektron-bbs and others added 2 commits January 26, 2025 13:42
commandref has been updated
@elektron-bbs
Copy link
Contributor Author

Ich habe die commandref noch ergänzt, allerdings wüsste ich jetzt nicht, was man dazu noch schreiben könnte. Das ist ja eigentlich selbsterklärend.

@elektron-bbs elektron-bbs merged commit 1859494 into master Jan 26, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants