Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Script Fenster auf Telegram Nachricht

    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

    Script Fenster auf Telegram Nachricht

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @technodj23 last edited by

      @technodj23 du kannst auch, wenn du dir den Zustand einzelner Fenster/ Türen per Telegram schicken möchtest auch einfach auf den <<Schraubenschlüssel und wählst telegram aus
      c731b3a4-5f9f-477e-8eb2-cfc1fb04fe51-image.png

      J 1 Reply Last reply Reply Quote 0
      • J
        Jan1 @crunchip last edited by

        @crunchip
        3. Möglichkeit 😊

        1 Reply Last reply Reply Quote 0
        • T
          technodj23 last edited by

          Ich weiß, aber ich wollte das Ganze ja weiterspinnen, das Alexa mir sagt das die Fenster auf sind. Aber wenn ich jetzt schon scheitere 😞 Welche Lösung soll jetzt nochmal gehen?

          J 1 Reply Last reply Reply Quote 0
          • J
            Jan1 @technodj23 last edited by

            @technodj23
            Stell im Trigger auf "wahr" um.
            Die Ansage über Alexa ist was ganz anderes.

            T 1 Reply Last reply Reply Quote 0
            • T
              technodj23 @Jan1 last edited by

              @Jan1 Es steht doch auf wahr. Geht aber nicht!
              Egal, ich will euch damit nicht weiter nerven. Muss ich mich mal nach anderen Kontakten umsehen.
              Gehen irgendwelche out of the Box?

              J 1 Reply Last reply Reply Quote 0
              • J
                Jan1 @technodj23 last edited by

                @technodj23
                Mach mal ein Screenshot vom aktuellen Blockly

                1 Reply Last reply Reply Quote 0
                • T
                  technodj23 last edited by

                  screenshot.jpg

                  crunchip 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @technodj23 last edited by

                    @technodj23 nimm mal das, ersetze den Schalter mit deinem Sensor

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                     <block type="on_ext" id="#nUt3`@[Ch*7kqblSA0t" x="-412" y="-87">
                       <mutation items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="kz43P/LjU.sY7r~9t)0,">
                           <field name="oid">sonoff.0.TV-Schalter.POWER</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="X@EIF86c},5PYJcCcm/7">
                           <mutation elseif="1"></mutation>
                           <value name="IF0">
                             <block type="logic_compare" id="#DY~)|B^PC]9t[[9uD]#">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="bw,E;Ddt??{(@(Glnp#_">
                                   <field name="ATTR">val</field>
                                   <field name="OID">sonoff.0.TV-Schalter.POWER</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="#zwEC{a+_%:aeqolr/#!">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="telegram" id="ZSja-KUN%v*1k6ELXuZ|">
                               <field name="INSTANCE">.0</field>
                               <field name="LOG">log</field>
                               <field name="SILENT">FALSE</field>
                               <field name="PARSEMODE">default</field>
                               <value name="MESSAGE">
                                 <shadow type="text" id="TS}l]v*t%:5ae7S`2y8Y">
                                   <field name="TEXT">TV an</field>
                                 </shadow>
                               </value>
                             </block>
                           </statement>
                           <value name="IF1">
                             <block type="logic_compare" id="_*+DJVxGW[vCG0n#4}Xs">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="get_value" id="d/%}HX~lz=w:UF:Y^@7.">
                                   <field name="ATTR">val</field>
                                   <field name="OID">sonoff.0.TV-Schalter.POWER</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_boolean" id="18uujm:bS=gbe|t;CLVJ">
                                   <field name="BOOL">FALSE</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO1">
                             <block type="telegram" id="ylg4WLe*:_L!7fvQO;9^">
                               <field name="INSTANCE">.0</field>
                               <field name="LOG">log</field>
                               <field name="SILENT">FALSE</field>
                               <field name="PARSEMODE">default</field>
                               <value name="MESSAGE">
                                 <shadow type="text" id="cB_UsNnDu(|dKnUtLOyJ">
                                   <field name="TEXT">TV aus</field>
                                 </shadow>
                               </value>
                             </block>
                           </statement>
                         </block>
                       </statement>
                     </block>
                    </xml>
                    
                    T 1 Reply Last reply Reply Quote 0
                    • T
                      technodj23 @crunchip last edited by

                      @crunchip Perfekt! Das funktioniert!

                      crunchip J 2 Replies Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @technodj23 last edited by crunchip

                        @technodj23 mal ne andere Frage, nachdem ich mir gerade dein Bild noch mal angesehen habe, siehe Markierung javascript.0
                        du hast da 2mal die Instanz 0
                        2b1705cc-f01a-45ba-b5cd-e9ab69cb9bfe-image.png

                        1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @technodj23 last edited by

                          @technodj23 wenn du nur offen senden willst musst du den sonst falls Block raus nehmen

                          1 Reply Last reply Reply Quote 0
                          • J
                            Jan1 @technodj23 last edited by Jan1

                            @technodj23
                            und warum funktioniert das bei Dir und Dein Blockly nicht? Entspricht bis auf den Falls Block eigentlich dem was Du auch hast.
                            Die Frage zu den 2 Javasscript.0 Objekten ist allerdings interessant, weil das so eigentlich nicht möglich ist

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              technodj23 @Jan1 last edited by

                              @Jan1 said in Script Fenster auf Telegram Nachricht:

                              @technodj23
                              und warum funktioniert das bei Dir und Dein Blockly nicht? Entspricht bis auf den Falls Block eigentlich dem was Du auch hast.
                              Die Frage zu den 2 Javasscript.0 Objekten ist allerdings interessant, weil das so eigentlich nicht möglich ist

                              Gute Frage 🙂 Vielleicht ist das ja genau das was ich brauche?

                              Hab die zweite Instanz gelöscht. War leer.

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                Jan1 @technodj23 last edited by

                                @technodj23
                                Ne, da war was anderes faul, da das im Prinzip das selbe war was Du hattest. Ich denk mal da war wohl die zweite Instanz schuld, wobei das keine ze´weite Instanz war, sonst hätte sie .1 heißen müssen. Zwei Instanzen mit .0 ist eigentlich nicht möglich. Da hast anscheinend zu viel an Deinem System gebastelt und einiges versemmelt.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  technodj23 last edited by

                                  Ja, wird wohl so sein. Jetzt muss ich nur noch an die Alexa Sache ran...

                                  crunchip J dslraser 3 Replies Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @technodj23 last edited by

                                    @technodj23 dafür hat dir ja @dslraser einiges an links mitgeteilt, das solltest dann auch hinbekommen

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      Jan1 @technodj23 last edited by

                                      @technodj23
                                      Mich würde vorher mal Dein System interessieren, wenn da jetzt schon so seltsame Dinge drin sind, kann das nicht gut sein.
                                      Lösche mal alle Logs und mach ein IOBroker restarte über die Konsole, wenn der wieder ohne rote Einträge im Log hoch kommt, ist alles gut, wenn nicht mal, posten was da so steht.

                                      1 Reply Last reply Reply Quote 0
                                      • dslraser
                                        dslraser Forum Testing Most Active @technodj23 last edited by

                                        @technodj23 sagte in Script Fenster auf Telegram Nachricht:

                                        Jetzt muss ich nur noch an die Alexa Sache ran...

                                        https://forum.iobroker.net/post/273896

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          technodj23 last edited by technodj23

                                          Log ist alles i. O. Danke dslraser, muss ich mir mal in Ruhe anschauen.
                                          Möchte wenn ich meine Routine zum Haus verlassen starte, dass Alexa mir sagt dass noch ein Fenster auf ist. Aber da muss ich wohl noch ein bisschen üben 🙂

                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            Jan1 @technodj23 last edited by

                                            @technodj23
                                            Die Ansage ist auch recht einfach und wenn Dein IOBroker sauber durchbootet, dann scheint der eine Objektordner wohl nicht so tragisch gewesen zu sein.
                                            Hast den Alexa Adapter installiert und eine Möglichkeit der Erkennung wenn Du das Hsus verlässt?

                                            T 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            906
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            51
                                            2748
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo