Hello,
I am new to MQTT and try to communicate from my device to home assistant (and the other way).
The device i have is an RGB+CCT light.
In home assistant, i added these lines:
mqtt:
light:
- name: "Light"
command_topic: "mqtt/light/state"
color_temp_command_topic: "mqtt/light/temperature"
brightness_command_topic: "mqtt/light/brightness"
rgb_command_topic: "mqtt/light/rgb"
In home assistant, i can turn on and off the lights, change colors (rgb) and change temperature. The only problem i have is when i restart the light. As soon as i turn on the light (update the state), i only get the “on” of “off” state, but no values.
How can i “read” the current values from Home Assistant on boot?