bernikr / lovelace-notify-card

Send notifications directly from the dashboard
MIT License
45 stars 16 forks source link

Card not functional w/ companion app on mobile device #32

Closed Zwo12 closed 1 week ago

Zwo12 commented 1 month ago

Hi there,

I don't know exactly when but eventually the notifcation card stopped working for me in terms of playing TTS on my media players. Currently I am using the latest version of HA (2024.9.1), HACS (2.0.1) and this lovelace card.

So I started tweaking around and finally got it working in the browser (Firefox), sending TTS messages either via the button or hitting . Nevertheless using the companion app (2024.8.1, 2024.791) on my iPhone I keep getting the error message "_The action tts/google_translate_say could not be executed. Required key not provided @ data['entityid']" whenever I try to send a message.

Any idea?

The YAML code looks as follows:

type: custom:notify-card
label: Nachricht Sonos Bad
card_title: ''
action: tts.google_translate_say
data:
  message: $MSG
  title: $TITLE
  entity_id: media_player.sonos_bad
target: tts.google_translate_say

I am thankful for any hint...

ZTHawk commented 3 weeks ago

Your code is working for me. aybe your companion app needs to refresh the UI? After app asked to refresh, everything was working fine.

Zwo12 commented 1 week ago

Thanks for checking, @ZTHawk!

After one of the recent updates (companion app to 2024.9.4 (2024.905) and/or HA to 2024.10.1) it is working now. I had to get rid of the title entry under the data field though:

type: custom:notify-card
label: Nachricht Sonos Bad
card_title: ''
action: tts.google_translate_say
data:
  message: $MSG
  entity_id: media_player.sonos_bad
target: tts.google_translate_say