Skip to content

Update arexx_ml.c - Sensor with longer than 4 hex digits ID can't be proceed#3488

Open
inonoob wants to merge 1 commit intomerbanan:masterfrom
inonoob:master
Open

Update arexx_ml.c - Sensor with longer than 4 hex digits ID can't be proceed#3488
inonoob wants to merge 1 commit intomerbanan:masterfrom
inonoob:master

Conversation

@inonoob
Copy link
Copy Markdown

@inonoob inonoob commented Mar 8, 2026

Found sensor with longer ID compare to current implemented one

I bought an additional TSN-TH70E which already has been implemented in RTL_433. But it turned out that this sensor has a longer ID than the usual. This is case it was 199196.

I check with RTL_433 the raw data

{121}d55555552a838e8501a002e487f8000

I did remember the following discussion about decoding the message:

#2482 (comment)

as you can see the code is different:

Once shifted left we have the following message

Here you can see below the new message from the sensor:

aaaaaaaa 55 07 1d0a03 40 05c9 0f f0000

aaaaaaaa Preamble ==> IS OK 
55 Sync ==> IS OK 
05 Length of data in bytes ==> Not OK, Different now it is 0x07 
1d0a03 Id of Sensor ==> Not OK, longer 199197 is the ID so format is 0x- - - - - and not 0x- - - - 
40 ==> It is there for temp and humdity and never changes so far. I don't know what it is I ignore it more data needed from other sensors 
05c9 Raw Humidity value from sensor "Sensirion SHT-10"
0f Checksum

The new code is now showing a longer id with front 0 for ID which are shorter than 0x- - - -

I did test it on my machine and see good results:

Two sensors next to each other for Humdity:

 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2026-03-08 11:10:17
model     : Arexx-ML     ID        : 030a1d
Humidity  : 48.8 %       Sensor Raw: 05c8          Integrity : CRC
[pulse_slicer_manchester_zerobit] Arexx Multilogger IP-HA90, IP-TH78EXT, TSN-70E
codes     : {121}d55555552a838e8501a002e428d7000
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2026-03-08 11:10:22
model     : Arexx-ML     ID        : 004985
Humidity  : 49.5 %       Sensor Raw: 05e0          Integrity : CRC
[pulse_slicer_manchester_zerobit] Arexx Multilogger IP-HA90, IP-TH78EXT, TSN-70E
codes     : {138}d55555552a82c2a482f0118002844263248

here for Temperature:

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2026-03-08 11:11:14
model     : Arexx-ML     ID        : 030a1c
Temperature: 23.01 C     Alert     : 0             Sensor Raw: 189d          Integrity : CRC
[pulse_slicer_manchester_zerobit] Arexx Multilogger IP-HA90, IP-TH78EXT, TSN-70E
codes     : {121}d55555552a838e0501a00c4ef38c000
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2026-03-08 11:12:05
model     : Arexx-ML     ID        : 004984
Temperature: 23.00 C     Alert     : 0             Sensor Raw: 189c          Integrity : CRC
[pulse_slicer_manchester_zerobit] Arexx Multilogger IP-HA90, IP-TH78EXT, TSN-70E
codes     : {137}d55555552a82c2248c4e49000284421da30

It seems the message length capture for the sensor with the longer ID has a shorter message length {121} vs {137}. See above with the two examples

I used AI to craft the code as my C programing skill are near 0. So feedback would be appreciated.

If more information are needed or even more example please let me know.

Found sensor TSN-TH70E which are longer than 16 bits
@inonoob inonoob changed the title Update arexx_ml.c Update arexx_ml.c - Sensor with longer than 4 hex digits ID can't be proceed Mar 8, 2026
@inonoob
Copy link
Copy Markdown
Author

inonoob commented Mar 8, 2026

Here in addition from the MQTT server to Home assistant. It seems to work fine.

devices
Arexx-ML
199197
time = 2026-03-08 12:16:15
id = 199197
humidity = 44.75232
sensor_raw = 1355
mic = CRC
199196
time = 2026-03-08 12:15:52
id = 199196
temperature_C = 25.74
temperature_alert = 0
sensor_raw = 6574
mic = CRC

@zuckschwerdt
Copy link
Copy Markdown
Collaborator

The cases for length == 6 and the handling for TL-3TSN, TSN-33MN seem to have been removed? Is that intentional?

@inonoob
Copy link
Copy Markdown
Author

inonoob commented Mar 8, 2026

Nope was not intentional... I took this version of the code .... my bad...

1b3f9cb

Therefore the part with TL-3TSN, TSN-33MN is missing....

@merbanan
Copy link
Copy Markdown
Owner

@inonoob can you post a sample file so that this change can be tested?

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.

3 participants