cyberjunky / addon-p2000_rtlsdr

Receive P2000 events using Home Assistant and your RTL-SDR dongle
MIT License
16 stars 7 forks source link

Sensors not showing up #4

Closed leejoow closed 10 months ago

leejoow commented 1 year ago

Accidentially found this addon after using it for some time on the standalone Pi. I installed it and plugged in the receiver and it receives the messages.

Only I cannot find a way to get a sensor to receive all Politie, Ambulance and Brandweer message. The default sensor Brandweer also never triggers, in the log I get the following:

2023-10-26 14:42:29: FLEX|2023-10-26 12:42:29|1600/2/K/A|10.089|002029568 001201999 001201975 001201548 001201336 001201331 001200818|ALN|P 2 BZB-02 BR gerucht Koestraat Tilburg 209031
2023-10-26 14:42:29: Searching for a city using abbrev. in '['BZB']'
2023-10-26 14:42:29: Checking if 'BZB' is a city abbrev.
2023-10-26 14:42:29: Searching for a city in 'gerucht Koestraat Tilburg'
2023-10-26 14:42:29: Checking if 'gerucht' is a city
2023-10-26 14:42:29: Checking if 'Koestraat' is a city
2023-10-26 14:42:29: Checking if 'Tilburg' is a city
2023-10-26 14:42:29: City 'Tilburg' found
2023-10-26 14:42:29: Address found: 'Koestraat Tilburg'
2023-10-26 14:42:29: Capcode 002029568: Disc: 'Brandweer' Reg: 'Landelijk' Loc: '' Descr: 'Groepscode Group-1' Remark: ''
2023-10-26 14:42:29: Capcode 001201999: Disc: 'Brandweer' Reg: 'Midden- en West-Brabant' Loc: 'Regio' Descr: 'Monitorcode' Remark: ''
2023-10-26 14:42:29: Capcode 001201975: Disc: 'Brandweer' Reg: 'Midden- en West-Brabant' Loc: 'Tilburg-Centrum' Descr: 'Lichtkrant' Remark: ''
2023-10-26 14:42:29: Capcode 001201548: Disc: 'Brandweer' Reg: 'Midden-en West Brabant' Loc: 'Midden- en West Brabant' Descr: 'Cluster Oost' Remark: 'Reserve TS 9031'
2023-10-26 14:42:29: Capcode 001201336: Disc: 'Brandweer' Reg: 'Midden- en West-Brabant' Loc: 'Tilburg-Centrum' Descr: 'Kazernetechniek' Remark: ''
2023-10-26 14:42:29: Capcode 001201331: Disc: 'Brandweer' Reg: 'Midden- en West-Brabant' Loc: 'Tilburg-Centrum' Descr: 'Kazernealarm 1e Uitruk' Remark: ''
2023-10-26 14:42:30: Capcode 001200818: Disc: 'Brandweer' Reg: 'Midden- en West-Brabant' Loc: 'Tilburg' Descr: 'Bezetting TS Centrum' Remark: ''
2023-10-26 14:42:30: DEBUG message post: P 2 BZB-02 BR gerucht Koestraat Tilburg 209031
2023-10-26 14:42:31: Message 'P 2 BZB-02 BR gerucht Koestraat Tilburg 209031' received, checking criterias:
2023-10-26 14:42:31: Message IGNORED no criterias matched
2023-10-26 14:42:31: Keywords UNMATCHED '*GRIP*, *Grip*, *grip*'
2023-10-26 14:42:31: Capcodes UNMATCHED '*001420059*, *000923993*, *000923995*, *000320591*'
2023-10-26 14:42:31: Regions UNMATCHED 'Amsterdam-Amstelland'
2023-10-26 14:42:31: Disciplines UNMATCHED 'Brandweer'

I would expect the id 2005 to be triggered:

- id: 2005
  name: P2000 Brandweer
  icon: mdi:fire-truck
  discipline: Brandweer

Any idea what is going wrong? The sensor for Region Amsterdam does work...

cyberjunky commented 1 year ago

@leejoow are you sure you are using the RTLSDR version of my P2000 addin? Since in that version you don't have to speccfy devices inside of the addon config, and they appear automatically via MQTT

junrt commented 1 year ago

@leejoow, I used a longer ID number, for example "- id: 200121" and then sensor will appear in MQTT

leejoow commented 1 year ago

There was a problem in the code. I've created a pull request (which also includes some functionality to be able to change the alarm message to a TTS friendly string).

cyberjunky commented 10 months ago

I guess this was fixed then? Closing, if still an issue let me know...