- ioBroker Community Home
- Deutsch
- Skripten / Logik
- HM Thermostat runtersteuern bei Fenster auf
NEWS
HM Thermostat runtersteuern bei Fenster auf
-
Hallo zusammen,
ich habe meine Heizkörpertemperatur alle auf diese hier umgestellt: HM-CC-RT-DN.
eingebunden habe ich die über den RPI Charly Bausatz und in IOBroker mit dem HM-RPC Adapter.
Soweit funktioniert alles bestens, nur wenn das Fenster aufgeht bekomme ich die Temperatur nicht runtergeregelt.
Ich habe Fensterkontakte von Xiaomi.
Ich habe schon viele Beiträge gelesen, einige steuern das über den Datenpunkt WINDOW_STATE des Heizkörpers mit 1/0 auf OPENED / CLOSED.Nur ..... entweder bin ich zu blind den in meinen Objekten zu finden - oder meine Thermostate haben den nicht - oder er heißt dort anders.
Hat irgendjemand vielleicht eine Idee wie ich mein Problem lösen kann?
Danke im voraus,
Bernd -
Hallo zusammen,
ich habe meine Heizkörpertemperatur alle auf diese hier umgestellt: HM-CC-RT-DN.
eingebunden habe ich die über den RPI Charly Bausatz und in IOBroker mit dem HM-RPC Adapter.
Soweit funktioniert alles bestens, nur wenn das Fenster aufgeht bekomme ich die Temperatur nicht runtergeregelt.
Ich habe Fensterkontakte von Xiaomi.
Ich habe schon viele Beiträge gelesen, einige steuern das über den Datenpunkt WINDOW_STATE des Heizkörpers mit 1/0 auf OPENED / CLOSED.Nur ..... entweder bin ich zu blind den in meinen Objekten zu finden - oder meine Thermostate haben den nicht - oder er heißt dort anders.
Hat irgendjemand vielleicht eine Idee wie ich mein Problem lösen kann?
Danke im voraus,
Bernd@Papabaer sagte:
Datenpunkt WINDOW_STATE des Heizkörpers mit 1/0 auf OPENED / CLOSED.
Einen solchen Datenpunkt gibt es bei den HM-CC-RT-DN nicht. Die Fenstersteuerung erfolgt im HomeMatic-System über Direktverknüpfung Fensterkontakt --> HKT.
Von ioBroker aus kann man offnene Fenster nur über die Datenpunkte SET_TEMPERATURE oder MANU_MODE / AUTO_MODE berücksichtigen.Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs -
Hi,
ich habe es die gleichen Komponenten im Einsatz und habe es folgendermaßen gelöst:
Blockly Script für die Fensterkontakte:
Wenn Fenster offen, dann Heizkörper auf manu=0, sonst wenn Fenster zu, dann Hezkörper auf AutoMode
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="h+]LSiD+,{=g/,9jctz4">Value-BM-FK-02</variable>
</variables>
<block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-187" y="-162">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8">
<field name="oid">deconz.0.Sensor_15.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="TUBS{hPe^04UE/@UsR{A"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="51V7B5{5i|r{j?@vS}B{"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_15.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Jw~lWE8+^S5BY[7YjJB">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![_M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id="h+]LSiD+,{=g/,9jctz4" variabletype="">Value-BM-FK-02</field> </block> </value> </block> </value> <next> <block type="control" id="Dlg32zt._@B~f9!}JJED"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1714024.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="L,DpsEbRUfxuHn#IrQh,"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="-6k48K~sEo]PAw(i3{nX"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="z4~jVe0qCGycmxubB">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_15.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="(B!L5YE~Rwpu||@b7=%r">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="aF!91nC#]3]C{T:vh^x]">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ1714024.4.AUTO_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="_66,F]z_XoVHw7`{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Script für Doppelfenster und ein Heizkörper:
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="6E#@5:K?9jgPYV=IQu">Value-SZ-FK-06</variable> </variables> <block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-612" y="-187"> <mutation items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8"> <field name="oid">deconz.0.Sensor_19.open</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="Q1=j)XV%kJzY9-=LYF:">
<field name="oid">deconz.0.Sensor_23.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="Q0PRjIz*dc3x]e44!0H0"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="#@gXjVvI;S8!p-qElg" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="s%;]Op=mNGOT?.ApT|k">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_19.open</field>
</block>
</value>
<value name="B">
<block type="get_value" id="51V7B5{5i|r{j?@vS}B{">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_23.open</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="UBeQy8@YU!D9hKoXvP^C">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id="*6E#@5:K?9jgPYV=IQu" variabletype="">Value-SZ-FK-06</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="Dlg32zt.@B~f9!}JJED">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ2635723.4.MANU_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="L,DpsEbRUfxuHn#IrQh,">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id=":IIs%hWLc_8w5U^DnF)" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="/@y=:9O{9Xt#e%I%?ZY"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="jG5vERC:~:0QAp.~:yrZ"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_19.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="T,2hrLVaV#n:BAKHNGUG"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Q^Gc!p8,!P?,g-es7@3E"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="EU3.UM}!%InS_dUOU)-">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_23.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="r1rf(XTh@lVJvtR1eSV"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="aF!91nC#]3]C{T:vh^x]"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2635723.4.AUTO_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_66,F]z_XoVHw7{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>Script für Doppelfenster und Doppel Heizkörper:
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id=".M,KVfWY9=sI%7R;Yq3K">Value-WZ-FK-05</variable>
</variables>
<block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-312" y="-162">
<mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8">
<field name="oid">deconz.0.Sensor_18.open</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="wRkZ9D:DcO~is[#SuH*P">
<field name="oid">deconz.0.Sensor_27.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="TUBS{hPe^04UE/@UsR{A"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="KK{*5X(XNe)2L:oFlouK" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="51V7B5{5i|r{j?@vS}B{"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_18.open</field> </block> </value> <value name="B"> <block type="get_value" id="RST:0;reHE24jQWjr,!n"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_27.open</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="Jw~lWE8+^S5BY[7YjJB">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![_M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id=".M,KVfWY9=sI%7R;Yq3K" variabletype="">Value-WZ-FK-05</field> </block> </value> </block> </value> <next> <block type="control" id="Dlg32zt._@B~f9!}JJED"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1713994.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="L,DpsEbRUfxuHn#IrQh,"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="tZejrsEg^_JP]@4a-6|z"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1714011.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="WOJfF%#hfmr5IJ/P)fc">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="-6k48K~sEo]PAw(i3{nX">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="z4~jVe0qCGycmxubB"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_18.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="(B!L5YE~Rwpu||@b7=%r"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="aF!91nC#]3]C{T:vh^x]"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1713994.4.AUTO_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_66,F]z_XoVHw7{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="{3Yj)(;?^AWAyn78V~f`">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ1714011.4.AUTO_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="_8/jkBN^bT!cg(54G[|E">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>Code einfach als Blockly importieren und deine Datenpunkte anpassen.
Vllt hilft das dir weiter.Viele Grüße
Micha -
Hi,
ich habe es die gleichen Komponenten im Einsatz und habe es folgendermaßen gelöst:
Blockly Script für die Fensterkontakte:
Wenn Fenster offen, dann Heizkörper auf manu=0, sonst wenn Fenster zu, dann Hezkörper auf AutoMode
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="h+]LSiD+,{=g/,9jctz4">Value-BM-FK-02</variable>
</variables>
<block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-187" y="-162">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8">
<field name="oid">deconz.0.Sensor_15.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="TUBS{hPe^04UE/@UsR{A"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="51V7B5{5i|r{j?@vS}B{"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_15.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Jw~lWE8+^S5BY[7YjJB">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![_M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id="h+]LSiD+,{=g/,9jctz4" variabletype="">Value-BM-FK-02</field> </block> </value> </block> </value> <next> <block type="control" id="Dlg32zt._@B~f9!}JJED"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1714024.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="L,DpsEbRUfxuHn#IrQh,"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="-6k48K~sEo]PAw(i3{nX"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="z4~jVe0qCGycmxubB">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_15.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="(B!L5YE~Rwpu||@b7=%r">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="aF!91nC#]3]C{T:vh^x]">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ1714024.4.AUTO_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="_66,F]z_XoVHw7`{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Script für Doppelfenster und ein Heizkörper:
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="6E#@5:K?9jgPYV=IQu">Value-SZ-FK-06</variable> </variables> <block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-612" y="-187"> <mutation items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8"> <field name="oid">deconz.0.Sensor_19.open</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="Q1=j)XV%kJzY9-=LYF:">
<field name="oid">deconz.0.Sensor_23.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="Q0PRjIz*dc3x]e44!0H0"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="#@gXjVvI;S8!p-qElg" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="s%;]Op=mNGOT?.ApT|k">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_19.open</field>
</block>
</value>
<value name="B">
<block type="get_value" id="51V7B5{5i|r{j?@vS}B{">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_23.open</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="UBeQy8@YU!D9hKoXvP^C">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id="*6E#@5:K?9jgPYV=IQu" variabletype="">Value-SZ-FK-06</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="Dlg32zt.@B~f9!}JJED">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ2635723.4.MANU_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="L,DpsEbRUfxuHn#IrQh,">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id=":IIs%hWLc_8w5U^DnF)" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="/@y=:9O{9Xt#e%I%?ZY"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="jG5vERC:~:0QAp.~:yrZ"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_19.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="T,2hrLVaV#n:BAKHNGUG"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Q^Gc!p8,!P?,g-es7@3E"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="EU3.UM}!%InS_dUOU)-">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_23.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="r1rf(XTh@lVJvtR1eSV"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="aF!91nC#]3]C{T:vh^x]"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2635723.4.AUTO_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_66,F]z_XoVHw7{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>Script für Doppelfenster und Doppel Heizkörper:
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id=".M,KVfWY9=sI%7R;Yq3K">Value-WZ-FK-05</variable>
</variables>
<block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-312" y="-162">
<mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8">
<field name="oid">deconz.0.Sensor_18.open</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="wRkZ9D:DcO~is[#SuH*P">
<field name="oid">deconz.0.Sensor_27.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="TUBS{hPe^04UE/@UsR{A"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="KK{*5X(XNe)2L:oFlouK" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="51V7B5{5i|r{j?@vS}B{"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_18.open</field> </block> </value> <value name="B"> <block type="get_value" id="RST:0;reHE24jQWjr,!n"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_27.open</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="Jw~lWE8+^S5BY[7YjJB">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![_M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id=".M,KVfWY9=sI%7R;Yq3K" variabletype="">Value-WZ-FK-05</field> </block> </value> </block> </value> <next> <block type="control" id="Dlg32zt._@B~f9!}JJED"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1713994.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="L,DpsEbRUfxuHn#IrQh,"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="tZejrsEg^_JP]@4a-6|z"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1714011.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="WOJfF%#hfmr5IJ/P)fc">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="-6k48K~sEo]PAw(i3{nX">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="z4~jVe0qCGycmxubB"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_18.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="(B!L5YE~Rwpu||@b7=%r"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="aF!91nC#]3]C{T:vh^x]"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1713994.4.AUTO_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_66,F]z_XoVHw7{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="{3Yj)(;?^AWAyn78V~f`">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ1714011.4.AUTO_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="_8/jkBN^bT!cg(54G[|E">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>Code einfach als Blockly importieren und deine Datenpunkte anpassen.
Vllt hilft das dir weiter.Viele Grüße
Micha -
Hi,
ich habe es die gleichen Komponenten im Einsatz und habe es folgendermaßen gelöst:
Blockly Script für die Fensterkontakte:
Wenn Fenster offen, dann Heizkörper auf manu=0, sonst wenn Fenster zu, dann Hezkörper auf AutoMode
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="h+]LSiD+,{=g/,9jctz4">Value-BM-FK-02</variable>
</variables>
<block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-187" y="-162">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8">
<field name="oid">deconz.0.Sensor_15.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="TUBS{hPe^04UE/@UsR{A"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="51V7B5{5i|r{j?@vS}B{"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_15.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Jw~lWE8+^S5BY[7YjJB">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![_M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id="h+]LSiD+,{=g/,9jctz4" variabletype="">Value-BM-FK-02</field> </block> </value> </block> </value> <next> <block type="control" id="Dlg32zt._@B~f9!}JJED"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1714024.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="L,DpsEbRUfxuHn#IrQh,"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="-6k48K~sEo]PAw(i3{nX"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="z4~jVe0qCGycmxubB">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_15.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="(B!L5YE~Rwpu||@b7=%r">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="aF!91nC#]3]C{T:vh^x]">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ1714024.4.AUTO_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="_66,F]z_XoVHw7`{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Script für Doppelfenster und ein Heizkörper:
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="6E#@5:K?9jgPYV=IQu">Value-SZ-FK-06</variable> </variables> <block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-612" y="-187"> <mutation items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8"> <field name="oid">deconz.0.Sensor_19.open</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="Q1=j)XV%kJzY9-=LYF:">
<field name="oid">deconz.0.Sensor_23.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="Q0PRjIz*dc3x]e44!0H0"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="#@gXjVvI;S8!p-qElg" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="s%;]Op=mNGOT?.ApT|k">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_19.open</field>
</block>
</value>
<value name="B">
<block type="get_value" id="51V7B5{5i|r{j?@vS}B{">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_23.open</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="UBeQy8@YU!D9hKoXvP^C">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id="*6E#@5:K?9jgPYV=IQu" variabletype="">Value-SZ-FK-06</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="Dlg32zt.@B~f9!}JJED">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ2635723.4.MANU_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="L,DpsEbRUfxuHn#IrQh,">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id=":IIs%hWLc_8w5U^DnF)" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="/@y=:9O{9Xt#e%I%?ZY"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="jG5vERC:~:0QAp.~:yrZ"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_19.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="T,2hrLVaV#n:BAKHNGUG"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Q^Gc!p8,!P?,g-es7@3E"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="EU3.UM}!%InS_dUOU)-">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensor_23.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="r1rf(XTh@lVJvtR1eSV"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="aF!91nC#]3]C{T:vh^x]"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2635723.4.AUTO_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_66,F]z_XoVHw7{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>Script für Doppelfenster und Doppel Heizkörper:
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id=".M,KVfWY9=sI%7R;Yq3K">Value-WZ-FK-05</variable>
</variables>
<block type="on_ext" id="+]A@Be[uHa]RbO;[%:_A" x="-312" y="-162">
<mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=")J0zL.UjEN@2i-vu@|c8">
<field name="oid">deconz.0.Sensor_18.open</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="wRkZ9D:DcO~is[#SuH*P">
<field name="oid">deconz.0.Sensor_27.open</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="dYBDV+Ro]Fs;rQW?OPQ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="TUBS{hPe^04UE/@UsR{A"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="KK{*5X(XNe)2L:oFlouK" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="51V7B5{5i|r{j?@vS}B{"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_18.open</field> </block> </value> <value name="B"> <block type="get_value" id="RST:0;reHE24jQWjr,!n"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_27.open</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="Jw~lWE8+^S5BY[7YjJB">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="Y?Ityr3^AB,bkPtpnVb)">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="]TPia07=qXru4P7QmiXr">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="![_M#x/YqW=6wlGuXR~A">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="QrQ8hzXTAwvK-Ya-P-~d">
<field name="TEXT">Wert von Fensterkontakt open</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="ac@B8lNc%%CLg1]pO5:"> <field name="VAR" id=".M,KVfWY9=sI%7R;Yq3K" variabletype="">Value-WZ-FK-05</field> </block> </value> </block> </value> <next> <block type="control" id="Dlg32zt._@B~f9!}JJED"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1713994.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="L,DpsEbRUfxuHn#IrQh,"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="tZejrsEg^_JP]@4a-6|z"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1714011.4.MANU_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="WOJfF%#hfmr5IJ/P)fc">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="-6k48K~sEo]PAw(i3{nX">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="z4~jVe0qCGycmxubB"> <field name="ATTR">val</field> <field name="OID">deconz.0.Sensor_18.open</field> </block> </value> <value name="B"> <block type="logic_boolean" id="(B!L5YE~Rwpu||@b7=%r"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="aF!91nC#]3]C{T:vh^x]"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ1713994.4.AUTO_MODE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_66,F]z_XoVHw7{Op|W">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="{3Yj)(;?^AWAyn78V~f`">
<mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.1.OEQ1714011.4.AUTO_MODE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="_8/jkBN^bT!cg(54G[|E">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>Code einfach als Blockly importieren und deine Datenpunkte anpassen.
Vllt hilft das dir weiter.Viele Grüße
Micha