Hey guys,
I´m now using RBG light with ESPresense via MQTT.
State = espresense/rooms/eingang/led_1
Command = espresense/rooms/eingang/led_1/set
the JSON output = {“state”:“ON”,“brightness”:255,“color”:{“r”:255,“g”:158,“b”:242}}
Now I need help with the configuration in textual. I copied a thing from a light from zigbee2mqtt,
Type color : Ausenbeleuchtung “Außenbeleuchtung” [
stateTopic=“espresense/rooms/eingang/led_1”,
commandTopic=“espresense/rooms/eingang/led_1/set”,
transformationPatternOut= “JS:bright-zigbee-out.js”,
formatBeforePublish= “%s”,
colorMode= “XYY”,
transformationPattern= “JS:bright-zigbee-in.js”,
off= “0”,
onBrightness= 100,
on= “1” ]
but zigbee2mqtt is using colermode=XYY and ESPresense use RGB.
Can someone tell me a transformation .js how can I control my light.
Thx Joe