My media_player.play_media seems to have broken after upgrading to core-2021.4.0. I have a second Pi running Kodi as a media player, and everything (tts.google_say and media_player.play_media), works correctly when I revert to core-2021.3.4, but as soon as I upgrade to core-2021.4.0 it breaks with the following errors:
(-32602, ‘Invalid params.’, {‘error’: {‘code’: -32602, ‘data’: {‘method’: ‘Player.Open’, ‘stack’: {‘message’: ‘Received value does not match any of the union type definitions’, ‘name’: ‘item’, ‘type’: ‘object’}}, ‘message’: ‘Invalid params.’}, ‘id’: 6792423075333964854, ‘jsonrpc’: ‘2.0’})
The same thing happens in Node Red when I call it with a call service node:
{
"media_content_id": "http://192.168.0.115:8123/local/sounds/ding.mp3",
"media_content_type": "audio/mp3"
}
If I try to set the volume level it throws an error:
“Failed to call service media_player/volume_set.expected float for dictionary value @ data[‘volume_level’]”, which also works when I revert to core-2021.3.4
My automation is:
alias: Play MP3
description: ''
trigger: []
condition: []
action:
- data:
media_content_id: http://192.168.0.115:8123/local/sounds/ding.mp3
media_content_type: audio/mp3
entity_id: media_player.rpi4
service: media_player.play_media
mode: single
I’m running Home Assistant OS Home Assistant OS 5.13 on a RPi4.
Any suggestions on what else to try to troubleshoot this?
Thanks