WS2812b -integrations - Usage

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

Resolved by doing the following:

There is a major problem with documentation on MQTT devices and the way the syntax is structured.

I struggled for hours to figure out how to resolve the issues and found a simple and elegant way.
Download MQTT fx, its a tool that you connect to your mqtt broker. Then scan the network while the mqtt devices are on. In Home Assistant go to the “configurations” option then go to “integrations” then click on your MQTT broker. It will list all the devices auto discovered. Click the (i) sign on that device. You will be presented with a color wheel, option to switch the light on and off and also brightness. Open MQTTfx, click on the subscribe tab and look at the topics collector at the bottom. Click on start. Now while scanning click on the power button, color wheel, brightness options in Home Assistant and you will slowly pickup on the correct syntax for your MQTT device in the topic collector in MQTTfx.

Then just rectify your configurations and automation’s with the correct topics and commands.

This should put you on the right track very quickly. Let me know if you need assistance.