Thanks Wes. The “ERROR” of “I think the error is here” is just left over code for debugging. You can ignore that and I will remove it from the repository. Any other errors? What was the error that you got with the SmokeBridge? HA should have found it and had it show up as a sensor, correct?
I will plug the Bridge back in and see what a HA restart brings. There was “over 10 seconds to setup” reported on first start but no longer.
I have 2 leak detectors and a door sensor not yet discovered. Tried button pushes with no luck so far, but its early yet.
Of course none of the insteon2 devices show up in the front end and since the old and now unavailable devices were configured, the new devices all have the same
names with a _2 added. What is the easiest way to get the new ones to replace the old in the front end and automations?
Plugged the Bridge back in and restarted HA, got the following error:
2020-04-09 17:41:35 INFO (MainThread) [custom_components.insteon2] Identifying Insteon devices
2020-04-09 17:41:37 ERROR (MainThread) [pyinsteon.utils] An issue occured distributing the following message
2020-04-09 17:41:37 ERROR (MainThread) [pyinsteon.utils] MSG: 02503ee271100a438f0135
2020-04-09 17:41:37 ERROR (MainThread) [pyinsteon.utils] Topic: 3ee271.assign_to_all_link_group.broadcast data: {'cmd1': 1, 'cmd2': 53, 'target': 100a43, 'user_data': None}
2020-04-09 17:41:37 ERROR (MainThread) [pyinsteon.utils] Error: 1
2020-04-09 17:41:37 ERROR (MainThread) [pyinsteon.utils] Subscriber: AssignToAllLinkGroupCommand.receive_id
I have the following in configuration.yaml:
logger:
default: info
logs:
homeassistant.components.insteon2: debug
Wes
I have the On/Off wall switches ( 2477S), on/off 6 btn keypads ( 2487S), micro on/off inline modules ( 2443-222), standard on/off in-line relay ( 2475SDB).
Turning on debug now and restarting…
homeassistant.components.insteon2: debug
didn’t produce any new logs for me. What’s your logger?
logger is custom_components.insteon2
Please add this to your logs section:
logger:
default: info
logs:
pyinsteon.topics: debug
pyinsteon.messages: debug
custom_components.insteon2: debug
Hi teharris1. Thanks for your work on this! I’m changing over my trusty 10 year old Misterhouse set up over to Home Assistant and have been having fun so far.
I followed along with your instructions and joe’s experiences above and got most of the way.
My PLM is attached:
usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0
But when Home Assistant starts up I get:
2020-04-09 20:33:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for insteon2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-09 20:33:25 WARNING (MainThread) [homeassistant.setup] Setup of insteon2 is taking over 10 seconds.
2020-04-09 20:36:15 ERROR (MainThread) [custom_components.insteon2] Could not connect to Insteon PLM
Would I be correct in assuming that the Home Assistant container probably doesn’t have access to /dev/ttyUSB0? How would I fix that?
Regards,
Garry
New debug logs. I see the group 2 switch below Adding device 32.FF.81 group 2 to switch platform
, that same device is added as a light a few seconds earlier. That device is a 6 btn dimmer…
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.8B.FE group 1 to binary_sensor platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.8B.FE group 3 to binary_sensor platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.8B.FE group 4 to binary_sensor platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.F7.BA group 1 to climate platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 31.70.FF group 1 to climate platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.F4.C9 group 1 to climate platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2E.2B.C6 group 2 to fan platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2E.2A.D8 group 2 to fan platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2D.7C.69 group 2 to fan platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2E.2C.D2 group 2 to fan platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 40.16.A3 group 2 to fan platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2D.7C.6F group 2 to fan platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 48.2E.C1 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 48.47.C8 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.FF.81 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8C.D2 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.FC.F8 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.03.28 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 48.45.3B group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.06.48 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.FF.A6 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8F.41 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8F.15 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8F.14 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8F.87 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8B.45 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2E.2B.C6 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.FF.BF group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.FF.5B group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.03.EC group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.03.0F group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8F.EB group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.01.75 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.03.35 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.04.51 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2E.96.5A group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2E.2A.D8 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 47.15.3E group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.FE.95 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 47.12.FD group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2D.7C.69 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2E.2C.D2 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.91.7A group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 40.16.A3 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2D.7C.6F group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 33.02.E6 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 45.DE.20 group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 2C.8D.6F group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 45.DF.DB group 1 to light platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 30.CB.BC group 1 to switch platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 30.C9.8F group 1 to switch platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 48.6F.BA group 1 to switch platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 30.D2.68 group 1 to switch platform
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.utils] Adding device 32.FF.81 group 2 to switch platform
2020-04-10 07:12:38 INFO (MainThread) [homeassistant.components.binary_sensor] Not adding entity Door Sensor 32.8B.FE Heartbeat because it's disabled
2020-04-10 07:12:38 INFO (MainThread) [homeassistant.components.binary_sensor] Not adding entity Door Sensor 32.8B.FE Battery because it's disabled
2020-04-10 07:12:38 INFO (MainThread) [homeassistant.components.binary_sensor] Not adding entity Door Sensor 32.8B.FE Door because it's disabled
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.F4.C9 group 1 name cool_set_point
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 31.70.FF group 1 name cool_set_point
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.F7.BA group 1 name cool_set_point
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2E.2A.D8 group 2 name dimmable_fan
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 40.16.A3 group 2 name dimmable_fan
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2D.7C.6F group 2 name dimmable_fan
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2D.7C.69 group 2 name dimmable_fan
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2E.2C.D2 group 2 name dimmable_fan
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2E.2B.C6 group 2 name dimmable_fan
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 47.15.3E group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8F.14 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.FE.95 group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8F.15 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8F.87 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 47.12.FD group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.FC.F8 group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8B.45 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2D.7C.69 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8C.D2 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2E.2B.C6 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2E.2C.D2 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.FF.BF group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.91.7A group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.FF.81 group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.FF.5B group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8F.41 group 1 name dimmable_light
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.06.48 group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.03.EC group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.03.28 group 1 name dimmable_light_main
2020-04-10 07:12:38 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 40.16.A3 group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 32.FF.A6 group 1 name dimmable_light_main
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2D.7C.6F group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.03.0F group 1 name dimmable_light_main
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 48.45.3B group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.02.E6 group 1 name dimmable_light_main
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8F.EB group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 48.2E.C1 group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 45.DE.20 group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.01.75 group 1 name dimmable_light_main
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 48.47.C8 group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2C.8D.6F group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.03.35 group 1 name dimmable_light_main
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 45.DF.DB group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 33.04.51 group 1 name dimmable_light_main
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2E.96.5A group 1 name dimmable_light
2020-04-10 07:12:39 DEBUG (MainThread) [custom_components.insteon2.insteon_entity] Tracking updates for device 2E.2A.D8 group 1 name dimmable_light
2020-04-10 07:12:39 ERROR (MainThread) [homeassistant.components.switch] Error while setting up insteon2 platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/config/custom_components/insteon2/switch.py", line 15, in async_setup_platform
hass, DOMAIN, InsteonSwitchDevice, async_add_entities, discovery_info
File "/config/custom_components/insteon2/utils.py", line 316, in async_add_insteon_entities
new_entities.append(entity_type(device, group))
File "/config/custom_components/insteon2/insteon_entity.py", line 25, in __init__
self._insteon_device_group = device.groups[group]
KeyError: 2
Gerry, thanks for helping out with the testing. You indicate you are using a container. If you need to open a port for the container it is done something like this for docker:
docker run -d \
--name homeassistant \
-v /my_config_dir:/config \
-v /etc/localtime:/etc/localtime:ro \
--net=host \
--restart unless-stopped \
--device=/dev/ttyUSB0
homeassistant/home-assistant
@joe2 OK, so this is a 6 button KPL switch. Let me have a look at that device and I will post an update.
@joe2, that turned out to be pretty easy. The 6 button KPL does not have a group 2, it has groups 1, 3, 4, 5, and 6 (technically it is a 5 button switch since the 6th button is the off button). I pushed a change to insteon2. The pyinsteon module is unchanged so you don’t need to reinstall that.
That worked. I’ll go through and update those devices too this afternoon and see if there are any problems. After reading the initial insteon documentation, I expected my buttons to just be event data
that i could drive automations for through triggers like this:
- id: light_on
alias: Turn a light on
trigger:
- platform: event
event_type: insteon.button_on
event_data:
address: 1a2b3c
button: c
I guess I don’t mind the switches for each button, but i’m wondering if there was a change from insteon1 to insteon2 – or if there’s a recommended way of interacting with those buttons and state changes.
Updated to HA 108.2
Worth noting that those running HA in a docker container need to re-update it with:
docker exec -it --user=root homeassistant pip3 install --upgrade ttps://github.com/teharris1/pyinsteon/archive/release1.zip
I fixed the logger part of my configuration.yaml as said above.
A grep of the log for “insteon” after restart gives:
2020-04-10 11:06:31 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for insteon2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-10 11:06:35 INFO (MainThread) [homeassistant.setup] Setting up insteon2
2020-04-10 11:06:35 INFO (MainThread) [custom_components.insteon2] Connecting to Insteon PLM on /dev/ttyUSB0
2020-04-10 11:06:37 INFO (MainThread) [custom_components.insteon2] Connection to Insteon PLM successful
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 352726
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 418641
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 3ff5c4
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 4ca919
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 3e9c77
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 5318e2
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 531d26
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 4bb2b4
2020-04-10 11:06:39 INFO (MainThread) [pyinsteon.managers.device_manager] Adding device to INSTEON devices list: 4ca66d
2020-04-10 11:06:39 INFO (MainThread) [custom_components.insteon2] Setting up INSTEON platforms
2020-04-10 11:06:39 INFO (MainThread) [custom_components.insteon2] Insteon device count: 10
2020-04-10 11:06:39 INFO (MainThread) [homeassistant.setup] Setup of domain insteon2 took 3.4 seconds.
2020-04-10 11:06:39 INFO (MainThread) [homeassistant.components.light] Setting up light.insteon2
2020-04-10 11:06:39 INFO (MainThread) [homeassistant.components.switch] Setting up switch.insteon2
2020-04-10 11:06:39 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.insteon2
2020-04-10 11:06:39 INFO (MainThread) [homeassistant.components.fan] Setting up fan.insteon2
2020-04-10 11:06:39 INFO (MainThread) [homeassistant.components.climate] Setting up climate.insteon2
2020-04-10 11:06:40 INFO (MainThread) [homeassistant.components.cover] Setting up cover.insteon2
2020-04-10 11:06:51 INFO (MainThread) [custom_components.insteon2] Identifying Insteon devices
2020-04-10 11:06:53 ERROR (MainThread) [pyinsteon.utils] An issue occured distributing the following message
2020-04-10 11:06:53 ERROR (MainThread) [pyinsteon.utils] MSG: 02503ee271100a438f0135
2020-04-10 11:06:53 ERROR (MainThread) [pyinsteon.utils] Topic: 3ee271.assign_to_all_link_group.broadcast data: {'cmd1': 1, 'cmd2': 53, 'target': 100a43, 'user_data': None}
2020-04-10 11:06:53 ERROR (MainThread) [pyinsteon.utils] Error: 1
2020-04-10 11:06:53 ERROR (MainThread) [pyinsteon.utils] Subscriber: AssignToAllLinkGroupCommand.receive_id
Note that I did not update my custom_components/insteon2 directory.
Wes
OK, thanks. That is an error after the pyinsteon module identifies your SmokeBridge device. I am surprised that is an issue but I will look at it more. Thanks again for your help.
Yay! looks like I’m off to the races but I’m not sure if I achieved it the right way. I’m running Home Assistant Supervised on a Pi 4 with Raspian.
I added the --device=/dev/ttyUSB0 flag to the docker command in the /usr/sbin/hassio-supervisor script, restarted and off it went.
Insteon2 found all my devices.
I’ll let you know if I have further issues.
Thanks again teharris1!
Garry
On my 6btn Keypads, the scene buttons don’t seem to function properly after they were auto-discovered. From HA, I turned on the keypad_b
switch, but MAIN
was turned on instead:
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.topics] Topic: send.on.direct data: {'address': 330335, 'on_level': 255, 'group': 1}
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.topics] Topic: send_message.on.direct data: {'msg': msg_id: 0x62, address: 330335, flags: 0x00, cmd1: 0x11, cmd2: 0xff, 'priority': 5}
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.messages] TX: msg_id: 0x62, address: 330335, flags: 0x00, cmd1: 0x11, cmd2: 0xff
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x62, address: 330335, flags: 0x00, cmd1: 0x11, cmd2: 0xff, ack: 0x06
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.topics] Topic: ack.330335.1.on.direct data: {'cmd1': 17, 'cmd2': 255, 'user_data': None}
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.messages] RX: msg_id: 0x50, address: 330335, target: 31185b, flags: 0x20, cmd1: 0x11, cmd2: 0xff
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.topics] Topic: 330335.on.direct_ack data: {'cmd1': 17, 'cmd2': 255, 'target': 31185b, 'user_data': None}
2020-04-10 21:21:20 DEBUG (MainThread) [pyinsteon.topics] Topic: handler.330335.1.on.direct data: {'on_level': 255}
executing buttons from the local switch, the proper status is reflected on the proper switches inside HA… so this appears just to be an outbound problem (?)
Side note / positive feedback. Performance and responsiveness have been great. Couple glitches I need to keep tracking down before/if I post anything… and I hadn’t tested my scene sync yet, but so far it seemed to be working well
A bit more feedback.
First thank you for your work on this, greatly appreciated.
-
I did a factory reset on my 2982-222 SmokeBridge. After that there were NO MORE errors. In past months I had been experimenting so there is now no way to find what was in its local memory. This suggests the content of device memory may be untrustworthy. ALSO the Bridge is not auto discovered at all by insteon2, Although I did successfully re-add it using the Insteon android app and hub.
-
I then did a factory reset on the PLM with no changes observed from before.
-
Also not auto discovered by insteon2 so far are 3 battery powered devices: two leak sensors 2852-222 and a door sensor 2845-222. in each case I pushed the set buttons a few times, but I did not try to link them to the PLM in the normal way.
-
pyinsteon needs to be manually re-added to the homeassistant docker container after each reboot of Raspbian and after each release upgrade (frequent recently). I use the HACS and alexa_media as custom_ components. These do not need manual intervention. Perhaps there is a mechanism in HA that they are using or that could be used. Just a thought.
-
I got the impression from your github comment that “Hub users can use it interchangably with the Hub app. The state will updated in HA.” that HA would see and follow device updates done by my Hub/Alexa. So far that does not seem to be happening.
Hope some of this is useful.
Wes
@joe2 when you said you turned on keypad_b switch, was that in the UI or automation? Whatever you did, can you repeat it for each button and tell me the result?
@Wes You mention the hub app and you mention factory resetting a PLM. Which one are you using with HA? Which ever one you use needs to have all of the devices linked to it before HA can find it.