mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 10:57:03 +00:00
Adding Repeat functionality to the TTS setup.
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.repeat_message
|
||||
entity_id: input_boolean.last_message
|
||||
state: 'on'
|
||||
from: 'off'
|
||||
|
||||
action:
|
||||
- service: script.Voice_notify
|
||||
data_template:
|
||||
value1: "{{states.sensor.polly_lastmsg.state}}"
|
||||
value1: "{{states('sensor.polly_lastmsg')}}"
|
@@ -16,6 +16,13 @@ input_boolean.guest_mode:
|
||||
icon: mdi:account-alert
|
||||
|
||||
|
||||
input_boolean.last_message:
|
||||
friendly_name: 'Repeat Last Notification'
|
||||
emulated_hue: True
|
||||
hidden: False
|
||||
icon: mdi:repeat-once
|
||||
|
||||
|
||||
input_boolean.school_mode:
|
||||
friendly_name: 'School Mode'
|
||||
emulated_hue: True
|
||||
|
@@ -5,4 +5,4 @@ home_modes:
|
||||
- input_boolean.school_mode
|
||||
- input_boolean.alert_mode
|
||||
- input_boolean.speech_notifications
|
||||
# - input_boolean.trash_reminder
|
||||
- input_boolean.last_message
|
||||
|
@@ -18,7 +18,7 @@ speech_notifications:
|
||||
icon: mdi:speaker-wireless
|
||||
initial: on
|
||||
|
||||
repeat_message:
|
||||
name: Repeat Last Notification
|
||||
last_message:
|
||||
name: Last Notification
|
||||
icon: mdi:repeat-once
|
||||
initial: off
|
@@ -80,5 +80,5 @@ voice_notify:
|
||||
cache: true
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.repeat_message
|
||||
entity_id: input_boolean.last_message
|
||||
|
||||
|
Reference in New Issue
Block a user