openhasp mods

This commit is contained in:
zorruno
2026-06-20 15:46:55 +12:00
parent 79597fb021
commit 28df116a38
4 changed files with 640 additions and 134 deletions
+32 -2
View File
@@ -9,9 +9,13 @@
# quiet_time_on_off_actions.yaml
#
# VERSION:
# V1.1 2026-06-15
# V1.2 2026-06-20
#
# VERSION HISTORY:
# V1.2 2026-06-20
# - Added Quiet Time OFF action to change OpenHASP panel openhasp_1
# back to page 1.
#
# V1.1 2026-06-15
# - Added separate Quiet Time ON and Quiet Time OFF action sections.
# - Added support for non-binary Quiet Time OFF actions.
@@ -37,7 +41,7 @@
# - Empty lists are fine and will simply do nothing.
# - Use the "Other Quiet Time OFF Actions" section for things that are not
# simple on/off actions, such as setting input_numbers, selects, scenes,
# scripts, or custom service calls.
# scripts, MQTT commands, or custom service calls.
#
################################################################################
@@ -92,6 +96,19 @@ automation:
- entity_id: input_number.openhasp_1_backlight_level
value: 200
##########################################################################
# OPENHASP QUIET TIME OFF PAGE ACTION
##########################################################################
#
# Sends the OpenHASP panel back to the main page when Quiet Time ends.
#
# Current OpenHASP MQTT command topic:
# hasp/openhasp_1/command/page
#
quiet_time_off_openhasp_page_topic: "hasp/openhasp_1/command/page"
quiet_time_off_openhasp_page: 1
triggers:
- trigger: state
entity_id: input_boolean.quiet_time
@@ -171,6 +188,19 @@ automation:
data:
value: "{{ repeat.item.value | float }}"
##################################################################
# Quiet Time OFF - OpenHASP page action
##################################################################
#
# Change OpenHASP panel back to page 1 when Quiet Time ends.
#
- action: mqtt.publish
data:
topic: "{{ quiet_time_off_openhasp_page_topic }}"
payload: "{{ quiet_time_off_openhasp_page | int }}"
retain: false
##################################################################
# Quiet Time OFF - other custom actions
##################################################################