Read colour temperature value/kelvin - [RGB]WW lamp

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

Moderator: leecollings

Post Reply
jefft
Posts: 75
Joined: Monday 23 January 2017 23:30
Target OS: Linux
Domoticz version: 2023.1
Location: UK
Contact:

Read colour temperature value/kelvin - [RGB]WW lamp

Post by jefft »

Hi All,

Does anyone know of a way - in dzVents - to read the kelvin or colour temperature value of a WW lamp?

I can set it via setColor (mode=2) if the lamp is defined as RGBWW, or via setKelvin if it's just WW, but when I try to use 'getColor' on these lamps, I get a nil object and this in the log: [Error: dzVents: Error: (3.1.3) Color field not set for this device]. The Zigbee2mqtt plugin has created one model of bulb as RGBWW and another as WW, but in reality they're all just tunable white / WW. I'm trying to make three lamps follow one lamp's colour and brightness.

There doesn't seem to be a 'getKelvin', so I had expected 'getColor' to return a valid result, with just the 't' and 'bri' attributes populated, but instead it gives that error. I'd prefer not to resort to calling the HTTP API from within an event, parsing JSON, etc, but I suspect this might be heading in that direction...

Any clues appreciated!

Thanks :-)
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Read colour temperature value/kelvin - [RGB]WW lamp

Post by waaren »

jefft wrote: Wednesday 24 February 2021 15:18 Does anyone know of a way - in dzVents - to read the kelvin or colour temperature value of a WW lamp?
...
Any clues appreciated!
@jefft,

can you please post the result of the following line for both bulbs? (you can temporarily insert the line in any existing script)
It might help me to identify options or work arounds.

Code: Select all

domoticz.log(domoticz.devices('name of bulb'),domoticz.LOG_FORCE)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jefft
Posts: 75
Joined: Monday 23 January 2017 23:30
Target OS: Linux
Domoticz version: 2023.1
Location: UK
Contact:

Re: Read colour temperature value/kelvin - [RGB]WW lamp

Post by jefft »

Sure, thanks... Here you go. Two dumps in this log; the first ('north') is the one that manifests as RGBWW although it's only WW really and the second ('feature') is the one that domoticz sees as just WW. North was set to 200 'kelvin' before the dump, feature to 123 'kelvin'.

Both lamps are brought into domoticz by the domoticz-zigbee2mqtt plugin; I will have a look at Z2M's device definitions and the plugin for these two types of bulb to see whether I need to submit any changes into those projects, as both are tunable white bulbs, so ought to look the same in domoticz.

Strangely, I can see a color table in the data for the WW one but not the RGBWW one! The 't' value in the WW one is nonsense, though.

North @ kelvin 200:

Code: Select all

2021-02-24 16:52:43.682 Status: dzVents: !Info: {["isGroup"]=false, ["rename"]=function, ["setColor"]=function, ["setHue"]=function, ["updateYouless"]=function, ["updateWind"]=function, ["quietOn"]=function, ["bState"]=true, ["updateP1"]=function, ["armAway"]=function, ["_adapters"]={"RGB(W) device adapter", "Switch device adapter"}, ["lastLevel"]=85, ["updateWeight"]=function, ["setDiscoMode"]=function, ["getColor"]=function, ["changed"]=false, ["setLevel"]=function, ["kodiExecuteAddOn"]=function, ["customImage"]=0, ["activate"]=function, ["updateTempHumBaro"]=function, ["deviceSubType"]="RGBWW", ["dump"]=function, ["updateCounter"]=function, ["color"]="", ["isSecurity"]=false, ["_data"]={["lastUpdate"]="2021-02-24 16:52:16", ["name"]="Lounge north lamp", ["subType"]="RGBWW", ["iconNumber"]=95, ["description"]="Innr WW bulb 6c69 // Controlicz: lounge north lamp", ["batteryLevel"]=255, ["rawData"]={"85"}, ["data"]={["maxDimLevel"]=100, ["color"]="", ["hardwareName"]="Zigbee2MQTT", ["hardwareID"]=43, ["unit"]=2, ["hardwareType"]="Zigbee2MQTT", ["usedByCamera"]=false, ["levelVal"]=85, ["hardwareTypeValue"]=94, ["customImage"]=0, ["_state"]="On", ["Image"]="Light", ["protected"]=false, ["_nValue"]=1, ["icon"]="dimmer"}, ["baseType"]="device", ["deviceType"]="Color Switch", ["signalLevel"]=3, ["id"]=2268, ["deviceID"]="0x00158d0005076c69_light", ["switchTypeValue"]=7, ["switchType"]="Dimmer", ["changed"]=false, ["image"]="", ["protected"]=false, ["timedOut"]=false, ["lastLevel"]=85}, ["decreaseBrightness"]=function, ["setIcon"]=function, ["icon"]="dimmer", ["kodiPlayFavorites"]=function, ["level"]=85, ["close"]=function, ["updateSetPoint"]=function, ["deviceId"]="0x00158d0005076c69_light", ["disarm"]=function, ["updateMode"]=function, ["updateElectricity"]=function, ["kodiPlay"]=function, ["quietOff"]=function, ["dimTo"]=function, ["updateSoundLevel"]=function, ["usedByCamera"]=false, ["updateBarometer"]=function, ["state"]="On", ["nValue"]=1, ["sValue"]="On", ["lastUpdate"]={["secondsSinceMidnight"]=60736, ["minutes"]=52, ["ruleIsAtSunset"]=function, ["time"]="16:52", ["ruleMatchesTimeRange"]=function, ["month"]=2, ["wday"]=4, ["yday"]=55, ["secondsAgo"]=27, ["ruleIsInWeek"]=function, ["ruleIsOnDate"]=function, ["addMinutes"]=function, ["daysAgo"]=0, ["makeTime"]=function, ["year"]=2021, ["ruleIsAtCivilTwilightEnd"]=function, ["current"]={["isdst"]=false, ["month"]=2, ["min"]=52, ["hour"]=16, ["yday"]=55, ["sec"]=43, ["wday"]=4, ["day"]=24, ["year"]=2021}, ["ruleIsAtCivilDayTime"]=function, ["addSeconds"]=function, ["isToday"]=true, ["compare"]=function, ["week"]=8, ["dayAbbrOfWeek"]="wed", ["minutesSinceMidnight"]=1012, ["ruleIsAtSolarnoon"]=function, ["rawDate"]="2021-02-24", ["dateToDate"]=function, ["ruleIsAfterCivilTwilightEnd"]=function, ["toUTC"]=function, ["ruleIsAtSunrise"]=function, ["matchesRule"]=function, ["milliseconds"]=0, ["day"]=24, ["dateToTimestamp"]=function, ["isUTC"]=false, ["ruleMatchesBetweenRange"]=function, ["ruleMatchesTime"]=function, ["ruleIsAtCivilTwilightStart"]=function, ["ruleIsAfterCivilTwilightStart"]=function, ["ruleMatchesMinuteSpecification"]=function, ["ruleIsAtDayTime"]=function, ["ruleIsAtNight"]=function, ["ruleMatchesHourSpecification"]=function, ["localeMonths"]=function, ["utils"]={["groupExists"]=function, ["LOG_FORCE"]=0.5, ["inTable"]=function, ["osExecute"]=function, ["urlDecode"]=function, ["deviceExists"]=function, ["dumpTable"]=function, ["LOG_INFO"]=3, ["LOG_WARNING"]=3, ["stringSplit"]=function, ["hasLines"]=function, ["fuzzyLookup"]=function, ["fromJSON"]=function, ["LOG_DEBUG"]=4, ["hsbToRGB"]=function, ["stringToSeconds"]=function, ["leftPad"]=function, ["fileExists"]=function, ["osCommand"]=function, ["round"]=function, ["toJSON"]=function, ["urlEncode"]=function, ["LOG_ERROR"]=1, ["variableExists"]=function, ["fromBase64"]=function, ["toCelsius"]=function, ["centerPad"]=function, ["hardwareExists"]=function, ["leadingZeros"]=function, ["sceneExists"]=function, ["rgbToHSB"]=function, ["isJSON"]=function, ["DZVERSION"]="3.1.3", ["log"]=function, ["cameraExists"]=function, ["toXML"]=function, ["print"]=function, ["fromXML"]=function, ["isXML"]=function, ["toStr"]=function, ["setLogMarker"]=function, ["fromLines"]=function, ["humidityStatus"]=function, ["numDecimals"]=function, ["LOG_MODULE_EXEC_INFO"]=2, ["dumpSelection"]=function, ["rightPad"]=function, ["toBase64"]=function}, ["isdst"]=false, ["ruleIsBeforeSolarnoon"]=function, ["rawTime"]="16:52:16", ["addHours"]=function, ["millisecondsAgo"]=27606, ["rawDateTime"]="2021-02-24 16:52:16", ["sec"]=16, ["ruleIsBeforeCivilTwilightEnd"]=function, ["ruleIsAfterSunrise"]=function, ["ruleIsBeforeSunset"]=function, ["seconds"]=16, ["monthName"]="February", ["ruleIsAtCivilNightTime"]=function, ["ruleIsBeforeCivilTwilightStart"]=function, ["timestampToDate"]=function, ["raw"]="2021-02-24 16:52:16", ["min"]=52, ["msAgo"]=27606, ["getISO"]=function, ["milliSeconds"]=0, ["hour"]=16, ["dayName"]="WednesDay", ["hoursAgo"]=0, ["ruleIsAfterSolarnoon"]=function, ["ruleIsAfterSunset"]=function, ["ruleIsBeforeSunrise"]=function, ["addDays"]=function, ["ruleIsOnDay"]=function, ["monthAbbrName"]="feb", ["dDate"]=1614185536, ["minutesAgo"]=0}, ["signalLevel"]=3, ["update"]=function, ["updateHumidity"]=function, ["setColorBrightness"]=function, ["isHTTPResponse"]=false, ["description"]="Innr WW bulb 6c69 // Controlicz: lounge north lamp", ["setWhiteMode"]=function, ["pause"]=function, ["kodiStop"]=function, ["updateHistory"]=function, ["updateWaterflow"]=function, ["switchType"]="Dimmer", ["setVolume"]=function, ["updateAirQuality"]=function, ["isHardware"]=false, ["setValues"]=function, ["protectionOff"]=function, ["name"]="Lounge north lamp", ["armHome"]=function, ["updateWetness"]=function, ["updateVisibility"]=function, ["updateCustomSensor"]=function, ["increaseBrightness"]=function, ["volumeDown"]=function, ["updateRadiation"]=function, ["_nValue"]=1, ["id"]=2268, ["unit"]=2, ["updatePercentage"]=function, ["setHotWater"]=function, ["updateLux"]=
2021-02-24 16:52:43.682 Status: dzVents: !Info: function, ["toggleSwitch"]=function, ["hardwareID"]=43, ["hardwareName"]="Zigbee2MQTT", ["startPlaylist"]=function, ["deviceType"]="Color Switch", ["cancelQueuedCommands"]=function, ["play"]=function, ["kodiPause"]=function, ["updateVoltage"]=function, ["playFavorites"]=function, ["protectionOn"]=function, ["_state"]="On", ["setMode"]=function, ["switchSelector"]=function, ["rawData"]={"85"}, ["open"]=function, ["isScene"]=false, ["maxDimLevel"]=100, ["inActive"]=false, ["switchOn"]=function, ["hardwareType"]="Zigbee2MQTT", ["idx"]=2268, ["setNightMode"]=function, ["setHex"]=function, ["updateGas"]=function, ["setState"]=function, ["Image"]="Light", ["protected"]=false, ["updatePressure"]=function, ["updateUV"]=function, ["hardwareId"]=43, ["updateDistance"]=function, ["isTimer"]=false, ["hardwareTypeValue"]=94, ["incrementCounter"]=function, ["updateText"]=function, ["updateTempBaro"]=function, ["isDevice"]=true, ["updateRain"]=function, ["updateAlertSensor"]=function, ["updateTemperature"]=function, ["updateTempHum"]=function, ["updateSoilMoisture"]=function, ["switchOff"]=function, ["reset"]=function, ["updateQuiet"]=function, ["active"]=true, ["setRGB"]=function, ["levelVal"]=85, ["setKelvin"]=function, ["baseType"]="device", ["volumeUp"]=function, ["onkyoEISCPCommand"]=function, ["setDescription"]=function, ["stop"]=function, ["switchTypeValue"]=7, ["isVariable"]=false, ["kodiPlayPlaylist"]=function, ["kodiSwitchOff"]=function, ["dumpSelection"]=function, ["kodiSetVolume"]=function, ["timedOut"]=false}
Feature @ kelvin 123:

Code: Select all

2021-02-24 16:49:50.698 Status: dzVents: !Info: {["isSecurity"]=false, ["setMode"]=function, ["updateTemperature"]=function, ["switchTypeValue"]=7, ["updateDistance"]=function, ["armHome"]=function, ["_nValue"]=1, ["toggleSwitch"]=function, ["play"]=function, ["updateLux"]=function, ["isGroup"]=false, ["timedOut"]=false, ["updateTempBaro"]=function, ["setHotWater"]=function, ["open"]=function, ["update"]=function, ["increaseBrightness"]=function, ["switchOn"]=function, ["hardwareTypeValue"]=94, ["setLevel"]=function, ["setDescription"]=function, ["updateUV"]=function, ["armAway"]=function, ["switchOff"]=function, ["setHue"]=function, ["updateCounter"]=function, ["updateHumidity"]=function, ["customImage"]=0, ["id"]=3585, ["setState"]=function, ["onkyoEISCPCommand"]=function, ["updateAirQuality"]=function, ["updatePressure"]=function, ["updateGas"]=function, ["setVolume"]=function, ["updateAlertSensor"]=function, ["updateBarometer"]=function, ["kodiPlay"]=function, ["isScene"]=false, ["updateQuiet"]=function, ["signalLevel"]=4, ["kodiPlayFavorites"]=function, ["updateWeight"]=function, ["stop"]=function, ["updateRain"]=function, ["deviceSubType"]="WW", ["state"]="On", ["rawData"]={"60"}, ["nValue"]=1, ["volumeDown"]=function, ["startPlaylist"]=function, ["updateMode"]=function, ["switchType"]="Dimmer", ["quietOn"]=function, ["protected"]=false, ["setRGB"]=function, ["kodiPause"]=function, ["volumeUp"]=function, ["changed"]=false, ["bState"]=true, ["_data"]={["name"]="Lounge feature lamp", ["deviceID"]="0x804b50fffe3f3c40_light", ["image"]="", ["switchTypeValue"]=7, ["signalLevel"]=4, ["subType"]="WW", ["switchType"]="Dimmer", ["data"]={["customImage"]=0, ["_nValue"]=1, ["protected"]=false, ["hardwareType"]="Zigbee2MQTT", ["usedByCamera"]=false, ["levelVal"]=60, ["Image"]="Light", ["unit"]=11, ["hardwareTypeValue"]=94, ["hardwareName"]="Zigbee2MQTT", ["_state"]="On", ["hardwareID"]=43, ["color"]="{"b":0,"cw":0,"g":0,"m":2,"r":0,"t":255,"ww":0}", ["icon"]="dimmer", ["maxDimLevel"]=100}, ["id"]=3585, ["protected"]=false, ["lastUpdate"]="2021-02-24 16:49:38", ["lastLevel"]=60, ["description"]="(Zigbee 3c40) --- Controlicz: Lounge feature lamp", ["deviceType"]="Color Switch", ["changed"]=false, ["batteryLevel"]=255, ["baseType"]="device", ["timedOut"]=false, ["iconNumber"]=95, ["rawData"]={"60"}}, ["rename"]=function, ["activate"]=function, ["active"]=true, ["kodiPlayPlaylist"]=function, ["updateHistory"]=function, ["setIcon"]=function, ["updateWetness"]=function, ["idx"]=3585, ["lastLevel"]=60, ["setWhiteMode"]=function, ["switchSelector"]=function, ["incrementCounter"]=function, ["hardwareID"]=43, ["dimTo"]=function, ["kodiExecuteAddOn"]=function, ["disarm"]=function, ["level"]=60, ["maxDimLevel"]=100, ["_adapters"]={"RGB(W) device adapter", "Switch device adapter"}, ["updateYouless"]=function, ["playFavorites"]=function, ["updateWind"]=function, ["name"]="Lounge feature lamp", ["setDiscoMode"]=function, ["protectionOff"]=function, ["updateSetPoint"]=function, ["updateWaterflow"]=function, ["decreaseBrightness"]=function, ["kodiSwitchOff"]=function, ["isTimer"]=false, ["setNightMode"]=function, ["updateVoltage"]=function, ["updateVisibility"]=function, ["_state"]="On", ["updateText"]=function, ["updateTempHum"]=function, ["isDevice"]=true, ["dumpSelection"]=function, ["kodiStop"]=function, ["description"]="(Zigbee 3c40) --- Controlicz: Lounge feature lamp", ["deviceType"]="Color Switch", ["updateTempHumBaro"]=function, ["levelVal"]=60, ["pause"]=function, ["baseType"]="device", ["color"]="{"b":0,"cw":0,"g":0,"m":2,"r":0,"t":255,"ww":0}", ["dump"]=function, ["protectionOn"]=function, ["updateSoundLevel"]=function, ["updateRadiation"]=function, ["updateSoilMoisture"]=function, ["usedByCamera"]=false, ["hardwareId"]=43, ["quietOff"]=function, ["getColor"]=function, ["Image"]="Light", ["close"]=function, ["setColorBrightness"]=function, ["isHardware"]=false, ["deviceId"]="0x804b50fffe3f3c40_light", ["isHTTPResponse"]=false, ["hardwareType"]="Zigbee2MQTT", ["setHex"]=function, ["lastUpdate"]={["rawDateTime"]="2021-02-24 16:49:38", ["daysAgo"]=0, ["utils"]={["hardwareExists"]=function, ["fromJSON"]=function, ["LOG_FORCE"]=0.5, ["toCelsius"]=function, ["groupExists"]=function, ["osCommand"]=function, ["toStr"]=function, ["urlEncode"]=function, ["LOG_ERROR"]=1, ["centerPad"]=function, ["fromXML"]=function, ["dumpSelection"]=function, ["deviceExists"]=function, ["inTable"]=function, ["LOG_INFO"]=3, ["numDecimals"]=function, ["LOG_MODULE_EXEC_INFO"]=2, ["leftPad"]=function, ["dumpTable"]=function, ["leadingZeros"]=function, ["cameraExists"]=function, ["humidityStatus"]=function, ["DZVERSION"]="3.1.3", ["variableExists"]=function, ["log"]=function, ["stringSplit"]=function, ["rgbToHSB"]=function, ["LOG_DEBUG"]=4, ["stringToSeconds"]=function, ["toJSON"]=function, ["toXML"]=function, ["print"]=function, ["osExecute"]=function, ["hsbToRGB"]=function, ["isXML"]=function, ["setLogMarker"]=function, ["fileExists"]=function, ["rightPad"]=function, ["fromLines"]=function, ["hasLines"]=function, ["fromBase64"]=function, ["toBase64"]=function, ["urlDecode"]=function, ["isJSON"]=function, ["sceneExists"]=function, ["fuzzyLookup"]=function, ["LOG_WARNING"]=3, ["round"]=function}, ["ruleIsAfterSunrise"]=function, ["ruleMatchesMinuteSpecification"]=function, ["rawTime"]="16:49:38", ["addHours"]=function, ["yday"]=55, ["ruleIsBeforeCivilTwilightStart"]=function, ["month"]=2, ["ruleIsAtSolarnoon"]=function, ["wday"]=4, ["makeTime"]=function, ["ruleIsAtDayTime"]=function, ["timestampToDate"]=function, ["minutesSinceMidnight"]=1009, ["monthAbbrName"]="feb", ["addSeconds"]=function, ["addDays"]=function, ["day"]=24, ["minutes"]=49, ["seconds"]=38, ["raw"]="2021-02-24 16:49:38", ["rawDate"]="2021-02-24", ["ruleIsBeforeCivilTwilightEnd"]=function, ["dayAbbrOfWeek"]="wed", ["ruleIsAfterCivilTwilightStart"]=function, ["ruleMatchesHourSpecification"]=function, ["year"]=2021, ["ruleIsAfterSunset"]=function, ["msAgo"]=12622, ["ruleIsAtCivilTwilightEnd"]=function, ["addMin
2021-02-24 16:49:50.698 Status: dzVents: !Info: utes"]=function, ["ruleMatchesBetweenRange"]=function, ["dateToDate"]=function, ["dayName"]="WednesDay", ["ruleMatchesTimeRange"]=function, ["minutesAgo"]=0, ["week"]=8, ["ruleIsOnDate"]=function, ["dateToTimestamp"]=function, ["ruleIsAtNight"]=function, ["isToday"]=true, ["hour"]=16, ["ruleIsBeforeSunset"]=function, ["isdst"]=false, ["secondsAgo"]=12, ["getISO"]=function, ["ruleMatchesTime"]=function, ["ruleIsAtCivilDayTime"]=function, ["ruleIsInWeek"]=function, ["ruleIsAtCivilNightTime"]=function, ["ruleIsAfterSolarnoon"]=function, ["ruleIsBeforeSolarnoon"]=function, ["matchesRule"]=function, ["ruleIsAtSunset"]=function, ["ruleIsBeforeSunrise"]=function, ["ruleIsAtSunrise"]=function, ["ruleIsAfterCivilTwilightEnd"]=function, ["toUTC"]=function, ["milliSeconds"]=0, ["secondsSinceMidnight"]=60578, ["localeMonths"]=function, ["ruleIsAtCivilTwilightStart"]=function, ["sec"]=38, ["compare"]=function, ["milliseconds"]=0, ["current"]={["day"]=24, ["yday"]=55, ["min"]=49, ["sec"]=50, ["year"]=2021, ["wday"]=4, ["isdst"]=false, ["month"]=2, ["hour"]=16}, ["millisecondsAgo"]=12622, ["dDate"]=1614185378, ["time"]="16:49", ["hoursAgo"]=0, ["min"]=49, ["ruleIsOnDay"]=function, ["monthName"]="February", ["isUTC"]=false}, ["kodiSetVolume"]=function, ["setKelvin"]=function, ["setColor"]=function, ["inActive"]=false, ["icon"]="dimmer", ["updatePercentage"]=function, ["setValues"]=function, ["updateElectricity"]=function, ["updateP1"]=function, ["isVariable"]=false, ["hardwareName"]="Zigbee2MQTT", ["cancelQueuedCommands"]=function, ["sValue"]="On", ["unit"]=11, ["updateCustomSensor"]=function, ["reset"]=function}
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Read colour temperature value/kelvin - [RGB]WW lamp

Post by waaren »

jefft wrote: Wednesday 24 February 2021 17:54 Sure, thanks... Here you go.
Thx. Sorry to see not much useful in these logs.

Can you show what yo see with below line in your browser address bar?

http://<domoticz IP:domoticz port>/json.htm?type=devices&rid=<IDX>
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jefft
Posts: 75
Joined: Monday 23 January 2017 23:30
Target OS: Linux
Domoticz version: 2023.1
Location: UK
Contact:

Re: Read colour temperature value/kelvin - [RGB]WW lamp

Post by jefft »

North / 2268:

Code: Select all

{
	"ActTime" : 1614195293,
	"AstrTwilightEnd" : "19:22",
	"AstrTwilightStart" : "05:04",
	"CivTwilightEnd" : "18:05",
	"CivTwilightStart" : "06:21",
	"DayLength" : "10:36",
	"NautTwilightEnd" : "18:44",
	"NautTwilightStart" : "05:42",
	"ServerTime" : "2021-02-24 19:34:53",
	"SunAtSouth" : "12:13",
	"Sunrise" : "06:55",
	"Sunset" : "17:31",
	"app_version" : "2020.2 (build 12881)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "",
			"CustomImage" : 0,
			"Data" : "On",
			"Description" : "Innr WW bulb 6c69  // Controlicz: lounge north lamp",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 43,
			"HardwareName" : "Zigbee2MQTT",
			"HardwareType" : "Zigbee2MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "0x00158d0005076c69_light",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2021-02-24 17:01:01",
			"Level" : 86,
			"LevelInt" : 86,
			"MaxDimLevel" : 100,
			"Name" : "Lounge north lamp",
			"Notifications" : "false",
			"PlanID" : "5",
			"PlanIDs" : 
			[
				5
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : 3,
			"Status" : "On",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "RGBWW",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Color Switch",
			"TypeImg" : "dimmer",
			"Unit" : 2,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "2268"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
Feature / 3585:

Code: Select all

{
	"ActTime" : 1614195355,
	"AstrTwilightEnd" : "19:22",
	"AstrTwilightStart" : "05:04",
	"CivTwilightEnd" : "18:05",
	"CivTwilightStart" : "06:21",
	"DayLength" : "10:36",
	"NautTwilightEnd" : "18:44",
	"NautTwilightStart" : "05:42",
	"ServerTime" : "2021-02-24 19:35:55",
	"SunAtSouth" : "12:13",
	"Sunrise" : "06:55",
	"Sunset" : "17:31",
	"app_version" : "2020.2 (build 12881)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "{\"b\":0,\"cw\":0,\"g\":0,\"m\":2,\"r\":0,\"t\":255,\"ww\":0}",
			"CustomImage" : 0,
			"Data" : "Off",
			"Description" : "(Zigbee 3c40)  --- Controlicz: Lounge feature lamp",
			"DimmerType" : "abs",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 43,
			"HardwareName" : "Zigbee2MQTT",
			"HardwareType" : "Zigbee2MQTT",
			"HardwareTypeVal" : 94,
			"HaveDimmer" : true,
			"HaveGroupCmd" : false,
			"HaveTimeout" : false,
			"ID" : "0x804b50fffe3f3c40_light",
			"Image" : "Light",
			"IsSubDevice" : false,
			"LastUpdate" : "2021-02-24 19:18:24",
			"Level" : 59,
			"LevelInt" : 59,
			"MaxDimLevel" : 100,
			"Name" : "Lounge feature lamp",
			"Notifications" : "false",
			"PlanID" : "5",
			"PlanIDs" : 
			[
				5
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : 4,
			"Status" : "Off",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "WW",
			"SwitchType" : "Dimmer",
			"SwitchTypeVal" : 7,
			"Timers" : "false",
			"Type" : "Color Switch",
			"TypeImg" : "dimmer",
			"Unit" : 11,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "3585"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Read colour temperature value/kelvin - [RGB]WW lamp

Post by waaren »

jefft wrote: Wednesday 24 February 2021 20:36 North / 2268:
Feature / 3585:
OK. There is no way you can get the kelvin level of these devices. It is simply not made available to domoticz.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jefft
Posts: 75
Joined: Monday 23 January 2017 23:30
Target OS: Linux
Domoticz version: 2023.1
Location: UK
Contact:

Re: Read colour temperature value/kelvin - [RGB]WW lamp

Post by jefft »

Okay, thanks for your help, @waaren!

That's going to need changes to the plugin, I guess. I'll take a look at its code and what data is coming in to Zigbee2MQTT itself when I have some more time.
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest