Ok, just the simple logger:
line did the trick. Here is a dump of the output when I unplug the AC power from the alarm and then plug it back in. Does it shed any light?
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] TX > b'00090'
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] RX < 5109100
8401CD
8402CE
8403CF
8404D0
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.dsc_client] No handler defined in config for 510, skipping...
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No handler configured for evl command.
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] KeyError: 'handler'
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No callback configured for evl command.
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 840 with data: 1
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 1) state has updated: {"trouble": true}
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:42 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 840 with data: 2
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 2) state has updated: {"trouble": true}
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:42 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 840 with data: 3
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 3) state has updated: {"trouble": true}
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:42 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 840 with data: 4
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 4) state has updated: {"trouble": true}
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:42 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] RX < 50000025
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_poll_response for code: 500 with data: 000
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.dsc_client] DSC ack recieved.
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_poll_response
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.alarm_panel] Callback has not been set by client.
2018-01-16 19:03:42 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.home_alarm_keypad, old_state=<state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=False, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>, new_state=<state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=True, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>>
2018-01-16 19:03:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.alarm_panel_trouble, old_state=<state binary_sensor.alarm_panel_trouble=off; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T18:56:31.460665-05:00>, new_state=<state binary_sensor.alarm_panel_trouble=on; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T19:03:42.598513-05:00>>
2018-01-16 19:03:42 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1923264816: Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.home_alarm_keypad', 'old_state': <state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=False, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>, 'new_state': <state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=True, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 1, 17, 0, 3, 42, 565620, tzinfo=<UTC>)}}
2018-01-16 19:03:42 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1923264816: Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.alarm_panel_trouble', 'old_state': <state binary_sensor.alarm_panel_trouble=off; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T18:56:31.460665-05:00>, 'new_state': <state binary_sensor.alarm_panel_trouble=on; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T19:03:42.598513-05:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 1, 17, 0, 3, 42, 598853, tzinfo=<UTC>)}}
2018-01-16 19:03:46 INFO (SyncWorker_9) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] RX < 51110F8
8490207
51080FE
51100F7
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.dsc_client] No handler defined in config for 511, skipping...
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No handler configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] KeyError: 'handler'
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No callback configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.dsc_client] No handler defined in config for 849, skipping...
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No handler configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] KeyError: 'handler'
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No callback configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.dsc_client] No handler defined in config for 510, skipping...
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No handler configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] KeyError: 'handler'
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No callback configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.dsc_client] No handler defined in config for 511, skipping...
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No handler configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] KeyError: 'handler'
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No callback configured for evl command.
2018-01-16 19:03:47 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] RX < 5109100
6501CC
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.dsc_client] No handler defined in config for 510, skipping...
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No handler configured for evl command.
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] KeyError: 'handler'
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No callback configured for evl command.
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 650 with data: 1
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 1) state has updated: {"ready": true, "alpha": "Ready"}
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:48 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:48 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] RX < 51081FF
8411CE
8412CF
8413D0
8414D1
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.dsc_client] No handler defined in config for 510, skipping...
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No handler configured for evl command.
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] KeyError: 'handler'
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] No callback configured for evl command.
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 841 with data: 1
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 1) state has updated: {"trouble": false}
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:52 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 841 with data: 2
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 2) state has updated: {"trouble": false}
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:52 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 841 with data: 3
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 3) state has updated: {"trouble": false}
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:52 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] calling handler: handle_partition_state_change for code: 841 with data: 4
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.dsc_client] (partition 4) state has updated: {"trouble": false}
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] Invoking callback: callback_partition_state_change
2018-01-16 19:03:52 INFO (MainThread) [homeassistant.components.envisalink] The envisalink sent a partition update event
2018-01-16 19:03:52 DEBUG (MainThread) [pyenvisalink.envisalink_base_client] ----------------------------------------
2018-01-16 19:03:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.home_alarm_keypad, old_state=<state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=True, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>, new_state=<state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=False, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>>
2018-01-16 19:03:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.alarm_panel_trouble, old_state=<state binary_sensor.alarm_panel_trouble=on; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T19:03:42.598513-05:00>, new_state=<state binary_sensor.alarm_panel_trouble=off; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T19:03:52.149135-05:00>>
2018-01-16 19:03:52 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1923264816: Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.home_alarm_keypad', 'old_state': <state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=True, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>, 'new_state': <state sensor.home_alarm_keypad=Ready; alarm=False, alarm_in_memory=False, armed_away=False, ac_present=True, armed_bypass=False, chime=False, armed_zero_entry_delay=False, alarm_fire_zone=False, trouble=False, bat_trouble=False, ready=True, fire=False, armed_stay=False, alpha=Ready, beep=False, exit_delay=False, entry_delay=False, last_disarmed_by_user=, last_armed_by_user=, friendly_name=Home Alarm Keypad, icon=mdi:alarm @ 2018-01-16T18:59:02.586165-05:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 1, 17, 0, 3, 52, 118984, tzinfo=<UTC>)}}
2018-01-16 19:03:52 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1923264816: Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.alarm_panel_trouble', 'old_state': <state binary_sensor.alarm_panel_trouble=on; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T19:03:42.598513-05:00>, 'new_state': <state binary_sensor.alarm_panel_trouble=off; friendly_name=Alarm Panel Trouble Status @ 2018-01-16T19:03:52.149135-05:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 1, 17, 0, 3, 52, 149398, tzinfo=<UTC>)}}