mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
yamllint
This commit is contained in:
@@ -20,10 +20,15 @@ binary_sensor:
|
||||
brita_should_change_filter:
|
||||
friendly_name: Should change Brita filter
|
||||
device_class: problem
|
||||
value_template: >
|
||||
value_template: >-
|
||||
|
||||
{% set liters_check = states('input_number.brita_remaining_liters')|int < 3 %}
|
||||
|
||||
{% set next_change = states('input_datetime.brita_next_change') %}
|
||||
{{ states('input_number.brita_remaining_liters') | int < 3 or (as_timestamp(next_change) - as_timestamp(now())) / (3600*24) | round(0) < 3 }}
|
||||
{% set time_delta = (as_timestamp(next_change) - as_timestamp(now())) %}
|
||||
{% set date_check = time_delta / (3600*24) | round(0) < 3 %}
|
||||
|
||||
{{ liters_check or date_check }}
|
||||
|
||||
script:
|
||||
brita_pour_water:
|
||||
|
||||
@@ -104,4 +104,3 @@ automation:
|
||||
action:
|
||||
- service: switch.toggle
|
||||
entity_id: switch.titanium
|
||||
|
||||
|
||||
@@ -60,4 +60,3 @@ automation:
|
||||
action:
|
||||
- service: input_select.select_next
|
||||
entity_id: input_select.house_mode
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ automation:
|
||||
- light.light_le_12
|
||||
- light.browser_kitchen
|
||||
data:
|
||||
brightness_pct: 13 # this is the lowest LE will go ¯\_(ツ)_/¯
|
||||
brightness_pct: 13 # this is the lowest LE will go ¯\_(ツ)_/¯
|
||||
|
||||
- alias: Lighting · Kitchen · Night mode · Motion · Turn lights off
|
||||
trigger:
|
||||
|
||||
@@ -69,4 +69,3 @@ automation:
|
||||
{% else %}
|
||||
100
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -20,4 +20,3 @@ script:
|
||||
entity_id: media_player.master_bedroom
|
||||
data_template:
|
||||
source: "{{ playlist | default('Evening Chill') }}"
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ shell_command:
|
||||
|
||||
script:
|
||||
youtube_play_file:
|
||||
alias: Youtube · Play file
|
||||
alias: Youtube · Play file
|
||||
sequence:
|
||||
- service: script.sonos_join_bedroom
|
||||
- service: media_player.play_media
|
||||
@@ -65,7 +65,9 @@ script:
|
||||
- service: media_player.play_media
|
||||
entity_id: media_player.master_bedroom
|
||||
data_template:
|
||||
media_content_id: "{{ states('sensor.sarah_url') }}/local/audio/youtube/{{ states('input_text.youtube_download_name') }}.mp3"
|
||||
media_content_id: >-
|
||||
{% set name = states('input_text.youtube_download_name') %}
|
||||
{{ states('sensor.sarah_url') }}/local/audio/youtube/{{ name }}.mp3
|
||||
media_content_type: "music"
|
||||
|
||||
- service: input_text.set_value
|
||||
|
||||
@@ -64,7 +64,7 @@ script:
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
data_template:
|
||||
title: "{{ title | default('💬 *Speech Module*') }}" # For telegram only
|
||||
title: "{{ title | default('💬 *Speech Module*') }}" # For telegram only
|
||||
message: "{{ message }}"
|
||||
|
||||
sonos_blast:
|
||||
|
||||
@@ -7,7 +7,9 @@ binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
floorplan_night_mode:
|
||||
value_template: "{{ states('sun.sun') == 'below_horizon' or is_state('input_boolean.floorplan_night_mode', 'on') }}"
|
||||
value_template: >-
|
||||
{{ states('sun.sun') == 'below_horizon'
|
||||
or is_state('input_boolean.floorplan_night_mode', 'on') }}
|
||||
|
||||
sensor:
|
||||
- platform: command_line
|
||||
@@ -54,14 +56,14 @@ automation:
|
||||
- service: script.say
|
||||
data:
|
||||
message: "Hey! I was out for a bit, but I'm back online!"
|
||||
# - service: notify.telegram
|
||||
# data:
|
||||
# title: "⚙️ *System Module*"
|
||||
# message: "Ask me to do something anytime!"
|
||||
# data:
|
||||
# keyboard:
|
||||
# - "/guest_mode_on, /guest_mode_off"
|
||||
# - "/status"
|
||||
# - service: notify.telegram
|
||||
# data:
|
||||
# title: "⚙️ *System Module*"
|
||||
# message: "Ask me to do something anytime!"
|
||||
# data:
|
||||
# keyboard:
|
||||
# - "/guest_mode_on, /guest_mode_off"
|
||||
# - "/status"
|
||||
|
||||
- alias: System · Telegram · Announce status
|
||||
trigger:
|
||||
|
||||
Reference in New Issue
Block a user