Untitled
unknown
plain_text
3 years ago
751 B
28
Indexable
- alias: "Accensione automatico bagno in camera"
id: 'accensione_automatico_luci_bagno_camera'
trigger:
- platform: state
entity_id: binary_sensor.lumi_lumi_motion_ac02_iaszone_2
to: 'on'
condition:
condition: or
conditions:
# Accendi solo se il sole è tramontato
- condition: sun
after: sunset
# Accendi al 50% dalle 23 alle 4
- condition: time
after: '23:00:00'
- condition: time
before: '04:00:00'
action:
- service: light.turn_on
target:
entity_id: light.luce_bagno_in_camera
data:
brightness_pct: >
{% if now().hour >= 23 or now().hour < 4 %}
50
{% else %}
100
{% endif %}
Editor is loading...