Method setColor is not available for device: Identical IKEA bulbs behave differently in dzVents

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

Moderator: leecollings

Post Reply
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Method setColor is not available for device: Identical IKEA bulbs behave differently in dzVents

Post by Nautilus »

I have a strange issue. I have two dimmable IKEA bulbs (led1836g9), the other one work perfectly with setColor in dzVents. But exactly the same command for the other bulb gives:

Code: Select all

Error: dzVents: Error: (3.1.8) Method setColor is not available for device "Saunan valo" (deviceType=Light/Switch, deviceSubType=Switch). If you believe this is not correct, please report
I've tried things like creating the bulb again in Domoticz, comparing their device parameters (identical), but cannot figure out any reason for this behavior.
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Method setColor is not available for device: Identical IKEA bulbs behave differently in dzVents

Post by waltervl »

Can you post the outcome of below API command for both devices? Change the Domo-IP, PORT and IDX with the correct values of your Domoticz environment/device.

Code: Select all

http://Domo-IP:PORT/json.htm?type=devices&rid=IDX
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Method setColor is not available for device: Identical IKEA bulbs behave differently in dzVents

Post by waltervl »

Additional: dzVents cannot handle devices with exactly the same name. It gets confused. So please be sure you have all unique device names!
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Method setColor is not available for device: Identical IKEA bulbs behave differently in dzVents

Post by Nautilus »

Hmm, sorry I have missed these replies. I ended up using dimTo which works for both lights (after all, they do not have color temperature or RGB). Just in case it offers help for anyone is future struggling with similar, here are the device parameters:

non-working:

Code: Select all

{
	"ActTime" : 1666793588,
	"AstrTwilightEnd" : "20:06",
	"AstrTwilightStart" : "06:08",
	"CivTwilightEnd" : "18:24",
	"CivTwilightStart" : "07:49",
	"DayLength" : "09:04",
	"NautTwilightEnd" : "19:15",
	"NautTwilightStart" : "06:58",
	"ServerTime" : "2022-10-26 17:13:08",
	"SunAtSouth" : "13:07",
	"Sunrise" : "08:35",
	"Sunset" : "17:38",
	"app_version" : "2022.1 (build 14498)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"CustomImage" : 0,
			"Data" : "Off",
			"Description" : "",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 7,
			"HardwareName" : "Zigbee2MQTT",
			"HardwareType" : "Zigbee2MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : true,
			"HaveTimeout" : false,
			"ID" : "0x842e14fffe065fe1_light",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2022-10-26 10:31:49",
			"Level" : 100,
			"LevelInt" : 100,
			"MaxDimLevel" : 100,
			"Name" : "Saunan valo",
			"Notifications" : "false",
			"PlanID" : "2",
			"PlanIDs" : 
			[
				2
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : 4,
			"Status" : "Off",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "Switch",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Light/Switch",
			"TypeImg" : "dimmer",
			"Unit" : 102,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "172"
		}
	],
	"status" : "OK",
	"title" : "Devices"
working:

Code: Select all

{
	"ActTime" : 1666793825,
	"AstrTwilightEnd" : "20:06",
	"AstrTwilightStart" : "06:08",
	"CivTwilightEnd" : "18:24",
	"CivTwilightStart" : "07:49",
	"DayLength" : "09:04",
	"NautTwilightEnd" : "19:15",
	"NautTwilightStart" : "06:58",
	"ServerTime" : "2022-10-26 17:17:05",
	"SunAtSouth" : "13:07",
	"Sunrise" : "08:35",
	"Sunset" : "17:38",
	"app_version" : "2022.1 (build 14498)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"CustomImage" : 0,
			"Data" : "Off",
			"Description" : "",
			"DimmerType" : "abs",
			"Favorite" : 1,
			"HardwareDisabled" : false,
			"HardwareID" : 7,
			"HardwareName" : "Zigbee2MQTT",
			"HardwareType" : "Zigbee2MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : true,
			"HaveTimeout" : false,
			"ID" : "0x842e14fffe57d342_light",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2022-10-26 10:28:47",
			"Level" : 100,
			"LevelInt" : 100,
			"MaxDimLevel" : 100,
			"Name" : "Saunam\u00f6kin eteisen valo",
			"Notifications" : "false",
			"PlanID" : "11",
			"PlanIDs" : 
			[
				11,
				2
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : 4,
			"Status" : "Off",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "Switch",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Light/Switch",
			"TypeImg" : "dimmer",
			"Unit" : 15,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "28",
			"YOffset" : "903",
			"idx" : "38"
		}
	],
	"status" : "OK",
	"title" : "Devices"
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Method setColor is not available for device: Identical IKEA bulbs behave differently in dzVents

Post by waltervl »

Indeed, the only worrying difference is the use of a backslash in the name of the second device "Name" : "Saunam\u00f6kin eteisen valo" which perhaps triggers an unexpected parsing issue in dzVents
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Method setColor is not available for device: Identical IKEA bulbs behave differently in dzVents

Post by Nautilus »

waltervl wrote: Wednesday 26 October 2022 17:16 Indeed, the only worrying difference is the use of a backslash in the name of the second device "Name" : "Saunam\u00f6kin eteisen valo" which perhaps triggers an unexpected parsing issue in dzVents
Yeah, but that is the one that was working :) The name is actually "Saunamökin eteisen valo" but letter ö is encoded like that. The one which does not work, "Saunan valo", does not have this sort of special character.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest