Bed LED scripts

This commit is contained in:
2020-12-27 19:12:40 +02:00
parent f44a33fc57
commit bf4af3a69a
11 changed files with 65 additions and 29 deletions
@@ -37,12 +37,11 @@ automation:
data_template:
entity_id: light.master_bedroom
brightness_pct: >-
{% if not is_state('input_select.house_mode', 'day') %}
40
{% else %}
100
{% endif %}
{% if not is_state('input_select.house_mode', 'day') %} 40 {% else %} 100 {% endif %}
- service: script.bed_led_on
data_template:
brightness_pct: >-
{% if not is_state('input_select.house_mode', 'day') %} 40 {% else %} 100 {% endif %}
button_1_double:
- service: light.turn_off
@@ -71,7 +70,6 @@ automation:
data_template:
entity_id:
- light.bedside
- light.bed_led
brightness_pct: >-
{% if not is_state('input_select.house_mode', 'day') %}
@@ -79,6 +77,7 @@ automation:
{% else %}
100
{% endif %}
- service: script.bed_led_on
button_3_single:
- service: media_player.media_play_pause