Lots of little maintenance updates across the environment thanks to Spook

This commit is contained in:
CCOSTAN
2025-03-21 13:52:14 +00:00
parent ffb52d7302
commit 047f3a3a8c
18 changed files with 166 additions and 112 deletions

View File

@@ -22,7 +22,7 @@ automation:
condition:
- condition: time
before: '03:00'
after: '04:00'
after: '05:00'
action:
- service: script.notify_engine_two_button

View File

@@ -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: >

View File

@@ -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

View File

@@ -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"