Closed dopemanfunk closed 4 years ago
Have you tried creating a script for this and then calling the script in the Dashio add on? So it looks roughly like this....
{ "timeout": 20, "buttons": [ { "name": "Angelsoft", "address": "00:FC:8B:04:EC:92", "domain": "script", "service": "whateveryoucallthescript", "service_data": "{}" } ] }
Then create a scripts.yaml file if you havent already got one. Then in there create what you want like this....
whateveryoucallthescript: alias: giveitanicename sequence:
I think that should work - There is probably a way of doing it with the media player pause that you have above too - I was just copying an example that I had.
Hope that helps?
Neil
I have the same problem as @dopemanfunk but as @neilma1 suggested, it works if you use a script for a mediaplayer action for sonos.
@neilma1 that worked! Thank you so much!
Been searching for a bit, but can't find anything related to my problem. Sorry if it's glaringly obvious, new to this.
While working from home I listen to music on my Sonos speakers. If I get a call, I can't pause my music through my phone and have to physically get up or run over to my speakers and hit the pause button on there. I'm trying to setup an Amazon Dash button so that it toggles pause/play (mainly just pause, since after the phone call I can use the app to start it again) but keep running into errors. I'm using Hass.io v 0.94.4 on a RPi 3 hardwired into my router (tried wireless too). I can setup Hass.io just fine, and I use the Dasshio add-on to trigger the dash button.
My code for dasshio is:
And the errors I'm getting are:
So it can see the button is being pushed, it just can't find that service I guess. I believe my error is in the domain, but I can't seem to figure out which domain I should use.
I also can't seem to find info on a status code 400 for a bad request. I can use the developer services tool on the bottom left of the hass.io screen to trigger the sonos. This is how I got the service/entity id.
Any help is very much appreciated, this seems overly complicated for a simple button to pause music, but I am learning a lot.