Hi!
I have a light bulb controlled by mqtt.
Trying to make a button in HA to toggle it,
by sending “true” to the topic “lamp1/command” and displaying the lamp’s status through topic “lamp1/state”.
The toggling works as expected, turning the lamp on and off, but I can’t figure out why the status found in HA does not update, being always unavailable. Here are my settings:
# mqtt.yaml
light:
- name: lamp1
state_topic: "lamp1/state"
command_topic: "lamp1/command"
Can anyone help me? I’m a beginner and I still don’t understand a lot of things.