Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Alexa(?) übermittelt falsche Werte an ioBroker

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Alexa(?) übermittelt falsche Werte an ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dYna last edited by

      Hallo,

      ich steuere die Lautstärke meines AVR mit Alexa und JS.

      Objekt:

      {
        "_id": "javascript.0.avr.set_volume",
        "type": "state",
        "common": {
          "name": "set_volume",
          "role": "",
          "type": "number",
          "read": true,
          "write": true,
          "desc": "Manuell erzeugt",
          "min": 0,
          "max": 60,
          "def": 30,
          "unit": "",
          "smartName": {
            "de": "AVR"
          }
        },
        "native": {},
        "from": "system.adapter.admin.0",
        "ts": 1521143094206,
        "acl": {
          "object": 1638,
          "state": 1638
        }
      }
      

      Code:

      var http = "http://avr.lan/goform/formiPhoneAppDirect.xml?";
      
      on({id: "javascript.0.avr.set_volume", change: "any"}, function (obj) {
      var x = obj.state.val;
      console.log(x);
      if (x === 0) {
          require("request")(http + 'MUON');
          }
          else if (x > 60) {
              require("request")(http + 'MV' + 60);        
          }
          else { 
              require("request")(http + 'MV' + x);
          }
      });
      

      Wenn ich Alexa sage, dass sie auf zB 30 stellen soll, kommt bei ioBroker 18 an.

      Hier mal ein paar Werte:

      30 -> 18
      35 -> 21
      40 -> 24
      45 -> 27
      50 -> 30
      
      

      Laut Alexa Historie versteht sie mich korrekt, aber irgendwo wird er Wert verändert.

      Manuelles setzen des Wertes funktioniert.

      Danke!

      1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators last edited by

        kann es sein, dass es einmal db und einmal % sind?

        oder eher % vom max?

        50% von 60 = 30.

        Gruß

        Rainer

        1 Reply Last reply Reply Quote 0
        • D
          dYna last edited by

          Ich verändere die Werte nach Ankunft durch Alexa ja nicht mehr, sondern gebe diese eins zu eins durch, insofern dürfte diese Unterscheidung keinen Unterschied machen.

          Oder meinst du, dass Alexa aus "stelle auf 30" dann 30% des Maximalwertes macht?

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators last edited by

            @dYna:

            Oder meinst du, dass Alexa aus "stelle auf 30" dann 30% des Maximalwertes macht? `
            Genau das meine ich.

            Ich habe kein Alexa - aber das passt zu deinen Werten

            Gruß

            Rainer

            1 Reply Last reply Reply Quote 0
            • D
              dYna last edited by

              Hast Recht.

              Danke!

              Aber wie muss denn ein Objekt oder Datenpunkt aussehen, dass Alexa an diesen absolute Werte und nicht Prozent übermittelt?

              1 Reply Last reply Reply Quote 0
              • dslraser
                dslraser Forum Testing Most Active last edited by

                Bin unterwegs…Hier ein Handyscreenshot

                PS: Die max Lautstärke kannst Du ja im AVR geringer als 100 setzen, damit Dir nicht ausversehen was um die Ohren fliegt. (Volume Limit)![](</s><URL url=)<link_text text="https://uploads.tapatalk-cdn.com/201803 ... cebdf9.jpg">https://uploads.tapatalk-cdn.com/20180330/977f2bd5dbf5cf3b6058df25b9cebdf9.jpg</link_text>" /> 3822_20180330_195518.jpg

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Support us

                ioBroker
                Community Adapters
                Donate
                FAQ Cloud / IOT
                HowTo: Node.js-Update
                HowTo: Backup/Restore
                Downloads
                BLOG

                482
                Online

                31.7k
                Users

                79.6k
                Topics

                1.3m
                Posts

                3
                6
                491
                Loading More Posts
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes
                Reply
                • Reply as topic
                Log in to reply
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                The ioBroker Community 2014-2023
                logo