This object is in archive! 

Pull Sonos volume level from Zipato Tile / my.zipato -Zipato Rule Creator

John Kristensen shared this question 8 years ago
Need Answer

Is it possible to pull Sonos volume level from Zipato Tile / my.zipato -Zipato Rule Creator? and place it into a variable?

Best Answer
photo

John wants to avoid continuing with colume at level 40 if the event occurs while he is already using the Sonos to listen to music. The volume should be adjusted back to «listening to music volume level» after the alert message have finished. A fair request, I think. :-)


I cant help out, since I don't own a Sonoa system, unfortunately.

Replies (6)

photo
1

Hi not sure, what you mean. but adding a SONOS control (play, pauze, mute, next, back, volume) is easy. In addition you can install the SONOS app for Android on the device.

I have not figured out how to access the sonos app or control the volume with one led buttons.

photo
1

Yes, I would perhaps have been a little more precise when I formulated my question.

Have an existing simple rule, which play an MP3 file at a volume of 40% when there is someone in my driveway. This function just fine!

But I would like, if Sonos already playing, to play my MP3 at the same volume that is selected.

photo
1

pull the volume and store/send it where? What are you trying to achieve here?


You can always use the sonos api and get the value this way.

photo
1

John wants to avoid continuing with colume at level 40 if the event occurs while he is already using the Sonos to listen to music. The volume should be adjusted back to «listening to music volume level» after the alert message have finished. A fair request, I think. :-)


I cant help out, since I don't own a Sonoa system, unfortunately.

photo
1

I would like to achieve:

- If Sonos play sound (TV or music), I would like to play an MP3 at the same volume, which is already playing at.


- If Sonos does not play, I will play an MP3 at a volume of 40%

And these conditions should be as part of my existing rule (please see the attached screenshot Scr01.png in this thread)

So Adrian,

If I can access the volume through the Sonos API. it might be a solution.

How is this done? from a HTTP GET or what?

photo
1

There's no way to do this (that I know of). You can't interrogate the attributes of Sonos devices directly in the Zipabox (which is silly) and you can't do HTTP GETs to obtain information in the Zipabox, either (which is another big deficiency).

The only way around this would be to write a script, say like a Google App Script, which does the HTTP GET and sends the result to the Zipabox. But when would it run, since it has no idea when your Sonos system is on? If your alert plays at a specific time of day, then it would be feasible to run the script slightly before that to get the volume level and be able to restore it afterwards. But if the time is not predictable, it's much trickier. You'd need to run the script every 10 minutes or something, and hope that you managed to get the right volume level when you need it. Very unsatisfactory.

If there were a way to trigger Google App Scripts from the Zipabox, you could close the circle. But unfortunately GAS seems to be designed to prevent this. I haven't found any way to do it.

Leave a Comment
 
Attach a file