Insteon configuration panel

I have 60+ Insteon Devices and running the latest Hub. I have a Pi running HA and all my devices have been imported into HA from my Hub. I would be willing to try the new Control Panel!

Bill

New caps should fix it!
I was going to retire my PLM when it died but it lives on nowā€¦

Here is the code to test:
Linux: https://github.com/teharris1/insteon-panel/releases/download/0.0.1b3/insteon.tar.gz
Windows: https://github.com/teharris1/insteon-panel/releases/download/0.0.1b3/insteon.zip

Download the appropriate file and replace your Home Assistant Insteon component with the content of the file. In other words follow the following steps:

  1. Download the file above
  2. Login to your HA system at the operating system level
  3. Find your homeassistant/components directory
  4. Remove the homeassistant/components/insteon directory
  5. Unzip the contents of the file that you downloaded in step 1 to the homeassistant/components directory to create a new homeassistant/components/insteon directory

Make sure your configuration.yaml file does not have an entry for the Insteon custom panel.

Restart HA after you follow the steps above. This will run the newest version of pyinsteon and will automatically install the Insteon panel on the left pane.

If you are not comfortable with the steps above, please do not try this. I need to focus on getting this code cleaned up a little and I am spending a lot of time helping new users get onto HA. I cannot help you debug the install of this beta version.

I appreciate all the help.

3 Likes

Have it on the schedule for tomorrow. Thanks for all your efforts! I will test.
I also have a separate Hub coming next week that I will put on a different HA test system.

1 Like

Iā€™ll test tonight or tomorrow.

I have the basic devices connected right now to a 2245 hub, but Iā€™ll add my IO back into the mix since youā€™re looking for feedback on that.

1 Like

Iā€™m quite sure I can get this done. Iā€™m using a Raspberry and I can ssh to the operating system using port 22222. But when I go searching there seems to be several homeassistant/components directories located on different paths. Whatā€™s correct path to point to the correct Insteon directory?

The path that matters is the one that is running HA. If you see a prefix with the python version, then it is the one that maps to python3. So if you run python3 --version this will tell you what minor version of python3 you are using by default.

happy to test this out but doesnt seem to be loading for meā€¦ Completely understand the " I cannot help you debug the install of this beta version." from Tom and frankly do not want to take away from his time on dev. So if anyone else has any tips hit me. Relatively clean install on Raspberry PI - just using the inteston integration with 53 devices, nothing Iā€™m not willing to dump and start over. Using with a 2245 hub.

BTW - Thank you Tom for your efforts

Test environment
Insteon Hub V1, python 3.9.12 venv Core 2022.4.7
In terms of devices, I only have Insteon devices, 4 dimmers, one switch and one fanlinc.

at bootup, creates Insteon config tool in the side panel as expected

Errors during startup:

Invalid config
The following integrations and platforms could not be set up:

insteon.climate
insteon.fan
insteon.cover
Please check your config and logs.

From the logs:

2022-04-24 15:29:34 ERROR (MainThread) [homeassistant.setup] 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)).
2022-04-24 15:29:34 ERROR (MainThread) [homeassistant.setup] 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)).
2022-04-24 15:29:34 ERROR (MainThread) [homeassistant.setup] 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)).

Other observations:

Testing switches and dimmers, they all seem to work and response is pretty instantaneous are usual

After using any items on my main dashboard clicking on Insteon tool on sidebar brings up the form, but no populated data. A refresh populates the form. Navigating down and then back up does not require a refresh

I hope this helps, and I havenā€™t messed up with my testing

1 Like

Sorry @teharris1. Iā€™m running a VirtualBox VM and cannot find the components directory. Donā€™t see the python directory and Iā€™m at a loss to make sense of any help Iā€™ve found online. I recall finding it by accident years ago when I was running core in a python virtual environment, but Iā€™m not able to find it here.

The IO is connected to a test 2245 hub, but Iā€™m afraid I wonā€™t be able to contribute if I cannot get the component loaded.

Yeah, dummy me. The climate, fan and cover integrations changed some stuff in 2022.4 and I am developing still on 2022.3. OK, that is a simple fix.

1 Like

Trying to figure this out tooā€¦ best I can gather is components is a directory to create under the config folder if it doesnā€™t already exist and unzip there - but I havenā€™t gotten any further

1 Like

What directory do I put the components directory in? I have tried www and config.

Well, this has been kind of fun figuring out how to do system stuff on my Raspberry based Home Assistant. The test package is installed!

I did get the same errors posted above. But Insteon does show up in the left side panel! Time to explore a bit and find out what is now possible.

Keep up the good work and let us know when another update is available.

keep up the hard work!

Did you figure out how to get the side panel to load?

1 Like

No, components is not under the config directory. It is usually either
/usr/local/lib/python3.X/site-packages/homeassitant/components

where X is the minor python version or

/usr/src/homeassistant/homeassistant/components

when running in a container.

Hi All, I didnā€™t know how to install the test code either. However, I did figure out how to do the process. The following is the outline of how I accomplished the task of updating the Insteon plugin.

Home Assistant ā€“ Connect for Maintenance Mini Guide

You need Root OS Access

You need setup public and private keys. I used puttygen to create keys. I followed this procedure to install the public key: Debugging the Home Assistant Operating System | Home Assistant Developer Docs (home-assistant.io)

Then Connect to the Root OS

putty or SSH 192.178.1.150:22222 - use the IP address of your Home Assistant server

Then Connect to the Home Assistant Docker instance start a command shell

docker exec -it homeassistant /bin/bash

Now you are in the Home Assistant Docker environment and you can find the Components location

/usr/src/homeassistant/homeassistant/components

/usr/src/homeassistant/homeassistant/components/insteon

I wanted to copy the files, so I needed to Mount USB to Docker

Plug in and find your USB

fdisk -l

If needed create mount point

mkdir /mnt/usb

Mount your USB

mount /dev/sda1 /mnt/usb

Now you can copy and replace the files using standard Linux commands

ah! thank you - I was going by this info Integration File Structure | Home Assistant Developer Docs and mistakenly thought I was in the right location

I have this all installed, no issues.
That said, I broke down and purchased a Hub off e-bay.
I am going to wait a day before I play too deeply. I want to set up an environment with just this.