mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Lots of little maintenance updates across the environment thanks to Spook
This commit is contained in:
@@ -22,7 +22,7 @@ automation:
|
||||
condition:
|
||||
- condition: time
|
||||
before: '03:00'
|
||||
after: '04:00'
|
||||
after: '05:00'
|
||||
|
||||
action:
|
||||
- service: script.notify_engine_two_button
|
||||
|
@@ -91,6 +91,19 @@ sensor:
|
||||
value_template: >
|
||||
{{ states.light | list | count }}
|
||||
|
||||
lights_on_count:
|
||||
friendly_name: "Number of lights on"
|
||||
value_template: >-
|
||||
{% set lights = states.light | selectattr('state', 'eq', 'on') | list %}
|
||||
{% set qty = lights | count %}
|
||||
{% set p1 = 'lights are' if qty > 1 else 'light is' %}
|
||||
|
||||
{% if qty == 0 %}
|
||||
No lights on.
|
||||
{% else %}
|
||||
{{ qty }} {{ p1 }} on.
|
||||
{% endif %}
|
||||
|
||||
protect_count:
|
||||
friendly_name: 'Number of Smoke Detectors'
|
||||
value_template: >
|
||||
|
@@ -55,7 +55,7 @@ automation:
|
||||
entity_id:
|
||||
- media_player.livingroomCC
|
||||
# - media_player.entry_alarm_panel
|
||||
# - media_player.bedroom_alarm_panel
|
||||
# - media_player.bedroom_tablet
|
||||
data:
|
||||
options:
|
||||
voice: JennyNeural
|
||||
|
@@ -46,7 +46,7 @@ automation:
|
||||
entity_id:
|
||||
- media_player.livingroomCC
|
||||
# - media_player.entry_alarm_panel
|
||||
# - media_player.bedroom_alarm_panel
|
||||
# - media_player.bedroom_tablet
|
||||
data:
|
||||
media_content_id: >
|
||||
"https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/speechcons/self_destruct.mp3"
|
||||
|
Reference in New Issue
Block a user