various tidyups

This commit is contained in:
zorruno
2026-07-29 23:18:11 +12:00
parent adb533d6a3
commit dd13f52feb
22 changed files with 6837 additions and 4057 deletions
+39 -7
View File
@@ -1,6 +1,16 @@
################################################################################
# PACKAGE: View Road Announcement Router
################################################################################
# 1.10: Date: 2026-07-24
# - Added 2s delay before TTS speak to separate the cast chime from
# the voice announcement.
#
# 1.9: Date: 2026-07-24
# - Added continue_on_error to all 7 channel blocks so a single channel
# failure does not block remaining channels.
# - Google Home voice channel now saves and restores the previous volume
# level after TTS completes.
#
# 1.8: Date: 2026-07-11
# - Added MQTT View Rd Feed announcement channel.
# - Added mqtt_feed script field.
@@ -483,7 +493,8 @@ script:
# CHANNEL: PUSHOVER ZORRUNO
##########################################################################
- if:
- continue_on_error: true
if:
- condition: template
value_template: "{{ ',pushover_zorruno,' in ann_channels_normalised }}"
- condition: state
@@ -499,7 +510,8 @@ script:
# CHANNEL: PUSHOVER KIM
##########################################################################
- if:
- continue_on_error: true
if:
- condition: template
value_template: "{{ ',pushover_kim,' in ann_channels_normalised }}"
- condition: state
@@ -515,7 +527,8 @@ script:
# CHANNEL: SONY TV LOUNGE
##########################################################################
- if:
- continue_on_error: true
if:
- condition: template
value_template: "{{ ',sony_tv_lounge,' in ann_channels_normalised }}"
- condition: state
@@ -539,7 +552,8 @@ script:
#
##########################################################################
- if:
- continue_on_error: true
if:
- condition: template
value_template: >-
{{
@@ -561,6 +575,9 @@ script:
- condition: template
value_template: "{{ ann_voice_message | string | trim | length > 0 }}"
then:
- variables:
previous_volume: >-
{{ state_attr(lounge_google_home_voice_media_player, 'volume_level') | float(-1) }}
- choose:
- conditions:
- condition: template
@@ -594,6 +611,9 @@ script:
- delay:
seconds: 1
- delay:
seconds: 2
- action: tts.speak
target:
entity_id: "{{ lounge_google_home_voice_tts_entity }}"
@@ -606,6 +626,15 @@ script:
preferred_format: mp3
preferred_sample_rate: 44100
- if:
- condition: template
value_template: "{{ previous_volume >= 0 }}"
then:
- action: media_player.volume_set
data:
entity_id: "{{ lounge_google_home_voice_media_player }}"
volume_level: "{{ previous_volume }}"
##########################################################################
# CHANNEL: LOUNGE TOUCHSCREEN VOICE
##########################################################################
@@ -640,7 +669,8 @@ script:
#
##########################################################################
- if:
- continue_on_error: true
if:
- condition: template
value_template: "{{ ',mqtt_view_rd_feed,' in ann_channels_normalised }}"
- condition: state
@@ -679,7 +709,8 @@ script:
#
##########################################################################
- if:
- continue_on_error: true
if:
- condition: template
value_template: "{{ ',led_matrix_1,' in ann_channels_normalised }}"
- condition: state
@@ -716,7 +747,8 @@ script:
#
##########################################################################
- if:
- continue_on_error: true
if:
- condition: template
value_template: "{{ ',led_matrix_2,' in ann_channels_normalised }}"
- condition: state