Hi. Please could someone assist?
I have spent some time trying to figure this out but no luck.
I have a nodemcu flashed with tasmota. Home Assistant does pickup the ws2812b and i can control the lights through integrations panel. How do I now control/automate the ws21812b lights?
I added the code below to my configuration.yaml as per the blogs.
light:
- platform: mqtt
name: “Smart Light 1”
command_topic: “cmnd/smartlight1/POWER”
state_topic: “stat/smrtlight1/STATE”
state_value_template: “{{value_json.POWER}}”
availability_topic: “tele/smartlight1/LWT”
brightness_command_topic: “cmnd/smartlight1/Dimmer”
brightness_state_topic: “stat/smartlight1/STATE”
brightness_scale: 100
on_command_type: “brightness”
brightness_value_template: “{{value_json.Dimmer}}”
rgb_command_topic: “cmnd/smartlight1/Color2”
rgb_state_topic: “tele/smartlight1/STATE”
rgb_value_template: “{{value_json.Color.split(’,’)[0:3]|join(’,’)}}”
effect_command_topic: “cmnd/smartlight1/Scheme”
effect_state_topic: “stat/smartlight1/STATE”
effect_value_template: “{{value_json.Scheme}}”
effect_list:- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
payload_on: “ON”
payload_off: “OFF”
payload_available: “Online”
payload_not_available: “Offline”
qos: 1
retain: false