This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
Suggestion: Control speech output volume
This discussion has been closed.
Comments
And I'm gonna add a flow card to control the volume, so please don't bother :-)
If I could lower the volume to 50%, that would expand my available testing time past my kids' bedtime
According to the API documentation (REST link) every requests needs at least the following headers:
Content-Type: application/json
Authorization: Bearer youruniquetoken
I have found no easy way to get your unique bearer token, but here is at least where you can find it: Go to my.athom.com right click the homey icon and copy it's link address. The token is a GET parameter.
@emile:
When trying a GET command on /api/manager/speaker/ I get the following result:
When trying a POST command on /api/manager/speaker/ with an additional header of "volume: 0.5" I get the result:
Am I doing something wrong?
Use Chrome (Yeah...)
Install "Advanced Rest Client" extension from the Chome Webstore ( via http://chromerestclient.appspot.com/ )
Get your bearer_token from the login page URL (where you select your Homey after the logon (http://10.1.2.3/?bearer_token=2002c000Deaf001000bad1000effe000hace0002 of cookie ;-) ))
Open the extension and create a PUT (no POST ! !!)
to >
Header:
Payload:
Press Send
Result:
Let your girlfriend end kids sleep!!
Happy Hacking this night ;-)
Did I do it wrong?
Perhaps athom has a WADL that can be used.
{ "volume" : 0.3 }
(With spaces and a semicolumn .... not { "volume"=0.3 } )
But still, even with { "volume" : 0.3 } it's not working
Even in an incognito browser (to check te requirements for cookies. )
Volume settings survives after a reboot.
Homey 0.8.17 / Windows 10 / Chrome Version 48.0.2564.109 m (64-bit)
I don't get a response back apparently...
And did you log in to Homey in the browser?
(although it works for me using an incognito window without loging on to my.athom or homey )
I'll give it another try tomorrow
Here is my result, it worked perfectly for me.