hi,
I’m on OH 2.5m2, zigbee2mqtt 1.3.1 firmware version: ‘20190223’, TRADFRI LED1545G12
The above examples with the js transformations are working fine for for this bulb, e.g. brightness.
I’ve tried now to implement color_temp (using the /set/color_temp) but the bulb does not react, I don’t even see a message in the zigbee2mqtt log.
tradfri.things
Type number : colortemp “Tradfri 01 Color Temp”
[ stateTopic=“zigbee2mqtt/0x000b57fffebb8eeb”, transformationPattern=“JSONPATH:$.color_temp”, commandTopic=“zigbee2mqtt/0x000b57fffebb8eeb/set/color_temp”]
tradfri.items
Number Tradfri_Lamp01_colortemp “Drahtlampe color temp” {channel=“mqtt:topic:myMqttBroker:tradfrilamp01:colortemp”}
sitemap
Setpoint item=Tradfri_Lamp01_colortemp label=“Drahtlampe Farbtemperatur” step=25 minValue=250 maxValue=454
outgoing transitions were fixed in OH2.5 I believe, which is why the brightness using JS is working I believe. So I don’t understand why the color_temp is not working.
any hints or input is much appreciated.
Andy
update:
oh I see, for non-JSON format in zigbee2mqtt a special config is required:
update2:
this seems to be the setting in zigbee2mqtt to enable the non-JSON GET:
but the SET should work even without the setting, but for me it does not, see above.
@AndreasBrett, @Andreas84 does this require a certain zigbee2mqtt version to work ?