Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. English
  3. Scripting / Logic
  4. Blockly
  5. Telegram response

NEWS

  • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar
    BluefoxB
    Bluefox
    11
    2
    208

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    7.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.7k

Telegram response

Telegram response

Scheduled Pinned Locked Moved Blockly
1 Posts 4 Posters 473 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sekino
    wrote on last edited by sekino
    #1

    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>
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Support us

    ioBroker
    Community Adapters
    Donate

    110

    Online

    32.4k

    Users

    81.3k

    Topics

    1.3m

    Posts
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    ioBroker Community 2014-2025
    logo
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Recent
    • Tags
    • Unread 0
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe