floris-b / lms_tts_notify Goto Github PK
View Code? Open in Web Editor NEWLogitech Media Server TTS Notify Queue for Home Assistant
Logitech Media Server TTS Notify Queue for Home Assistant
I have multiple LMS players, 1 in each room the ability to play a notification on multiple devices sync'd would be great.
Hi!
LMS tts notify stopped working (it was working without issues in the past). Now I can play notification only once, and in the log of HomeAssistant even that first try ends with error "Uncaught thread exception".
Please see attached log.
I use squeezebox on raspberry 3.
lms_error.txt
BR
Greg
Hi
Is it possible to have turning off the player as an option rather than be forced as it shuts off the screensaver
Thanks in advance
Thank you for this great integration.
I'm able to play messages on each of my players separately. However, when I set an action to address all of them at once, in the visual editor this is not possible because only one entity can be selected.
I know that when editing automation in the HA UI, I can use the embedded yaml editor for the action and manually define a list of player IDs for entity_id
like this:
entity_id:
- media_player.player01
- media_player.player02
This works, but when I edit the automation again, it opens in the visual editor and the above list is reduced to the first item. Quite annoying as it silently modifies the automation:/
Would it be possible to somehow change the definition for action's entity_id property in the integration, so that multiple players could be selected?
Is it possible to use mp3 as notification, for example door.mp3 and after them resume played playlist?
I'm using this with HA 2021.11.1 and installed via HACS. The LMS server is 8.3.0. With a track playing on a client, I send a TTS using the "LMS TTS Notify: Say an TTS message to a LMS player" service and this plays just fine, but the track does not resume. Is there a way to let this happen?
Thanks for responding so quickly but it is still not fixed.
``
Deze fout is ontstaan door een aangepaste integratie.
Logger: root
Source: custom_components/lms_tts_notify/init.py:432
Integration: LMS TTS Notify (documentation, issues)
First occurred: 11:21:44 (1 occurrences)
Last logged: 11:21:44
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/config/custom_components/lms_tts_notify/init.py", line 432, in run
if ( not home or home.state == 'home' or self.force_play ) and silent.state=='off':
AttributeError: 'NoneType' object has no attribute 'state'
``
Hi,
Trying to configure notify and a test it flashes up on the LMS player screen but no announcement is made. Here is the error in the log, not sure what to change.
I have force play set in the automation
Thanks
2021-07-27 12:57:22 INFO (MainThread) [homeassistant.components.automation.new_automation] New Automation: Executing step call service 2021-07-27 12:57:22 DEBUG (MainThread) [custom_components.lms_tts_notify] Received on event bus: {'entity_id': 'media_player.office', 'message': 'testing', 'force_play': True, 'volume': 0.3} 2021-07-27 12:57:22 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save state: media_player.office -> {'state': 'playing', 'attributes': {'sync_group': [], 'volume_level': 0.27, 'media_position': 12, 'repeat': '0'}} 2021-07-27 12:57:22 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save playlists: media_player.office 2021-07-27 12:57:22 DEBUG (Coordinator) [custom_components.lms_tts_notify] UnSync media_player.office 2021-07-27 12:57:22 ERROR (office_queue) [root] Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/config/custom_components/lms_tts_notify/__init__.py", line 403, in run home = self._hass.states.get(self._device_group).state AttributeError: 'NoneType' object has no attribute 'state'
After installing v0.3.12 i get this error in my log:
`Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/config/custom_components/lms_tts_notify/init.py", line 126, in run
self.save_state()
File "/config/custom_components/lms_tts_notify/init.py", line 298, in save_state
attributes['query_result']['_p2'] = 0
KeyError: 'query_result'
`
I'v restarted several times but still the same error. I reverted to v0.3.11 and everything works.
If you have a player with a playlist loaded and call the TTS notify it resumes the playlist playing when message is done even if device was silent before.
It plays for a couple of seconds then stops.
Current behaviour:
No 3 is not expected.
Let me know if you need more information
Your addon works like a charm when permission on folder is set
However, I really miss language option (for non english speakers) and cache (usefull when HA is offline)
Hi, would it be hard to implement a change to save & restore playlist even if at the moment of announcement the player is stopped/paused?
Right now it the player is playing, the whole process goes well. But if it's not playing and has a playlist defined, it gets cleared out and not restored.
I have defined 2 notifies with different alert sounds. The fist defined alarm sound is overwritten by the second. So both notifies use the alarm sound "Hinweis".
After deleting the the second notify "Sound_Aktor_Hinweis", the first notify is played with the right alert sound.
notify:
- platform: lms_tts_notify
name: Sound_Aktor_Alarm
tts_service: tts.google_say
media_player: media_player.squeezelite_997344
device_group: group.all_persons
alert_sound: Alarm
volume: 1.0
- platform: lms_tts_notify
name: Sound_Aktor_Hinweis
tts_service: tts.google_say
media_player: media_player.squeezelite_997344
device_group: group.all_persons
alert_sound: Hinweis
volume: 0.8
I have some glich in sound. I can't explain this sound... Like stop speaking for a bit after every letter. I got this trouble for all time when i trying to send TTS to LMS devices.
I have 3 andriod device with SbPlayer Installed and two LMS server. All of them have this bug(
notify:
- platform: lms_tts_notify
name: kitchen
entity_id: tts.piper
tts_service: tts.speak
media_player: media_player.the_kitchen
device_group: group.parents
force_play: true
alert_sound: Alert
volume: 0.5
Playback starts back up which is great but if i enqueue a pandora station, it restarts the station completely and not just pause/play the current song. So if im in the middle of a jam and i get a notification, it starts playing a different song. Not a huge deal, but curious if that is something that can be mitigated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.