Sony's Developer World forum

    • Home
    • Forum guidelines

    When the API returns false information...

    Audio Control API
    str-dn1080 api audio control
    2
    2
    3209
    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

      Hi. This may be of some use to somebody debugging their app/s. After many months of things working nicely, the getSpeakerSettings function starting giving me false info. Some of the speakers were listed as not available, yet they were previously configured and still working. Here is a snippet of the output:

      {
              "candidate": [
                {
                  "isAvailable": true,
                  "max": 10,
                  "min": -10,
                  "step": 0.5,
                  "title": "Surround R",
                  "titleTextID": "surroundRLevel",
                  "value": "0.0"
                }
              ],
              "currentValue": "0.0",
              "deviceUIInfo": "picker",
              "isAvailable": false,
              "target": "surroundRLevel",
              "title": "Surround R",
              "titleTextID": "speaker-speakerlevel-surroundr",
              "type": "doubleNumberTarget"
            },
      

      Note the "isAvailable": false, and the "currentValue": "0.0", lines -- neither were correct.

      I couldn't see anything wrong in the receiver's setup menu. Nothing had been reconfigured recently. Eventually after a factory reset, it's back to normal:

      {
              "candidate": [
                {
                  "isAvailable": true,
                  "max": 10,
                  "min": -10,
                  "step": 0.5,
                  "title": "Surround R",
                  "titleTextID": "surroundRLevel",
                  "value": "-3.5"
                }
              ],
              "currentValue": "-3.5",
              "deviceUIInfo": "picker",
              "isAvailable": true,
              "target": "surroundRLevel",
              "title": "Surround R",
              "titleTextID": "speaker-speakerlevel-surroundr",
              "type": "doubleNumberTarget"
            },
      

      I have had this AV receiver get into a weird state twice previously by powering it off at the wall (via a smart switch) before powering it off on the AVR itself. One time the Chromecast stopped working, and the other time the WiFi stopped working -- if I remember correctly. Both times solves with factory reset.

      So I try to be careful to power off on the AVR before cutting the power to it. But maybe I need to wait a longer period after powering off (more than the 5 seconds it takes to tell Alexa to power it off at the wall)?

      Anyhoo, if your receiver gets garbage info from the API out-of-the-blue, try a factory reset!

      1 Reply Last reply Reply Quote
      • dmelnik3289
        dmelnik3289 Banned last edited by

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