diff --git a/Home-Assistant.md b/Home-Assistant.md index c009a7ee..6fb597d7 100644 --- a/Home-Assistant.md +++ b/Home-Assistant.md @@ -284,4 +284,51 @@ light: retain: false qos: 1 payload_on: "ON" - payload_off: "OFF" \ No newline at end of file + payload_off: "OFF" +``` + +## Led WS2812B + +Configure any of the pins of the module as "WS2812B" and on the Console run `SetOption15 1`. + +```yaml +light: +# LED WS2812b + - platform: mqtt + name: "TiraLed" + retain: true + state_topic: "stat/led/POWER" + command_topic: "cmnd/led/POWER" + availability_topic: "tele/led/LWT" + qos: 1 + payload_on: "ON" + payload_off: "OFF" + payload_available: "Online" + payload_not_available: "Offline" + optimistic: false + brightness_state_topic: "stat/led/Dimmer" + brightness_command_topic: "cmnd/led/Dimmer" + brightness_value_template: "{{ value_json.Dimmer }}" + brightness_scale: 100 + rgb_state_topic: "stat/led/Color" + rgb_command_topic: "cmnd/led/Color2" + rgb_command_mode: hex + rgb_command_template: "{{ '%02x%02x%02x' | format(red, green, blue)}}" + effect_state_topic: "stat/led/Scheme" + effect_command_topic: "cmnd/led/Scheme" + effect_value_template: "{{ value_json.Scheme }}" + effect_list: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 +``` \ No newline at end of file