Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
getSleepTimerSettings v1.0 on STR-DN1080
-
Hi. I'm trying to set the sleep timer on the STR-DN1080 with setSleepTimerSettings. I have tried
"30"
and"60"
for the"value"
parameter, and"sleepTimerMin"
for the"target"
parameter, and get this result:{ "id": 8, "result": [] }
However, when querying the receiver with getSleepTimerSettings v1.0, I get the following result:
{ "id": 8, "result": [ [ { "candidate": [ { "isAvailable": true, "title": "2:00:00", "value": "120" }, { "isAvailable": true, "title": "1:30:00", "value": "90" }, { "isAvailable": true, "title": "1:00:00", "value": "60" }, { "isAvailable": true, "title": "0:30:00", "value": "30" }, { "isAvailable": true, "title": "Off", "value": "off" }, { "isAvailable": false, "title": "", "value": "" } ], "currentValue": "", "isAvailable": true, "target": "sleepTimerMin", "title": "Sleep", "titleTextID": "clocktimer-sleeptimer" } ] ] }
The
"currentValue"
parameter returned is always""
.I notice that the timer setting for Sony's MusicCenter app also doesn't work. This is strange because the documentation shows the only device supported is the STR-DN1080 for these commands.
Is there something that I'm missing here please?
EDIT: So my receiver turned off, so the
setSleepTimerSettings
command must be working, but thegetSleepTimerSettings
command doesn't. -
@grolschie I tested here and I see the same result. Then sending the message setSleepTimerSettings I see the timer set in the display on the device, so the timer is set and is working.
But the getSleepTimerSettings I cant get the current settings only the available options.
Have reported the problem. -
@david, thank you.
-
Hi @david. Another correction for the documentation please:
The docs list the following values for
setSleepTimerSettings
:
off, 10, 20, 30, 40, 50, 60, 70, 80, 90, 120
.However, the accepted values that I've found so far are:
off, 0, 30, 60, 90, 120
. -
There are more products that have the sleep timer that supports the other time settings. But I see that the note
Not all settings are valid for all products. Use the getSleepTimerSettings method to get the valid settings for the current product.
Is only under "settings.target" it should be more general. I will put it on my TODO list...
-
@david, thanks. Understood. The only product listed under getSleepTimerSettings and setSleepTimerSettings is the STR-DN1080.