Eine Funk Fernbedienung mit Rolling Code Smart machen mit ESP 8266 ESP-01 Relais und ioBroker
!!! Achtung !!!
In der Einstellung von Tasmota. Unter MQTT.
Unten wo "client " steht. (unter Port)
Da muss noch der "Name" (Fernbedienung) rein.
Sonst zeigt der Sonoff Adapter nur den Gerätenamen an.
Direkt flashen -> https://arendst.github.io/Tasmota-firmware/
Tasmota Image = http://ota.tasmota.com/tasmota/release/
Node MCU Flash Player = https://github.com/marcelstoer/nodemcu-pyflasher/releases
Code= Fernbedienung = Ein Datenpunkt erstellen für die Cloud.
In der Alexa App 2 Routinen erstellen.
Fahr die Jalousie hoch = Fernbedienung = einschalten
Fahr die Jalousie runter = Fernbedienung = ausschalten
Einrichten vom ESP-01
1. einmal die Konsole öffnen
2.Das einzeln Eingeben:
Blockly Code
- <xml xmlns="http://www.w3.org/1999/xhtml">
- <block type="on" id="WN75}yHz.*};cOIywaw0" x="137" y="62">
- <field name="OID">Meine_Geräte.0.Fernbedienung</field>
- <field name="CONDITION">any</field>
- <field name="ACK_CONDITION"></field>
- <statement name="STATEMENT">
- <block type="controls_if" id="b.nb-s!R.mQ7TVA}BB)b">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="logic_compare" id="t*Nh@Bf[*aH`IouK-J^-">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="on_source" id="pM_zB.%0!,lZvxV)B=|)">
- <field name="ATTR">state.val</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="-+$}.XM1A[1(?4Zp;,~7">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="m*6mkuN?G9+i`QysV7$K">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.DVES_7A8875.POWER1</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="K;Q@S$%k8R[SJp!/=~np">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="control" id="s`8p9*w_r3iapA%i=8Qg">
- <mutation delay_input="true"></mutation>
- <field name="OID">sonoff.0.DVES_7A8875.POWER1</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="q1Pg#J23v[Mf/?`fR3p^">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="control" id="WO%]LLr8a6(A#jc]M![p">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.DVES_7A8875.POWER2</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id=";j.:r;aG+C~Op*9dL{me">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="control" id="jI,F)XggX1)zB}i^={j~">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.DVES_7A8875.POWER1</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="%lWsCPR5HgOO.*x-MC(O">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="control" id="Xx}oc1fjmTb*L];tG##/">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.DVES_7A8875.POWER2</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id=":$UEp!wZCL2`Cc9FwGfi">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="control" id="V]jL$FVDH:d~d{$_z,e:">
- <mutation delay_input="true"></mutation>
- <field name="OID">sonoff.0.DVES_7A8875.POWER2</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="M!f4D$%I^QUkiq;P~ag[">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </xml>