Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. bullhead

    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

    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 30
    • Best 1
    • Groups 1

    bullhead

    @bullhead

    1
    Reputation
    17
    Profile views
    30
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    bullhead Follow
    Starter

    Best posts made by bullhead

    • Pool Heizungs Steuerung

      Hallo,
      fange jetzt auch mit dem BLOCKLY an und möchte meinen Pool auch ein wenig smart machen.

      So jetzt zu meinem Vorhaben, ich hätte gerne wenn der Pool kälter ist als der Wärmespeicher, das dann die Pumpe angeht. Und wieder ausgeht wenn der Pool wärmer ist. Und das in der Zeit von 8.00-17.00 Uhr.
      Er sollte z.B. nicht wärmer wie 26 °C werden.
      Der Wärmespeicher sollte auch noch eine min. Temperatur von z.B. 35 °C haben
      Hat da vielleicht jemand schon ein Skript umgesetzt?

      Und kann es mir eventuell zur Verfügung stellen?

      Schon mal danke dafür.

      IMG_20190817_193834.jpg

      posted in Blockly
      B
      bullhead

    Latest posts made by bullhead

    • RE: Aqara Hub v3 Gateway

      Hallo, gibt es da schon was neues ?

      posted in Hardware
      B
      bullhead
    • RE: Kein Pairing bei ZIGBEE nach neu Installation möglich

      Am besten einen neuen kaufen aber nur welchen
      zum aufspielen habe ich keinen cc debugger dann kauf ich mir gleich das CC26X2R1

      posted in Error/Bug
      B
      bullhead
    • RE: Kein Pairing bei ZIGBEE nach neu Installation möglich

      @emd
      oh ganz vergessen das mit rein zu schreiben denn CC2530

      posted in Error/Bug
      B
      bullhead
    • Kein Pairing bei ZIGBEE nach neu Installation möglich
      Systemdata Bitte Ausfüllen
      Hardwaresystem: PI 4B
      Arbeitsspeicher: 4GB
      Festplattenart: SSD
      Betriebssystem: Mac
      Node-Version: 12.22.1
      Nodejs-Version: 12.22.1
      NPM-Version: 6.14.12
      Installationsart: Skript und Manuell
      Image genutzt: Nein
      Ort/Name der Imagedatei: Link

      Hallo habe Iobroker neu installiert und nur den zigbee adapter, wenn ich auf pairing klicke bekomme ich diese Meldung

      Error: Failed to open the network: Error: SRSP - UTIL - ledControl after 6000ms
          at Timeout._onTimeout (/opt/iobroker/node_modules/zigbee-herdsman/dist/utils/waitress.js:37:35)
          at listOnTimeout (internal/timers.js:554:17)
          at processTimers (internal/timers.js:497:7). undefined
      Pairing started 
      
      

      und im LOG kommt das

      zigbee.0	2021-06-03 10:10:18.625	error	at processTimers (internal/timers.js:497:7)
      zigbee.0	2021-06-03 10:10:18.625	error	at listOnTimeout (internal/timers.js:554:17)
      zigbee.0	2021-06-03 10:10:18.625	error	at Timeout._onTimeout (/opt/iobroker/node_modules/zigbee-herdsman/dist/utils/waitress.js:37:35)
      zigbee.0	2021-06-03 10:10:18.625	error	(9410) Failed to open the network: Error: SRSP - UTIL - ledControl after 6000ms
      zigbee.0	2021-06-03 10:10:12.378	info	(9410) Zigbee: allowing new devices to join.
      zigbee.0	2021-06-03 02:51:12.107	error	at processTimers (internal/timers.js:497:7)
      zigbee.0	2021-06-03 02:51:12.107	error	at listOnTimeout (internal/timers.js:554:17)
      zigbee.0	2021-06-03 02:51:12.107	error	at Timeout._onTimeout (/opt/iobroker/node_modules/zigbee-herdsman/dist/utils/waitress.js:37:35)
      zigbee.0	2021-06-03 02:51:12.107	error	(9410) Failed to open the network: Error: SRSP - UTIL - ledControl after 6000ms
      zigbee.0	2021-06-03 02:51:05.851	info	(9410) Zigbee: allowing new devices to join.
      zigbee.0	2021-06-03 02:51:00.138	info	(9410) Zigbee started
      zigbee.0	2021-06-03 02:51:00.136	info	(9410) Currently no devices.
      zigbee.0	2021-06-03 02:51:00.121	info	(9410) --> transmitPower : normal
      zigbee.0	2021-06-03 02:51:00.119	info	(9410) Unable to disable LED, unsupported function.
      zigbee.0	2021-06-03 02:50:54.104	info	(9410) Coordinator firmware version: {"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20182308}}
      zigbee.0	2021-06-03 02:50:51.897	info	(9410) Installed Version: iobroker.zigbee@1.5.6
      zigbee.0	2021-06-03 02:50:51.612	info	(9410) Starting Zigbee npm ...
      zigbee.0	2021-06-03 02:50:51.517	info	(9410) starting. Version 1.5.6 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.1, js-controller: 3.2.16
      

      wo liegt da mein Problem

      Schon mal Danke

      posted in Error/Bug
      B
      bullhead
    • Meldung bei der Installation 3/4

      Hallo,
      möchte meinen Raspi 4B 4GB neu installieren, es läuft alles durch nur bekomme ich diese Meldung:

      ==========================================================================
      Installing ioBroker (3/4)

      In file included from ../../nan/nan.h:56,
      from ../src/main.cpp:3:
      /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type]
      (node::addon_register_func) (regfunc),
      ^
      /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
      NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
      ^~~~~~~~~~~~~
      ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
      NODE_MODULE(diskusage, Init)
      ^~~~~~~~~~~
      In file included from ../../nan/nan.h:56,
      from ../src/unix_dgram.cc:5:
      /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type]
      (node::addon_register_func) (regfunc),
      ^
      /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
      NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
      ^~~~~~~~~~~~~
      ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
      NODE_MODULE(unix_dgram, Initialize)
      ^~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
      ^~~~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
      ^~~~~~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
      ^~~~~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
      ^~~~~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:271:68: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
      ^~~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:316:68: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
      ^~~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:366:76: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
      ^~~~~~~~~~~~~~~~~~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:412:70: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
      uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
      ^~~~~~~~~~~~~~
      ../src/serialport.cpp: At global scope:
      ../src/serialport.cpp:433:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
      SerialPortParity NAN_INLINE(ToParityEnum(const v8::Localv8::String& v8str)) {
      ^
      ../src/serialport.cpp:452:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
      SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
      ^
      In file included from ../../../nan/nan.h:56,
      from ../src/./serialport.h:13,
      from ../src/serialport.cpp:1:
      /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
      (node::addon_register_func) (regfunc),
      ^
      /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
      NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
      ^~~~~~~~~~~~~
      ../src/serialport.cpp:486:1: note: in expansion of macro ‘NODE_MODULE’
      NODE_MODULE(serialport, init);
      ^~~~~~~~~~~
      ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
      ../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
      snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
      ^~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
      snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
      ../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
      snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
      snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      ATTENTION: Error reporting via Sentry will be activated on next start of ioBroker

      Kann man das ignorieren

      schon mal Danke

      posted in ioBroker Allgemein
      B
      bullhead
    • RE: Aqara Hub v3 Gateway

      Hallo,
      gibt es da schon eine Möglichkeit für den ioBroker

      schon mal Danke

      posted in Hardware
      B
      bullhead
    • Fenster & Heizung aus/an,Meldung Alexa und Telegramm

      Hallo,
      habe mir ein Script gebaut,
      wenn ich das Fenster öffne und die Aussentemp. unter 25° ist soll das Thermostat auf aus (1) gehen, wenn geschlossen wieder Auto (0) machen. Wenn die Temperatur aber über 25° ist soll das Thermostat ausbleiben (1).
      Dann würde ich noch gerne eine Meldung nach 30 min. bekommen, wenn die Aussentemp. unter 25° ist per Telegramm und Alex das das Fenster offen ist und mich so lange erinnern bis ich es wieder schließe.

      Das mit dem Fenster auf Heizung aus geht aber die Benachrichtigung geht nicht richtig.

      Hoffe das mir einer helfen kann
      Schon mal Danke

      Bildschirmfoto vom 2020-12-27 15-52-03.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="^!B1k9_a}ps!pKZeIM$=">sommer</variable>
          <variable id="Dn2JjE=-*_`GQ)k%@0KM">fenster1</variable>
          <variable id="OJi?FaW7hq;e}]0FR+#i">mode</variable>
          <variable id="/MR!S$wPIIxp{?Ic/TaC">fenster2</variable>
          <variable type="interval" id="Intervall2">Intervall2</variable>
        </variables>
        <block type="variables_set" id="G|1FlV6{twkpr3}wSEVs" x="-113" y="-62">
          <field name="VAR" id="^!B1k9_a}ps!pKZeIM$=">sommer</field>
          <value name="VALUE">
            <block type="logic_compare" id="Wn1xglmWxw0a1w`71)m0">
              <field name="OP">GT</field>
              <value name="A">
                <block type="get_value" id="$ApkewrtOJZ[2[9^7fjO">
                  <field name="ATTR">val</field>
                  <field name="OID">accuweather.0.Current.Temperature</field>
                </block>
              </value>
              <value name="B">
                <block type="math_number" id="kp{3bk7Wz{`}P;h4$nmP">
                  <field name="NUM">25</field>
                </block>
              </value>
            </block>
          </value>
          <next>
            <block type="variables_set" id="lu~iFE.{a,B|GZ]h+EjP">
              <field name="VAR" id="Dn2JjE=-*_`GQ)k%@0KM">fenster1</field>
              <value name="VALUE">
                <block type="get_value" id="[sN^$hzd:uu!_Xd^Hj**">
                  <field name="ATTR">val</field>
                  <field name="OID">mihome.0.devices.magnet_158d0002495612.state</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="a0mxvU%FkSafZ1D(o6*9">
                  <field name="VAR" id="/MR!S$wPIIxp{?Ic/TaC">fenster2</field>
                  <value name="VALUE">
                    <block type="get_value" id="cd087r8c_g_J6J+tq;nU">
                      <field name="ATTR">val</field>
                      <field name="OID">mihome.0.devices.magnet_158d000478e45b.state</field>
                    </block>
                  </value>
                  <next>
                    <block type="procedures_callnoreturn" id="^rp?E]S{JQVC3cJ2T:=!">
                      <mutation name="setMode"></mutation>
                      <next>
                        <block type="on_ext" id="z)5!ilg1~+e}AGl$tn0g">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id="{tM3l#{13:D/m9s8B3AV">
                              <field name="oid">mihome.0.devices.magnet_158d0002495612.state</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="variables_set" id="Nf`.YZD-V~/`FRr%_9;D">
                              <field name="VAR" id="Dn2JjE=-*_`GQ)k%@0KM">fenster1</field>
                              <value name="VALUE">
                                <block type="on_source" id="$`O,SiTx$aq^{P_.uqn^">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <next>
                                <block type="procedures_callnoreturn" id="o=?ACa6#Q:D5po6b]AAa">
                                  <mutation name="setMode"></mutation>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <next>
                            <block type="on_ext" id="=t9#VIUrNJ,g;[bW)h,=">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                              <field name="CONDITION">ne</field>
                              <field name="ACK_CONDITION"></field>
                              <value name="OID0">
                                <shadow type="field_oid" id="k,(~F%7=Cch/HN]Sb/Pm">
                                  <field name="oid">mihome.0.devices.magnet_158d000478e45b.state</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="variables_set" id="]/E(k.JgP6Ruxz7?onfC">
                                  <field name="VAR" id="/MR!S$wPIIxp{?Ic/TaC">fenster2</field>
                                  <value name="VALUE">
                                    <block type="on_source" id="/q8g-!RXdF9v:nea.O85">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="procedures_callnoreturn" id="RM`Xq0$f^p+_[@T,l{%)">
                                      <mutation name="setMode"></mutation>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="on_ext" id="8eO)}J8R[%m/MY+bmlkN">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                  <field name="CONDITION">ne</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="[lQAGcl.rf-2?D3T!Un}">
                                      <field name="oid">accuweather.0.Current.Temperature</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="iXNY|`hHA,,F-di!CWv0">
                                      <mutation elseif="1"></mutation>
                                      <value name="IF0">
                                        <block type="logic_operation" id="Fe^yjASX|Jrn,#fSf0J*">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_compare" id=":in{xX;L=`dAD]@0(t3=">
                                              <field name="OP">GT</field>
                                              <value name="A">
                                                <block type="on_source" id="?OsyEqposVx`iN??@h%|">
                                                  <field name="ATTR">state.val</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="!0)XcEb)zKH5dndy^FzZ">
                                                  <field name="NUM">25</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="aQ@P84.u)=@u3%34K}5x">
                                              <field name="OP">LTE</field>
                                              <value name="A">
                                                <block type="on_source" id="7G4yp^9A*zz$2H@Oj5@d">
                                                  <field name="ATTR">oldState.val</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="W=DjF?/rF!(whzM)#,@E">
                                                  <field name="NUM">25</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id=":NSMlI$`/6],0=nV$[07">
                                          <field name="VAR" id="^!B1k9_a}ps!pKZeIM$=">sommer</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="@wikjj,|@w|_r4V_}I26">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="procedures_callnoreturn" id=".fv!F6!01whVBYpjV8?S">
                                              <mutation name="setMode"></mutation>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <value name="IF1">
                                        <block type="logic_operation" id="LZ{#w%!tm)%5/p[jt@F|">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_compare" id="z:gW9kOQ7A;DH]r:$Gs%">
                                              <field name="OP">LT</field>
                                              <value name="A">
                                                <block type="on_source" id="=a,=k)aHSDYa;([O8LeG">
                                                  <field name="ATTR">state.val</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="!OUC;6H6F*AEq|j)R)GF">
                                                  <field name="NUM">24</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="=l$=IeV~OU84OTRfV4H/">
                                              <field name="OP">GTE</field>
                                              <value name="A">
                                                <block type="on_source" id="t.$=_m:5GO^yXK;ARkpV">
                                                  <field name="ATTR">oldState.val</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="rX_jEDf6?EXvS]Vkp{or">
                                                  <field name="NUM">24</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO1">
                                        <block type="variables_set" id="bOcC)(V]4ND!@gHVIUNQ">
                                          <field name="VAR" id="^!B1k9_a}ps!pKZeIM$=">sommer</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="{YJQAV^zx.h0B`7Klq.}">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="procedures_callnoreturn" id="!YX.okix%cOM$DAbJC~N">
                                              <mutation name="setMode"></mutation>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
        <block type="procedures_defnoreturn" id="On5Q@D5=L:x?A:WF3zeT" x="238" y="37">
          <field name="NAME">setMode</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="controls_if" id="iNZJorCzGy2#N+(8,EH~">
              <mutation else="1"></mutation>
              <value name="IF0">
                <block type="logic_operation" id="O8JlTXc7aG:o`M,K.,@u" inline="false">
                  <field name="OP">OR</field>
                  <value name="A">
                    <block type="logic_operation" id="qShXNh~oMTS12LYP4:t@" inline="false">
                      <field name="OP">OR</field>
                      <value name="A">
                        <block type="variables_get" id=")66^fTS*qJG1A*2B4U,t">
                          <field name="VAR" id="Dn2JjE=-*_`GQ)k%@0KM">fenster1</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="variables_get" id="UThP9JvKjqb-E7(W2s0t">
                          <field name="VAR" id="/MR!S$wPIIxp{?Ic/TaC">fenster2</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="variables_get" id="7:Sc*+z%Cw!}{$!pls1{">
                      <field name="VAR" id="^!B1k9_a}ps!pKZeIM$=">sommer</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="variables_set" id="5#LG[3z5jXq64QXt0L_F">
                  <field name="VAR" id="OJi?FaW7hq;e}]0FR+#i">mode</field>
                  <value name="VALUE">
                    <block type="math_number" id="{;{r[kz]CAKA}u2jMOTc">
                      <field name="NUM">1</field>
                    </block>
                  </value>
                </block>
              </statement>
              <statement name="ELSE">
                <block type="variables_set" id="!okMuMZ2RfxN%JKgRf{h">
                  <field name="VAR" id="OJi?FaW7hq;e}]0FR+#i">mode</field>
                  <value name="VALUE">
                    <block type="math_number" id="BaV-DfiNq1e0Kt3-l7-B">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="control" id="sCoZAfSj6bpE?~T;}orv">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">fritzdect.0.Hgroup_grp5372F3-3AD63C53B.mode</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="variables_get" id="oe7@MopF3~)mB4b$HRg$">
                      <field name="VAR" id="OJi?FaW7hq;e}]0FR+#i">mode</field>
                    </block>
                  </value>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="on_ext" id="Pd9.^CfrfAP8c9g|g:2a" x="612" y="287">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="3_@PT(jila{9yI*o1bxe">
              <field name="oid">mihome.0.devices.magnet_158d000478e45b.state</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="timeouts_clearinterval" id="=t^Z%i9o?SbLv0T{,)~A">
              <field name="NAME">fenster1</field>
              <next>
                <block type="controls_if" id="!=aZ|;.zt}K:Y;SHGeaT">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id="dHKRvp0CUt{jT9IAVwSy" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="iv9LIrXvt:Gp_!Iaz,D*">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="8_mR@swKR]Bs?*@n#b35">
                              <field name="ATTR">val</field>
                              <field name="OID">mihome.0.devices.magnet_158d000478e45b.state</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="$*56(sm1d0NNGRW[MD01">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="=$FjBOE,6}^HCzb2wqkP">
                          <field name="OP">LT</field>
                          <value name="A">
                            <block type="get_value" id="1QS#=cRV3.`+I$iRThx+">
                              <field name="ATTR">val</field>
                              <field name="OID">accuweather.0.Current.Temperature</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="a:KZz9:8d#mtX^D8AHt(">
                              <field name="NUM">25</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="timeouts_setinterval" id="hn?D`Z:1Ky|Jiy,/wG@7">
                      <field name="NAME">Intervall2</field>
                      <field name="INTERVAL">30</field>
                      <field name="UNIT">min</field>
                      <statement name="STATEMENT">
                        <block type="comment" id="2@OF4(E*CJ)AVtnx/55P">
                          <field name="COMMENT">Wohnzimmer</field>
                          <next>
                            <block type="control" id="X+uf3Fj(oi.q{fw$DXsc">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">alexa2.0.Echo-Devices.G090XG089427141W.Commands.speak</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="_y9K3lqmET(|30hl):r4">
                                  <field name="TEXT">60;Großes Fenster im Wohnzimmer ist noch offen</field>
                                </block>
                              </value>
                              <next>
                                <block type="telegram" id="7p_O{@7SG9|JFsjm3O[6">
                                  <field name="INSTANCE">.0</field>
                                  <field name="LOG"></field>
                                  <field name="SILENT">FALSE</field>
                                  <field name="PARSEMODE">default</field>
                                  <value name="MESSAGE">
                                    <shadow type="text" id="I?i|.!VVh1,b`Dh@uWNV">
                                      <field name="TEXT">Großes Fenster im Wohnzimmer ist noch offen</field>
                                    </shadow>
                                  </value>
                                  <value name="USERNAME">
                                    <block type="text" id="#9Bcb;RSE;0h{u.~e_j#">
                                      <field name="TEXT">BULLHEAD76,Tanja</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="LN8f.mWeBLOm[R/Gf^!I">
                                      <field name="VAR" id="^!B1k9_a}ps!pKZeIM$=">sommer</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="vUEX:S0h1Ac2y3e!WqO+">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="variables_get" id="Ek6K2r+-1ZjcOSWbIYrX">
                      <field name="VAR" id="^!B1k9_a}ps!pKZeIM$=">sommer</field>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="variables_set" id="KHkYk?BwKJ|5Akrg%FMQ">
                      <field name="VAR" id="^!B1k9_a}ps!pKZeIM$=">sommer</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="QI*kkJ/Kvn|Az6_A?Se6">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="comment" id="c8HvBE+]}TfyHJSkNoqb">
                          <field name="COMMENT">Wohnzimmer</field>
                          <next>
                            <block type="control" id="q#_m8+BFqkFo77^tRI9n">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">alexa2.0.Echo-Devices.G090XG089427141W.Commands.speak</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="G,y?EUYO-}myq?iyIon-">
                                  <field name="TEXT">60;Danke dass du das Große Wohnzimmerfenster geschlossen hast</field>
                                </block>
                              </value>
                              <next>
                                <block type="telegram" id=")vJp+cXKyq#fJK~c.#9A">
                                  <field name="INSTANCE">.0</field>
                                  <field name="LOG"></field>
                                  <field name="SILENT">FALSE</field>
                                  <field name="PARSEMODE">default</field>
                                  <value name="MESSAGE">
                                    <shadow type="text" id="I6M::.W8@UD14DRJFz+4">
                                      <field name="TEXT">Großes Fenster im Wohnzimmer ist geschlossen</field>
                                    </shadow>
                                  </value>
                                  <value name="USERNAME">
                                    <block type="text" id="0{xvF.WUE|^?C(7uE_/U">
                                      <field name="TEXT">BULLHEAD76,Tanja</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      posted in Blockly
      B
      bullhead
    • RE: Blockly to Node-Red Converter

      Das würde mich auch sehr interessieren.
      Wäre cool wenn es sowas wie einen Converter geben würde von Blockly zu Node-Red

      posted in Node-Red
      B
      bullhead
    • RE: [gelöst] Tag und Nacht schaltung geht nicht

      Stimmt da bin ich falsch gewesen
      Passt schon alles

      posted in Blockly
      B
      bullhead
    • RE: [gelöst] Tag und Nacht schaltung geht nicht

      Muss leider sagen das es jetzt nicht mehr geht, seit es Juni (6) ist.
      Schaltet den Sonoff nicht richtig also heizt weiter auch wenn die Temp. erreicht ist
      Finde leider nicht raus warum, könnte mir da jemand bitte helfen


      <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
      <variable id="x$ePuFJQIhohSRe@U2g">ist</variable>
      <variable id="}bm_h$z?kj.FA0Hlb1U">soll</variable> <variable id="lS[T.(34r52Ro$RrYf$v">Tagessoll</variable> <variable id="?9qG~uNR}~O*-o9AVAYZ">aktor</variable> <variable id="prt;U,4Y$1:xn})ZeQ71">Nachtsoll</variable> </variables> <block type="on" id="d8M=06k^P_$Yh$j[{8|L" x="-988" y="-663"> <field name="OID">mihome.0.devices.weather_v1_158d0002321578.temperature</field> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="8-yMOI;phMDsfr~;V[2W"> <mutation elseif="2" else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="g^awKGhR7a,Z3-@C2/|Z" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="iUX5rOd7?w{Umy8Ti8Y">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="time_get" id="D3xc7?^P$8=92I.;5kK">
      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
      <field name="OPTION">M</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id="8f^Acdo^6-=3[JI3mJ(p">
      <field name="NUM">12</field>
      </block>
      </value>
      </block>
      </value>
      <value name="B">
      <block type="logic_compare" id="}^[sxxzogz{MOBfdfEyS">
      <field name="OP">LT</field>
      <value name="A">
      <block type="time_get" id="7^OvZsjNw]hV^Y2zA2yp">
      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
      <field name="OPTION">M</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id="*YJ}fF%z43Ez:~c(uw{B">
      <field name="NUM">3</field>
      </block>
      </value>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="variables_set" id="%.l]Rt_l]OS,B6Wb(i="> <field name="VAR" id="lS[T.(34r52Ro$RrYf$v">Tagessoll</field> <value name="VALUE"> <block type="math_number" id="Jkf6:GW^!p,rVb,GKkP9"> <field name="NUM">27</field> </block> </value> <next> <block type="variables_set" id="~zXbbWH}7-RHaI{1yL^b"> <field name="VAR" id="prt;U,4Y$1:xn})ZeQ71">Nachtsoll</field> <value name="VALUE"> <block type="math_number" id="ES4v@p@Ix|N/{.j~xe8*"> <field name="NUM">23</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="8D6(!F^,+d/gvVzRu@!5"> <field name="OP">LT</field> <value name="A"> <block type="time_get" id="]RR)o#6Z(3Isp{G_j3VD"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="oY^Mli;qUetc_[k^-v@w"> <field name="NUM">6</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="}F@zjdF4Gh_5Ww}hf]PD"> <field name="VAR" id="lS[T.(34r52Ro$RrYf$v">Tagessoll</field> <value name="VALUE"> <block type="math_number" id="vv3~^Fw,PfY*:]]SlP/E"> <field name="NUM">28</field> </block> </value> <next> <block type="variables_set" id="$A{kn#Q)3^M7+xo~0R,">
      <field name="VAR" id="prt;U,4Y$1:xn})ZeQ71">Nachtsoll</field>
      <value name="VALUE">
      <block type="math_number" id="J
      #x^inq4OtGn5j3=?">
      <field name="NUM">25</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </statement>
      <value name="IF2">
      <block type="logic_compare" id="l8m@TAVItkEcBqf@e[u"> <field name="OP">LT</field> <value name="A"> <block type="time_get" id="r@V]M]hXw.X*t*Kz/3[8"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">M</field> </block> </value> <value name="B"> <block type="math_number" id="cuIR32c;eZe3S~h?l1%">
      <field name="NUM">9</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO2">
      <block type="variables_set" id="d1h_q@[A,vableeCu}Pk">
      <field name="VAR" id="lS[T.(34r52Ro$RrYf$v">Tagessoll</field>
      <value name="VALUE">
      <block type="math_number" id="5mcGtuJ)/2Q~ha2!cn24">
      <field name="NUM">30</field>
      </block>
      </value>
      <next>
      <block type="variables_set" id="zz8}a-[BRF=gSFiobre,">
      <field name="VAR" id="prt;U,4Y$1:xn})ZeQ71">Nachtsoll</field>
      <value name="VALUE">
      <block type="math_number" id=")@[eR9f^o7tZC5jSUDZT">
      <field name="NUM">28</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </statement>
      <statement name="ELSE">
      <block type="variables_set" id="bIip$EC]g?-{~4zPXXkq">
      <field name="VAR" id="lS[T.(34r52Ro$RrYf$v">Tagessoll</field>
      <value name="VALUE">
      <block type="math_number" id=":VJ$p)qSL/61CF%M[q;,">
      <field name="NUM">29</field>
      </block>
      </value>
      <next>
      <block type="variables_set" id="5)rGP-sVEC~y!pVGNOLJ">
      <field name="VAR" id="prt;U,4Y$1:xn})ZeQ71">Nachtsoll</field>
      <value name="VALUE">
      <block type="math_number" id="dzZU~MjAY{MM$|f/O#]B">
      <field name="NUM">27</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </statement>
      <next>
      <block type="controls_if" id="tqj]c9z!29H!Idm${_a"> <mutation else="1"></mutation> <value name="IF0"> <block type="time_compare" id="Eb8dLv|-1R6XIcWru~0">
      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
      <field name="OPTION">between</field>
      <field name="START_TIME">09:00</field>
      <field name="END_TIME">19:00</field>
      </block>
      </value>
      <statement name="DO0">
      <block type="procedures_callnoreturn" id="wIu7J/)DB/(MCUvVNF" inline="true">
      <mutation name="Regler">
      <arg name="ist"></arg>
      <arg name="soll"></arg>
      </mutation>
      <value name="ARG0">
      <block type="on_source" id="ArzmS4VQ4Hb^pgIG_fo?">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <value name="ARG1">
      <block type="variables_get" id="lt{@-X8A3RJF}!E9xg;L">
      <field name="VAR" id="lS[T.(34r52Ro$RrYf$v">Tagessoll</field>
      </block>
      </value>
      </block>
      </statement>
      <statement name="ELSE">
      <block type="procedures_callnoreturn" id="$4k{;]z?~Dp)P
      dHGlXS" inline="true">
      <mutation name="Regler">
      <arg name="ist"></arg>
      <arg name="soll"></arg>
      </mutation>
      <value name="ARG0">
      <block type="on_source" id="6q1C8$4]0TLNTl/OMoS}">
      <field name="ATTR">state.val</field>
      </block>
      </value>
      <value name="ARG1">
      <block type="variables_get" id="R^-+8:6JAd8zy6WuG%xS">
      <field name="VAR" id="prt;U,4Y$1:xn})ZeQ71">Nachtsoll</field>
      </block>
      </value>
      </block>
      </statement>
      <next>
      <block type="controls_if" id="7tC3QtnbS[#f[st385TK">
      <value name="IF0">
      <block type="logic_compare" id="BS[,Cian(C|t#4^N.^J">
      <field name="OP">NEQ</field>
      <value name="A">
      <block type="get_value_var" id="1jo*VAZdDC+$C,ep3o3"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="rHk4II?vZ#Ok-buhY-le"> <field name="TEXT">sonoff.0.sonoff-Rack-Schlangen.POWER1</field> </shadow> </value> </block> </value> <value name="B"> <block type="variables_get" id="BEBiQ4Ne-C.kkXl@mrb|"> <field name="VAR" id="?9qG~uNR}~O*-o9AVAYZ">aktor</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="]2+3.aeXxPWVXlE,;}4q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.sonoff-Rack-Schlangen.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="BxOpf10=}{|#)BnlW|n">
      <field name="VAR" id="?9qG~uNR}~O*-o9AVAYZ">aktor</field>
      </block>
      </value>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      </block>
      <block type="procedures_defnoreturn" id="kb-O}ffpR!p-{y(H{7kn" x="-512" y="-262">
      <mutation>
      <arg name="ist" varid="x$ePuFJQIhohSRe@U2g"></arg>
      <arg name="soll" varid="}bm_h$z?kj.FA0Hlb1U"></arg> </mutation> <field name="NAME">Regler</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="uBXU(T~2C%^)46+Si?7X"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="k4D02ADyI/QoRh}r*V%Y"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="Z5E5ZG~r3tAGoNTS5td7"> <field name="VAR" id="*x$ePuFJQIhohSRe@U2g">ist</field> </block> </value> <value name="B"> <block type="variables_get" id="#an=Dx+1C}BaTs0r,%8;"> <field name="VAR" id="}bm_h$z?kj.FA0Hlb1U">soll</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="variables_set" id="DpB@.$tm{{mCxSc$1+0l">
      <field name="VAR" id="?9qG~uNR}~O
      -o9AVAYZ">aktor</field>
      <value name="VALUE">
      <block type="logic_boolean" id="^D_0pWJUUzH;EN6q{W4,">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      </block>
      </statement>
      <value name="IF1">
      <block type="logic_compare" id="kZIi4OoR[oz))CJNRC*.">
      <field name="OP">GTE</field>
      <value name="A">
      <block type="variables_get" id="Fj%$pQV.mnq^!KVAWQ}%">
      <field name="VAR" id="*x$ePuFJQIhohSRe@U2g">ist</field>
      </block>
      </value>
      <value name="B">
      <block type="math_arithmetic" id="+W/t_av2pk+^lH0svpWT">
      <field name="OP">ADD</field>
      <value name="A">
      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="+odctnC6b23q#EZXBnd:">
      <field name="NUM">1</field>
      </shadow>
      <block type="variables_get" id="+uqFEF/UH0Q92DU4DDWb">
      <field name="VAR" id="}bm_h$z?kj.FA0Hlb`1U">soll</field>
      </block>
      </value>
      <value name="B">
      <shadow type="math_number" id=")a:3t{4J%
      .O(N?$7%N5">
      <field name="NUM">1</field>
      </shadow>
      </value>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO1">
      <block type="variables_set" id="E0)N%8C!IC[DGCSSKB7Y">
      <field name="VAR" id="?9qG~uNR}~O*-o9AVAYZ">aktor</field>
      <value name="VALUE">
      <block type="logic_boolean" id="c(0Px%3xu=^}z%~#7Qk/">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </statement>
      </block>
      </statement>
      </block>
      </xml>


      var ist, soll, Tagessoll, aktor, Nachtsoll;

      // Beschreibe diese Funktion …
      function Regler(ist, soll) {
      if (ist <= soll) {
      aktor = true;
      } else if (ist >= soll + 1) {
      aktor = false;
      }
      }

      on({id: "mihome.0.devices.weather_v1_158d0002321578.temperature"/Temperature/, change: "any"}, function (obj) {
      var value = obj.state.val;
      var oldValue = obj.oldState.val;
      if ((new Date().getMonth() + 1) == 12 || (new Date().getMonth() + 1) < 3) {
      Tagessoll = 27;
      Nachtsoll = 23;
      } else if ((new Date().getMonth() + 1) < 6) {
      Tagessoll = 28;
      Nachtsoll = 25;
      } else if ((new Date().getMonth() + 1) < 9) {
      Tagessoll = 30;
      Nachtsoll = 28;
      } else {
      Tagessoll = 29;
      Nachtsoll = 27;
      }
      if (compareTime("09:00", "19:00", "between")) {
      Regler((obj.state ? obj.state.val : ""), Tagessoll);
      } else {
      Regler((obj.state ? obj.state.val : ""), Nachtsoll);
      }
      if (getState('sonoff.0.sonoff-Rack-Schlangen.POWER1').val != aktor) {
      setState("sonoff.0.sonoff-Rack-Schlangen.POWER1"/sonoff-Rack-Schlangen POWER1/, aktor);
      }
      });

      Rack_Temp.JPG

      posted in Blockly
      B
      bullhead
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo