Giter Club home page Giter Club logo

lms_tts_notify's People

Contributors

floris-b avatar savikko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lms_tts_notify's Issues

LMS tts notify stopped working

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

Not turn off the player be default

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

Setting multiple players not possible when adding action in the visual editor

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?

issue percists in v0.3.13

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'
``

Playlist saved but no announcement

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'

error after installing v0.3.12

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.

playlist starts to play after TTS message is over (even if not playing before TTS)

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:

  1. device silent
  2. device plays TTS message
  3. device plays next track in playlist queue for a couple of seconds
  4. device silent

No 3 is not expected.

Let me know if you need more information

Add language and cache

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)

Save & restore playlist even when not playing?

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.

alert_sound overwrite

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

Error when adding as custom repository in HACS

When trying to install by adding as a custom repository , there is an error warning of failing compliance .

image

<Plugin floris-b/lms_tts_notify> Repository structure for v0.3.14 is not compliant

This is a HA supervised ( Home Assistant 2022.10.4
and
HACS v. (Integration version: 1.28.2)

Glich TTS

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(

Pyrrha (Pandora Integration)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.