Macro updates

This commit is contained in:
2023-05-12 14:22:00 -04:00
parent af26105994
commit e30f1646c7
4 changed files with 19 additions and 12 deletions

View File

@ -682,6 +682,17 @@ script:
# Lighting
- variables:
brightness: "{{ state_attr('switch.adaptive_lighting_emma_bedroom','brightness_pct') }}"
- if:
- condition: template
value_template: "{{ is_state('binary_sensor.morning','on') or is_state('binary_sensor.midday','on') }}"
then:
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.emma_wakeup
data:
time: >
{% from 'time.jinja' import current_time %}
{{ current_time(24) }}
- if:
- condition: state
entity_id: binary_sensor.early_night_mode