Xiaomi Temperatur Sensor

  • da soll einer hin aber der is leider noch nicht da. wenn der so nicht kleben sollte nimm ich ein klecks Silikon dann hält es auf jedenfall. Bei mir kommt der direkt unter den dachüberstand damit er auch vor jeglichem Wetter geschützt ist.

  • deswegen nur einen klecks, dann bekommst den immer noch ab wenn die Batterie gewechselt werden muss.

    oder du guckst das du es nur auf den Deckel des Batteriefachs machst dann kannst ihn bei bedarf vom Deckel drehen neue Batterie rein und wieder drauf drehen

  • Ja man kann die Temperatur eines Sensors über Alexa abfragen.

    Hierfür sind 3 Schritte notwendig.

    a.) Datenpunkt und in der Cloudinstanz als Smart-Gerät erstellen

    schimmer-media.de/index.php?attachment/1/

    schimmer-media.de/index.php?attachment/2/

    b.) Blocky-Skript schreiben

    c.) Alexa Routine erstellen


    a.) Zunächst muss ein/zwei Datenpunkte erstellt werden(Im Beispiel:

    a1.) Letzte_Sprachausgabe_von_Alexa

    und

    a.2) Status_Temperaturen_Aqara

    zu b.)

    Skript b1

    <xml xmlns="http://www.w3.org/1999/xhtml">

    <block type="on" id="H#6W%1F@dXrhnXtUZ%Rs" x="-450" y="-136">

    <field name="OID">Meine.Schalter.Status_Temperaturen_Aqara</field>

    <field name="CONDITION">ne</field>

    <field name="ACK_CONDITION"></field>

    <statement name="STATEMENT">

    <block type="controls_if" id="Y3tUcxfwZWjNl}9d;?X}">

    <value name="IF0">

    <block type="logic_compare" id="Fcp]^FA^qR:y|h{8N_mg">

    <field name="OP">EQ</field>

    <value name="A">

    <block type="get_value" id="PU`TmtPLZ-ImU|UBb6uv">

    <field name="ATTR">val</field>

    <field name="OID">Meine.Schalter.Status_Temperaturen_Aqara</field>

    </block>

    </value>

    <value name="B">

    <block type="logic_boolean" id="=Fv{N_Lk?Uyu*;RL7:K#">

    <field name="BOOL">TRUE</field>

    </block>

    </value>

    </block>

    </value>

    <statement name="DO0">

    <block type="variables_set" id="69YJ7cJ7cJx:V*DjKEn(">

    <field name="VAR">Temperaturen-Aqara</field>

    <value name="VALUE">

    <block type="lists_create_with" id="qGqN%m=iv+^)a7SS^W];">

    <mutation items="0"></mutation>

    </block>

    </value>

    <next>

    <block type="lists_setIndex" id="WE}6+[=X:~(_t/YLhT})">

    <mutation at="false"></mutation>

    <field name="MODE">INSERT</field>

    <field name="WHERE">LAST</field>

    <value name="LIST">

    <block type="variables_get" id="hZQDl%+eYqqsRg/p)^_1">

    <field name="VAR">Temperaturen-Aqara</field>

    </block>

    </value>

    <value name="TO">

    <block type="text_join" id="]kv9DkTE4P(91l]Ex_b`">

    <mutation items="3"></mutation>

    <value name="ADD0">

    <block type="text" id="vzk+*Yo|P0_|eA=A}OEd">

    <field name="TEXT">Im Zimmer von Vivienne ist es </field>

    </block>

    </value>

    <value name="ADD1">

    <block type="get_value" id=";D`,_Q|`9XxFgkAGnjs-">

    <field name="ATTR">val</field>

    <field name="OID">mihome.0.devices.weather_v1_158d00023236da.temperature</field>

    </block>

    </value>

    <value name="ADD2">

    <block type="text" id="y8|9ZsSq:J(BxvTqo+[s">

    <field name="TEXT"> Grad </field>

    </block>

    </value>

    </block>

    </value>

    <next>

    <block type="lists_setIndex" id="*UvjP_Q(,Kv8~(J!B3Tp">

    <mutation at="false"></mutation>

    <field name="MODE">INSERT</field>

    <field name="WHERE">LAST</field>

    <value name="LIST">

    <block type="variables_get" id="9v3_(B/S=9TIwd(GKl?:">

    <field name="VAR">Temperaturen-Aqara</field>

    </block>

    </value>

    <value name="TO">

    <block type="text_join" id="HG^pi9GjIeG?A=Zxdp[P">

    <mutation items="3"></mutation>

    <value name="ADD0">

    <block type="text" id="S?7,ol=~d~w7zQb5jHb(">

    <field name="TEXT">Im Wohnzimmer ist es </field>

    </block>

    </value>

    <value name="ADD1">

    <block type="get_value" id="1b`R1={O~yq7VR/Ysd)y">

    <field name="ATTR">val</field>

    <field name="OID">mihome.0.devices.weather_v1_158d000231f077.temperature</field>

    </block>

    </value>

    <value name="ADD2">

    <block type="text" id="0}_7(6)g{Oo|9Bu!M,81">

    <field name="TEXT"> Grad </field>

    </block>

    </value>

    </block>

    </value>

    <next>

    <block type="lists_setIndex" id="Q%/*7l3~l1{x.cG:BO|9">

    <mutation at="false"></mutation>

    <field name="MODE">INSERT</field>

    <field name="WHERE">LAST</field>

    <value name="LIST">

    <block type="variables_get" id="rp@Iz.,=}D-vYXcyZ0z%">

    <field name="VAR">Temperaturen-Aqara</field>

    </block>

    </value>

    <value name="TO">

    <block type="text_join" id="Q0fdhAzmVp@{2wjKU~ho">

    <mutation items="3"></mutation>

    <value name="ADD0">

    <block type="text" id="*)0/LA4R7P)h8L!*2JDg">

    <field name="TEXT">Im Schlafzimmer ist es</field>

    </block>

    </value>

    <value name="ADD1">

    <block type="get_value" id="mSU)4H,pXck.{bO9XQz7">

    <field name="ATTR">val</field>

    <field name="OID">mihome.0.devices.weather_v1_158d000234d3f1.temperature</field>

    </block>

    </value>

    <value name="ADD2">

    <block type="text" id="x;`W_Q406n%-|rYQxYRa">

    <field name="TEXT"> Grad </field>

    </block>

    </value>

    </block>

    </value>

    </block>

    </next>

    </block>

    </next>

    </block>

    </next>

    </block>

    </statement>

    <next>

    <block type="control" id="Bzf6P]#_hBuuf?LB}X5A">

    <mutation delay_input="false"></mutation>

    <field name="OID">Meine.Schalter.Letzte_Sprachausgabe_von_Alexa</field>

    <field name="WITH_DELAY">FALSE</field>

    <value name="VALUE">

    <block type="text_join" id="8j=0v4Ui[Bc_[`Drl](F">

    <mutation items="3"></mutation>

    <value name="ADD0">

    <block type="text" id="jJ.F%4dt{M41inXuV+S5">

    <field name="TEXT">In den Räumen sind derzeit folgende Temperaturen </field>

    </block>

    </value>

    <value name="ADD1">

    <block type="variables_get" id="l?7Us`I!wYLCTthRK)m{">

    <field name="VAR">Temperaturen-Aqara</field>

    </block>

    </value>

    <value name="ADD2">

    <block type="text" id="{VRI91T/7eBcqkb_mW42">

    <field name="TEXT"> </field>

    </block>

    </value>

    </block>

    </value>

    <next>

    <block type="control" id="dgR)7O6i[Y:6LC{_:P{s">

    <mutation delay_input="false"></mutation>

    <field name="OID">Meine.Schalter.Status_Temperaturen_Max!</field>

    <field name="WITH_DELAY">FALSE</field>

    <value name="VALUE">

    <block type="logic_boolean" id="H4![AYLBO#`;kfS]~Osq">

    <field name="BOOL">FALSE</field>

    </block>

    </value>

    </block>

    </next>

    </block>

    </next>

    </block>

    </statement>

    </block>

    </xml>

    und Skript b2

    <xml xmlns="http://www.w3.org/1999/xhtml">

    <block type="on_ext" id="=Rr)|[)P=/xSw[*p@HAX" x="-462" y="288">

    <mutation items="1"></mutation>

    <field name="CONDITION">any</field>

    <field name="ACK_CONDITION"></field>

    <value name="OID0">

    <shadow type="field_oid" id="Amf/[+*S8sR%.#b31ayi">

    <field name="oid">Meine.Schalter.Letzte_Sprachausgabe_von_Alexa</field>

    </shadow>

    </value>

    <statement name="STATEMENT">

    <block type="control" id=";9XVOQW:Za?a%#}!jb5X">

    <mutation delay_input="false"></mutation>

    <field name="OID">alexa2.0.History.#trigger</field>

    <field name="WITH_DELAY">FALSE</field>

    <value name="VALUE">

    <block type="logic_boolean" id="!{/J-6pI{;~rk~s04LDv">

    <field name="BOOL">TRUE</field>

    </block>

    </value>

    <next>

    <block type="control" id="wsThwEex*II(Yn}cXajO">

    <mutation delay_input="true"></mutation>

    <field name="OID">alexa2.0.History.#trigger</field>

    <field name="WITH_DELAY">TRUE</field>

    <field name="DELAY_MS">2000</field>

    <field name="UNIT">ms</field>

    <field name="CLEAR_RUNNING">FALSE</field>

    <value name="VALUE">

    <block type="logic_boolean" id="V%-i{ka^,bh:C+Tc]jyJ">

    <field name="BOOL">FALSE</field>

    </block>

    </value>

    <next>

    <block type="timeouts_settimeout" id="*/?y2c@I)lXNsOu)f~Zz">

    <field name="NAME">timeout</field>

    <field name="DELAY">1500</field>

    <field name="UNIT">ms</field>

    <statement name="STATEMENT">

    <block type="variables_set" id="rrPD^;I0++7:]6p*8Zjq">

    <field name="VAR">Sprachtext</field>

    <value name="VALUE">

    <block type="get_value" id="jSl.:PhYlqM*Y0L[b+mI">

    <field name="ATTR">val</field>

    <field name="OID">Meine.Schalter.Letzte_Sprachausgabe_von_Alexa</field>

    </block>

    </value>

    <next>

    <block type="debug" id=",fip40DeIy+2,-7Tb!/c">

    <field name="Severity">debug</field>

    <value name="TEXT">

    <shadow type="text" id="3tC#-/];_h-R^y#BO)[{">

    <field name="TEXT">Script letzte Alexa gestartet</field>

    </shadow>

    </value>

    <next>

    <block type="controls_if" id="t#8|40K?P{ZDhH%PJGMk">

    <mutation elseif="2"></mutation>

    <value name="IF0">

    <block type="logic_compare" id="57gw*G[!F4]~y^XDc=%a">

    <field name="OP">EQ</field>

    <value name="A">

    <block type="get_value" id="za9FJZv^BRDuvdwjh_q|">

    <field name="ATTR">val</field>

    <field name="OID">alexa2.0.History.name</field>

    </block>

    </value>

    <value name="B">

    <block type="text" id="{LJOE%,A-L9N~FkJNh:r">

    <field name="TEXT">Klaus's Echo Dot</field>

    </block>

    </value>

    </block>

    </value>

    <statement name="DO0">

    <block type="control" id="_mED?~X#!N#UCZ43:~/]">

    <mutation delay_input="false"></mutation>

    <field name="OID">alexa2.0.Echo-Devices.G090L91180922J9C.Commands.speak</field>

    <field name="WITH_DELAY">FALSE</field>

    <value name="VALUE">

    <block type="variables_get" id="}z3JULu#fO]#7JA?L%Ue">

    <field name="VAR">Sprachtext</field>

    </block>

    </value>

    </block>

    </statement>

    <value name="IF1">

    <block type="logic_compare" id=").}Ec))QbwH{LaG:HwI8">

    <field name="OP">EQ</field>

    <value name="A">

    <block type="get_value" id="2e[q+?fyj|(cw9[ZB8d{">

    <field name="ATTR">val</field>

    <field name="OID">alexa2.0.History.name</field>

    </block>

    </value>

    <value name="B">

    <block type="text" id="rv.;Y]U!wD;l}:EDEHXy">

    <field name="TEXT">Rosemarie</field>

    </block>

    </value>

    </block>

    </value>

    <statement name="DO1">

    <block type="control" id="NUUNkwtm15knVPLfM_8s">

    <mutation delay_input="false"></mutation>

    <field name="OID">alexa2.0.echo-devices.G090L90964350EPM.Commands.speak</field>

    <field name="WITH_DELAY">FALSE</field>

    <value name="VALUE">

    <block type="variables_get" id="bJSmR5Q`sBTV#)I)b]q|">

    <field name="VAR">Sprachtext</field>

    </block>

    </value>

    </block>

    </statement>

    <value name="IF2">

    <block type="logic_compare" id="CTyZKs%phce[{X*[G!e?">

    <field name="OP">EQ</field>

    <value name="A">

    <block type="get_value" id="D61[V%rATChI2ijgfP25">

    <field name="ATTR">val</field>

    <field name="OID">alexa2.0.History.name</field>

    </block>

    </value>

    <value name="B">

    <block type="text" id="rq`-g3ytg.M|`/LN+!eh">

    <field name="TEXT">Schlafzimmer</field>

    </block>

    </value>

    </block>

    </value>

    <statement name="DO2">

    <block type="control" id="FlyR4JIkJ0+0/v0}*^ra">

    <mutation delay_input="false"></mutation>

    <field name="OID">alexa2.0.echo-devices.G090L910721512JR.Commands.speak</field>

    <field name="WITH_DELAY">FALSE</field>

    <value name="VALUE">

    <block type="variables_get" id=".GIg0[7@kpdXj{;b;ton">

    <field name="VAR">Sprachtext</field>

    </block>

    </value>

    </block>

    </statement>

    </block>

    </next>

    </block>

    </next>

    </block>

    </statement>

    </block>

    </next>

    </block>

    </next>

    </block>

    </statement>

    </block>

    </xml>

    zu c.)

    Routine auf Alexa

    Sprachbefehl Alexa, Sensoren.

    Aktion hinzufügen - Smart Home - Gerät steuern - Datenpunkt auswählen

    Von nun an liest dir Alexa die Sensorwerte vor. Dies kann natürlich auch für Max!-Thermostate genutzt werden.

    Einige wichtige Teile(ich danke den entsprechenden Autoren) der gesamten Vorgehensweise sind verstreut in diesem Forum zu finden. Wer suchet der findet ...:)

    Das Ganze ist Multialexa-fähig d.h. die Sprachausgabe erfolgt auf dem Alexa-Gerät auf dem die Frage/das Kommando gestellt wurde.

    Gruss K-L-S

    2 Mal editiert, zuletzt von K_L_S (23. September 2018 um 09:22)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!