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:
Carlo Costanzo
2025-12-04 15:36:55 -05:00
parent 44d8ac0da5
commit fe4b9ac1c9
6 changed files with 39 additions and 43 deletions

View File

@@ -40,7 +40,7 @@ automation:
id: proxmox-garage-high-temp-warning-automation
trigger:
- platform: numeric_state
entity_id: sensor.proxmox_garage_avg_temp
entity_id: sensor.proxmox_garage_average_temperature
above: 145 # Adjust threshold as needed
action:
- service: script.notify_engine

View File

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