Kód: Vybrat vše
alias: Zap/Vyp PWM Led1
description: ''
trigger:
- platform: time_pattern
seconds: /30
condition:
- condition: state
entity_id: input_boolean.svetlo_zapnuti1
state: 'on'
action:
- choose:
- conditions:
- condition: time
after: input_datetime.zap_svetlo1_on
before: input_datetime.vyp_svetlo1_off
sequence:
- service: light.turn_on
data:
transition: 30
brightness_pct: 80
target:
entity_id: light.pwm_led1
default: []
- choose:
- conditions:
- condition: time
after: input_datetime.vyp_svetlo1_off
before: input_datetime.zap_svetlo1_on
sequence:
- service: light.turn_off
target:
entity_id: light.pwm_led1
data: {}
mode: single