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:
@@ -56,7 +56,7 @@
|
|||||||
- light.living_room_lights
|
- light.living_room_lights
|
||||||
- light.living_room_accents
|
- light.living_room_accents
|
||||||
brightness: 255
|
brightness: 255
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -36,14 +36,14 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: light.living_room_lights
|
entity_id: light.living_room_lights
|
||||||
data:
|
data:
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
default:
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room_lights
|
entity_id: light.living_room_lights
|
||||||
data:
|
data:
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 200
|
brightness: 200
|
||||||
|
|
||||||
- alias: 'Restore Living Room After Entry Secured'
|
- alias: 'Restore Living Room After Entry Secured'
|
||||||
@@ -74,26 +74,26 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: light.living_room_lights
|
entity_id: light.living_room_lights
|
||||||
data:
|
data:
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room_accents
|
entity_id: light.living_room_accents
|
||||||
data:
|
data:
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 200
|
brightness: 200
|
||||||
default:
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room_lights
|
entity_id: light.living_room_lights
|
||||||
data:
|
data:
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 200
|
brightness: 200
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room_accents
|
entity_id: light.living_room_accents
|
||||||
data:
|
data:
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 170
|
brightness: 170
|
||||||
|
|
||||||
- alias: 'Living Room Red on Entry/Garage Open'
|
- alias: 'Living Room Red on Entry/Garage Open'
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ automation:
|
|||||||
id: proxmox-garage-high-temp-warning-automation
|
id: proxmox-garage-high-temp-warning-automation
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
entity_id: sensor.proxmox_garage_avg_temp
|
entity_id: sensor.proxmox_garage_average_temperature
|
||||||
above: 145 # Adjust threshold as needed
|
above: 145 # Adjust threshold as needed
|
||||||
action:
|
action:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
|
|||||||
@@ -122,15 +122,7 @@ template:
|
|||||||
unit_of_measurement: "count"
|
unit_of_measurement: "count"
|
||||||
icon: mdi:binary-sensor
|
icon: mdi:binary-sensor
|
||||||
state: >-
|
state: >-
|
||||||
{% set lights = states.light | selectattr('state', 'eq', 'on') | list %}
|
{{ states.light | selectattr('state', 'eq', 'on') | list | count }}
|
||||||
{% 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 %}
|
|
||||||
|
|
||||||
- name: "Number of Smoke Detectors"
|
- name: "Number of Smoke Detectors"
|
||||||
unit_of_measurement: "count"
|
unit_of_measurement: "count"
|
||||||
|
|||||||
@@ -66,60 +66,60 @@
|
|||||||
entities:
|
entities:
|
||||||
light.m1_front_left:
|
light.m1_front_left:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
light.m1_front_right:
|
light.m1_front_right:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
light.m1_back_right:
|
light.m1_back_right:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
light.m1_back_left:
|
light.m1_back_left:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
light.tv_stand_light:
|
light.tv_stand_light:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 200
|
brightness: 200
|
||||||
light.tv_light:
|
light.tv_light:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 200
|
brightness: 200
|
||||||
light.couch_1:
|
light.couch_1:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 5500
|
color_temp_kelvin: 5500
|
||||||
brightness: 255
|
brightness: 255
|
||||||
|
|
||||||
- name: Living_Room_Evening_Amber
|
- name: Living_Room_Evening_Amber
|
||||||
entities:
|
entities:
|
||||||
light.m1_front_left:
|
light.m1_front_left:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 200
|
brightness: 200
|
||||||
light.m1_front_right:
|
light.m1_front_right:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 200
|
brightness: 200
|
||||||
light.m1_back_right:
|
light.m1_back_right:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 200
|
brightness: 200
|
||||||
light.m1_back_left:
|
light.m1_back_left:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 200
|
brightness: 200
|
||||||
light.tv_stand_light:
|
light.tv_stand_light:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 170
|
brightness: 170
|
||||||
light.tv_light:
|
light.tv_light:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 170
|
brightness: 170
|
||||||
light.couch_1:
|
light.couch_1:
|
||||||
state: on
|
state: on
|
||||||
kelvin: 2700
|
color_temp_kelvin: 2700
|
||||||
brightness: 220
|
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
|
### Script for Sending Notifications to Mobile Phones
|
||||||
# This script (`notify_engine`) and its variant (`notify_engine_two_button`) are designed to send
|
# This script (`notify_engine`) and its variant (`notify_engine_two_button`) are designed to send
|
||||||
# customized notifications to specified recipients in Home Assistant.
|
# customized notifications to specified recipients in Home Assistant.
|
||||||
@@ -23,11 +32,6 @@
|
|||||||
# - 'icon1', 'icon2': Icons for the buttons (optional).
|
# - 'icon1', 'icon2': Icons for the buttons (optional).
|
||||||
# - 'destructive1', 'destructive2': Boolean flags to mark buttons as destructive (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:
|
notify_engine:
|
||||||
sequence:
|
sequence:
|
||||||
@@ -51,7 +55,7 @@ notify_engine:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
data:
|
data:
|
||||||
title: "{{ title }}"
|
title: "{{ title }}"
|
||||||
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
|
message: "{{ ' '.join([value1|default('', true), value2|default('', true), value3|default('', true)]) | trim }}"
|
||||||
data:
|
data:
|
||||||
group: "{{ group|default('information') }}"
|
group: "{{ group|default('information') }}"
|
||||||
interuption_level: "{{ level|default('active') }}"
|
interuption_level: "{{ level|default('active') }}"
|
||||||
@@ -78,7 +82,7 @@ notify_engine_two_button:
|
|||||||
notify.ios_family
|
notify.ios_family
|
||||||
{% endif %}
|
{% endif %}
|
||||||
data:
|
data:
|
||||||
message: "{{ value1 }} {{ value2 }} {{ value3 }}"
|
message: "{{ ' '.join([value1|default('', true), value2|default('', true), value3|default('', true)]) | trim }}"
|
||||||
title: "{{ title|default('', true) }}"
|
title: "{{ title|default('', true) }}"
|
||||||
data:
|
data:
|
||||||
actions:
|
actions:
|
||||||
|
|||||||
Reference in New Issue
Block a user