I’ve had Insteon in my home for some time, but have recently started w/HA on an RPI4 - So far so good except for the Insteon integration. Just came across your project, and I have to say I’m excited at the prospect of a well-functioning integration.
I had been using the standard built-in Insteon capability of HA, and was able to get your latest Insteon2 up and running, though I’m seeing some odd behavior and I’m not sure where to start the troubleshooting. I updated using your latest code from 12hrs ago.
I’ve set up the Insteon2 integration and detailed logging in my configuration.yaml (username/password removed below):
# Hub 2245 configuration variables
insteon2:
host: 192.168.1.251
ip_port: 25105
username: ...
password: ...
logger:
default: info
logs:
pyinsteon.topics: debug
pyinsteon.messages: debug
custom_components.insteon2: debug
I’m seeing some inconsistent behavior and I’d like to figure out why. Using the Insteon app, or Insteon/Alexa integration, I get consistent results, but with the old Insteon integration I had issues with it working consistently, and with Insteon2 there seems to be more/different issues.
I have some devices on the far end of the house that seem to have trouble with updates. They work pretty well through the Insteon App, but not so well through HA Insteon nor Insteon2.
Trying to turn the device via HA Insteon2 through the UI I get:
2020-04-28 11:18:44 DEBUG (MainThread) [pyinsteon.topics] Topic: send.on.direct data: {'address': 22cd89, 'on_level': 255, 'group': 1}
2020-04-28 11:18:44 DEBUG (MainThread) [pyinsteon.topics] Topic: send_message.on.direct data: {'msg': msg_id: 0x62, address: 22cd89, flags: 0x00, cmd1: 0x11, cmd2: 0xff, 'priority': 5}
2020-04-28 11:18:44 DEBUG (MainThread) [pyinsteon.messages] TX: msg_id: 0x62, address: 22cd89, flags: 0x00, cmd1: 0x11, cmd2: 0xff
2020-04-28 11:18:45 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x62, address: 22cd89, flags: 0x00, cmd1: 0x11, cmd2: 0xff, ack: 0x06
2020-04-28 11:18:45 DEBUG (MainThread) [pyinsteon.topics] Topic: ack.22cd89.1.on.direct data: {'cmd1': 17, 'cmd2': 255, 'user_data': None}
2020-04-28 11:18:45 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x50, address: 22cd89, target: 50ba89, flags: 0xa6, cmd1: 0x11, cmd2: 0xff
2020-04-28 11:18:45 DEBUG (MainThread) [pyinsteon.topics] Topic: 22cd89.on.direct_nak data: {'cmd1': 17, 'cmd2': 255, 'target': 50ba89, 'user_data': None, 'hops_left': 1}
Turning the device on via the Insteon App, it works, and I see the following in the logs, but the UI doesn’t sync up to show the current state:
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x62, address: 22cd89, flags: 0x05, cmd1: 0x13, cmd2: 0x00, ack: 0x06
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.topics] Topic: ack.22cd89.1.off.direct data: {'cmd1': 19, 'cmd2': 0, 'user_data': None}
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x50, address: 22cd89, target: 50ba89, flags: 0xa6, cmd1: 0x13, cmd2: 0x00
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.topics] Topic: 22cd89.off.direct_nak data: {'cmd1': 19, 'cmd2': 0, 'target': 50ba89, 'user_data': None, 'hops_left': 1}
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x62, address: 22cd89, flags: 0x05, cmd1: 0x19, cmd2: 0x02, ack: 0x06
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.topics] Topic: ack.22cd89.status_request.direct data: {'cmd1': 25, 'cmd2': 2, 'user_data': None}
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x50, address: 22cd89, target: 50ba89, flags: 0x26, cmd1: 0x19, cmd2: 0x00
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.topics] Topic: 22cd89.status_request.direct_ack data: {'cmd1': 25, 'cmd2': 0, 'target': 50ba89, 'user_data': None, 'hops_left': 1}
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x50, address: 22cd89, target: 50ba89, flags: 0x22, cmd1: 0x19, cmd2: 0x00
2020-04-28 11:10:45 DEBUG (MainThread) [pyinsteon.topics] Topic: 22cd89.status_request.direct_ack data: {'cmd1': 25, 'cmd2': 0, 'target': 50ba89, 'user_data': None, 'hops_left': 0}
2020-04-28 11:10:47 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x50, address: 22cd89, target: 50ba89, flags: 0x22, cmd1: 0x19, cmd2: 0x00
2020-04-28 11:10:47 DEBUG (MainThread) [pyinsteon.topics] Topic: 22cd89.status_request.direct_ack data: {'cmd1': 25, 'cmd2': 0, 'target': 50ba89, 'user_data': None, 'hops_left': 0}
Where do I go from here? How else can I troubleshoot? Is this an Insteon2 problem or some other underlying problem (or both)?