mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Adding Repeat functionality to the TTS setup.
This commit is contained in:
@@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_boolean.repeat_message
|
entity_id: input_boolean.last_message
|
||||||
state: 'on'
|
state: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
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
|
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:
|
input_boolean.school_mode:
|
||||||
friendly_name: 'School Mode'
|
friendly_name: 'School Mode'
|
||||||
emulated_hue: True
|
emulated_hue: True
|
||||||
|
@@ -5,4 +5,4 @@ home_modes:
|
|||||||
- input_boolean.school_mode
|
- input_boolean.school_mode
|
||||||
- input_boolean.alert_mode
|
- input_boolean.alert_mode
|
||||||
- input_boolean.speech_notifications
|
- input_boolean.speech_notifications
|
||||||
# - input_boolean.trash_reminder
|
- input_boolean.last_message
|
||||||
|
@@ -18,7 +18,7 @@ speech_notifications:
|
|||||||
icon: mdi:speaker-wireless
|
icon: mdi:speaker-wireless
|
||||||
initial: on
|
initial: on
|
||||||
|
|
||||||
repeat_message:
|
last_message:
|
||||||
name: Repeat Last Notification
|
name: Last Notification
|
||||||
icon: mdi:repeat-once
|
icon: mdi:repeat-once
|
||||||
initial: off
|
initial: off
|
@@ -80,5 +80,5 @@ voice_notify:
|
|||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.repeat_message
|
entity_id: input_boolean.last_message
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user