Volume adjuster doesn't work


#21

Thank you that is what I will do next.


#22

OK I decided on a new volume of 45%. I stopped the piston and set the speakers in the SmartThings app to 45%. I then used the get volume command and received this back. VolumeLevel1.0192.168.1.3615 OK that is great. So I went into the Piston and changed the setting to 2215. Is that correct? If so why does the volume creep down?


#23

I know you don’t want full volume, but I would recommend playing something like nature sounds at 100% volume, then run the same test as before. Knowing what the max number is for your speaker will be very helpful for all your future coding.


#24

That will have to wait until my wife is far away. I still don’t understand why the volume creeps down.


#25

Did you split up the piston into two pistons?

One piston monitoring/adjusting Speaker 4…
and another monitoring/adjusting speaker 5.


#26

That return from GetVolume looks identical to the previous. I would take some suggestion from @WCmore, set the speak volume to 3 distinct volumes say 0, 25 and 50. Each time run the GetVolume URL and screenshot what is displayed.

If you can show me the returns and they vary I should think we can sort this.

I wouldn’t worry about splitting pistons yet as we aren’t even able to figure out the correct request to send, so priority is finding the right request.


#27

Well that’s the thing though… By splitting it up, it would make trouble shooting much easier. I have had issues in the past with double GET requests not being as reliable as single GET requests.


#28

He’s manually running the GET requests and not getting the expected outcome too, so until the manual interaction works I’d suggest not working with the piston at all.


#29

Oh that’s right. You suggested that he run thru a web browser…
My bad… Please carry on. :sunglasses:


#30

Next time it drops I will show you the return. What is strange is that one speaker drops not the other. I checked the IP which is correct. So no idea why the drop for one.


#31

Here is the output. Dropped to 30% and both show VolumeLevel1.0192.168.1.32public15


#32

This may be a dumb question, but shouldn’t each speaker have a different IP address?


#33

They do, but I posted one as they both are the same.


#34

What is interacting with the speakers to make them drop?


#35

This seems to happen after a piston sends a voice command to the speakers. Example the front door opens I have a piston to play a greeting message. Once it plays the volume drops.I have checked that the pistons have no level set.


#36

I will come back here when we know what 100% volume displays. I just went thru this entire thread, and the numbers you listed don’t match up logically.

50 = 90% volume
15 = 45% volume
15 = 30% volume

Once we know the max number, we should be able to diagnose this.

Just a reminder, to PAUSE any speaker pistons before running the test, otherwise the piston may change the display before you get a chance to copy it to your clipboard. (I suspect that is what happened to the middle example above)


#37

GetVolume seems to return the same thing no matter what the volume is set to, which isn’t helpful. Next suggestion is try issuing SetVolume commands with different values, such as 1, 3 and 5 to see what volume they produce. You’d need a URL like http://192.168.1.32:55001/UIC?cmd=<name>SetVolume</name><p%20type=ā€œdecā€%20name=ā€œvolumeā€%20val=ā€œ1ā€/> for 1, http://192.168.1.32:55001/UIC?cmd=<name>SetVolume</name><p%20type=ā€œdecā€%20name=ā€œvolumeā€%20val=ā€œ3ā€/> for 3 and http://192.168.1.32:55001/UIC?cmd=<name>SetVolume</name><p%20type=ā€œdecā€%20name=ā€œvolumeā€%20val=ā€œ5ā€/> for 5.

As @WCmore says pause all pistons which could interact with the speakers before running further tests as your not able to be sure it doesn’t change. You need to use the URLs and the phone app and compare as you go.


#38

Right now I am checking through all my smartapps that use the speakers to see if one is causing this. But if it is the problem, once it speaks it should return to original. I will keep you informed. Right now I have to go to a security meeting.


#39

OK I have an update! After looking at every app and Piston I have that has nany voice or music capability, I found some that had preset volumes. The volumes just happened to be 45% what I wanted. But I decided to remove all the presets and allow the Piston to control the volume levels. I then started testing by running my automatons relating to sound and voice. So far so good the volume hasn’t changed, I will continue to test. I will update this later on.


#40

OK I think the problem is solved or sleeping at this time. It has been a full day and it has remained at 45%. I have my fingers crossed that it stays that way.