Page 1 of 1

simple switch blocky won't work

Posted: Tuesday 06 October 2020 10:23
by RobUbaghs
hey all,

what i want is:
when the temp is below setpoint the switch has to turn on onley on monday till friday between 6:30 and 16:00

first i dit this Image but that made it turn on and of randomley the hole night.

then i tryed this Image

but this won't work at all..
what am i doing wrong ?

Re: simple switch blocky won't work

Posted: Tuesday 06 October 2020 12:45
by waaren
RobUbaghs wrote: Tuesday 06 October 2020 10:23 when the temp is below setpoint the switch has to turn on onley on monday till friday between 6:30 and 16:00
Can you try this?
Copy /paste below XML in the import window of the Blockly event editor, change the device numbers to your device names and save as time triggered event.

Blockly XML
Spoiler: show

Code: Select all

<xml xmlns="http://www.w3.org/1999/xhtml"><block type="domoticzcontrols_ifelseif" id="RO.oej*3tyaTK1k25myJ" x="-3546" y="-1027"><mutation elseif="2"></mutation><value name="IF0"><block type="logic_operation" id="uAl20ewx*}lnA6$H`!F#"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="YCU$EnII9@0AFL!!D%H~"><field name="OP">EQ</field><value name="A"><block type="switchvariablesGL" id="GEW*(S[4Yf**9Yl8?_O?"><field name="Switch">269</field></block></value><value name="B"><block type="logic_states" id="0%!;HE=3pmLG$Jwbzyzq"><field name="State">On</field></block></value></block></value><value name="B"><block type="logic_compare" id="ywOn-SOjn{tJ1wnhK*]A"><field name="OP">GTE</field><value name="A"><block type="temperaturevariables" id="nT`8)0..23!fD]Ts:+WE"><field name="Temperature">17</field></block></value><value name="B"><block type="math_number" id="AWu^#6Q__pIArB{2zsp)"><field name="NUM">20</field></block></value></block></value></block></value><statement name="DO0"><block type="writetolog" id="q1G}6ZduhCFtcx$i|J#O"><value name="writeToLog"><block type="text" id="w*Xw~E1pn~~EoH+M^zx7"><field name="TEXT">Warm; switch Off heater</field></block></value><next><block type="logic_set" id="B-Go0+T2uvqhL5;wQ7Ai"><value name="A"><block type="switchvariablesGL" id="pEbdLT;4G@o+Dx(Z0e=)"><field name="Switch">269</field></block></value><value name="B"><block type="logic_states" id="m`tBtEMCO~G3nx}Z@Z#D"><field name="State">Off</field></block></value></block></next></block></statement><value name="IF1"><block type="logic_operation" id="No|lJU,y;6hHMQGE:i(]"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="M~LNOd:MpmPQIS4c9w4q"><field name="OP">EQ</field><value name="A"><block type="switchvariablesGL" id="z%j6jp/0GztCZ?*^SX}7"><field name="Switch">269</field></block></value><value name="B"><block type="logic_states" id="2,[hfB(Pe#1=|kWOw;S."><field name="State">On</field></block></value></block></value><value name="B"><block type="logic_operation" id="9*Op~4aCB3B?Ef.dg6:8"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="F1_2,4=9WA+rs+0fbu16"><field name="OP">OR</field><value name="A"><block type="logic_timeofday" id="7Tvb)bEH2lb8jQyTCcE9"><field name="OP">LTE</field><value name="Time"><block type="logic_timevalue" id="h-OA,H$vP5@s{7`gD|3o"><field name="TEXT">06:30</field></block></value></block></value><value name="B"><block type="logic_timeofday" id="IDIs^NOCa]#8@J?rkD#~"><field name="OP">GT</field><value name="Time"><block type="logic_timevalue" id="Pd%]?yT*m+)13bgIMW3#"><field name="TEXT">15:30</field></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="P}DNW^K-3nqV%B+kSUY{"><field name="OP">OR</field><value name="A"><block type="logic_weekday" id="jzJftyv8^X?T{*@42%n%"><field name="OP">LT</field><field name="Weekday">2</field></block></value><value name="B"><block type="logic_weekday" id="gYZu]d_DAQm;2Sq2c=kk"><field name="OP">GT</field><field name="Weekday">6</field></block></value></block></value></block></value></block></value><statement name="DO1"><block type="writetolog" id="mQ)?~{%mxL^r5oX61meO"><value name="writeToLog"><block type="text" id="nqfa[@Y^}|HHKAOYkM_j"><field name="TEXT">Outside day / time window switch Off heater</field></block></value><next><block type="logic_set" id=")aI.Sq?yYW2j_,@OBAPI"><value name="A"><block type="switchvariablesGL" id="ewF4#-AYnLYx{M!@CHC6"><field name="Switch">269</field></block></value><value name="B"><block type="logic_states" id=",f)4t|A4#xBC9wuLFCvb"><field name="State">Off</field></block></value></block></next></block></statement><value name="IF2"><block type="logic_operation" id="g}1^qW$9)QKk,K+]]Uck"><field name="OP">AND</field><value name="A"><block type="logic_operation" id="8UHWtaI/^+zE5K^eO8GD"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="?4=F/nsp9l]D-bY~@2sh"><field name="OP">EQ</field><value name="A"><block type="switchvariablesGL" id="vgPSi{jn0l``Sq[.S#!I"><field name="Switch">269</field></block></value><value name="B"><block type="logic_states" id="z!11IxJKsG2I.+e16;IQ"><field name="State">Off</field></block></value></block></value><value name="B"><block type="logic_compare" id="SRtQORF-$.6D@2X5(~k5"><field name="OP">LT</field><value name="A"><block type="temperaturevariables" id="VTm`[Ag5Vg#6PYEQXrK("><field name="Temperature">17</field></block></value><value name="B"><block type="math_number" id="4WRqo:xW?5cFKV.8mGWH"><field name="NUM">20</field></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="87yPu^k,2CVe)_Dpo3QT"><field name="OP">AND</field><value name="A"><block type="logic_operation" id=";kxf7?l/%E5+oYiq6il!"><field name="OP">AND</field><value name="A"><block type="logic_timeofday" id="L-=Z;ChXU+5v7Gexfj8!"><field name="OP">GT</field><value name="Time"><block type="logic_timevalue" id="{f**mhUu6zyg0KczRa7~"><field name="TEXT">06:30</field></block></value></block></value><value name="B"><block type="logic_timeofday" id=")]MMI7Q^A1_Ldd@L0pL?"><field name="OP">LT</field><value name="Time"><block type="logic_timevalue" id="kg,A,$RE9lV}a.3;q*d/"><field name="TEXT">15:30</field></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="(U?[ASdhUoIRuiUAaapF"><field name="OP">AND</field><value name="A"><block type="logic_weekday" id="Pg4M?2rnKY_t0.I@|M5B"><field name="OP">GTE</field><field name="Weekday">2</field></block></value><value name="B"><block type="logic_weekday" id="[umEOMEOYKZk^ccMs2o-"><field name="OP">LTE</field><field name="Weekday">6</field></block></value></block></value></block></value></block></value><statement name="DO2"><block type="writetolog" id="*znL~{U6[9|=l,ra~5jC"><value name="writeToLog"><block type="text" id="rg%4yVW^$)J)D6uJda`H"><field name="TEXT">Cold switch on heater</field></block></value><next><block type="logic_set" id="L_)Y_@u8cR9]Kx~..M5*"><value name="A"><block type="switchvariablesGL" id="F#]X}Zvl%VrN2w6~lj6i"><field name="Switch">269</field></block></value><value name="B"><block type="logic_states" id="P7zqyAHClLkc`#VSE2nX"><field name="State">On</field></block></value></block></next></block></statement></block></xml>
Heater.png
Heater.png (96.93 KiB) Viewed 477 times

Re: simple switch blocky won't work

Posted: Tuesday 06 October 2020 19:35
by RobUbaghs
Thanks mate! it seems to work fine!

te differance i see is that you start first with all the switsching off rules all apart and then make one long switch on rule with all conditions with it has to turn on.

thanks again!