а покажи скрин рабочей автоматизации любой
- alias: Ванна,включение света с 7:00 - 23:00 # +
trigger:
- platform: state
entity_id: binary_sensor.0x158d00015620b2_motion
to: 'on'
- platform: state
entity_id: binary_sensor.0x158d00014dbd1c_contact
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: light.svet_v_vannoi
state: 'off'
- condition: state
entity_id: switch.wall_switch_ln_left_158d00023b1dd2
state: 'off'
action:
- service: light.turn_on
entity_id: light.svet_v_vannoi
data_template:
brightness_pct: "{% set h = now().hour | int %} {% if h >= 7 and h < 9 %}\n\
\ 30\n{% elif h >= 9 and h < 17 %}\n 70\n{% elif h >= 17 and h < 21 %}\n \
\ 50\n{% elif h >= 21 and h < 23 %}\n 30\n{% endif %}"
kelvin: 4000