additional esphome devices and fixes

This commit is contained in:
root
2026-05-23 23:53:04 +12:00
parent 5e941eea06
commit 7eb81efd93
61 changed files with 7756 additions and 354 deletions
+37 -8
View File
@@ -3,6 +3,9 @@
###############################################################################
#
# VERSION:
# 1.4 - 2026-05-21
# - Added delayed lounge NSPanel touchscreen brightness reduction to 5.
#
# 1.3 - 2026-05-07
# - Added downstairs lights all off script.
# - Added main hallway nightlights 60 minute bedtime timer.
@@ -29,6 +32,7 @@
# - climate entities are turned off if they are not already "off".
# - Main hallway nightlights are turned on for 60 minutes when bedtime mode runs.
# - If the main hallway nightlights are turned off manually, the timer is cancelled.
# - Lounge NSPanel touchscreen brightness is set to 5 after 20 seconds.
#
###############################################################################
@@ -94,6 +98,18 @@ automation:
delay_seconds: 0
action:
# Turn hallway nightlights on immediately before any other bedtime actions.
- service: switch.turn_on
target:
entity_id: switch.main_hallway_nightlights_1_relay_1_main_hallway_nightlights
# Start or restart the 60 minute bedtime nightlight timer.
- service: timer.start
target:
entity_id: timer.main_hallway_nightlights_bedtime
data:
duration: "01:00:00"
- service: script.downstairs_lights_all_off
- service: script.lounge_set_scene
@@ -104,15 +120,10 @@ automation:
target:
entity_id: input_boolean.quiet_time
- service: switch.turn_on
# Reduce the lounge NSPanel screen brightness after 20 seconds.
- service: script.turn_on
target:
entity_id: switch.main_hallway_nightlights_1_relay_1_main_hallway_nightlights
- service: timer.start
target:
entity_id: timer.main_hallway_nightlights_bedtime
data:
duration: "01:00:00"
entity_id: script.bedtime_mode_set_lounge_nspanel_brightness_after_delay
- repeat:
for_each: "{{ bedtime_delayed_off_targets }}"
@@ -232,3 +243,21 @@ script:
mode: parallel
max: 50
bedtime_mode_set_lounge_nspanel_brightness_after_delay:
alias: "Bedtime Mode - Set Lounge NSPanel Brightness After Delay"
description: >
Waits 20 seconds after bedtime mode starts, then sets the lounge NSPanel
touchscreen display brightness to 5.
sequence:
- delay:
seconds: 20
- service: number.set_value
target:
entity_id: number.lounge_nspanel_touchscreen_display_brightness
data:
value: 1
mode: restart