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.

pull/1546/head
Carlo Costanzo 2 weeks ago
parent 44d8ac0da5
commit fe4b9ac1c9

@ -56,7 +56,7 @@
- light.living_room_lights
- light.living_room_accents
brightness: 255
kelvin: 5500
color_temp_kelvin: 5500
- service: script.speech_engine
data:

@ -36,14 +36,14 @@
target:
entity_id: light.living_room_lights
data:
kelvin: 5500
color_temp_kelvin: 5500
brightness: 255
default:
- service: light.turn_on
target:
entity_id: light.living_room_lights
data:
kelvin: 2700
color_temp_kelvin: 2700
brightness: 200
- alias: 'Restore Living Room After Entry Secured'
@ -71,29 +71,29 @@
state: 'above_horizon'
sequence:
- service: light.turn_on
target:
entity_id: light.living_room_lights
data:
kelvin: 5500
brightness: 255
target:
entity_id: light.living_room_lights
data:
color_temp_kelvin: 5500
brightness: 255
- service: light.turn_on
target:
entity_id: light.living_room_accents
data:
kelvin: 5500
color_temp_kelvin: 5500
brightness: 200
default:
- service: light.turn_on
target:
entity_id: light.living_room_lights
data:
kelvin: 2700
color_temp_kelvin: 2700
brightness: 200
- service: light.turn_on
target:
entity_id: light.living_room_accents
data:
kelvin: 2700
color_temp_kelvin: 2700
brightness: 170
- alias: 'Living Room Red on Entry/Garage Open'

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

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

@ -66,60 +66,60 @@
entities:
light.m1_front_left:
state: on
kelvin: 5500
color_temp_kelvin: 5500
brightness: 255
light.m1_front_right:
state: on
kelvin: 5500
color_temp_kelvin: 5500
brightness: 255
light.m1_back_right:
state: on
kelvin: 5500
color_temp_kelvin: 5500
brightness: 255
light.m1_back_left:
state: on
kelvin: 5500
color_temp_kelvin: 5500
brightness: 255
light.tv_stand_light:
state: on
kelvin: 5500
color_temp_kelvin: 5500
brightness: 200
light.tv_light:
state: on
kelvin: 5500
color_temp_kelvin: 5500
brightness: 200
light.couch_1:
state: on
kelvin: 5500
color_temp_kelvin: 5500
brightness: 255
- name: Living_Room_Evening_Amber
entities:
light.m1_front_left:
state: on
kelvin: 2700
color_temp_kelvin: 2700
brightness: 200
light.m1_front_right:
state: on
kelvin: 2700
color_temp_kelvin: 2700
brightness: 200
light.m1_back_right:
state: on
kelvin: 2700
color_temp_kelvin: 2700
brightness: 200
light.m1_back_left:
state: on
kelvin: 2700
color_temp_kelvin: 2700
brightness: 200
light.tv_stand_light:
state: on
kelvin: 2700
color_temp_kelvin: 2700
brightness: 170
light.tv_light:
state: on
kelvin: 2700
color_temp_kelvin: 2700
brightness: 170
light.couch_1:
state: on
kelvin: 2700
color_temp_kelvin: 2700
brightness: 220

@ -1,4 +1,13 @@
######################################################################################################
######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Notification Engine Scripts - Flexible push helpers for family devices.
# Compose messages from value1/value2/value3 with optional actions.
# -------------------------------------------------------------------
# Video Tutorial: https://youtu.be/mK1wdpxhLbM
######################################################################
### Script for Sending Notifications to Mobile Phones
# This script (`notify_engine`) and its variant (`notify_engine_two_button`) are designed to send
# customized notifications to specified recipients in Home Assistant.
@ -23,11 +32,6 @@
# - 'icon1', 'icon2': Icons for the buttons (optional).
# - 'destructive1', 'destructive2': Boolean flags to mark buttons as destructive (optional).
# Author: @CCOSTAN
# Original Repository: https://github.com/CCOSTAN/Home-AssistantConfig
# Video Tutorial for Android Compatibility: https://youtu.be/mK1wdpxhLbM
######################################################################################################
notify_engine:
sequence:
@ -51,7 +55,7 @@ notify_engine:
{% endif %}
data:
title: "{{ title }}"
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
message: "{{ ' '.join([value1|default('', true), value2|default('', true), value3|default('', true)]) | trim }}"
data:
group: "{{ group|default('information') }}"
interuption_level: "{{ level|default('active') }}"
@ -78,7 +82,7 @@ notify_engine_two_button:
notify.ios_family
{% endif %}
data:
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
message: "{{ ' '.join([value1|default('', true), value2|default('', true), value3|default('', true)]) | trim }}"
title: "{{ title|default('', true) }}"
data:
actions:

Loading…
Cancel
Save

Powered by TurnKey Linux.