home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.74k stars 30.85k forks source link

media_player.play_media no longer working with Fully Kiosk devices afte r 2024.11 #130528

Open stuartm opened 4 days ago

stuartm commented 4 days ago

The problem

I have a couple of automations that play sounds (mp3) on Tablets using the fully kiosk integration. These were working great right up to 2024.10 but after the upgrade to 2024.11 I only get the following error popup on the Tablets (appearing after several seconds).

"Failed loading sound: Wrong URL or unsupported format?"

Installed versions of Fully Kiosk are a mix of 1.54.1 and 1.56.2. The tablets themselves have no internet access and therefore haven't been updated or changed in any way for a long time. The only change was the update to 2024.11 from 2024.10, the issue being noticed almost immediately after the upgrade of Home Assistant.

What version of Home Assistant Core has the issue?

2024.11

What was the last working version of Home Assistant Core?

2024.10

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Fully Kiosk

Link to integration documentation on our website

https://www.home-assistant.io/integrations/fully_kiosk/

Diagnostics information

No response

Example YAML snippet

action: media_player.play_media
data:
  media_content_id: media-source://media_source/media/doorbell.mp3
  media_content_type: audio/mpeg
target:
  entity_id: media_player.fire_tablet

Anything in the logs that might be useful for us?

Absolutely nothing useful appears in Home Assistant logs

Additional information

No response

home-assistant[bot] commented 4 days ago

Hey there @cgarwood, mind taking a look at this issue as it has been labeled with an integration (fully_kiosk) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `fully_kiosk` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign fully_kiosk` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


fully_kiosk documentation fully_kiosk source (message by IssueLinks)

erkr commented 3 days ago

I noticed your issue and tried if I could replicate it on my setup. But it works fine. My settings are more extensive though:

target:
  entity_id: media_player.tablet_57
data:
  media_content_id: >-
    media-source://media_source/local/Door-Bell-Ding-A2-www.fesliyanstudios.com.mp3
  media_content_type: audio/mpeg
metadata:
  title: Door-Bell-Ding-A2-www.fesliyanstudios.com.mp3
  thumbnail: null
  media_class: music
  children_media_class: null
  navigateIds:
    - media_content_type: app
      media_content_id: media-source://media_source
continue_on_error: true
action: media_player.play_media

But it also works when I cut it down similar to your code:

target:
  entity_id: media_player.tablet_57
data:
  media_content_id: >-
    media-source://media_source/local/Door-Bell-Ding-A2-www.fesliyanstudios.com.mp3
  media_content_type: audio/mpeg
action: media_player.play_media

I'm running FK version 1.56.2-play on a Samsung tablet