I’ve just read the docs for integrating Squeezebox (Logitech Media Server) with HA. While it gives an example of the Body content for the json post, it doesn’t say what URL to use (e.g. for an IFTTT webhook). Can anyone tell me what the URL should look like?
I’ve configured an IFTTT applet as per the example for the Logitech Squeezebox:
…but HA is reporting errors with the request.
IFTT webhook:
URL: https://mydns.ddns.net:8123/api/services/media_player/play_media?api_password=mypassword
Method: POST
Content Type: application/json
Body: { “entity_id”: “media_player.kitchen”, “command”: “playlist”, “parameters”: [“loadtracks”, “album.titlesearch={{TextField}}”] }
This generates the following in the HA log:
2018-01-16 11:11:50 ERROR (MainThread) [homeassistant.core] Invalid service data for media_player.play_media: extra keys not allowed @ data[‘command’]. Got ‘playlist’
extra keys not allowed @ data[‘parameters’]. Got [‘loadtracks’, ‘album.titlesearch=late for the sky’]
required key not provided @ data[‘media_content_id’]. Got None
required key not provided @ data[‘media_content_type’]. Got None
Has anyone managed to use Logitech Media Server to play music via IFTTT and HA?
1 Like