Page 1 of 1

Hass plugin install issues

PostPosted: Sat Oct 02, 2021 10:03 am
by pxzel
Can't seem to get the plugin to start on M1 Mac mini running Indigo 2021.1.1

Any ideas?
Log errors:

Installing and enabling plugin HassBridge v1.4.0
Loading plugin "HassBridge 1.4.0"
Starting plugin "HassBridge 1.4.0" (pid 867)
HassBridge Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "plugin.py", line 93, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/__init__.py", line 53, in __init__
ValueError: invalid literal for int() with base 10: ''

Stopping plugin "HassBridge 1.4.0" (pid 867)
Stopped plugin "HassBridge 1.4.0"

Re: Hass plugin install issues

PostPosted: Sat Oct 02, 2021 10:15 am
by WonderSlug
If you have a value in the MQTT Settings:Server Port make sure it is a valid number only with no spaces or other strings around it.

If thats not the problem there might be something odd with the handling of the python version in Indigo (which is an old 2.7 version) on a M1 CPU.

Re: Hass plugin install issues

PostPosted: Sat Oct 02, 2021 11:16 am
by pxzel
There is no configure setting when I use the plugin dropdown menu. I'm running
Python 3.8.2
Python 2.7.16

Re: Hass plugin install issues

PostPosted: Sat Oct 02, 2021 3:17 pm
by WonderSlug
It doesnt matter what version of python you have on your machine. Its the embedded python in Indigo

Re: Hass plugin install issues

PostPosted: Sat Oct 02, 2021 4:03 pm
by jay (support)
Indigo uses the python 2.7 install that comes with macOS. Third party python installs other than the one directly from python.org can cause issues.

Re: Hass plugin install issues

PostPosted: Sat Oct 02, 2021 4:44 pm
by pxzel
Well, I'm pretty sure both of the Python versions came with my M1 Mac. I've read other posts that state that 2 versions come with m1 Mac Big Sur 11.6.
Can anyone verify what Python versions Indigo works with?

Re: Hass plugin install issues

PostPosted: Sat Oct 02, 2021 6:12 pm
by jay (support)
Yes, newer macOS releases come with both. Indigo will use the 2.7 version.

Re: Hass plugin install issues

PostPosted: Sat Oct 02, 2021 6:19 pm
by pxzel
So, is it safe to assume that the Home Assistant and Hassbridge plug-in have issues with M1 and Big Sur? I never used those plugins and just recently tried to activate them. When I initially activated them, today, they both allowed me to enter configuration parameters. But after I tried to save, the config menu disappeared for each.

After trying to reinstall, the config menus never showed up again.

Re: Hass plugin install issues

PostPosted: Tue Oct 05, 2021 2:12 pm
by pxzel
I think its fixed. I deleted the plugins preference file and the plugin is working correctly now. Thanks for the help.