HassBridge plugin

Posted on
Mon May 11, 2020 7:24 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: HassBridge plugin

I am getting this error about SSL handshake. Any suggestions. Config file included

Not sure what is wrong with my config?

HassBridge Connecting to the MQTT Server...
HassBridge Connected to MQTT Server!
HassBridge Error Exception trapped:HTTPSConnectionPool(host='192.168.2.113', port=8123): Max retries exceeded with url: /api/states (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))
HassBridge Error Error in plugin execution UiClosed1:

Traceback (most recent call last):
File "plugin.py", line 149, in closedPrefsConfigUi
File "plugin.py", line 131, in update_perfs
File "plugin.py", line 347, in _setup_ha_devices
File "plugin.py", line 444, in _refresh_ha_info
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/api.py", line 61, in request
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/sessions.py", line 530, in request
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/sessions.py", line 643, in send
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/adapters.py", line 514, in send
SSLError: HTTPSConnectionPool(host='192.168.2.113', port=8123): Max retries exceeded with url: /api/states (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))
Attachments
Screen Shot 2020-05-11 at 9.23.57 PM.png
Screen Shot 2020-05-11 at 9.23.57 PM.png (172.05 KiB) Viewed 2222 times

Posted on
Mon May 11, 2020 7:42 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: HassBridge plugin

farberm wrote:
I am getting this error about SSL handshake. Any suggestions. Config file included

Not sure what is wrong with my config?

HassBridge Connecting to the MQTT Server...
HassBridge Connected to MQTT Server!
[color=#FF0000]HassBridge Error Exception trapped:HTTPSConnectionPool(host='192.168.2.113', port=8123): Max retries exceeded with url: /api/states (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))
HassBridge Error Error in plugin execution UiClosed1:


What Mac OS version is your Indigo server?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon May 11, 2020 7:47 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: HassBridge plugin

Catalina 10.15.4

Indigo 7.4

Posted on
Mon May 11, 2020 7:48 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: HassBridge plugin

farberm wrote:
Catalina 10.15.4

Indigo 7.4


OK, then it's not that problem.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon May 11, 2020 8:04 pm
Gangotti offline
User avatar
Posts: 81
Joined: Dec 23, 2014
Location: Las Vegas, NV

Re: HassBridge plugin

I am seeing the same thing as farberm.

Z-Wave received "Master Bedroom Ultraviolet" sensor update to 0
HassBridge Debug Getting list of Bridgable Devices
HassBridge Connecting to the MQTT Server...
HassBridge Connected to MQTT Server!
HassBridge Debug Refreshing mappings of Indigo devices to HA devices.
HassBridge Error Exception trapped:HTTPSConnectionPool(host='172.16.1.128', port=8123): Max retries exceeded with url: /api/states (Caused by SSLError(SSLError(1, u'[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)'),))
HassBridge Error Error in plugin execution UiClosed1:

Traceback (most recent call last):
File "plugin.py", line 149, in closedPrefsConfigUi
File "plugin.py", line 131, in update_perfs
File "plugin.py", line 347, in _setup_ha_devices
File "plugin.py", line 444, in _refresh_ha_info
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/api.py", line 61, in request
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/sessions.py", line 530, in request
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/sessions.py", line 643, in send
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/adapters.py", line 514, in send
SSLError: HTTPSConnectionPool(host='172.16.1.128', port=8123): Max retries exceeded with url: /api/states (Caused by SSLError(SSLError(1, u'[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)'),))

I am running Indigo 7.4 on OSX 10.12.5

Posted on
Mon May 11, 2020 8:10 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: HassBridge plugin

I just got that to disappear by creating a yaml file and restarting indigo. I currently have the yaml file blank. I need to work device and variable definitions I think?? I have SSL certificates and Unvalidted SSL all unchecked.

This is my current error.

HassBridge Error Exception trapped:argument of type 'NoneType' is not iterable
HassBridge Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 190, in startup
File "plugin.py", line 346, in _setup_ha_devices
File "plugin.py", line 362, in _remap_ha_devices
File "plugin.py", line 501, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/insteon/type_generators.py", line 70, in generate
TypeError: argument of type 'NoneType' is not iterable

Posted on
Mon May 11, 2020 8:24 pm
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

Gangotti wrote:
Traceback (most recent call last):
File "plugin.py", line 149, in closedPrefsConfigUi
File "plugin.py", line 131, in update_perfs
File "plugin.py", line 347, in _setup_ha_devices
File "plugin.py", line 444, in _refresh_ha_info
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/api.py", line 61, in request
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/sessions.py", line 530, in request
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/sessions.py", line 643, in send
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/libs/requests/adapters.py", line 514, in send
SSLError: HTTPSConnectionPool(host='172.16.1.128', port=8123): Max retries exceeded with url: /api/states (Caused by SSLError(SSLError(1, u'[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)'),))

I am running Indigo 7.4 on OSX 10.12.5


I dont think yours is the same as farberm's. The error message is different. Yours still kinda points to the Home Assistant you are hitting not setup for SSL. Can you check and make sure the URL you hit Home Assistant with is https and not http. If its http then you dont have SSL setup on your Home Assistant.

A screenshot of your config would also help.

Posted on
Mon May 11, 2020 8:26 pm
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

farberm wrote:
I just got that to disappear by creating a yaml file and restarting indigo. I currently have the yaml file blank. I need to work device and variable definitions I think?? I have SSL certificates and Unvalidted SSL all unchecked.

This is my current error.

HassBridge Error Exception trapped:argument of type 'NoneType' is not iterable
HassBridge Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 190, in startup
File "plugin.py", line 346, in _setup_ha_devices
File "plugin.py", line 362, in _remap_ha_devices
File "plugin.py", line 501, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/insteon/type_generators.py", line 70, in generate
TypeError: argument of type 'NoneType' is not iterable


Ok this is probably a bug. Let me try it with an empty yaml file. Does it work without the "use customization file" turned on?

Posted on
Mon May 11, 2020 8:39 pm
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

WonderSlug wrote:
farberm wrote:
I just got that to disappear by creating a yaml file and restarting indigo. I currently have the yaml file blank. I need to work device and variable definitions I think?? I have SSL certificates and Unvalidted SSL all unchecked.

This is my current error.

HassBridge Error Exception trapped:argument of type 'NoneType' is not iterable
HassBridge Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 190, in startup
File "plugin.py", line 346, in _setup_ha_devices
File "plugin.py", line 362, in _remap_ha_devices
File "plugin.py", line 501, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/insteon/type_generators.py", line 70, in generate
TypeError: argument of type 'NoneType' is not iterable


Ok this is probably a bug. Let me try it with an empty yaml file. Does it work without the "use customization file" turned on?


Did a quick release with a fix for the empty customization file.
v1.0.2

Posted on
Mon May 11, 2020 8:39 pm
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

v1.0.2 Released
- Fix for empty customization file

Posted on
Tue May 12, 2020 1:31 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: HassBridge plugin

I am still getting this error even with the yaml, file,filled in correctly with device and variables . is there any specifics on the yaml file name. I called mine hassbridge.yaml. l also get the error if customization file unchecked.

Starting plugin "HassBridge 1.0.2" (pid 48333)
Started plugin "HassBridge 1.0.2"
HassBridge Error Exception trapped:'NoneType' object has no attribute 'name'
HassBridge Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 190, in startup
File "plugin.py", line 346, in _setup_ha_devices
File "plugin.py", line 399, in _remap_ha_devices
File "plugin.py", line 523, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/type_generators.py", line 45, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 139, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 33, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 301, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 218, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 99, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 45, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 81, in name
AttributeError: 'NoneType' object has no attribute 'name'

Posted on
Tue May 12, 2020 7:13 am
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

farberm wrote:
I am still getting this error even with the yaml, file,filled in correctly with device and variables . is there any specifics on the yaml file name. I called mine hassbridge.yaml.


I dont think this is an issue with the filename. This error is different and not part of the customization file stuff. You can name the file anything.


farberm wrote:
l also get the error if customization file unchecked.

Starting plugin "HassBridge 1.0.2" (pid 48333)
Started plugin "HassBridge 1.0.2"
HassBridge Error Exception trapped:'NoneType' object has no attribute 'name'
HassBridge Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 190, in startup
File "plugin.py", line 346, in _setup_ha_devices
File "plugin.py", line 399, in _remap_ha_devices
File "plugin.py", line 523, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/type_generators.py", line 45, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 139, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 33, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 301, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 218, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 99, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 45, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 81, in name
AttributeError: 'NoneType' object has no attribute 'name'


This is odd because it is erroring as if there is an indigo device without a name. Do you have one that is not named? I should be handing that error none the less. But it is interesting.

Posted on
Tue May 12, 2020 7:20 am
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

WonderSlug wrote:
farberm wrote:
l also get the error if customization file unchecked.

Starting plugin "HassBridge 1.0.2" (pid 48333)
Started plugin "HassBridge 1.0.2"
HassBridge Error Exception trapped:'NoneType' object has no attribute 'name'
HassBridge Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 190, in startup
File "plugin.py", line 346, in _setup_ha_devices
File "plugin.py", line 399, in _remap_ha_devices
File "plugin.py", line 523, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/type_generators.py", line 45, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 139, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 33, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 301, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 218, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 99, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 45, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 81, in name
AttributeError: 'NoneType' object has no attribute 'name'


This is odd because it is erroring as if there is an indigo device without a name. Do you have one that is not named? I should be handing that error none the less. But it is interesting.


Actually I was wrong. I was able to recreate it on a variable. Its a bug I will get a fix out for.

Posted on
Tue May 12, 2020 9:02 am
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

v1.0.3 has been Released

  • Fixed bug blocking variables from being registered
  • Fixed bug where variable indigo entity not accounted for in naming.

Posted on
Tue May 12, 2020 9:04 am
WonderSlug offline
Posts: 82
Joined: Sep 08, 2017

Re: HassBridge plugin

WonderSlug wrote:
WonderSlug wrote:
farberm wrote:
l also get the error if customization file unchecked.

Starting plugin "HassBridge 1.0.2" (pid 48333)
Started plugin "HassBridge 1.0.2"
HassBridge Error Exception trapped:'NoneType' object has no attribute 'name'
HassBridge Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 190, in startup
File "plugin.py", line 346, in _setup_ha_devices
File "plugin.py", line 399, in _remap_ha_devices
File "plugin.py", line 523, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/type_generators.py", line 45, in generate
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 139, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/variables/devices.py", line 33, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 301, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 218, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 99, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 45, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HassBridge.indigoPlugin/Contents/Server Plugin/hass_devices/base.py", line 81, in name
AttributeError: 'NoneType' object has no attribute 'name'


This is odd because it is erroring as if there is an indigo device without a name. Do you have one that is not named? I should be handing that error none the less. But it is interesting.


Actually I was wrong. I was able to recreate it on a variable. Its a bug I will get a fix out for.


v1.0.3 should has the fix for this

Who is online

Users browsing this forum: No registered users and 1 guest