Insteon configuration panel

Awesome thanks for the I
info. I haven’t spent time diving into customizing the dashboard yet but it is definetly seething I look forward to playing with.

200
IT IS MERGED!!!

After 18 months of work, the Insteon Panel is finally in the core codebase. It will be released today in the beta channel and next Wednesday in the mainstream release. Thank you all for your support, efforts with debugging, feedback and patients. I will be opening a new thread to talk about where we take Insteon from here.

7 Likes

Congrats!!!
Can you post a link here for the new thread?

Yes, I want to work with the 2022.5.0b releases for the next week to make sure it is ready for 2022.5 full release. After that, I will start a new thread and close this one. (To the extent that a thread can be closed).

Thanks @teharris1, I assume the issues with the current beta are resolved? Most of use still have the errors like:

Logger: homeassistant.setup
Source: setup.py:298
First occurred: 3:30:46 PM (4 occurrences)
Last logged: 3:30:46 PM

  • Unable to prepare setup for platform insteon.fan: Platform not found (cannot import name ‘FanEntityFeature’ from ‘homeassistant.components.fan’ (/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/fan/init.py)).
  • Unable to prepare setup for platform insteon.cover: Platform not found (cannot import name ‘CoverEntityFeature’ from ‘homeassistant.components.cover’ (/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/cover/init.py)).
  • Unable to prepare setup for platform insteon.climate: Platform not found (cannot import name ‘ClimateEntityFeature’ from ‘homeassistant.components.climate’ (/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/climate/init.py)).
  • Unable to prepare setup for platform insteon.light: Platform not found (cannot import name ‘ColorMode’ from ‘homeassistant.components.light’ (/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/light/init.py)).

Just to note, I set up a new HA installation here with a 100% clean hub. Ready to stick in a few devices.

I would note that these errors seem connected to this:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/insteon/api/properties.py:247
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 3:35:48 PM (4 occurrences)
Last logged: 3:36:28 PM

[140000107445360] Error handling message: Unknown error (unknown_error)

Traceback (most recent call last): File “/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/websocket_api/decorators.py”, line 27, in _handle_async_response await func(hass, connection, msg) File “/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/insteon/api/properties.py”, line 247, in websocket_load_properties result, _ = await device.async_read_config(read_aldb=False) TypeError: cannot unpack non-iterable ResponseStatus object

Looks great so far on

Home Assistant Core 2022.5.0b2
Home Assistant Supervisor 2022.04.4
Home Assistant OS 8.0.rc3

Even found the mini remotes!

Not seeing any of the errors from before! :+1:

1 Like

Kenrok1, no errors, did you get another version of the test code?

That’s the Home Assistant beta release.

Oh I see, the beta channel. I just installed it and so far it looks good, no errors yet. Teharris1, does beta channel include a newer version of the Insteon Control Panel too?

1 Like

Yes,the control panel automatically loads with the Insteon component. So if you were running the custom panel you need to remove that config from your config file.

Installed beta version homeassistant on a new machine.
Used a 100% wiped Hub.
Got that all integrated.
Installed a simple on/off switch in house.
Used insteon.add_all_link and added the switch.
I see it in the new control panel, it controls the switch.
Using the control panel, turned off the LED.
Using the control panel turned off the key beep.
All works.

Only errors still coming in log are:

2022-04-29 10:45:59 ERROR (MainThread) [pyinsteon.utils] An issue occured distributing the following message
2022-04-29 10:45:59 ERROR (MainThread) [pyinsteon.utils] MSG: 02501fbe25000001cf1100
2022-04-29 10:45:59 ERROR (MainThread) [pyinsteon.utils] Topic: 1fbe25.1.on.all_link_broadcast data: {‘cmd1’: 17, ‘cmd2’: 0, ‘target’: 000001, ‘user_data’: None, ‘hops_left’: 3}
2022-04-29 10:45:59 ERROR (MainThread) [pyinsteon.utils] Error: ‘Hub’ object has no attribute ‘status’
2022-04-29 10:45:59 ERROR (MainThread) [pyinsteon.utils] Subscriber: OnLevelInbound.receive_message
2022-04-29 10:46:03 ERROR (MainThread) [pyinsteon.utils] An issue occured distributing the following message
2022-04-29 10:46:03 ERROR (MainThread) [pyinsteon.utils] MSG: 02501fbe25000001cf1300
2022-04-29 10:46:03 ERROR (MainThread) [pyinsteon.utils] Topic: 1fbe25.1.off.all_link_broadcast data: {‘cmd1’: 19, ‘cmd2’: 0, ‘target’: 000001, ‘user_data’: None, ‘hops_left’: 3}
2022-04-29 10:46:03 ERROR (MainThread) [pyinsteon.utils] Error: ‘Hub’ object has no attribute ‘status’
2022-04-29 10:46:03 ERROR (MainThread) [pyinsteon.utils] Subscriber: OffInbound.receive_message
2022-04-29 10:46:39 ERROR (MainThread) [pyinsteon.utils] An issue occured distributing the following message
2022-04-29 10:46:39 ERROR (MainThread) [pyinsteon.utils] MSG: 02501fbe25000001cf1100
2022-04-29 10:46:39 ERROR (MainThread) [pyinsteon.utils] Topic: 1fbe25.1.on.all_link_broadcast data: {‘cmd1’: 17, ‘cmd2’: 0, ‘target’: 000001, ‘user_data’: None, ‘hops_left’: 3}
2022-04-29 10:46:39 ERROR (MainThread) [pyinsteon.utils] Error: ‘Hub’ object has no attribute ‘status’
2022-04-29 10:46:39 ERROR (MainThread) [pyinsteon.utils] Subscriber: OnLevelInbound.receive_message
2022-04-29 10:46:41 ERROR (MainThread) [pyinsteon.utils] An issue occured distributing the following message
2022-04-29 10:46:41 ERROR (MainThread) [pyinsteon.utils] MSG: 02501fbe25000001cf1300
2022-04-29 10:46:41 ERROR (MainThread) [pyinsteon.utils] Topic: 1fbe25.1.off.all_link_broadcast data: {‘cmd1’: 19, ‘cmd2’: 0, ‘target’: 000001, ‘user_data’: None, ‘hops_left’: 3}
2022-04-29 10:46:41 ERROR (MainThread) [pyinsteon.utils] Error: ‘Hub’ object has no attribute ‘status’
2022-04-29 10:46:41 ERROR (MainThread) [pyinsteon.utils] Subscriber: OffInbound.receive_message

Does anyone know yet, if scenes will be possible to create inside HA withthis new integration. I feel like this is a waste of time , if you can’t. The normal integration for insteon works just fine to add lights. But PLEASE if scenes are possible someone put my mind at ease, I cant find that answer lol

I am currently working on a patch for pyinsteon which should go into core in the next few days. This will fix the errors listed above as well as address the core issue with the Hub disconnecting and never reconnecting. (Thanks to @rlfromm for the logs that demonstrated the underlying issues.)

3 Likes

@image969 Scenes are just responder/controller links in the ALDB. So to create a scene number 23 that turns a light to 50% brightness you would create a record in the ALDB that looks like the following:

in_use: true
mode: responder
group: 23
target: <modems address>
data1: 128  (255 = 100% on)
data2: 28 (Ramp rate - 28 = 2 seconds which the the default for dimmable devices)
data3: 1  (means button 1)

Then in the modem (PLM or Hub) enter a corresponding record:

in_use: true
mode: controller
group: 23
target: <devices address>
data1: 0
data2: 0
data3: 0

Now you can use the insteon.scene_on and insteon.scene_off services in an automation to trigger the scene.

In a future release I am planning to create an ability to create/edit scenes more easily but the first version does solve that problem albeit not as easy as I would like yet.

OK thanks. I will look into this.

This would be a real Insteon scene? Another words I wouldn’t get the popcorn affect? Everything would change simultaneously?

Correct. This is an Insteon scene not a HA scene.

1 Like

Firstly @teharris1 is my personal hero. I applaud you for your efforts on this. I own a few software companies myself and we as a community need to pull together and especially help with GUI design. I can certainly visualize better ways for novices … removing terminology like “all link database” and such as a novice will have no idea what this is.

Now, the example you gave above is great. I was actually typing near the same thing.
Is there any good place to go (documentation) to help people understand what data1, data2, data3 are? In the short term and lacking any GUI for this, users will need to know what to put into those fields.

2 Likes

As teharris1 already replied, yes you can create insteon scenes stored in the insteon hardware. I have been using Home assistant since Aug 2018 using insteon devices. I actually prefer using Home Assistant based scenes and or groups. I think they are much easier to create, modify or backup. My suggestion would be to try creating some simple scenes in the Insteon hardware with one or two device. I recommend do a similar experiment using the Home assistant based scenes and groups, then decide how you want to proceed.

HA groups allow you to turn on or off all devices in the group you create all at once.
HA scene remembers a device or group of devices settings ie set light ‘a’ to 50%, ‘b’ to 70% and switch ‘c’ to off

Just like trying a new vegetable … you might like it

1 Like