Hi Daniel,
I’ve been trying to catch a failure this week, but have missed a couple (if I hit the arm or disarm buttons in HA without realising it’s locked up, the add-on then seems to realise it’s broken and restart itself - with me cursing for a lost opportunity!)
It’s just frozen now, sadly without debug on, which is annoying as I actually noticed this one in time. One of the zones has jammed in “detected”, suggesting that the failure happened in the relative short period between the sensor (a PIR in this case) going from active
back to secure
.
The log, unfortunately, shows nothing unusual and has simply stopped updating:
2022-01-06 18:02:27 - INFO: Kitchen status changed to Active
2022-01-06 18:02:29 - INFO: Kitchen status changed to Secure
2022-01-06 18:02:30 - INFO: Kitchen status changed to Active
2022-01-06 18:02:32 - INFO: Kitchen status changed to Secure
2022-01-06 18:02:34 - INFO: Hallway status changed to Active
2022-01-06 18:02:34 - INFO: Kitchen status changed to Active
2022-01-06 18:02:36 - INFO: Hallway status changed to Secure
When I did attempt to arm an area, the following was logged immediately after the entries above:
2022-01-06 18:15:38 - INFO: Remotely arming Garage Alarm to Full Arm
2022-01-06 18:15:38 - WARNING: Could not arm Garage Alarm
2022-01-06 18:15:38 - INFO: Panel disconnected, exiting now
…and this then triggered the add-on restart (presumably through the watchdog). This is the startup log, after the failure. Note the multiple timeouts, although it did eventually start cleanly:
2022-01-06 18:18:59 - INFO: Starting texecom2mqtt v1.1.14 (Node v16.13.0)...
2022-01-06 18:18:59 - INFO: Connected to alarm, sleeping for 2 seconds...
2022-01-06 18:19:01 - DEBUG: Executing serial number command
2022-01-06 18:19:01 - INFO: Connection ready
2022-01-06 18:19:01 - INFO: Logging in to panel
2022-01-06 18:19:02 - INFO: Successfully logged in to panel
2022-01-06 18:19:02 - INFO: Connected to MQTT broker: 192.168.x.x:1883 (retain: true, clean: true, client_id: texecom2mqtt, qos: 0)
2022-01-06 18:19:02 - DEBUG: Publishing to texecom2mqtt/status: online
2022-01-06 18:19:02 - INFO: Serial number: xxxx
2022-01-06 18:19:05 - DEBUG: Command 22 timed out (attempt 1, id: 1).
2022-01-06 18:19:06 - INFO: Panel: Premier Elite 48 (V5.04.01LS1)
2022-01-06 18:19:06 - INFO: Fetched Area A: House Alarm
2022-01-06 18:19:06 - INFO: Fetched Area B: Garage Alarm
2022-01-06 18:19:06 - INFO: Fetched Area C: Area C
2022-01-06 18:19:06 - INFO: Fetched Area D: Area D
2022-01-06 18:19:06 - INFO: Fetched Zone 1: Front Door (Type: Entry/Exit 1; Areas: A)
2022-01-06 18:19:06 - INFO: Fetched Zone 2: Back Door (Type: Entry/Exit 1; Areas: A)
2022-01-06 18:19:07 - INFO: Fetched Zone 3: Patio Door (Type: Guard; Areas: A)
2022-01-06 18:19:07 - INFO: Fetched Zone 4: Landing (Type: Guard; Areas: A)
2022-01-06 18:19:07 - INFO: Fetched Zone 5: Dining Room (Type: Guard; Areas: A)
2022-01-06 18:19:11 - DEBUG: Command 3 timed out (attempt 1, id: 8).
2022-01-06 18:19:11 - INFO: Fetched Zone 6: Hallway (Type: Guard; Areas: A)
2022-01-06 18:19:15 - DEBUG: Command 3 timed out (attempt 1, id: 9).
2022-01-06 18:19:15 - INFO: Fetched Zone 7: Kitchen (Type: Guard; Areas: A)
2022-01-06 18:19:16 - INFO: Fetched Zone 9: Garage Door (Type: Guard; Areas: B)
2022-01-06 18:19:16 - INFO: Fetched Zone 10: Garage Side Door (Type: Entry/Exit 1; Areas: B)
2022-01-06 18:19:16 - INFO: Fetched Zone 11: Garage Front PIR (Type: Entry/Exit 1; Areas: B)
2022-01-06 18:19:20 - DEBUG: Command 3 timed out (attempt 1, id: 14).
2022-01-06 18:19:20 - INFO: Fetched Zone 12: Garage Rear PIR (Type: Entry/Exit 1; Areas: B)
2022-01-06 18:19:21 - INFO: Fetched Zone 13: Shed (Type: Guard; Areas: B)
2022-01-06 18:19:21 - INFO: Fetched Zone 14: Garage Fire (Type: Fire; Areas: B)
2022-01-06 18:19:24 - DEBUG: Command 3 timed out (attempt 1, id: 17).
2022-01-06 18:19:31 - DEBUG: Command 3 timed out (attempt 1, id: 28).
2022-01-06 18:19:38 - DEBUG: Command 3 timed out (attempt 1, id: 38).
2022-01-06 18:19:41 - DEBUG: Command 3 timed out (attempt 2, id: 38).
2022-01-06 18:19:45 - DEBUG: Command 3 timed out (attempt 3, id: 38).
2022-01-06 18:19:50 - DEBUG: Command 3 timed out (attempt 1, id: 44).
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/status: online
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/power: {"battery_charging_current":9,"battery_voltage":13.49,"panel_current":585,"panel_voltage":13.56}
2022-01-06 18:19:53 - INFO: Updating all zone states...
2022-01-06 18:19:53 - INFO: Updating all area states...
2022-01-06 18:19:53 - DEBUG: Received area flags: 000000000000000000000000000000000f00000000000000000f000000ff00000f000000000000030000000000000000000000000000000100000000000000000000000300000000
2022-01-06 18:19:53 - DEBUG: Received area flags for Area A (1): 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0
2022-01-06 18:19:53 - DEBUG: Received area flags for Area B (2): 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/front_door: {"name":"Front Door","number":1,"areas":["A"],"status":0,"type":"Entry/Exit 1"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/back_door: {"name":"Back Door","number":2,"areas":["A"],"status":0,"type":"Entry/Exit 1"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/patio_door: {"name":"Patio Door","number":3,"areas":["A"],"status":0,"type":"Guard"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/landing: {"name":"Landing","number":4,"areas":["A"],"status":0,"type":"Guard"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/dining_room: {"name":"Dining Room","number":5,"areas":["A"],"status":0,"type":"Guard"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/hallway: {"name":"Hallway","number":6,"areas":["A"],"status":0,"type":"Guard"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/kitchen: {"name":"Kitchen","number":7,"areas":["A"],"status":0,"type":"Guard"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/garage_door: {"name":"Garage Door","number":9,"areas":["B"],"status":0,"type":"Guard"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/garage_side_door: {"name":"Garage Side Door","number":10,"areas":["B"],"status":0,"type":"Entry/Exit 1"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/garage_front_pir: {"name":"Garage Front PIR","number":11,"areas":["B"],"status":0,"type":"Entry/Exit 1"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/garage_rear_pir: {"name":"Garage Rear PIR","number":12,"areas":["B"],"status":0,"type":"Entry/Exit 1"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/shed: {"name":"Shed","number":13,"areas":["B"],"status":0,"type":"Guard"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/zone/garage_fire: {"name":"Garage Fire","number":14,"areas":["B"],"status":0,"type":"Fire"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/area/house_alarm: {"id":"A","name":"House Alarm","number":1,"status":"disarmed"}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/area/garage_alarm: {"id":"B","name":"Garage Alarm","number":2,"status":"disarmed"}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/alarm_control_panel/texecom2mqtt/house_alarm/config: {"code":"2116","code_arm_required":false,"code_disarm_required":true,"name":"House Alarm","state_topic":"texecom2mqtt/area/house_alarm","command_topic":"texecom2mqtt/area/house_alarm/command","unique_id":"texecom2mqtt.area.house_alarm","value_template":"{% set values = {\"in_entry\":\"pending\",\"in_exit\":\"arming\",\"disarmed\":\"disarmed\",\"triggered\":\"triggered\",\"full_armed\":\"armed_away\",\"part_armed_1\":\"armed_night\",\"part_armed_2\":\"armed_home\"} %}{{ values[value_json.status] }}","payload_disarm":"disarm","json_attributes_topic":"texecom2mqtt/power","payload_arm_night":"part_arm_1","payload_arm_away":"full_arm","payload_arm_home":"part_arm_2","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/alarm_control_panel/texecom2mqtt/garage_alarm/config: {"code":"2116","code_arm_required":false,"code_disarm_required":true,"name":"Garage Alarm","state_topic":"texecom2mqtt/area/garage_alarm","command_topic":"texecom2mqtt/area/garage_alarm/command","unique_id":"texecom2mqtt.area.garage_alarm","value_template":"{% set values = {\"in_entry\":\"pending\",\"in_exit\":\"arming\",\"disarmed\":\"disarmed\",\"triggered\":\"triggered\",\"full_armed\":\"armed_away\",\"part_armed_1\":\"armed_night\",\"part_armed_2\":\"armed_home\"} %}{{ values[value_json.status] }}","payload_disarm":"disarm","json_attributes_topic":"texecom2mqtt/power","payload_arm_night":"part_arm_1","payload_arm_away":"full_arm","payload_arm_home":"part_arm_2","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/front_door/config: {"name":"Front Door","state_topic":"texecom2mqtt/zone/front_door","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"door","unique_id":"texecom2mqtt.zone.front_door","json_attributes_topic":"texecom2mqtt/zone/front_door","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/back_door/config: {"name":"Back Door","state_topic":"texecom2mqtt/zone/back_door","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"door","unique_id":"texecom2mqtt.zone.back_door","json_attributes_topic":"texecom2mqtt/zone/back_door","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/patio_door/config: {"name":"Patio Door","state_topic":"texecom2mqtt/zone/patio_door","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"door","unique_id":"texecom2mqtt.zone.patio_door","json_attributes_topic":"texecom2mqtt/zone/patio_door","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/landing/config: {"name":"Landing","state_topic":"texecom2mqtt/zone/landing","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"motion","unique_id":"texecom2mqtt.zone.landing","json_attributes_topic":"texecom2mqtt/zone/landing","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/dining_room/config: {"name":"Dining Room","state_topic":"texecom2mqtt/zone/dining_room","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"motion","unique_id":"texecom2mqtt.zone.dining_room","json_attributes_topic":"texecom2mqtt/zone/dining_room","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/hallway/config: {"name":"Hallway","state_topic":"texecom2mqtt/zone/hallway","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"motion","unique_id":"texecom2mqtt.zone.hallway","json_attributes_topic":"texecom2mqtt/zone/hallway","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/kitchen/config: {"name":"Kitchen","state_topic":"texecom2mqtt/zone/kitchen","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"motion","unique_id":"texecom2mqtt.zone.kitchen","json_attributes_topic":"texecom2mqtt/zone/kitchen","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/garage_door/config: {"name":"Garage Door","state_topic":"texecom2mqtt/zone/garage_door","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"door","unique_id":"texecom2mqtt.zone.garage_door","json_attributes_topic":"texecom2mqtt/zone/garage_door","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/garage_side_door/config: {"name":"Garage Side Door","state_topic":"texecom2mqtt/zone/garage_side_door","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"door","unique_id":"texecom2mqtt.zone.garage_side_door","json_attributes_topic":"texecom2mqtt/zone/garage_side_door","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/garage_front_pir/config: {"name":"Garage Front PIR","state_topic":"texecom2mqtt/zone/garage_front_pir","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"motion","unique_id":"texecom2mqtt.zone.garage_front_pir","json_attributes_topic":"texecom2mqtt/zone/garage_front_pir","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/garage_rear_pir/config: {"name":"Garage Rear PIR","state_topic":"texecom2mqtt/zone/garage_rear_pir","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"motion","unique_id":"texecom2mqtt.zone.garage_rear_pir","json_attributes_topic":"texecom2mqtt/zone/garage_rear_pir","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/shed/config: {"name":"Shed","state_topic":"texecom2mqtt/zone/shed","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"motion","unique_id":"texecom2mqtt.zone.shed","json_attributes_topic":"texecom2mqtt/zone/shed","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to homeassistant/binary_sensor/texecom2mqtt/garage_fire/config: {"name":"Garage Fire","state_topic":"texecom2mqtt/zone/garage_fire","payload_on":"1","payload_off":"0","value_template":"{{ value_json.status }}","device_class":"smoke","unique_id":"texecom2mqtt.zone.garage_fire","json_attributes_topic":"texecom2mqtt/zone/garage_fire","json_attributes_template":"{{ {'zone_number': value_json.number, 'zone_type': value_json.type, 'areas': value_json.areas} | tojson }}","availability_topic":"texecom2mqtt/status","qos":0,"device":{"name":"Texecom Premier Elite 48","identifiers":"xxxx","manufacturer":"Texecom","model":"Premier Elite 48","sw_version":"V5.04.01LS1"}}
2022-01-06 18:19:53 - DEBUG: Publishing to texecom2mqtt/config: {"version":"1.1.14","log_level":"debug","model":"Premier Elite 48","firmware_version":"V5.04.01LS1","serial_number":"xxxx"}
2022-01-06 18:19:53 - INFO: Application ready
I guess the positive thing about this is I now know that I won’t get more information without debug logging turned on, so I now need to try to catch a failure more quickly - in the 30 mins or so before the log rolls over!
Will keep you posted.
Daern