Hello, yesterday I try to use my switch from xiaomi in domoticz and I noticed following error:
2019-11-12 16:23:02.274 Error: (Conbee) 'onHeartbeat' failed 'UnboundLocalError'.
2019-11-12 16:23:02.274 Error: (Conbee) ----> Line 841 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py'
2019-11-12 16:23:02.274 Error: (Conbee) ----> Line 337 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py'
2019-11-12 16:23:02.274 Error: (Conbee) ----> Line 394 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py'
2019-11-12 16:23:02.274 Error: (Conbee) ----> Line 737 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py'
2019-11-12 16:23:02.274 Error: (Conbee) ----> Line 755 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py'
2019-11-12 16:23:02.274 Error: (Conbee) ----> Line 894 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py'
Somethink changed in plugin?
Deconz and xiaomi switch problem
Moderator: leecollings
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
Hello, IDK, I don't see something special at line 894, I don't think you have the same version than me.
But I have push the new version some days ago, if you have the plugin manager ?
Wich one version have you ?
But I have push the new version some days ago, if you have the plugin manager ?
Wich one version have you ?
-
- Posts: 451
- Joined: Friday 16 October 2015 7:58
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
At times, I have a similar error:
2020-05-20 10:42:16.436 Error: (deConz) 'onHeartbeat' failed 'UnboundLocalError'.
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 841 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 337 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 394 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 737 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 755 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 894 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
Where can I see which version of the plugin manager I am using?
Edit: In my case, it might have happened because I have two Trädfri light bulbs that can be switched by both Zigbee and two light switches. Perhaps yesterday someone used the switch again and one light bulb was not getting any power and thus was not found by the phoscon nor the plugin.
2020-05-20 10:42:16.436 Error: (deConz) 'onHeartbeat' failed 'UnboundLocalError'.
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 841 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 337 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 394 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 737 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 755 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
2020-05-20 10:42:16.436 Error: (deConz) ----> Line 894 in 'C:\Program Files\Domoticz\plugins\deCONZ\plugin.py'
Where can I see which version of the plugin manager I am using?
Edit: In my case, it might have happened because I have two Trädfri light bulbs that can be switched by both Zigbee and two light switches. Perhaps yesterday someone used the switch again and one light bulb was not getting any power and thus was not found by the phoscon nor the plugin.
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
Hello, the easy way is looking in the plugin.py file.
You can see it if you restart the plugin too, in log
But you can be sure you haven't the last version, line 894 is a comment ATM, so it can' be have an error here
If you switch off a device the error message will be
But this one is not blocking.
You can see it if you restart the plugin too, in log
But you can be sure you haven't the last version, line 894 is a comment ATM, so it can' be have an error here
If you switch off a device the error message will be
Code: Select all
(deCONZ) deCONZ error :{'error': {'description': 'resource, /lights/4, not available', 'type': 3, 'address': '/lights/4'}}
-
- Posts: 451
- Joined: Friday 16 October 2015 7:58
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
Thanks for the quick feedback! So, nothing to worry here. I will look into updating the version to the most recent version. Any tips and tricks on how to do that on Windows?
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
Yep, not sure you have github instaled on windows, so just go on https://github.com/Smanar/Domoticz-deCONZ
You have a big green button to download, just extract the files (not the folder) in your plugin folder to overwrite old file.
Just copy files and not folder, because you will probalby don't use this name.
Then restart the plugin, Hardware/deconz/update.
You have a big green button to download, just extract the files (not the folder) in your plugin folder to overwrite old file.
Just copy files and not folder, because you will probalby don't use this name.
Then restart the plugin, Hardware/deconz/update.
-
- Posts: 451
- Joined: Friday 16 October 2015 7:58
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
No need to do anything with the API_KEY? Just copy-paste all the files in the zip file? Because, currently everything is working. Perhaps, I should not change something that is working fine.
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
Yep, only copy/paste files.
The configuration (like api_key) is stored in domoticz database.
And when you reload the plugin, the plugin will resynchronise all the devices.
There is no danger.
Some devices are updated sometime in new plugin version, so you can have "difference" in your script, for exemple button value on switch can change, but nothing blocking.
The configuration (like api_key) is stored in domoticz database.
And when you reload the plugin, the plugin will resynchronise all the devices.
There is no danger.
Some devices are updated sometime in new plugin version, so you can have "difference" in your script, for exemple button value on switch can change, but nothing blocking.
-
- Posts: 451
- Joined: Friday 16 October 2015 7:58
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Deconz and xiaomi switch problem
Done. Everything seems ok. Thanks for the support
Who is online
Users browsing this forum: No registered users and 1 guest