From 00bd805aa620806bd179cc3062ea6f9da6bb22e5 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 2 Nov 2022 17:15:23 -0400 Subject: [PATCH] Buncha things the UI keeps wanting to change... --- automations.yaml | 4 ++-- scripts.yaml | 27 ++++++++++++--------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/automations.yaml b/automations.yaml index 85091ed..4991a25 100644 --- a/automations.yaml +++ b/automations.yaml @@ -362,8 +362,8 @@ actions: - service: script.text_notify data: - who: 'all' - title: 'Low Batteries in House' + who: all + title: Low Batteries in House message: 'Low battery alert for: {{sensors}}' - id: '1655493590791' alias: NWS Announce Weather Alert for Tornado (CLEAR) diff --git a/scripts.yaml b/scripts.yaml index de0ac04..91b905e 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -50,17 +50,14 @@ give_me_darkness: - downstairs_bathroom data: {} - condition: template - value_template: > - {% if is_state('input_boolean.work_today','on') and state_attr('input_datetime.tina_workday_end','timestamp') > state_attr('input_datetime.kallen_bedtime','timestamp') %} - false - {% else %} - true - {% endif %} + value_template: "{% if is_state('input_boolean.work_today','on') and state_attr('input_datetime.tina_workday_end','timestamp') + > state_attr('input_datetime.kallen_bedtime','timestamp') %}\n false\n{% else + %}\n true\n{% endif %}\n" - service: script.activate_alexa_actionable_notification data_template: - text: 'Would you like me to arm the security system?' - event_id: 'actionable_notification_night_security_arm' - alexa_device: "{{ states('sensor.last_alexa') }}" + text: Would you like me to arm the security system? + event_id: actionable_notification_night_security_arm + alexa_device: '{{ states(''sensor.last_alexa'') }}' mode: single icon: mdi:weather-night start_youtube: @@ -230,9 +227,9 @@ going_upstairs: - service: script.asus_laptop_shutdown - service: script.activate_alexa_actionable_notification data_template: - text: 'Would you like me to shut down your computer?' - event_id: 'actionable_notification_shutdown_computer' - alexa_device: 'media_player.basement_echo_dot' + text: Would you like me to shut down your computer? + event_id: actionable_notification_shutdown_computer + alexa_device: media_player.basement_echo_dot - wait_for_trigger: - platform: state entity_id: @@ -261,9 +258,9 @@ basement_on: entity_id: media_player.basement_tv - service: script.activate_alexa_actionable_notification data_template: - text: 'Would you like me to turn on the computer for Colin?' - event_id: 'actionable_notification_kallen_computer_on' - alexa_device: "{{ states('sensor.last_alexa') }}" + text: Would you like me to turn on the computer for Colin? + event_id: actionable_notification_kallen_computer_on + alexa_device: '{{ states(''sensor.last_alexa'') }}' mode: single icon: hue:room-stairs start_youtube_basement: