Prottengeier


ESP8266 mit 6 Tasten und 230/5V Converter

Schaltplan
Platinenlayout
Gehäusebeschriftung

6 Tasten an D1-D6 gesetzt auf Generic (18)/ Switch 1-6
so114 1 und switchmode1-6 auf 1 gesetzt

Gehäuse 100x60x25mm über
Amazon
Taster 6x6x17mm über
Amazon
Auswertung per Script und Steuerung von
ESP01 Dimmer 1 Kanal

Script: (aus Blockly)
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="I7r%NK,S6r_habI0ySW6">Dimmer1</variable>
</variables>
<block type="comment" id="9WX!TR8%eC[jc`92CkU|" x="63" y="-12">
<field name="COMMENT">WZ Steuerung</field>
<next>
<block type="comment" id="sD,C[^3FzVZ8uXz^h|hA">
<field name="COMMENT">ON/OFF RGB TV</field>
<next>
<block type="on_ext" id="~OuewD82ljo}I@DO,ocT">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">lt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="Yj3/L~LRo1+pa$)QQ^n6">
<field name="oid">sonoff.0.WZ_Steuerung.Switch5_Action</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="toggle" id="%J6V)4[gGS?$Ada5{Sc5">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Licht_TV.POWER</field>
<field name="WITH_DELAY">FALSE</field>
</block>
</statement>
<next>
<block type="comment" id="y-TDL8p0g(rpiPjeU_AB">
<field name="COMMENT">ON/OFF Licht</field>
<next>
<block type="on_ext" id="VvUWHr|_3fi7LOkIUTyW">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">lt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="YRx#xy#~T8pP^Kz?oIB(">
<field name="oid">sonoff.0.WZ_Steuerung.Switch2_Action</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="toggle" id="Z;g-!o7SX`0r8Bd1CU^{">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Licht_WZ.POWER</field>
<field name="WITH_DELAY">FALSE</field>
</block>
</statement>
<next>
<block type="comment" id="?hy?e=e,kfrp^g`=}a]A">
<field name="COMMENT">Dimmer TV</field>
<next>
<block type="on_ext" id="]@L9)=FZZ!=[7=[/YOtg">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="Ve#[%H;*)b|)}gdSD[QD">
<field name="oid">sonoff.0.WZ_Steuerung.Switch6_Action</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="aM7+[/}xLK0%jkIR,9/z">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="get_value" id="BQ}/B43Na6]}L7ABp$9H">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Licht_TV.Dimmer</field>
</block>
</value>
<next>
<block type="variables_set" id="APrp~%lX[;=HU$n-:9Zk">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="math_arithmetic" id="5Kp1nBUa4t`bLx05lK}|">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fJd,XvEU1%lMoNr]EfR(">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="{*H5)b(Z0|_5^SL;QpBN">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="(hB09vjO6F.*v3+Pum4L">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="*2?RvUd2R^~7-)OGXfd:">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Licht_TV.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="6huhy8^8@#i{Zm8=naP?">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="on_ext" id="9v^S}08,hJpYxVchyiPe">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="2abauz%0Xo.`0bSq.fiA">
<field name="oid">sonoff.0.WZ_Steuerung.Switch4_Action</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="QpZ,aGjvMuQTa2[+IsDf">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="get_value" id=".OC$2p.*0;u-dn5Lew~l">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Licht_TV.Dimmer</field>
</block>
</value>
<next>
<block type="variables_set" id="T*?ngVZJpO.bM$|w6vCQ">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="math_arithmetic" id="959K8E,6+AEJx3!H!nGy">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="fJd,XvEU1%lMoNr]EfR(">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="Xov/U*JK^a-puLK,l6?#">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Zi[fr3!2R8ox__%qYY,[">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="dw[#VF5rY{4uZ45N83#/">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Licht_TV.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="#aY,0.O+AO=?(2%Xy4I?">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="g1+664^(rl3fra!;N^2M">
<field name="COMMENT">Dimmer Licht</field>
<next>
<block type="on_ext" id="Jb5;6e$pL$eO;F5_r_t1">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="7#I||:G3`6plkvm$1UZ*">
<field name="oid">sonoff.0.WZ_Steuerung.Switch1_Action</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="Reh{jkoh:0kyhg3jZV*k">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="get_value" id="unja_@P43sMbsBZc-eM%">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Licht_WZ.Dimmer</field>
</block>
</value>
<next>
<block type="variables_set" id="c{Z:0uI[PN/y@4)N%3_y">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="math_arithmetic" id="6[Hf(rH,8J~^/|VpWVPE">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="fJd,XvEU1%lMoNr]EfR(">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="T5qe3?q2J,(~wW)(#P!c">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="2:1[`B~n[Via/MdC!;}@">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="uo|KKO}}8!B[eY1,P%yY">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Licht_WZ.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="n5ad#}zlxz0zw!lJ5+J9">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="on_ext" id="K[Sph:RDMy|em+Q|3GDG">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=")RJ)PWmEBohBQ[BL%Tfl">
<field name="oid">sonoff.0.WZ_Steuerung.Switch3_Action</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="s=-%)bwb08K~KT7Bt9|D">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="get_value" id="Kyt@5Dhka+Z0gmGI+!IK">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Licht_WZ.Dimmer</field>
</block>
</value>
<next>
<block type="variables_set" id="W5N8Hokn*,]=(jDK71-|">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
<value name="VALUE">
<block type="math_arithmetic" id=")A2|Ra9[|Xi^zFJ|buZS">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="fJd,XvEU1%lMoNr]EfR(">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="u|c71@vsLN0uD3O0H=^D">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="zzmOg%GIUeU0qkmn=TPa">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="t)42tCR_^kg^2]764U?5">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Licht_WZ.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id=";V3-Id]Y3n%JuK1MVh5L">
<field name="VAR" id="I7r%NK,S6r_habI0ySW6">Dimmer1</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>