Navigation

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

    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

    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 8
    • Best 0
    • Groups 1

    sekino

    @sekino

    Starter

    0
    Reputation
    11
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    sekino Follow
    Starter

    Latest posts made by sekino

    • Telegram response

      Can anyone help me to solve BOT question > answear according to different keywords and answear to specific user which is asking?

      So far I programmed it in hard way but it's too complicated. Is there any easier way or is iobroker telegram bot programmed with simmilar logic already?
      washing.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on" id="-{:-h(T$d)bQy2e`TW(A" x="137" y="962">
          <field name="OID">telegram.0.communicate.request</field>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="ke3/?!d??#~Z4v^[h1is">
              <value name="IF0">
                <block type="logic_operation" id="%iDs:^P32Zb*ec6b$M2q">
                  <field name="OP">OR</field>
                  <value name="A">
                    <block type="logic_compare" id="fq2[NoNTiUP]KaT[-[{Z">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="on_source" id="zV;l+0X7Q+6}AyGYKn@j">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="text" id="#]ys}ezzd=`Ny(7U^)C%">
                          <field name="TEXT">[Mike]Washmachine</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="eOMrM5-Z)yW$U%eWlrE7">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="on_source" id="T7Wq}iw.@y!d$?P^R5$5">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="text" id="o;oUa@B$hK9:BgFW.8zS">
                          <field name="TEXT">[Anna]Washmachine</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="controls_if" id="z#voL@!Z%-!=Bfaa$V9e">
                  <mutation else="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id=";VMcr6S1*l#z*hs^TF-G">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_operation" id=":QVRov+9%Vbju|nRz1|K">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="-R*Dx;`Z}nl$IU2IK+ng">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="get_value" id=",#k~|U***e5-9%u@ha8A">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hmip.0.devices.3014F711A0000F55699EB22F.channels.1.currentPowerConsumption</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="{A9(?kWGhAT.%Z8?=}(l">
                                  <field name="NUM">2.69</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="q)YH4q~in0!08Z4`6jLK">
                              <field name="OP">GTE</field>
                              <value name="A">
                                <block type="get_value" id="*B?6(Hf@WH+Jpk-Z}uHw">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hmip.0.devices.3014F711A0000F55699EB22F.channels.1.currentPowerConsumption</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="$!FNMW0mx}F/6#;qiIBN">
                                  <field name="NUM">0.1</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="3E2){.3u_$)RO(|!cl|u">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="wKU[m9^WRdnE)=Y(|XZC">
                              <field name="ATTR">val</field>
                              <field name="OID">cloud.0.services.custom_vibration-pracka</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="vuJ.%dEPSj~1{:V)YE#p">
                              <field name="TEXT">closed</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id="U}+I[$V$WT-S1FK9+%q+">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="60ab$8ID;V+x+Q7W:Qx@">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="on_source" id="QzXgXE=D6RU_uLvlgvb7">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="6!KzcrJ/^=uDc6xB4zY[">
                              <field name="TEXT">[Mike]Washmachine</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="telegram" id="}rj/W{q^#o%r-t3c9_7:">
                          <field name="INSTANCE"></field>
                          <field name="LOG"></field>
                          <field name="SILENT">FALSE</field>
                          <field name="PARSEMODE">default</field>
                          <value name="MESSAGE">
                            <shadow type="text" id="S6RGSlpU9:hUtaXzMdm+">
                              <field name="TEXT">Still washing</field>
                            </shadow>
                          </value>
                          <value name="USERNAME">
                            <block type="text" id="YvBrO0c#cT`}5kHBo%!_">
                              <field name="TEXT">Mikee</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="telegram" id="gvKkI.bp#xw#?KCJ^WC%">
                          <field name="INSTANCE"></field>
                          <field name="LOG"></field>
                          <field name="SILENT">FALSE</field>
                          <field name="PARSEMODE">default</field>
                          <value name="MESSAGE">
                            <shadow type="text" id="5mg2OK0UX{.=:rx{Q36v">
                              <field name="TEXT">Washing done</field>
                            </shadow>
                          </value>
                          <value name="USERNAME">
                            <block type="text" id=":hLqj2zk(qcmV8]|m)6O">
                              <field name="TEXT">Annaa</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <statement name="ELSE">
                    <block type="controls_if" id="%U#{knm-8CSJ9;qW7KmT">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="AF)6n;-K0#Y%?lA=K~Gv">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="on_source" id="(%gszQ/CpJsS@QtG.7Qx">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="0e3wy_1i%S9jYAtH}Z{W">
                              <field name="TEXT">[Mike]Washmachine</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="telegram" id="eTaNBB|v]ed=8rIm[=.$">
                          <field name="INSTANCE"></field>
                          <field name="LOG"></field>
                          <field name="SILENT">FALSE</field>
                          <field name="PARSEMODE">default</field>
                          <value name="MESSAGE">
                            <shadow type="text" id="+)NG_nFMkXHE`KS;Ui[/">
                              <field name="TEXT">Still washing</field>
                            </shadow>
                          </value>
                          <value name="USERNAME">
                            <block type="text" id="=(+Dn1St*z(j?**~6gAy">
                              <field name="TEXT">Mikee</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="telegram" id="t)p5{6*CeUjGem6pXWgN">
                          <field name="INSTANCE"></field>
                          <field name="LOG"></field>
                          <field name="SILENT">FALSE</field>
                          <field name="PARSEMODE">default</field>
                          <value name="MESSAGE">
                            <shadow type="text" id="+=;7+`wQ[4CD:_xTWBi~">
                              <field name="TEXT">Washing done</field>
                            </shadow>
                          </value>
                          <value name="USERNAME">
                            <block type="text" id="Zgr|7K#?V$-y%1x8Re2H">
                              <field name="TEXT">Annaa</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      posted in Blockly
      S
      sekino
    • RE: Turn on switch at certain time when other switch turned on

      @Asgothian @Homoran Thank you all! Working great!

      posted in Blockly
      S
      sekino
    • RE: Turn on switch at certain time when other switch turned on

      @Asgothian I will try and let you know if works, for now I would like to ask what logic is behind : ObjectID is greater/less than last ... if values are true or false ???

      should I keep variables Sw1IsOn and Sw1IsOnAtNight ? Or should I changed them for states of my Sw1?

      posted in Blockly
      S
      sekino
    • RE: Turn on switch at certain time when other switch turned on

      @Asgothian I will make it in points:

      • If sunset comes AND switch 1 is already on, I want switch 2 to be turned on
      • If switch 1 is turned on during night time, I want the same to happen (immediatelly)
      • turn off SWITCH2 > 5 minutes later after SWITCH1 is turned off.
      posted in Blockly
      S
      sekino
    • Turn on switch at certain time when other switch turned on

      Hi, I want to make script that will turn on SWITCH2 when SWITCH1 is already turned on and is between SUNSET or DUSK and 23:59 or until SUNRISE next day.
      Then turn off SWITCH2 5 minutes later after SWITCH1 is turned off.
      I created this but it's not working:
      switch.png

      posted in Blockly
      S
      sekino
    • RE: Notification every X minutes

      @paul53 Thank you very much! Working great 🙂

      posted in Blockly
      S
      sekino
    • RE: Notification every X minutes

      @paul53 That'working OK. Thank you very much!

      However I found out, sometimes when there is same value measured on power socket, it will not send any update, so counter not working, for example if washingmachine is in stand-by mode it will take 0.05wats whole day, this info is broadcasted just once at the beginning and then it's not updated in iObroker until washingmachine is woke up from stand-by mode. So a counter based on counting time will be more accurate... if someone did that already and working please share. Thank you!

      posted in Blockly
      S
      sekino
    • Notification every X minutes

      Hi, I'm strugling to setup notification sending every X minutes.
      For example I'm trying to send notification when my washingmachine finish, that means power consumption is between 10-1 watts, this state is for 15 minutes until washingmachine will turn automatically off. HomematicIP power socket is updating state every 30 seconds, so when I simply turn on notification for state between 10-1 watts I'm getting notifications every 30 seconds which is too many. How can I set up Blockly to send notification for example every 5 minutes during state between 10-1 watts ?

      posted in Blockly
      S
      sekino
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo