Sony's Developer World forum

    • Home
    • Forum guidelines

    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

    Audio Control API
    str-dn1080 bug api audio control
    2
    6
    4656
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      grolschie last edited by grolschie

      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 the getSleepTimerSettings command doesn't.

      1 Reply Last reply Reply Quote
      • D
        david DeveloperWorld last edited by

        @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.

        G 2 Replies Last reply Reply Quote
        • G
          grolschie @david last edited by

          @david, thank you.

          1 Reply Last reply Reply Quote
          • G
            grolschie @david last edited by

            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.

            1 Reply Last reply Reply Quote
            • D
              david DeveloperWorld last edited by

              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...

              G 1 Reply Last reply Reply Quote
              • G
                grolschie @david last edited by grolschie

                @david, thanks. Understood. The only product listed under getSleepTimerSettings and setSleepTimerSettings is the STR-DN1080.

                1 Reply Last reply Reply Quote
                • First post
                  Last post
                Developer World
                Copyright © 2021 Sony Group Corporation. All rights reserved.
                • Contact us
                • Legal