Sterowanie Taśmą LED RGBW poprzez moduł H801

Hardware:

Następnie w configuration.yaml dodajemy wpis:

light:
  -  platform: mqtt
     name: "Salon LED"
     availability_topic: "H801/tele/LWT"
     command_topic: "H801/cmnd/POWER1"
     state_topic: "H801/stat/RESULT"
     state_value_template: "{{value_json.POWER}}"
     brightness_command_topic: "H801/cmnd/Dimmer"
     brightness_state_topic: "H801/stat/RESULT"
     brightness_value_template: "{{value_json.Dimmer}}"
     brightness_scale: 100
     rgb_command_topic: "H801/cmnd/Color2"
     rgb_state_topic: "H801/stat/RESULT"
     # RGB<->RGBW conversion
     rgb_value_template: "{% set red = (value_json.Color.split(',')[0] | round(0)) %}{% set green = (value_json.Color.split(',')[1] | round(0)) %}{% set blue = (value_json.Color.split(',')[2] | round(0)) %}{% set white = (value_json.Color.split(',')[3] | round(0)) %}{{ red + white }},{{ green + white }},{{ blue + white }}"
     rgb_command_template: "{% set white = ([red,green,blue]|min) %}{{ red - white }},{{ green - white }},{{ blue - white }},{{ white }}"
     payload_on: "ON"
     payload_off: "OFF"
     payload_available: "Online"
     payload_not_available: "Offline"
     qos: 1
     effect_command_topic: "H801/cmnd/Scheme"
     effect_state_topic: "H801/stat/RESULT"
     effect_value_template: "{{value_json.Scheme}}"
     effect_list:
     - 0
     - 1
     - 2
     - 3
     - 4

Gdzie H801 to nazwa modułu pod adresem IP, sprawdź jaka jest u Ciebie i podmień.
To wszystko, efekt końcowy w asystencie powinien być taki:

2lajki