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

ignored even when capcode is in match_capcodes.txt #24

Closed aavosnl closed 2 years ago

aavosnl commented 2 years ago

message not going to homeassistant even when de capcode is in the match_capcodes.txt

is there something that i'm doing wrong?

p2000fout1

p2000fout2

Dinges28 commented 2 years ago

Does it work when you do not configure "match_capcodes"?

aavosnl commented 2 years ago

yes than everything is going to home assistant

p20003

Dinges28 commented 2 years ago

Try changing line 522 from: capcode not in self.matchcapcodes to: capcode in self.matchcapcodes

aavosnl commented 2 years ago

trying that. at that point everything is send to home assistant except the capcodes that are inside match_capcodes.txt that is not posted to homeassistant

Dinges28 commented 2 years ago

Maybe @cyberjunky knows better where this goes wrong. Tried the above.. and at first glance it looked like it was working. Not having time to search deeper at the moment.

cyberjunky commented 2 years ago

I'm looking into it...

cyberjunky commented 2 years ago

Can you try the latest code and let me know, I added better logging and changed the logic.

aavosnl commented 2 years ago

Trying the latest code it look fine right now. Leaving it on for today to watch for errors.

aavosnl commented 2 years ago

running for couple of hours now. used different capcodes settings . Looks that the filters are working great now. Thanks for the change @cyberjunky