@floris-b many thanks for your great work, I try to migrate away from the old alert script.
I have TTS and alert sound working on 1 player, but I seem to have a few issues:
I have no idea how I can add multiple players, the list as stated in previous post doesn’t work (and not listed players cannot be used ?), might be worth adding it in the docs.
Invalid config for [notify.lms_tts_notify]: value should be a string for dictionary value @ data['media_player']. Got ['media_player.squeezebox_wit', 'media_player.keuken']
Is there any way just to play a sound, without TTS, would be great for doorbell for example. Now it is mandatory
Triggered manually at 4 november 2021 19:42:03
Call service notify.squeezebox_keuken
Stopped because an error was encountered at 4 november 2021 19:42:03 (runtime: 0.01 seconds)
required key not provided @ data['message']
Hi,
I have some problems getting this to work - I think i missed something…
I have a LMS running on a RaspberryPi 3 with a Squeezelite Player configuration named “Infospeaker”.
I can play my music from ma LMS library on that Player - this works fine.
In HA I have installed the LMS TTS Notify Plugin and configured my configuration.yaml like this:
First make sure the squeezebox player and TTS works in HomeAssistant
Also do not forget to set playlist location in LMS, if not set the restore playlist does not work after the alert message
I would like to use this, BUT… i have no tts service i can use.
I have a local rhasspy rather then an online service.
I can publish per mqtt for rhasspy to speak using the snips: integration, but there is no tts service (i have no idea how to make one).
While squeezelite is using the soundcard i dont hear anything from rhasspy, so i would like rhasspy speaking throught LMS
@floris-b Is there any way to use your Notify queue using mqtt?
Thats how i use it for answering rhasspy requests.
hello, I can’t get the music back after a tts. I have a playlist that is being created, I see that the music before the tts is recorded there but it does not restart. In “playlist” on home assistant, I see the file but if I click to launch it manually, I have this error:
Have u ticked the ‘Force play’ box and switched it on? ( This in UI-mode)
Here’s an example in yaml-mode:
service: lms_tts_notify.queue
data:
entity_id: media_player.es9023
message: There is someone at the door!
volume: 0.1
force_play: true
alert_sound: Doorbell
Offcource make sure that if you use an alert-sound, u have a playlist with the same name defined in lms.
When I make a service call that references multiple speakers like below. Does this sync the multiple speakers before sending the audio?
service: lms_tts_notify.queue
data:
entity_id:
- media_player.lms_formal
- media_player.lms_kitchen
- media_player.lms_lr
message: Ring ring, ring ring ring. There is someone at the door. Ring ring, ring ring ring.
force_play: true
volume: 0.75
It seems like in some cases the speakers don’t do the tts announcement in sync if multiple are specified.
I got it working, but now i have another problem. When the Squeezebox is off and the script starts, everything is fine, but after the script its starts playing music instead of going off again.