yeah I’d bee flip/flopping between contact items and switch items, I think I use a translation. That could be a config item as well I think, maybe put it as an issue. I’d like to keep up development.
Are the zone labels still not being pulled? It does need to to that , as they’re used for the periodic check, and so if a dictionary item called zoneNames is empty, it can’t do it.
I have
Startup_Publish_All_Info = True
Topic_Publish_ZoneState = Paradox/Zone
Startup_Update_All_Labels = True
Publish_Static_Topic = 0
Set in my config.
I see
2018-06-06 08:05:42,463 INFO Labels detected for wirelessKeypadLabel:
2018-06-06 08:05:42,476 INFO {1: 'Wireless Keyp 1', 2: 'Wireless Keyp 2', 3: 'Wireless Keyp 3', 4: 'Wireless Keyp 4', 5: 'Wireless Keyp 5', 6: 'Wireless Keyp 6', 7: 'Wireless Keyp 7', 8: 'Wireless Keyp 8'}
2018-06-06 08:05:42,486 DEBUG updateAllLabels: Reading from alarm: wirelessSirenLabel
2018-06-06 08:05:42,493 DEBUG updateAllLabels: Amount of numeric items in dictionary to read: 4
2018-06-06 08:05:43,023 INFO Labels detected for wirelessSirenLabel:
2018-06-06 08:05:43,028 INFO {1: 'Wireless Siren 1', 2: 'Wireless Siren 2', 3: 'Wireless Siren 3', 4: 'Wireless Siren 4'}
2018-06-06 08:05:43,035 DEBUG updateAllLabels: Reading from alarm: siteNameLabel
2018-06-06 08:05:43,039 DEBUG updateAllLabels: Amount of numeric items in dictionary to read: 1
2018-06-06 08:05:43,319 INFO Labels detected for siteNameLabel:
2018-06-06 08:05:43,328 INFO {1: 'Your Alarm Site'}
2018-06-06 08:05:43,338 DEBUG updateAllLabels: Reading from alarm: partitionLabel
2018-06-06 08:05:43,342 DEBUG updateAllLabels: Amount of numeric items in dictionary to read: 2
2018-06-06 08:05:43,648 INFO Labels detected for partitionLabel:
2018-06-06 08:05:43,654 INFO {1: ' Area 1', 2: ' Area 2'}
2018-06-06 08:05:43,664 DEBUG updateAllLabels: Reading from alarm: wirelessRepeaterLabel
2018-06-06 08:05:43,677 DEBUG updateAllLabels: Amount of numeric items in dictionary to read: 2
2018-06-06 08:05:44,276 INFO Labels detected for wirelessRepeaterLabel:
2018-06-06 08:05:44,309 INFO {1: 'Repeater 1', 2: 'Repeater 2'}
2018-06-06 08:05:44,345 DEBUG updateAllLabels: Reading from alarm: outputLabel
2018-06-06 08:05:44,433 DEBUG updateAllLabels: Amount of numeric items in dictionary to read: 16
2018-06-06 08:05:46,676 INFO Labels detected for outputLabel:
2018-06-06 08:05:46,680 INFO {1: 'Garage Door', 2: 'Output 02', 3: 'Output 03', 4: 'Output 04', 5: 'Output 05', 6: 'Output 06', 7: 'Output 07', 8: 'Output 08', 9: 'Output 09', 10: 'Output 10', 11: 'Output 11', 12: 'Output 12', 13: '\x06\x08\x06\x01\x0cMain', 14: 'door PIR ', 15: 'Output 13', 16: 'Output 14'}
2018-06-06 08:05:46,686 DEBUG updateAllLabels: Reading from alarm: zoneLabel
2018-06-06 08:05:46,690 DEBUG updateAllLabels: Amount of numeric items in dictionary to read: 32
2018-06-06 08:05:53,210 INFO Labels detected for zoneLabel:
2018-06-06 08:05:53,213 INFO {1: 'Front door reed', 2: 'Family room PIR', 3: 'Lounge PIR', 4: 'Bed room PIR', 5: 'Study PIR', 6: 'Garage', 7: 'Play Room', 8: 'Zone 08', 9: 'Study Reed', 10: 'Dining Room', 11: 'Mid toilet Reed', 12: 'Main door PIR', 13: '\x06\x08\x06\x0cMain', 14: 'door PIR ', 15: '', 16: '', 17: 'Smoke 2nd floor', 18: 'Zone 18', 19: 'Zone 19', 20: 'Zone 20', 21: 'Zone 21', 22: 'Zone 22', 23: 'Zone 23', 24: 'Zone 24', 25: 'Zone 25', 26: 'Zone 26', 27: 'Zone 27', 28: 'Zone 28', 29: 'Zone 29', 30: 'Zone 30', 31: 'Zone 31', 32: 'Zone 32', 99: 'Any zone'}
2018-06-06 08:05:53,221 DEBUG updateAllLabels: Reading from alarm: userLabel
2018-06-06 08:05:53,227 DEBUG updateAllLabels: Amount of numeric items in dictionary to read: 32
Then when an event is triggered:
2018-06-06 08:06:04,342 DEBUG Event location: "Main door PIR"
2018-06-06 08:06:04,349 DEBUG Events 7-0 8-12- Reply: Event:Zone OK;SubEvent:Main door PIR
2018-06-06 08:06:04,354 DEBUG Message is a 1 or 0, and self.Zonenames not empty
2018-06-06 08:06:04,358 DEBUG Retrieved zonename
2018-06-06 08:06:04,361 DEBUG Updating zone name to match location in live event
2018-06-06 08:06:04,368 INFO Publishing event "Paradox/Zone" for Main door PIR = OFF
2018-06-06 08:06:04,381 DEBUG Message 7: 0 Message 8: 12
2018-06-06 08:06:04,390 DEBUG Event:Zone OK;SubEvent:Main door PIR
Which actually pulls from the event the name, but checks is against the zone labels as they can get a bit corrupted.
Then all the zones inthe logs:
2018-06-06 21:33:25,889 DEBUG VDC: 16.5
2018-06-06 21:33:25,889 DEBUG DC: 13.3
2018-06-06 21:33:25,890 DEBUG battery: 13.3
2018-06-06 21:33:25,891 INFO Publishing panel status json: '{"battery": 13.3, "vdc": 16.5, "dc": 13.3, "paneldate": "2018-6-6 21:34"}'
2018-06-06 21:33:25,892 DEBUG Publishing initial zone state (state: OFF, zone number: 1 Zone Front door reed)
2018-06-06 21:33:25,894 DEBUG Publishing initial zone state (state: OFF, zone number: 2 Zone Family room PIR)
2018-06-06 21:33:25,895 DEBUG Publishing initial zone state (state: OFF, zone number: 3 Zone Lounge PIR)
2018-06-06 21:33:25,898 DEBUG Publishing initial zone state (state: OFF, zone number: 4 Zone Bed room PIR)
2018-06-06 21:33:25,900 DEBUG Publishing initial zone state (state: OFF, zone number: 5 Zone Study PIR)
2018-06-06 21:33:25,901 DEBUG Publishing initial zone state (state: OFF, zone number: 6 Zone Garage)
2018-06-06 21:33:25,903 DEBUG Publishing initial zone state (state: OFF, zone number: 7 Zone Play Room)
2018-06-06 21:33:25,905 DEBUG Publishing initial zone state (state: OFF, zone number: 8 Zone Zone 08)
2018-06-06 21:33:25,907 DEBUG Publishing initial zone state (state: OFF, zone number: 9 Zone Study Reed)
2018-06-06 21:33:25,909 DEBUG Publishing initial zone state (state: OFF, zone number: 10 Zone Dining Room)
2018-06-06 21:33:25,910 DEBUG Publishing initial zone state (state: OFF, zone number: 11 Zone Mid toilet Reed)
2018-06-06 21:33:25,912 DEBUG Publishing initial zone state (state: OFF, zone number: 12 Zone Main door PIR)
2018-06-06 21:33:25,914 DEBUG Publishing initial zone state (state: OFF, zone number: 13 Zone Smoke 1st floor)