setRGB does not work with Hue Iris
Posted: Friday 01 February 2019 15:30
I'm getting errors in my scripts when trying to control my Hue Iris.
I'm running the latest beta Domoticz V4.10364.
results in an error being logged (note the last line shows the error).
Switching the device on and off using the script and "dummy switch" does work.
I tried several different ways but couldn't get this work. Not sure, but I think this is a dzVents bug.
I'm running the latest beta Domoticz V4.10364.
Code: Select all
hueIris = domoticz.devices('Hue iris 1')
hueIris.setRGB(1, 1, 1)
Code: Select all
2019-02-01 15:27:23.607 Status: User: pi initiated a switch command (56/dummyswitch/On)
2019-02-01 15:27:23.757 Status: dzVents: Info: Handling events for: "dummyswitch", value: "On"
2019-02-01 15:27:23.758 Status: dzVents: Info: ------ Start internal script: test: Device: "dummyswitch (DummyHW)", Index: 56
2019-02-01 15:27:23.759 Status: dzVents: Debug: Processing device-adapter for Hue iris 1: RGB(W) device adapter
2019-02-01 15:27:23.759 Status: dzVents: Debug: Processing device-adapter for Hue iris 1: Switch device adapter
2019-02-01 15:27:23.760 Status: dzVents: Info: Switch dummyswitch is turned on
2019-02-01 15:27:23.760 Status: dzVents: Debug: OpenURL: url = http://127.0.0.1:8080/json.htm?param=setcolbrightnessvalue&type=command&idx=52&hue=300&brightness=0.3921568627451&iswhite=true
2019-02-01 15:27:23.760 Status: dzVents: Debug: OpenURL: method = GET
2019-02-01 15:27:23.760 Status: dzVents: Debug: OpenURL: post data = nil
2019-02-01 15:27:23.760 Status: dzVents: Debug: OpenURL: headers = nil
2019-02-01 15:27:23.760 Status: dzVents: Debug: OpenURL: callback = nil
2019-02-01 15:27:23.760 Status: dzVents: Info: HueIris state On
2019-02-01 15:27:23.760 Status: dzVents: Info: HueIris rgb {"b":255,"cw":0,"g":74,"m":3,"r":0,"t":0,"ww":0}
2019-02-01 15:27:23.760 Status: dzVents: Info: ------ Finished test
2019-02-01 15:27:23.761 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-02-01 15:27:23.790 Error: Error opening url: http://127.0.0.1:8080/json.htm?param=setcolbrightnessvalue&type=command&idx=52&hue=300&brightness=0.3921568627451&iswhite=true
I tried several different ways but couldn't get this work. Not sure, but I think this is a dzVents bug.