Thank you that is what I will do next.
Volume adjuster doesn't work
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?
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.
That will have to wait until my wife is far away. I still donāt understand why the volume creeps down.
Did you split up the piston into two pistons?
One piston monitoring/adjusting Speaker 4ā¦
and another monitoring/adjusting speaker 5.
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.
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.
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.
Oh thatās right. You suggested that he run thru a web browserā¦
My bad⦠Please carry on.
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.
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.
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)
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.
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.
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.
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.