@Freestila wrote:
Hello,
i have a rgb controller running tasmota. i get the following message via MQTT (formatted):
stat/rgbled1/RESULT = {"POWER":"ON", "Dimmer":67, "Color":"93,171,73", "HSBColor":"108,57,67", "Channel":[36,67,29]}
Can somebody help me get the configuration entry right? I tried it with json template and other template, but at most i got parts of it working (e.g. on and off, but not the color or brightness).
- platform: mqtt name: "rgb.kleiderschrank" command_topic: "cmnd/rgbled1/power" state_topic: "stat/rgbled1/POWER" rgb_state_topic: "stat/rgbled1/color" rgb_command_topic: "cmnd/rgbled1/color" brightness_state_topic: "stat/rgbled1/DIMMER" brightness_command_topic: "cmnd/rgbled1/dimmer" retain: false payload_available: "Online" payload_not_available: "Offline"
I can not make heads and tails out of the home assistant docu about mqtt light. Like, if i use json attributes, i need to parse the json string i get, but since i have only one json_attributes_template, how can i map the extracted values to the attributes like rgb or hue saturation brightness?
Thanks
Posts: 1
Participants: 1