SwitchOn and DimTo not working for RGBW lights

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
DomotRikz
Posts: 6
Joined: Sunday 26 July 2015 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

SwitchOn and DimTo not working for RGBW lights

Post by DomotRikz »

I get the following errors:

Error: dzVents: Error: Method switchOn is not available for device "Lamp achter" (deviceType=Lighting Limitless/Applamp, deviceSubType=RGBW). If you believe this is not correct, please report.
Error: dzVents: Error: Method dimTo is not available for device "Lamp achter" (deviceType=Lighting Limitless/Applamp, deviceSubType=RGBW). If you believe this is not correct, please report.

These methods were working in the previous dzVents versions...

Could anyone tell me a workaround in the mean time?
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: SwitchOn and DimTo not working for RGBW lights

Post by dannybloe »

Yes, I already have an adapter update ready for merge into Domoticz. In the meantime you can open the file path/to/domoticz/scripts/dzVents/runtime/device-adapters/hue_light_device.lua and change line 10 into:

Code: Select all

local res = (device.deviceType == 'Lighting 2' or device.deviceType == 'Lighting Limitless/Applamp')
That should do the trick.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest