Thanks! Here’s my HA log. We can see clearly 2 things:
- Your interval of 10 seconds is kinda working, but every 20 seconds. I’m not sure if we need to pay more attention at this, since the HID sniffer on Windows is showing data more frequently. I’m not sure why debian (cat /dev/hidraw0) is not showing data more frequently like the HID sniffer.
- calling services from within HA, like ‘alarm_arm_home’ for example, is being logged but not sending the right binaries maybe. I do recognize my alarm code, which I replaced by 1, 2, 3, 4.
Replaced alarm code:
1 (\x81),
2 (\x82),
3 (\x83),
4 (\x84)
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 3, message: b'\x00\x02\x01\x81',
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 4, message: b'\x00\x02\x01\x82',
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 5, message: b'\x00\x02\x01\x83',
2019-05-03 21:30:58 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 6, message: b'\x00\x02\x01\x84',
Full log:
2019-05-03 21:30:15 WARNING (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Data has not been received for 10 seconds, retry startup message,
2019-05-03 21:30:15 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Sending startup message,
2019-05-03 21:30:16 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Successfully sent startup message,
2019-05-03 21:30:16 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Data is flowing, wait 10 seconds before checking again,
2019-05-03 21:30:16 DEBUG (ThreadPoolExecutor-0_0) [custom_components.jablotron.alarm_control_panel] Sending startup message,
2019-05-03 21:30:16 DEBUG (ThreadPoolExecutor-0_0) [custom_components.jablotron.alarm_control_panel] Successfully sent startup message,
2019-05-03 21:30:16 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 1, message: b'\x00\x02\x01\x8f',
2019-05-03 21:30:16 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 2, message: b'\x00\x02\x01\x81',
2019-05-03 21:30:16 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 3, message: b'\x00\x02\x01\x81',
2019-05-03 21:30:16 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 4, message: b'\x00\x02\x01\x82',
2019-05-03 21:30:16 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 5, message: b'\x00\x02\x01\x83',
2019-05-03 21:30:16 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 6, message: b'\x00\x02\x01\x84',
2019-05-03 21:30:36 WARNING (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Data has not been received for 10 seconds, retry startup message,
2019-05-03 21:30:36 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Sending startup message,
2019-05-03 21:30:37 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Successfully sent startup message,
2019-05-03 21:30:37 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Data is flowing, wait 10 seconds before checking again,
2019-05-03 21:30:37 DEBUG (ThreadPoolExecutor-0_0) [custom_components.jablotron.alarm_control_panel] Sending startup message,
2019-05-03 21:30:37 DEBUG (ThreadPoolExecutor-0_0) [custom_components.jablotron.alarm_control_panel] Successfully sent startup message,
2019-05-03 21:30:56 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1885963280] Received {'type': 'call_service', 'domain': 'alarm_control_panel', 'service': 'alarm_arm_home', 'service_data': {'entity_id': 'alarm_control_panel.jablotron_alarm', 'code': 1234}, 'id': 24},
2019-05-03 21:30:57 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=alarm_control_panel, service=alarm_arm_home, service_data=entity_id=alarm_control_panel.jablotron_alarm, code=1234>,
2019-05-03 21:30:57 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1885904208] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'call_service', 'data': {'domain': 'alarm_control_panel', 'service': 'alarm_arm_home', 'service_data': {'entity_id': 'alarm_control_panel.jablotron_alarm', 'code': 1234}}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 5, 3, 19, 30, 57, 2670, tzinfo=<UTC>), 'context': {'id': '57fe96f940b84175a8a25de68ccbec3e', 'parent_id': None, 'user_id': '3cb58b4fde11478e9cb2c903819a1aaf'}}},
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending *2,
2019-05-03 21:30:57 WARNING (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Data has not been received for 10 seconds, retry startup message,
2019-05-03 21:30:57 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Sending startup message,
2019-05-03 21:30:57 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Successfully sent startup message,
2019-05-03 21:30:57 DEBUG (ThreadPoolExecutor-0_0) [custom_components.jablotron.alarm_control_panel] Sending startup message,
2019-05-03 21:30:57 DEBUG (ThreadPoolExecutor-0_1) [custom_components.jablotron.alarm_control_panel] Data is flowing, wait 10 seconds before checking again,
2019-05-03 21:30:57 DEBUG (ThreadPoolExecutor-0_0) [custom_components.jablotron.alarm_control_panel] Successfully sent startup message,
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 1, message: b'\x00\x02\x01\x8f',
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 2, message: b'\x00\x02\x01\x82',
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 3, message: b'\x00\x02\x01\x81',
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 4, message: b'\x00\x02\x01\x82',
2019-05-03 21:30:57 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 5, message: b'\x00\x02\x01\x83',
2019-05-03 21:30:58 DEBUG (MainThread) [custom_components.jablotron.alarm_control_panel] sending packet 6, message: b'\x00\x02\x01\x84',