Open ivomans opened 2 years ago
Ivo,
Can you perform this command for each of your bulbs'
echo '{"method":"getPilot"}' | nc -u -w 1
And eens me the results ?
The,
Syds
Hi Syds,
I got underneath results. Involves 2x RGB light, 3x dimmable white light, 1x smart plug. Not sure which IP is what reply.
{"method":"getPilot","env":"pro","result":{"mac":"a8bb50a47682","rssi":-76,"state":true,"sceneId":11,"temp":0,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb509b4ee4","rssi":-78,"state":true,"sceneId":0}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb50a4c995","rssi":-61,"state":true,"sceneId":11,"temp":2700,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb50a369e3","rssi":-65,"state":true,"sceneId":11,"temp":0,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb507fe8c8","rssi":-42,"state":true,"sceneId":0,"r":0,"g":255,"b":88,"c":0,"w":64,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb507fa86e","rssi":-75,"state":true,"sceneId":0,"r":0,"g":255,"b":88,"c":0,"w":64,"dimming":100}}
Regars, Ivo.
With following modification the error messages are gone:
diff --git a/plugin.py b/plugin.py
index 80c85e0..2bc8785 100644
--- a/plugin.py
+++ b/plugin.py
@@ -263,7 +263,10 @@ class BasePlugin:
wizstate = 1
else:
wizstate = 0
- wizlevel=str(received["result"]["dimming"])
+ if "dimming" in received["result"]:
+ wizlevel = str(received["result"]["dimming"])
+ else:
+ wizlevel = "0"
if Devices[Device].Color != "":
c=json.loads(Devices[Device].Color)
Hi, I have the same error every minute in the log: Carport: handleThread: 'dimming' line 266
After the modification in the plugin.py ivomans suggested, the plugin will not load and is not working anymore.
echo '{"method":"getPilot"}' | nc -u -w 1
Ivo,
A while ago i made a new version of the plugin with RGB support. However i don't have a Wizconnected RGB device at home, so i couldn.t test it and asked another guy to test it, but never got an answer. Can you test the new version ?
Thx in advance,
Syds
Op ma 13 dec. 2021 om 18:05 schreef Ivo Mans @.***>:
Hi Syds,
I got underneath results. Involves 2x RGB light, 2x dimmable white light, 2x smart plug. Not sure which IP is what reply.
{"method":"getPilot","env":"pro","result":{"mac":"a8bb50a47682","rssi":-76,"state":true,"sceneId":11,"temp":0,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb509b4ee4","rssi":-78,"state":true,"sceneId":0}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb50a4c995","rssi":-61,"state":true,"sceneId":11,"temp":2700,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb50a369e3","rssi":-65,"state":true,"sceneId":11,"temp":0,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb507fe8c8","rssi":-42,"state":true,"sceneId":0,"r":0,"g":255,"b":88,"c":0,"w":64,"dimming":100}}
{"method":"getPilot","env":"pro","result":{"mac":"a8bb507fa86e","rssi":-75,"state":true,"sceneId":0,"r":0,"g":255,"b":88,"c":0,"w":64,"dimming":100}}
Regars, Ivo.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sydspost/Domoticz-WiZ-connected-plugin/issues/15#issuecomment-992683731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK6Q3QKO6PEOKDBQELATPVDUQYRT7ANCNFSM5J4VC4PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Syds Post
Telefoon 0518-471909 @.***
http://nl.linkedin.com/in/sydspost/nl Wettertun 28 9041 VN Berlikum
Syds, I had some issues with your version. Therefore I've changed to the fork from faust93 a view months ago. Everything running smooth since then, including the RGB. Regards, Ivo.
First of all: thanks for sharing this plugin. I just started using this plugin and it's great to be able to control my Wiz-devices direct from Domoticz.
I noticed in the log every minute following error line, although everything seems to work:
Error: Wiz: (Wiz) handleThread: 'dimming' line 266