Hi,
I wanted to create a switch which turns on two switches tasmota with led. First the switch should turn on the relay and after a delay the LED itself. So the code works but my issue is now when I want to click the switch to change the brightness or color it does not show up. Is this somehow possible with the light template switch?
TIA!
- platform: template
lights:
cabinet_led_template:
value_template: "{{ is_state('light.cabinet_led_bme_right_pwr', 'on') }}"
turn_on:
- service: light.turn_on
entity_id: light.cabinet_led_bme_right_pwr
- delay:
milliseconds: 300
- service: light.turn_on
entity_id: light.cabinet_led_bme_right_led
turn_off:
- service: light.turn_off
entity_id: light.cabinet_led_bme_right_led
- delay:
seconds: 4
- service: light.turn_off
entity_id: light.cabinet_led_bme_right_pwr