How can i change/get the switch symbol in my dashboard?

Hi,
I have just added a LED for testing into my HA via the mqtt library/extension.
This is the part thats in the configuration.yaml file:

mqtt:
  switch:
    - name: "Test LED"
      state_topic: "led_control/state"
      command_topic: "led_control"
      payload_on: "ON"
      payload_off: "OFF"
      state_on: "ON"
      state_off: "OFF"
      optimistic: true
      retain: true

Now the issue is that, the entity in the dashboard looks like the one with the bolt symbols. But i want to have the one with the toggle switch:


The other one is from my Reolink camera.

What type of entity do i need to get this?
Thanks

You have a state topic so it should show as a toggle switch. It’s just that it has not received anything in the state topic yet so the state is unknown. Press one of the lightning bolt icons. It should change to a switch after the first state change you make, assuming your state topic and payloads are correct.

I just had a second look at my esp code and forgot to publish the state of the led.
Thanks!

1 Like