cyberjunky / RTL-SDR-P2000Receiver-HA

Receive P2000 messages using RTL-SDR stick and post them to Home Assistant
MIT License
23 stars 11 forks source link

Update p2000.py #46

Open Dinges28 opened 1 year ago

Dinges28 commented 1 year ago

With multiple capcodes, the additional info was not put in the send message. bug was triggered by only receiving 1 receiver, although there were multiple capcodes

Dinges28 commented 1 year ago

and now it posts again 1 receivers.. not multiple messages...

@cyberjunky What am I doing wrong??

DutchFirefighter commented 1 year ago

I quess what i see is that it only sees the last capcode before the |ALN| in the flex message: FLEX|2022-12-16 14:32:37|1600/2/K/A|08.029|002029568 000806240 000806221 000612120 000610850 000610835 000610825 000610823 000605969 000605333 000605310 000603940|ALN|P 1 BON-12 (Middel HV) HV weg letsel N36 - N36 25,5 Beerze 041199 053531 042270

Dinges28 commented 1 year ago

It repeats reading the value, till it reaches the last capcode, and that description is send in the message.. instead of adding all the descriptions to the parameter

DutchFirefighter commented 1 year ago

Knipsel maybe this helps?