mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-12 10:02:18 +00:00
Refactor light configuration to use 'color_temp_kelvin' instead of 'kelvin' across multiple automation and scene files for consistency. Update sensor entity ID in glances.yaml for clarity. Enhance notification script to improve message formatting.
This commit is contained in:
@@ -122,15 +122,7 @@ template:
|
||||
unit_of_measurement: "count"
|
||||
icon: mdi:binary-sensor
|
||||
state: >-
|
||||
{% 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 %}
|
||||
{{ states.light | selectattr('state', 'eq', 'on') | list | count }}
|
||||
|
||||
- name: "Number of Smoke Detectors"
|
||||
unit_of_measurement: "count"
|
||||
|
||||
Reference in New Issue
Block a user