Hi,
this is certainly a newbie question.
I’ve program my esp8266 to received a number that’ll change the brightness of a strip led. It use the value send by mqqt on pi/lumiere01/brightness. That part works.
I try to add a slider in home assistant to control that light:
light:
- platform: mqtt
name: "strip_Led_001"
command_topic: "pi/lumiere01/brightness"
brightness_command_topic: "pi/lumiere01/brightness"
brightness_scale: 1023
payload_on: 1023
payload_off: 0
input_slider:
strip_led_001_brightness:
name: Plafond Brightness
initial: 500
min: 0
max: 1023
step: 1
automation:
- alias: strip_Led_001 - Adjust Brightness
trigger:
platform: state
entity_id: input_slider.strip_led_001_brightness
action:
- service: light.turn_on
data_template:
entity_id: light.strip_Led_001
brightness: input_slider.strip_led_001_brightness.state
PS: the switch created by the light works, it send a 1023 on ON and a 0 on OFF. But the slider doesn’t send any mqqt value.
Help me please.