Page 1 of 2
"Smart by Bond" devices don't work with new plugin version
Posted:
Mon Mar 29, 2021 9:21 am
by katiaf
FYI, the latest plugin update broke my device and bridge. I tried opening and saving the bridge and device and when that didn't work I tried creating as new but nothing worked. I believe it may not have my device as an option (I have one of those fans with the integrated "smart by bond" bridge). I reverted to the previous plugin and everything works now, but I wanted to let you know.
Thanks
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 9:23 am
by FlyingDiver
Can you turn on debug logging, switch to the new plugin, use the "write device information to log" menu command, then switch back. And then post the log.
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 4:53 pm
by katiaf
I was not able to follow the instructions fully (could not find the "write device information to log"), but here is the log after activating debug mode.
- Code: Select all
Mar 29, 2021 at 6:46:41 PM
Bond Home Debug closedPrefsConfigUi, logLevel = 5
Mar 29, 2021 at 6:49:07 PM
Bond Home Debug getDeviceConfigUiValues, typeId = bondDevice, devId = 484200233, pluginProps = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Debug get_action_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 299, in get_action_list
KeyError: (u'798899409',)
Bond Home Debug get_action_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 299, in get_action_list
KeyError: (u'798899409',)
Bond Home Debug get_bridge_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Debug get_bridge_list adding: Office Fan Bond
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 258, in get_bridge_list
KeyError: key bondid not found in dict
Bond Home Debug get_device_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 269, in get_device_list
KeyError: (u'798899409',)
Bond Home Debug getDeviceConfigUiValues, typeId = bondDevice, devId = 484200233, pluginProps = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Debug get_action_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 299, in get_action_list
KeyError: (u'798899409',)
Bond Home Debug get_action_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 299, in get_action_list
KeyError: (u'798899409',)
Bond Home Debug get_bridge_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Debug get_bridge_list adding: Office Fan Bond
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 258, in get_bridge_list
KeyError: key bondid not found in dict
Bond Home Debug get_device_list: typeId = bondDevice, targetId = 484200233, filter = , valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : 1 (string)
bond_type : (string)
bridge : 798899409 (string)
off_command : (string)
on_command : (string)
Bond Home Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 269, in get_device_list
KeyError: (u'798899409',)
Bond Home Debug validateDeviceConfigUi, typeId = bondDevice, valuesDict = UiValuesDict : (dict)
SupportsStatusRequest : false (bool)
address : (string)
bond_type : (string)
bridge : (string)
off_command : (string)
on_command : (string)
Bond Home Office Fan through plugin: Stopping bondDevice Device 484200233
Bond Home Debug Office Fan through plugin: Skipping bondDevice device
Bond Home Office Fan through plugin: Starting bondDevice Device 484200233
Bond Home Error Error in plugin execution ServerReplacedElem:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/IndigoPluginHost.app/Contents/Resources/PlugIns/plugin_base.py", line 1179, in deviceUpdated
File "plugin.py", line 134, in deviceStartComm
KeyError: (u'',)
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 5:00 pm
by FlyingDiver
It's a menu command:
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 5:01 pm
by katiaf
Ok, if I do that I only get this:
- Code: Select all
Mar 29, 2021 at 6:57:56 PM
Bond Home
{}
Here is some more logs after restarting the plugin:
- Code: Select all
Mar 29, 2021 at 6:56:55 PM
Reloading plugin "Bond Home 0.1.2"
Stopping plugin "Bond Home 0.1.2" (pid 62292)
Bond Home Office Fan Bond: Stopping bondBridge Device 798899409
Bond Home Error exception in deviceStopComm(Office Fan Bond): 'key bondid not found in dict'
Bond Home Office Fan Change Direction: Stopping bondRelay Device 516262
Bond Home Error Office Fan Change Direction: deviceStopComm: Unknown device type: bondRelay
Bond Home Office Fan Light Brightness: Stopping bondRelay Device 1621741078
Bond Home Error Office Fan Light Brightness: deviceStopComm: Unknown device type: bondRelay
Bond Home Office Fan Light On/Off: Stopping bondRelay Device 273526006
Bond Home Error Office Fan Light On/Off: deviceStopComm: Unknown device type: bondRelay
Bond Home Office Fan On/Off: Stopping bondRelay Device 18599189
Bond Home Error Office Fan On/Off: deviceStopComm: Unknown device type: bondRelay
Bond Home Office Fan through plugin: Stopping bondDevice Device 484200233
Bond Home Debug Office Fan through plugin: Skipping bondDevice device
Bond Home Stopping BondHome
Stopped plugin "Bond Home 0.1.2"
Starting plugin "Bond Home 0.1.2" (pid 25732)
Bond Home Debug logLevel = 5
Started plugin "Bond Home 0.1.2"
Bond Home Starting BondHome
Bond Home Office Fan Bond: Starting bondBridge Device 798899409
Bond Home Debug BondHome __init__ address = 192.168.1.100, token = *********
Bond Home Debug get_bridge_version()
Bond Home Debug Office Fan Bond: BondHome version: {u'uptime_s': 17901, u'branding_profile': u'MINKA_F747L', u'target': u'breck-spitfire', u'make': u'Minka', u'fw_date': u'Thu Oct 22 18:39:59 UTC 2020', u'fw_ver': u'v2.15', u'api': 2, u'model': u'F747L', u'bondid': u'KSMWTCE82430', u'_': u'9664b0f7', u'upgrade_http': True}
Bond Home Debug get_bridge_info()
Bond Home Error exception in deviceStartComm(Office Fan Bond): 404 Client Error: Not Found for url: http://192.168.1.100/v2/bridge
Bond Home Office Fan Change Direction: Starting bondRelay Device 516262
Bond Home Error Office Fan Change Direction: deviceStartComm: Unknown device type: bondRelay
Bond Home Office Fan Light Brightness: Starting bondRelay Device 1621741078
Bond Home Error Office Fan Light Brightness: deviceStartComm: Unknown device type: bondRelay
Bond Home Office Fan Light On/Off: Starting bondRelay Device 273526006
Bond Home Error Office Fan Light On/Off: deviceStartComm: Unknown device type: bondRelay
Bond Home Office Fan On/Off: Starting bondRelay Device 18599189
Bond Home Error Office Fan On/Off: deviceStartComm: Unknown device type: bondRelay
Bond Home Office Fan through plugin: Starting bondDevice Device 484200233
Bond Home Error exception in deviceStartComm(Office Fan through plugin): u''
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 5:05 pm
by FlyingDiver
Please disable (uncheck the "Comm Enabled" column) for all the Bond devices except the bridge itself, then restart the plugin. Then enable ONE device. Post the complete log starting from the plugin restart. Thanks.
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 5:21 pm
by katiaf
- Code: Select all
Starting plugin "Bond Home 0.1.2" (pid 36521)
Bond Home Debug logLevel = 5
Started plugin "Bond Home 0.1.2"
Bond Home Starting BondHome
Bond Home Office Fan Bond: Starting bondBridge Device 798899409
Bond Home Debug BondHome __init__ address = 192.168.1.100, token = *********
Bond Home Debug get_bridge_version()
Bond Home Debug Office Fan Bond: BondHome version: {u'uptime_s': 19226, u'branding_profile': u'MINKA_F747L', u'target': u'breck-spitfire', u'make': u'Minka', u'fw_date': u'Thu Oct 22 18:39:59 UTC 2020', u'fw_ver': u'v2.15', u'api': 2, u'model': u'F747L', u'bondid': u'KSMWTCE82430', u'_': u'9664b0f7', u'upgrade_http': True}
Bond Home Debug get_bridge_info()
Bond Home Error exception in deviceStartComm(Office Fan Bond): 404 Client Error: Not Found for url: http://192.168.1.100/v2/bridge
Mar 29, 2021 at 7:19:42 PM
Bond Home Office Fan through plugin: Starting bondDevice Device 484200233
Bond Home Error Error in plugin execution ServerReplacedElem:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/IndigoPluginHost.app/Contents/Resources/PlugIns/plugin_base.py", line 1179, in deviceUpdated
File "plugin.py", line 134, in deviceStartComm
KeyError: (u'798899409',)
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 5:59 pm
by FlyingDiver
So you don't have a bridge device at all, just the fan with a built in Bond interface? And this worked with the older plugin?
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 6:15 pm
by katiaf
Yes. You can find my message from 12/18/2019 in this same thread:
I was able to add my Minka Aire fan with integrated BOND (by first adding the bridge, then the fan as a device). It works well and I can do what I did with the curl commands. Thanks!
It has been working fine for over a year.
Re: New Plugin - Bond Home
Posted:
Mon Mar 29, 2021 6:17 pm
by FlyingDiver
OK, I see what's going on. I'll have something for you to test tomorrow, I think. I'm going to split this to a separate thread, since it's specific to the "Smart by Bond" devices.
Re: "Smart by Bond" devices don't work with new plugin vers
Posted:
Mon Mar 29, 2021 6:26 pm
by FlyingDiver
All this because I added API calls to control the blue light on the bridge, which don't work with your device. Oops.
Re: "Smart by Bond" devices don't work with new plugin vers
Posted:
Mon Mar 29, 2021 10:02 pm
by katiaf
No problem, thanks for the help. I will revert again to the previous version temporarily.
Re: "Smart by Bond" devices don't work with new plugin vers
Posted:
Tue Mar 30, 2021 2:51 pm
by FlyingDiver
This issue is now being tracked on GitHub:
https://github.com/FlyingDiver/Indigo-BondHome/issues/5I've got two choices to fix this, I think. First is a simple fix to the bridge device, so it'll work as before, but it still will require two Indigo devices - one for the bridge, another for the fan. The other choice is to combine them both into the same Indigo device. The first is easier, but the second is probably better for the end user. Hmmm.
Re: "Smart by Bond" devices don't work with new plugin vers
Posted:
Tue Mar 30, 2021 5:44 pm
by katiaf
The setup is a one time thing, so I don't mind the easy way. However, if you'd like to go for the more challenging way that is fine too - my fan is running fine with the previous version so it can wait.
Thanks again
Re: "Smart by Bond" devices don't work with new plugin vers
Posted:
Tue Mar 30, 2021 6:02 pm
by FlyingDiver
Can you run the device info menu command using the old plugin and post the log?