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"