Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Cloud Dienste
    4. Temperatur mit Alexa abfragen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Temperatur mit Alexa abfragen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Aphofis
      Aphofis @BBTown last edited by

      Ich verstege es nicht, warum es nicht funktioniert.
      Ich habe einen Datenpunkt erzeugt, wie hier beschrieben.
      Bildschirmfoto 2019-06-16 um 13.17.59.png
      Dann habe ich ein Blockly Script wie hier eingebunden erstellt.

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="72I2IFRvo7M]b!+g`fp+">Ausgabetext</variable>
          <variable type="undefined" id="timeout">timeout</variable>
        </variables>
        <block type="on_ext" id="Ac;^b|`@QSn~WL%:8Hxc" x="-588" y="-563">
          <mutation items="1"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="hD}F{s%j}T;e:l|Y_t5O">
              <field name="oid">Eigene_Datenpunkte.Alexa_Sprachsteuerung.Aquarium_Temperatur</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="variables_set" id="5VFfHYTB!S7A^A*?SicA">
              <field name="VAR" id="72I2IFRvo7M]b!+g`fp+" variabletype="">Ausgabetext</field>
              <value name="VALUE">
                <block type="text_join" id="4?k[0reCRn.mjkxHg41~">
                  <mutation items="2"></mutation>
                  <value name="ADD0">
                    <block type="text_join" id="ZmQmi(8rSQwnTHmbtjXY">
                      <mutation items="2"></mutation>
                      <value name="ADD0">
                        <block type="text" id="75Z)Wn`YF@;38~bIM;pA">
                          <field name="TEXT">Die Aquarium Wassertemperatur ist,</field>
                        </block>
                      </value>
                      <value name="ADD1">
                        <block type="get_value" id="Wbs}M!Y#v^O/FCR=ZHbS">
                          <field name="ATTR">val</field>
                          <field name="OID">sonoff.0.Aqua_Sensoren.DS18B20-1_Temperature</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="ADD1">
                    <block type="text" id="gj9|0C4CJF7J/jO@)Qa0">
                      <field name="TEXT">Grad,</field>
                    </block>
                  </value>
                </block>
              </value>
              <next>
                <block type="timeouts_settimeout" id="xA_MJ^@=AB=-WtDTe(3}">
                  <field name="NAME">timeout</field>
                  <field name="DELAY">500</field>
                  <field name="UNIT">ms</field>
                  <statement name="STATEMENT">
                    <block type="comment" id="s30b2{fSQ:a0uC3`+QWU">
                      <field name="COMMENT">Aquarium</field>
                      <next>
                        <block type="controls_if" id="l(E24=q]l]b,GJDj4dSj">
                          <value name="IF0">
                            <block type="logic_compare" id="MKwJn0C!O]xc!~.9|B`*">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="p-SHbJ5Dmwr6djxg2ohH">
                                  <field name="ATTR">val</field>
                                  <field name="OID">alexa2.0.History.name</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="?}A;8(IyMF%F@(t]Kc~+">
                                  <field name="TEXT">Aquarium</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id=")M^jLcZ!hCpj,X={-`nV">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">alexa2.0.Echo-Devices.G090LV0371040175.Commands.speak</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="p)bNOdcZFVoq1e^M5V-.">
                                  <field name="VAR" id="72I2IFRvo7M]b!+g`fp+" variabletype="">Ausgabetext</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <next>
                    <block type="debug" id="rXH);cF5o{s@[/$5}*l7">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id="}QU.58yyq1?uvTO[7RV;">
                          <field name="TEXT">Script wurde ausgelöst</field>
                        </shadow>
                      </value>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      

      Bildschirmfoto 2019-06-16 um 13.19.16.png

      Dann im Cloud Adapter den Datenpukt als switch verknüpft.
      In Alexa eine Routine erstellt mit Echo, wie ist meine Aquarium Temperatur.
      Doch wenn ich Echo frege, passiert nichts außer das der Datenpunkt auf true wechselt aber dann auch auf true stehen bleibt. Alexa macht nur beding und mehr nicht.
      Wenn ich in speak in meinem Echo in Objekte einen Text eingebe sagt Alexa bzw Echo dann auch den vorgegebenen
      Text.
      Wo liegt das Problem!?

      BBTown 1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown @Aphofis last edited by

        @Aphofis ich wiederum verstehe nicht weshalb Du versuchst das ganze über ein Script zu lösen, wenn Du nur den Datenpunkt mit der Temperatur auslesen und ansagen müsstest.
        Aber dafür muss der Datenpunkt dann auch als value.temperatur, number, und mit der Einheit "°C´" eingerichtet sein.

        Dein Datenpunkt "Aquarium Temperatur" ist hingegen eine "Schalter" (switch) und den kann man nun einmal nur schalten.

        Im übrigen solltest Du nicht den Cloud-Adapter verwenden, für deine Aufgabenstellung ist der IoT-Adapter gedacht.
        Der Cloud-Adapter wird zukünftig im wesentlichen für Fernzugriffe auf ioBroker verwendet werden (Zugriff über die Cloud)

        Aphofis 1 Reply Last reply Reply Quote 0
        • Aphofis
          Aphofis @BBTown last edited by Aphofis

          @BBTown
          Das habe ich auch schon versucht! Das hat auch nicht funktioniert!
          Ich habe schon alles mögliche probiert über cloud oder iot adapter und beide Iobroker Adpater sind eingerichtet und verknüpft.
          Wenn im cloud adapter ein smart Gerät eingerichtet wird ist er auch im iot zusehen und auch anders herum.

          BBTown 1 Reply Last reply Reply Quote 0
          • BBTown
            BBTown @Aphofis last edited by BBTown

            @Aphofis ändere als erstes mal den Datenpunkt mit der Temeperaturangabe entsprechend ab und zeige den RAW anschließend hier, so wie ich es etwas weiter untern gemacht habe.

            1 Reply Last reply Reply Quote 0
            • Aphofis
              Aphofis last edited by

              RAM habe ich dann so geändert!

              {
                "from": "system.adapter.admin.0",
                "user": "system.user.admin",
                "ts": 1560685577673,
                "common": {
                  "name": "Aqua-Controller.Aquarium.TEMPERATURE",
                  "type": "number",
                  "unit": "°C",
                  "role": "value.temperature",
                  "def": 0,
                  "min": -40,
                  "max": 80,
                  "read": true,
                  "write": true,
                  "smartName": {
                    "de": "Aquarium",
                    "smartType": "THERMOSTAT"
                  }
                },
                "native": {},
                "acl": {
                  "object": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                },
                "_id": "Eigene_Datenpunkte.Alexa_Sprachsteuerung.Aquarium_Temperatur_",
                "type": null
              }
              
              BBTown 1 Reply Last reply Reply Quote 0
              • BBTown
                BBTown @Aphofis last edited by BBTown

                @Aphofis Dann müßte Alexa nunmehr den Datenpunkt "Aquarium" finden und im IoT Adapter sollte dieser auch auftauchen?!

                Welchen Skill hast Du in Alexa aktiviert?
                ioBroker-IoT oder ioBroker-Cloud?

                Welcher Wert steht derzeit im Datenpunkt "Aqua-Controller.Aquarium.TEMPERATURE" ?
                Was Antwortet Alexa bei der Frage: "Alexa, wie ist die Temperatur im Aquarium"

                PS
                Die min. -40 und max 80 scheinen für ein Aquarium recht ungewöhnlch zu sein 😉

                1 Reply Last reply Reply Quote 0
                • Aphofis
                  Aphofis last edited by Aphofis

                  Im Datenpunkt Wert steht nichts.
                  Verknüpft sind beide ! cloud sowie iot

                  Naja ich kann auch +10 und +35 nehmen aber da hast du wohl recht!
                  Nur wenn wir draußen 80 Grad haben sollten dann denke ich ist auch unsere Welt schon dem UNtergang geweiht!☺
                  Routine ist, Sprach befehl: Alexa wie ist meine Aquarium Temperatur.
                  Dazu soll sie dann das Gerät Datenpunkt Aqua-Controller.Aquarium.TEMPERATURE auf true steuern ich hatte jetzt noch nicht den alten datenpunkt gelöscht und neu gesucht.

                  Aphofis BBTown 2 Replies Last reply Reply Quote 0
                  • Aphofis
                    Aphofis @Aphofis last edited by Aphofis

                    komischerweise, ist jetzt der Datenpunkt in iot und cloud verschwunden wenn ich ein smart Gerät erstellen will.
                    In Iobroker Objekte ist der Datenpunkt noch vorhanden.

                    Mein RAW:

                    {
                      "from": "system.adapter.admin.0",
                      "user": "system.user.admin",
                      "ts": 1560685577673,
                      "common": {
                        "name": "Aqua-Controller.Aquarium.TEMPERATURE",
                        "type": "number",
                        "unit": "°C",
                        "role": "value.temperature",
                        "def": 0,
                        "min": 10,
                        "max": 35,
                        "read": true,
                        "write": true,
                        "smartName": {
                          "de": "Aquarium",
                          "smartType": "THERMOSTAT"
                        }
                      },
                      "native": {},
                      "acl": {
                        "object": 1636,
                        "owner": "system.user.admin",
                        "ownerGroup": "system.group.administrator"
                      },
                      "_id": "Eigene_Datenpunkte.Alexa_Sprachsteuerung.Aquarium_Temperatur_",
                      "type": "number"
                    }
                    
                    1 Reply Last reply Reply Quote 0
                    • BBTown
                      BBTown @Aphofis last edited by BBTown

                      @Aphofis sagte in Temperatur mit Alexa abfragen:

                      Im Datenpunkt Wert steht nichts.

                      Dann kann Alexa auch keine Temperatur ansagen.

                      @Aphofis sagte in Temperatur mit Alexa abfragen:

                      Dazu soll sie dann das Gerät Datenpunkt Aqua-Controller.Aquarium.TEMPERATURE auf true steuern ich hatte jetzt noch nicht den alten datenpunkt gelöscht und neu gesucht.

                      Nein, der Datenpunkt soll nicht auf TRUE gesteuert werden.
                      In diesen Datenpunkt gehört die aktuell gemessene Temperatur rein.
                      Wo sonst steht denn die aktuelle Temperatur, die angesagt werden soll?

                      Aphofis 1 Reply Last reply Reply Quote 0
                      • Aphofis
                        Aphofis @BBTown last edited by

                        @BBTown

                        Ne das mir auch klar hab den Type in RAW schon geändert! Da type eine nummern ausgabe ist
                        Die Temp kommt von einem DS18B20-1_Tepmerature über ESP8266 mit Tasmota Sonoff.

                        Bildschirmfoto 2019-06-16 um 14.32.40.png

                        BBTown 1 Reply Last reply Reply Quote 0
                        • Aphofis
                          Aphofis last edited by

                          Ich verstehe noch nicht ganz wie der Wert da rein kommt,
                          wenn nicht über das Blockly, da in der RAW ja nix steht das die Temp aus dem Sonoff gelesen werden soll.

                          1 Reply Last reply Reply Quote 0
                          • BBTown
                            BBTown @Aphofis last edited by BBTown

                            @Aphofis ja und weshalb fragst Du dann nicht genau den Datenpunkt ab, wenn der Wert da schon vorhanden ist?
                            Was soll denn das ganze drumherumgebastel?

                            Aphofis 1 Reply Last reply Reply Quote 0
                            • Aphofis
                              Aphofis @BBTown last edited by

                              @BBTown
                              Weil ich das direkte einbinden dieses Datenpunktes schon versucht hatte, doch Alexa erzählt mir nicht welche Temperatur das eingerichtete Smart Gerät hat.

                              BBTown 1 Reply Last reply Reply Quote 0
                              • BBTown
                                BBTown @Aphofis last edited by

                                @Aphofis dann zeige doch mal den RAW dieses Datenpunktes

                                1 Reply Last reply Reply Quote 0
                                • Aphofis
                                  Aphofis last edited by Aphofis

                                  {
                                    "from": "system.adapter.admin.0",
                                    "user": "system.user.admin",
                                    "ts": 1560685577673,
                                    "common": {
                                      "name": "Aqua-Controller.Aquarium.TEMPERATURE",
                                      "type": "number",
                                      "unit": "°C",
                                      "role": "value.temperature",
                                      "def": 0,
                                      "min": 10,
                                      "max": 35,
                                      "read": true,
                                      "write": true,
                                      "smartName": {
                                        "de": "Aquarium",
                                        "smartType": "THERMOSTAT"
                                      }
                                    },
                                    "native": {},
                                    "acl": {
                                      "object": 1636,
                                      "owner": "system.user.admin",
                                      "ownerGroup": "system.group.administrator"
                                    },
                                    "_id": "Eigene_Datenpunkte.Alexa_Sprachsteuerung.Aquarium_Temperatur_",
                                    "type": "number"
                                  }
                                  

                                  Das ist die momentane RAW
                                  und der Datenpunkt vom Temp Sensor sieht so aus.

                                  {
                                    "_id": "sonoff.0.Aqua_Sensoren.DS18B20-1_Temperature",
                                    "common": {
                                      "type": "number",
                                      "role": "value.temperature",
                                      "read": true,
                                      "write": false,
                                      "unit": "°C",
                                      "name": "Aqua_Sensoren_Aquarium",
                                      "smartName": {
                                        "de": "Aquarium Temperatur",
                                        "smartType": "THERMOSTAT"
                                      }
                                    },
                                    "native": {},
                                    "type": "state",
                                    "from": "system.adapter.sonoff.0",
                                    "user": "system.user.admin",
                                    "ts": 1560631090272,
                                    "acl": {
                                      "object": 1636,
                                      "state": 1636,
                                      "owner": "system.user.admin",
                                      "ownerGroup": "system.group.administrator"
                                    }
                                  }
                                  
                                  BBTown 1 Reply Last reply Reply Quote 0
                                  • BBTown
                                    BBTown @Aphofis last edited by BBTown

                                    @Aphofis benenne den Smartnamen "Aquarium mal in etwas völlig anderes um
                                    dann benennst Du den Temp-Sensor auf "Aquarium" um

                                    Im Bereich "native" steht als "type": "state", ändere diesen mal auf "FLOAT" (so stehe es bei mir) oder "number"

                                    Aphofis 1 Reply Last reply Reply Quote 0
                                    • Aphofis
                                      Aphofis @BBTown last edited by

                                      @BBTown
                                      Habe ich geändert!
                                      nur wenn ich den wert im Sonoff Sensor von State auf number oder float ändere ist in der übersicht die Temperatur verschwunden. Setzte ich es zurück auf State ist die Temperatur wieder da.
                                      Alles weitere teste ich Morgen.

                                      M 1 Reply Last reply Reply Quote 0
                                      • T
                                        TorbenNW @apocalypse last edited by TorbenNW

                                        @apocalypse said in Temperatur mit Alexa abfragen:

                                        Hallo zusammen, ich wollte euch auch mal meine Umsetzung zeigen.

                                        Ich habe vor einer Woche etwa angefangen den ioBroker zu installieren, in Verbindung mit Alexa und ich komme sehr gut mit Node Red zurecht.

                                        Darin habe ich auch das Zusammenspiel von Alexa und dem Auslesen der aktuellen Temperatur umgesetzt:
                                        11805_bildschirmfoto_2019-01-02_um_23.29.28.png
                                        11805_bildschirmfoto_2019-01-02_um_23.31.26.png
                                        11805_bildschirmfoto_2019-01-02_um_23.32.52.png
                                        11805_bildschirmfoto_2019-01-02_um_23.33.56.png
                                        11805_bildschirmfoto_2019-01-02_um_23.34.24.png

                                        Das Ganze habe ich dann als Routine in der Alexa App erstellt:
                                        11805_bildschirmfoto_2019-01-02_um_23.36.56.png

                                        VG

                                        Dennis

                                        Danke - mit dem iobroker input sogar noch ohne das lesen/respone möglich.
                                        Sehr simple Geschichte - super!

                                        sigi234 1 Reply Last reply Reply Quote 0
                                        • sigi234
                                          sigi234 Forum Testing Most Active @TorbenNW last edited by

                                          @TorbenNW

                                          Kannst du den Flow hochladen?

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            TorbenNW @sigi234 last edited by

                                            @sigi234

                                            [
                                                {
                                                    "id": "6910cfca.38536",
                                                    "type": "tab",
                                                    "label": "Temperaturansagen",
                                                    "disabled": false,
                                                    "info": ""
                                                },
                                                {
                                                    "id": "ccf94307.cb036",
                                                    "type": "amazon-echo-hub",
                                                    "z": "6910cfca.38536",
                                                    "port": "80",
                                                    "enableinput": false,
                                                    "x": 100,
                                                    "y": 60,
                                                    "wires": [
                                                        [
                                                            "213bb398.a065cc"
                                                        ]
                                                    ]
                                                },
                                                {
                                                    "id": "213bb398.a065cc",
                                                    "type": "amazon-echo-device",
                                                    "z": "6910cfca.38536",
                                                    "name": "Temperatur Schlafzimmer",
                                                    "topic": "",
                                                    "x": 330,
                                                    "y": 60,
                                                    "wires": [
                                                        [
                                                            "f927e866.ddff48"
                                                        ]
                                                    ]
                                                },
                                                {
                                                    "id": "f927e866.ddff48",
                                                    "type": "ioBroker get",
                                                    "z": "6910cfca.38536",
                                                    "name": "Lese Temperatur Schlafzimmer",
                                                    "topic": "zigbee.0.00158d000323059c.temperature",
                                                    "attrname": "payload",
                                                    "payloadType": "value",
                                                    "x": 590,
                                                    "y": 60,
                                                    "wires": [
                                                        [
                                                            "946af687.5b5738"
                                                        ]
                                                    ]
                                                },
                                                {
                                                    "id": "946af687.5b5738",
                                                    "type": "function",
                                                    "z": "6910cfca.38536",
                                                    "name": "Temperatur auslesen",
                                                    "func": "var str = msg.payload;\nvar res = str.substr(0, 5);\nmsg.payload = Math.round(res);\nmsg.payload = \"Es sind \" + msg.payload + \" Grad im Schlafzimmer\";\nmsg.url = \"\";\nreturn msg;",
                                                    "outputs": 1,
                                                    "noerr": 0,
                                                    "x": 840,
                                                    "y": 60,
                                                    "wires": [
                                                        [
                                                            "d111d86b.a19228",
                                                            "2815dbba.74d3a4"
                                                        ]
                                                    ]
                                                },
                                                {
                                                    "id": "2815dbba.74d3a4",
                                                    "type": "ioBroker out",
                                                    "z": "6910cfca.38536",
                                                    "name": "speak",
                                                    "topic": "alexa2.0.Echo-Devices.G090U6109186088H.Commands.speak",
                                                    "ack": "false",
                                                    "autoCreate": "false",
                                                    "x": 1030,
                                                    "y": 60,
                                                    "wires": []
                                                },
                                                {
                                                    "id": "d111d86b.a19228",
                                                    "type": "debug",
                                                    "z": "6910cfca.38536",
                                                    "name": "",
                                                    "active": true,
                                                    "tosidebar": true,
                                                    "console": false,
                                                    "tostatus": false,
                                                    "complete": "false",
                                                    "x": 1040,
                                                    "y": 140,
                                                    "wires": []
                                                }
                                            ]
                                            

                                            Nutze das ganze mit dem "node-red-contrib-amazon-echo" Node

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

                                            Support us

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

                                            481
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            23
                                            81
                                            18753
                                            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