The LMS Notify TTS platform lets you use the TTS integration Service Say and a LMS media_player to alert you of important events. This integration provides a simple interface to use in your automations and alerts.
Default options can be set in the configuration file and/or overridden for each message
In order to use this integration, you must already have a TTS platform installed and configured, and a Logitech Media Server working with the TTS platform. Also, make sure you have playlist directory defined on your LMS settings - resume won't work without working playlist save/resume.
To enable this platform in your installation, consider the following example using google_translate and an example media_player.kitchen.
Copy this folder to <config_dir>/custom_components/lms_tts_notify/
Or add a custom repository in HACS: https://github.com/floris-b/lms_tts_notify
Add the following entry in your configuration.yaml
:
tts:
- platform: google_translate
service_name: google_say
notify:
- platform: lms_tts_notify
name: kitchen
tts_service: tts.google_say
media_player: media_player.kitchen
device_group: group.all_persons
alert_sound: Alert
volume: 0.4
Please note that the tts_service
parameter, must match the service_name
defined in the TTS integration.
You can use the Assist tts.speak
service, but it is required to specify the tts engine entity_id. For example, entity_id: tts.piper
string
| REQUIRED | CONFIGThe name of the notify service
string
| REQUIRED | CONFIGThe service_name of a TTS platform
string
| REQUIRED | CONFIG & SERVICE QUEUEThe entity_id of a LMS media_player (single or list for service queue)
string
| REQUIRED | CONFIG | (optional) | SERVICE QUEUE & SERVICE NOTIFYSpecify which entity_id to track. Messages are not played when state != home
Can be any entities/groups when it has a home
state
string
| (optional) | CONFIGThe entity_id of the TTS engine (for TTS service "tts.speak" only)
float
(optional) | CONFIG & SERVICE QUEUE & SERVICE NOTIFYDefault volume to play the alert_sound and message
float
(optional, default=0.5) | CONFIGSeconds to pause before and after alert sound and after tts message
string
(optional) | CONFIG & SERVICE QUEUE & SERVICE NOTIFYDefault name of the playlist in LMS to play before the message
number
(optional) | CONFIG & SERVICE QUEUE & SERVICE NOTIFYDefault value to repeat the message
boolean
| SERVICE QUEUE & SERVICE NOTIFYSkip check device_group
state is home
string
| CONFIG & SERVICE QUEUE & SERVICE NOTIFYA preset or custom audio file to be played before TTS audio. ChimeTTS option.
string
| CONFIG & SERVICE QUEUE & SERVICE NOTIFYA preset or custom audio file to be played after TTS audio. ChimeTTS option.
float
| CONFIG & SERVICE QUEUE & SERVICE NOTIFYDelay between audio segments when value > 0, or overlays audio segments when value < 0. ChimeTTS option.
float
| CONFIG & SERVICE QUEUE & SERVICE NOTIFYDelay (in milliseconds) added to the end of the audio. ChimeTTS option.
float
| CONFIG & SERVICE QUEUE & SERVICE NOTIFYSpeed of the TTS audio. ChimeTTS option.
float
| CONFIG & SERVICE QUEUE & SERVICE NOTIFYTTS pitch in semitones. ChimeTTS option.
A service lms_tts_notify.queue
is also added (besides the notify service for each player) for easy use with the automations gui