Navigation

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

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    M
    • Profile
    • Following 4
    • Followers 0
    • Topics 35
    • Posts 496
    • Best 47
    • Groups 2

    mading

    @mading

    Starter

    51
    Reputation
    57
    Profile views
    496
    Posts
    0
    Followers
    4
    Following
    Joined Last Online

    mading Follow
    Pro Starter

    Best posts made by mading

    • RE: SONOFF NSPanel mit Lovelace UI

      @xelarep sagte in SONOFF NSPanel mit Lovelace UI:

      @xelarep sagte in SONOFF NSPanel mit Lovelace UI:

      @tt-tom Alles gut! Manche Sachen sollte man nicht nur so nebenher machen, und ja, du hast Recht. Das Stand im Skript sogar vorbildlich drin. Beim nächsten Update gelobe ich Besserung und lese weiter, als wie die ersten drei Zeilen 👼

      Hallo zusammen, ich hatte ja Besserung gelobt, und mich daher nach jetzt schon wieder 8 Monaten wieder eingelesen, um meine beiden Panels von 4.3.3.24 auf 4.4.0.1 upzudaten.

      Habe mich dabei an https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-Starthilfe-FAQ#hilfe-bei-update--upgrade orientiert 😊

      Kurz: hat im Prinzip alles geklappt, aber beim Skriptstart kam jeweils mehrfach ein

      error	script.js.NSPanels.WoZi-Panel-4401: Error: Cannot find module 'dayjs'
      

      wieder hoch. Nanu, das Thema hatte ich damals eigentlich abgehakt?! Den javascript Adapter nochmal geprüft: eingetragen?!

      Bildschirmfoto 2024-08-22 um 11.47.35.png

      Wie komme ich da jetzt weiter? Welche Informationen könntet ihr ggf. noch brauchen? Stehe gerade auf dem Schlauch...

      beim Start tes TS Skripts bekomme ich auch ca. 100 Errors und Warnings. Ich habe dazu irgendwo hier im Thread einen Hinweis von @Armilar gesehen, dass das erstmal ignoriert werden kann, da es nur beim Stop/ Start des Skripts auftaucht.

      posted in Hardware
      M
      mading
    • RE: Proxmox Ja oder Nein?

      Ich hatte überlegt, meine Backups noch beim Schwager zu lagern, der Aufwand wäre aber mit Firewalls etc. Einigermassen gross gewesen. Ich lege mit Synology HyperBackup meine wichtigsten Daten verschlüsselt in der Hetzner Storage Boy ab (https://www.hetzner.com/de/storage/storage-box/). 1TB für 3.20€/ Monat finde ich günstig.

      @Dieter_P die paar GB sollten deinem Netzwerk nichts machen, vor allem, wenn du die Backups nachts machst

      posted in Proxmox
      M
      mading
    • RE: Test Adapter VW Connect für VW, ID, Audi, Seat, Skoda

      @guitardoc lt. ID Drivers Club gibt es Serverprobleme (Hochverfügbarkeit kennt VW wohl nicht)…

      posted in Tester
      M
      mading
    • RE: Diskussion zu Cloud/Vis-Offline-Weihnachtsangebot 2022

      ich würds wieder machen, habe aber schon die Offline Lizenz vor 2-3 Jahren gekauft. Danke für eure tolle Arbeit!

      posted in ioBroker Allgemein
      M
      mading
    • RE: Adresse per Telegram versenden

      @Wszene genau das habe ich für mich auch gebaut. Ergebnis ist eine Telegram Nachricht mit Adresse und einem Google Maps Link mit Navigation an die Adresse. Trigger ist bei mir ein DP, der anzeigt ob das Auto fährt (VW ID4).

      IMG_2010.jpeg

      
      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="#W9[8#Z#T0DT@[k}Obn(">s_OriginalURL</variable>
          <variable id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</variable>
          <variable id="^?:MPm61`|Yim4q_LAg%">ParkAdresse</variable>
        </variables>
        <block type="procedures_defcustomreturn" id="O/kPa$hWu*Sqkh^uJL[)" x="113" y="-12">
          <mutation statements="false">
            <arg name="s_OriginalURL" varid="#W9[8#Z#T0DT@[k}Obn("></arg>
          </mutation>
          <field name="NAME">funcURLumwandeln</field>
          <field name="SCRIPT">cmV0dXJuIGVuY29kZVVSSShzX09yaWdpbmFsVVJMKTs=</field>
          <comment pinned="false" h="80" w="160">Describe this function...</comment>
        </block>
        <block type="on" id="Fk|,S+1cncrzyA5xg3m0" x="63" y="113">
          <field name="OID">vw-connect.0.WVGZZZE2ZNP025704.position.isMoving</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="variables_set" id="%v*cjB[M(Ko*C]9WPC-5">
              <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
              <value name="VALUE">
                <block type="text_join" id="B_rFnN$mqKsi!tlT)QZ{">
                  <mutation items="2"></mutation>
                  <value name="ADD0">
                    <block type="text" id="6I3usZm_~DPvU:~Kvf.,">
                      <field name="TEXT">https://www.google.com/maps/dir/?api=1&amp;travelmode=driving&amp;destination=</field>
                    </block>
                  </value>
                  <value name="ADD1">
                    <block type="get_value" id="z4eGh_bvd7~0}9p|FA2/">
                      <field name="ATTR">val</field>
                      <field name="OID">vw-connect.0.WVGZZZE2ZNP025704.position.address.displayName</field>
                    </block>
                  </value>
                </block>
              </value>
              <next>
                <block type="variables_set" id="!^B:vNGLrVm{]Gi;@6Ob">
                  <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
                  <value name="VALUE">
                    <block type="procedures_callcustomreturn" id="e$YXjQ3-6U92;?;}EEk9">
                      <mutation name="funcURLumwandeln">
                        <arg name="s_OriginalURL"></arg>
                      </mutation>
                      <value name="ARG0">
                        <block type="variables_get" id="jAMJ3O8j-`25+7UrM|`,">
                          <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="D1t8NP%UpC:|=FjOv4]_">
                      <field name="VAR" id="^?:MPm61`|Yim4q_LAg%">ParkAdresse</field>
                      <value name="VALUE">
                        <block type="text_join" id="c}-H~a{p-$:u^,;PLHfv">
                          <mutation items="4"></mutation>
                          <value name="ADD0">
                            <block type="get_value" id="L{PM1sVH#c,D@Z3*e?J[">
                              <field name="ATTR">val</field>
                              <field name="OID">vw-connect.0.WVGZZZE2ZNP025704.position.address.displayName</field>
                            </block>
                          </value>
                          <value name="ADD1">
                            <block type="text_newline" id="F~TfduOZ-}6+M+dGhF/j">
                              <field name="Type">\n</field>
                            </block>
                          </value>
                          <value name="ADD2">
                            <block type="text" id="YL$EDOe`D0]l#8W(@SAN">
                              <field name="TEXT">Google Maps Link: </field>
                            </block>
                          </value>
                          <value name="ADD3">
                            <block type="variables_get" id=".sxStq[Ym7ESR#2dC*e5">
                              <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="controls_if" id="kH%70OZEB:X:@]Y!KG2n">
                          <mutation else="1"></mutation>
                          <value name="IF0">
                            <block type="on_source" id=",.8CY6pHc8sbj28r13Rz">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="telegram" id=";DKZb.3xfPt~#PHeJA6-">
                              <field name="INSTANCE"></field>
                              <field name="LOG"></field>
                              <field name="SILENT">FALSE</field>
                              <field name="PARSEMODE">default</field>
                              <field name="ESCAPING">FALSE</field>
                              <field name="DISABLE_WEB_PAGE_PREVIEW">TRUE</field>
                              <value name="MESSAGE">
                                <shadow type="text" id="xZM97[1ZqfGZ!=!tID-G">
                                  <field name="TEXT">Auto fährt gerade</field>
                                </shadow>
                                <block type="text_join" id="uF!=Qo5LBk7+y{P+#NgD">
                                  <mutation items="4"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="m;n}`nIT9Mp{f%8RC+%U">
                                      <field name="TEXT">Auto fährt gerade. </field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="text_newline" id="z$aSB7JmIPrrp1a_kT=)">
                                      <field name="Type">\n</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="rlfw;e]ydU7,2v|amu1@">
                                      <field name="TEXT">Letzte Adresse: </field>
                                    </block>
                                  </value>
                                  <value name="ADD3">
                                    <block type="variables_get" id="Vq/4]P0,LSVAzDw|G,wy">
                                      <field name="VAR" id="^?:MPm61`|Yim4q_LAg%">ParkAdresse</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="wxxftU^A,(c._YxOtI?E">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id=")`~M:3CVh#y+o{gYtEo#">
                                      <field name="TEXT">test</field>
                                    </shadow>
                                    <block type="text_join" id="Z;EA-K#iZ93l4_8DQWSh">
                                      <mutation items="3"></mutation>
                                      <value name="ADD0">
                                        <block type="text" id="BKod_XSQM9C[nE|E+U4!">
                                          <field name="TEXT">-HausInfos- Auto fährt gerade. </field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="text" id="eq.;{dSewFkR2;m2(}MB">
                                          <field name="TEXT">Letzte Adresse: </field>
                                        </block>
                                      </value>
                                      <value name="ADD2">
                                        <block type="get_value" id=")(nC;))w!eZwF?Em5BSc">
                                          <field name="ATTR">val</field>
                                          <field name="OID">vw-connect.0.WVGZZZE2ZNP025704.position.address.displayName</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="timeouts_wait" id="NEc?4*[cGsl/k{P9x%,R">
                              <field name="DELAY">1</field>
                              <field name="UNIT">min</field>
                              <next>
                                <block type="variables_set" id="(kR*dC`@SFx50eP|*kTY">
                                  <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
                                  <value name="VALUE">
                                    <block type="text_join" id="QNDNeybyn%ZF-df+^-Q;">
                                      <mutation items="2"></mutation>
                                      <value name="ADD0">
                                        <block type="text" id="mJ?V5%$C{r8hp6z#hSn%">
                                          <field name="TEXT">https://www.google.com/maps/dir/?api=1&amp;travelmode=driving&amp;destination=</field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="get_value" id="sy#Skwe[j0I?K?m#6hEA">
                                          <field name="ATTR">val</field>
                                          <field name="OID">vw-connect.0.WVGZZZE2ZNP025704.position.address.displayName</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="yjbcmC4jX6YB:Qao/a+F">
                                      <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
                                      <value name="VALUE">
                                        <block type="procedures_callcustomreturn" id="dB)Aj-6ZREb[4d(4~CHB">
                                          <mutation name="funcURLumwandeln">
                                            <arg name="s_OriginalURL"></arg>
                                          </mutation>
                                          <value name="ARG0">
                                            <block type="variables_get" id="dwqbIU,[xkBmMNd4M*|E">
                                              <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="0jMv!5!|$#(tWy`fXyB8">
                                          <field name="VAR" id="^?:MPm61`|Yim4q_LAg%">ParkAdresse</field>
                                          <value name="VALUE">
                                            <block type="text_join" id="(k=C1R02(*Xx+;qHr]86">
                                              <mutation items="4"></mutation>
                                              <value name="ADD0">
                                                <block type="get_value" id="RHrcY/12w:%D=QI3|EPN">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">vw-connect.0.WVGZZZE2ZNP025704.position.address.displayName</field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="text_newline" id="W~5}Td`pvfg5P3Esefll">
                                                  <field name="Type">\n</field>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="text" id="G%NoPSbj2]WYpa6E+U4N">
                                                  <field name="TEXT">Google Maps Link: </field>
                                                </block>
                                              </value>
                                              <value name="ADD3">
                                                <block type="variables_get" id="f6UC`dS7L0J*j@$AmSez">
                                                  <field name="VAR" id="v~LsF;Z:nA*l}ebO$t`K">GoogleMapsURL</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="telegram" id="gE6s*O[iOjU8bl3ba_{t">
                                              <field name="INSTANCE"></field>
                                              <field name="LOG"></field>
                                              <field name="SILENT">FALSE</field>
                                              <field name="PARSEMODE">default</field>
                                              <field name="ESCAPING">FALSE</field>
                                              <field name="DISABLE_WEB_PAGE_PREVIEW">TRUE</field>
                                              <value name="MESSAGE">
                                                <shadow type="text" id="4*{/fiv}LbYPJ;-6oy4*">
                                                  <field name="TEXT">Fahrt wurde beendet</field>
                                                </shadow>
                                                <block type="text_join" id="5lsLHyAx4{Gk;wTU;QK-">
                                                  <mutation items="4"></mutation>
                                                  <value name="ADD0">
                                                    <block type="text" id="(%k_E@~eVg|wQ8ae8hW*">
                                                      <field name="TEXT">Fahrt beendet. </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="text_newline" id="HH)C3Y!t;;3$)U.,1^6g">
                                                      <field name="Type">\n</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD2">
                                                    <block type="text" id="uxII5Sw7hArLy8X{a0Yk">
                                                      <field name="TEXT">Neue Adresse: </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD3">
                                                    <block type="variables_get" id="CQm}-o3IK2%qF3zi`|8q">
                                                      <field name="VAR" id="^?:MPm61`|Yim4q_LAg%">ParkAdresse</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="debug" id="7gu3^GeUT5GVXZWXu:8X">
                                                  <field name="Severity">log</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id="1-R[k}Tu#6KzE]80B)[@">
                                                      <field name="TEXT">test</field>
                                                    </shadow>
                                                    <block type="text_join" id="Mt*4#b`:4`td1Wqc-KYk">
                                                      <mutation items="3"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="#q=.Lr}whHK.@~!^+mAc">
                                                          <field name="TEXT">-HausInfos- Fahrt beendet. </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="text" id="{ni|:O:_8/3e#dX{xF$Z">
                                                          <field name="TEXT">Neue Adresse: </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="get_value" id="glR3FImC{|d:](cxS,=J">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">vw-connect.0.WVGZZZE2ZNP025704.position.address.displayName</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      
      posted in Skripten / Logik
      M
      mading
    • RE: Test Adapter Awtrix-Light (Awtrix 3)

      @esp8266 sollte auf der Hand liegen: warum die Informationen zurück halten, auf eine persönliche Nachricht bestehen? Es gibt keinen Datenschutz auf die Infos. Sollte jemand z.B. in einem halben Jahr nach der Lösung suchen und er ist nicht mehr im Forum, muss wieder jemand danach suchen. Ausserdem ist es wenig effektiv (für alle Beteiligten), wenn die Infos jeweils in einer PN geschickt werden...

      posted in Tester
      M
      mading
    • RE: Blockly zu Medikamentenbestellung *gelöst*

      @surfer09 sagte in Blockly zu Medikamentenbestellung *gelöst*:

      Was natürlich auch noch cool wäre, wenn man über das Smartphone den Gesamtbestand neu hinterlegen könnte. Also die neue Anzahl an den Datenpunkt senden und der addiert dann die neuen Tabletten mit dem aktuellen Gesamtbestand.

      Erstelle dir (je Medi) einen Datenpunkt als bool. Init false. Baumdir ein blockly mit trigger auf Änderund dieses Trigger DP und falls es wahr ist, addierst du (falls notwendig eine Zahl aus einem weiteren DP falls sich die Packungsgrösse ändert) die neue Anzahl hinzu. Im vis kannst du dir einen switch button machen, der auf true stellt. Vergiss nicht im blockly den bool wert wieder auf false nach Addition zu setzen 😉

      Alternativ schreibt der vis button eine vordefinierte zahl in einen number DP und du machst das gleiche mit einem trigger nur nicht auf das bool sondern Änderung auf number DP

      posted in Blockly
      M
      mading
    • RE: SONOFF NSPanel mit Lovelace UI

      @armilar sagte in SONOFF NSPanel mit Lovelace UI:

      @mading

      ohne N und L wirst du das Panel nie betreiben können. Wie ist es denn jetzt angeschlossen oder ist es noch neu?

      Ich will es bestellen. Ich schau mir noch die Doku etc an bevor ich das mache. Kann ich das nspanel wieder in den auslieferungszustand zurück bringen?

      posted in Hardware
      M
      mading
    • [Vorlage] Witze aus API über sayit in zb Sonos ausgeben

      Hi,

      Ich habe mir vor einer Weile den Spass gemacht, Witze über mein Sonos ausgeben zu lassen. Manchmal funktioniert die Ausgabe vermutlich wegen Sonderzeichen oder zu langem Text nicht.

      Ich habe einen DP über den ich steuere, ob wir anwesend sind. Der muss entfernt oder durch eigenes ersetzt werden.

      IMG_2251.jpeg

      
      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="P,wQo^[Fz~%|pG;Df/}i">Ansage</variable>
          <variable id="}^BHBb-J~Vzn`-G`]^:{">Witz</variable>
        </variables>
        <block type="schedule" id="ljxvq=y5RRyq4E#oc@14" x="148" y="215">
          <field name="SCHEDULE">{"time":{"exactTime":true,"start":"08:00"},"period":{"days":1},"valid":{"from":"23.08.2024","to":""}}</field>
          <statement name="STATEMENT">
            <block type="controls_if" id=":s|$k_r9s*M$HiKzi{xP">
              <value name="IF0">
                <block type="get_value" id="(BVw01Ypb:pBZnhpncR5">
                  <field name="ATTR">val</field>
                  <field name="OID">hm-rega.1.950</field>
                </block>
              </value>
              <statement name="DO0">
                <block type="variables_set" id="g4wQ(3q?9mA1+0T30$E/">
                  <field name="VAR" id="P,wQo^[Fz~%|pG;Df/}i">Ansage</field>
                  <value name="VALUE">
                    <block type="text" id="P-;Lj,+ZDjrub{D%d1kw">
                      <field name="TEXT">Hier kommt der Witz zum Morgen!</field>
                    </block>
                  </value>
                  <next>
                    <block type="procedures_callnoreturn" id="k1K_euAkjg4lHz![7H0a">
                      <mutation name="Witz sagen"></mutation>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
          <next>
            <block type="schedule" id="oSR-(|%lIv)M8^ovjq~B">
              <field name="SCHEDULE">{"time":{"exactTime":true,"start":"12:00"},"period":{"days":1}}</field>
              <statement name="STATEMENT">
                <block type="controls_if" id="jF`6Ft,ly}1mn~-X{H]q">
                  <value name="IF0">
                    <block type="get_value" id="x(iQ7R{p9=^K|t9*6l~C">
                      <field name="ATTR">val</field>
                      <field name="OID">hm-rega.1.950</field>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="variables_set" id="}mb4C$yGEvtzmsh0EW[*">
                      <field name="VAR" id="P,wQo^[Fz~%|pG;Df/}i">Ansage</field>
                      <value name="VALUE">
                        <block type="text" id="_%YH!L~`kJR:XDTZHGoo">
                          <field name="TEXT">Hier kommt der Witz zum Mittag!</field>
                        </block>
                      </value>
                      <next>
                        <block type="procedures_callnoreturn" id="CL}UcU`i?qIT}dr}L36b">
                          <mutation name="Witz sagen"></mutation>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
              <next>
                <block type="schedule" id="F9PaQ7/I(s2HW}RgS0~9">
                  <field name="SCHEDULE">{"time":{"exactTime":true,"start":"18:35"},"period":{"days":1}}</field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id=",ThPG_,Hfamul_KU$b34">
                      <value name="IF0">
                        <block type="get_value" id="{FNkgz*c].#lAG;D(0lQ">
                          <field name="ATTR">val</field>
                          <field name="OID">hm-rega.1.950</field>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="}H@W%H_y5R#;N+eeseT?">
                          <field name="VAR" id="P,wQo^[Fz~%|pG;Df/}i">Ansage</field>
                          <value name="VALUE">
                            <block type="text" id="2pg/[4X;=[bmW`xVho.X">
                              <field name="TEXT">Hier kommt der Witz zum Abend!</field>
                            </block>
                          </value>
                          <next>
                            <block type="procedures_callnoreturn" id="VWrT|R010T~@q9o0U7XC">
                              <mutation name="Witz sagen"></mutation>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
        <block type="procedures_defnoreturn" id="v2FV%/pOb4+){|To3cd+" x="738" y="213">
          <field name="NAME">Witz sagen</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="comment" id="mb:4c})9P`htk]Id(!eQ">
              <field name="COMMENT">https://witzapi.de/api-docs/</field>
              <next>
                <block type="comment" id="`cLCJ-V|OzT,YcGpObuA">
                  <field name="COMMENT">[&amp;#10;  {&amp;#10;    "name": "flachwitze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "lehrerwitze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "programmierwitze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "scherzfragen",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "chuck-norris-witze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "antiwitze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "blondinenwitze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "schulwitze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "ddr-witze",&amp;#10;    "language": "de"&amp;#10;  },&amp;#10;  {&amp;#10;    "name": "arztwitze",&amp;#10;    "language": "de"&amp;#10;  }&amp;#10;]</field>
                  <next>
                    <block type="http_get" id="XHG[{k+/c[l!v6)[NK+H">
                      <field name="TIMEOUT">2000</field>
                      <field name="UNIT">ms</field>
                      <field name="TYPE">text</field>
                      <value name="URL">
                        <shadow type="text" id="p8Ny1!yk#3$NRa]R8Z*1">
                          <field name="TEXT">https://witzapi.de/api/joke/?limit=1&amp;category=schulwitze&amp;language=de</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="variables_set" id=";,od]o$IzyXFN(i5(Q4L">
                          <field name="VAR" id="}^BHBb-J~Vzn`-G`]^:{">Witz</field>
                          <value name="VALUE">
                            <block type="convert_tostring" id="BFN;$`/faL_mp@Pi#~j2">
                              <value name="VALUE">
                                <block type="get_attr" id="IQO+JQ6QUfg+;es}ZP/+">
                                  <value name="PATH">
                                    <shadow type="text" id="9-jqimo~u0fA~v0Jt4Cr">
                                      <field name="TEXT">0.text</field>
                                    </shadow>
                                  </value>
                                  <value name="OBJECT">
                                    <shadow type="get_object" id="$EnRO2FFbUxt_~X75;fp">
                                      <field name="OID">Object ID</field>
                                    </shadow>
                                    <block type="convert_json2object" id="lvYLow:%3sUWvo}TOk8!">
                                      <value name="VALUE">
                                        <block type="http_response" id="9XHdEi|Wb0p@-}D64N(,">
                                          <field name="ATTR">response.data</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="~FpNRA[pg2AJ2QLDx{hd">
                              <field name="VAR" id="}^BHBb-J~Vzn`-G`]^:{">Witz</field>
                              <value name="VALUE">
                                <block type="text_replace" id=":t,An_hwLCH*ANR6KBz:">
                                  <value name="FROM">
                                    <shadow type="text" id="xMdT5Zp;}n~B}tOr1F|z">
                                      <field name="TEXT">x</field>
                                    </shadow>
                                    <block type="text_newline" id="q;p,msQv72*xS*num9=]">
                                      <field name="Type">\n</field>
                                    </block>
                                  </value>
                                  <value name="TO">
                                    <shadow type="text" id="Xv4kT#2E4n{aUA,99$`9">
                                      <field name="TEXT"></field>
                                    </shadow>
                                  </value>
                                  <value name="TEXT">
                                    <shadow type="text" id="wvBmlE[RAP,JvcuxX-Wo">
                                      <field name="TEXT">text</field>
                                    </shadow>
                                    <block type="variables_get" id="~{D`u1d1mL[D,B^CBV;U">
                                      <field name="VAR" id="}^BHBb-J~Vzn`-G`]^:{">Witz</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="@_eDGs`TCY#qI%eHt%Hf">
                                  <field name="VAR" id="}^BHBb-J~Vzn`-G`]^:{">Witz</field>
                                  <value name="VALUE">
                                    <block type="text_replace" id="S(aBIO;:z[Gs.);kHQof">
                                      <value name="FROM">
                                        <shadow type="text" id="4Uh6r:((ykn}GR)PNB6s">
                                          <field name="TEXT">\n-\</field>
                                        </shadow>
                                      </value>
                                      <value name="TO">
                                        <shadow type="text" id="4v+`$Iqfz/tWKu5r/?7~">
                                          <field name="TEXT"></field>
                                        </shadow>
                                      </value>
                                      <value name="TEXT">
                                        <shadow type="text" id="wvBmlE[RAP,JvcuxX-Wo">
                                          <field name="TEXT">text</field>
                                        </shadow>
                                        <block type="variables_get" id="!,R.G6vZR@[nXum,Udu5">
                                          <field name="VAR" id="}^BHBb-J~Vzn`-G`]^:{">Witz</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="-4P_6Z9rDY|i7H_1C58g">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">sayit.0.tts.clearQueue</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id=".)R3EA4NfIIE6TOOQrDX">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="controls_if" id=".[%c+!Tgq+(+#fkXIo02">
                                          <value name="IF0">
                                            <block type="logic_compare" id=":cLG33T0lAx3c{7AD`|5">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="variables_get" id="U!L4#N,Ukt[DH1.AlNlK">
                                                  <field name="VAR" id="P,wQo^[Fz~%|pG;Df/}i">Ansage</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_null" id="pLjr;K3vS?Bw%ifB-/IE"></block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id="a5BTpG@od~O8D;zy]_d4">
                                              <field name="VAR" id="P,wQo^[Fz~%|pG;Df/}i">Ansage</field>
                                              <value name="VALUE">
                                                <block type="text" id="?b)Aq.t%;h:x{Lm$DdQn">
                                                  <field name="TEXT">Hier kommt der nächste Witz:</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="sayit" id="{ZV3AK9Hw|lPHFe3XmlQ">
                                              <field name="INSTANCE"></field>
                                              <field name="LANGUAGE">de</field>
                                              <field name="LOG"></field>
                                              <value name="MESSAGE">
                                                <shadow type="text" id="tlay}tEJ8w9%u]ijh%^8">
                                                  <field name="TEXT">text</field>
                                                </shadow>
                                                <block type="convert_tostring" id="`C3a1M3xnk+C(jvIw2V=">
                                                  <value name="VALUE">
                                                    <block type="variables_get" id="XiVLH/!opPlt!(qK-#sW">
                                                      <field name="VAR" id="P,wQo^[Fz~%|pG;Df/}i">Ansage</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="BB`M3lIkw@M4?(Zha$a}">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">sayit.0.tts.clearQueue</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id=":7FtPeXJ-A6*,No_]eYj">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="timeouts_wait" id="[Ll`Dgv#I0*rf%%CDfP)">
                                                      <field name="DELAY">2</field>
                                                      <field name="UNIT">sec</field>
                                                      <next>
                                                        <block type="sayit" id="ZW_4bQ0`,.RRfy_pA-:H">
                                                          <field name="INSTANCE"></field>
                                                          <field name="LANGUAGE">de</field>
                                                          <field name="LOG">debug</field>
                                                          <value name="MESSAGE">
                                                            <shadow type="text" id="tlay}tEJ8w9%u]ijh%^8">
                                                              <field name="TEXT">text</field>
                                                            </shadow>
                                                            <block type="convert_tostring" id="3TKy-8zfbGNY|^hKb3f0">
                                                              <value name="VALUE">
                                                                <block type="variables_get" id="mmueqo/{z,VUaXFE^-_X">
                                                                  <field name="VAR" id="}^BHBb-J~Vzn`-G`]^:{">Witz</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="debug" id="_~XE!X,2OQENkRL_vsNr">
                                                              <field name="Severity">info</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="-?0XWp6z0#OW{K|DJB[)">
                                                                  <field name="TEXT">test</field>
                                                                </shadow>
                                                                <block type="text_join" id="fDytc36a_qf6$qECoar#">
                                                                  <mutation items="4"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="text" id="P|M:Zc`9wXFC@:(DPZPI">
                                                                      <field name="TEXT">-HausInfos- </field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="variables_get" id="2Z^)45I!W}HCpm?B9-5E">
                                                                      <field name="VAR" id="P,wQo^[Fz~%|pG;Df/}i">Ansage</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD2">
                                                                    <block type="text" id="fX4$v!W8BdNNFMN8r$dC">
                                                                      <field name="TEXT">: </field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD3">
                                                                    <block type="variables_get" id="me]]zg9A$O8*e+7b,W(s">
                                                                      <field name="VAR" id="}^BHBb-J~Vzn`-G`]^:{">Witz</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      
      posted in Skripten / Logik
      M
      mading
    • RE: Test ViessmannAPI v2.0.0

      mega Adapter, ich gehe noch durch die Daten durch.

      Wenn ich es richtig sehe, lässt sich die Zirkulationspumpe über folgenden ansteuern: viessmannapi.0.64851.0.features.heating.dhw.pumps.circulation.schedule.commands.setSchedule.setValue

      Ich nöchte aber die in der Heizung selbst programmierte Zurkulationszeit nicht ändern. Wird die damit überschrieben?

      Auf git wird ja beschrieben wie ein Zeitplan gesetzt werden kann

                    "wed":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],"thu":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],\
                    "fri":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],"sat":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],\
                    "sun":[{"start":"00:00","end":"24:00","mode":"standard","position":0}]}'
       
      setState("viessmannapi.0.xxxxxxx.0.features.ventilation.schedule.commands.setSchedule.setValue", JSON.parse(standard)); 
      

      Lässt sich die Zirkulationspumpe darüber manuell einmal anstarten? Ich möchte ungern via festem Zeitplan die Zirkulationspumpe mehrfach mit Tempersturverlust laufen lassen, daher wäre das super. Toll wäre, wenn ich sie über den Adapter manuell anstarten kann. Dann könnte ich einen Taster im Bad anbringen, den man dafür betätigt. Meine Frau würde sich freuen

      posted in Tester
      M
      mading

    Latest posts made by mading

    • RE: [gelöst] Standardwerte iob setup custom

      Ich war mal kurz bei redis, bin auf jasonl

      posted in ioBroker Allgemein
      M
      mading
    • RE: Ist das Auto Zuhause?

      @david-g sagte in Ist das Auto Zuhause?:

      @mading

      Nur falls du die GPS Daten zu einer Adresse auflösen möchtest mit dem Adapter.
      Hab ich aber nie geschafft (den API key zu bekommen. Scheint was zu kosten?).

      Dafür habe ich ein Blockly das OSM nutzt.

      Es gibt oder gab die Möglichkeit eine bestimmte Anzahl von Requests mit Google Maps kostenlos absetzen zu können. Dafür muss man aber dennoch eine Kreditkarte hinterlegen.

      posted in Blockly
      M
      mading
    • RE: Ist das Auto Zuhause?

      Jaaaa, das ist eine Fake Adresse 😀. Wird ein google Maps API Key benötigt?

      posted in Blockly
      M
      mading
    • RE: Ist das Auto Zuhause?

      Bei mir nicht, Refresh, ggf. mit Strg+F5

      posted in Blockly
      M
      mading
    • RE: Ist das Auto Zuhause?

      @dragon sagte in Ist das Auto Zuhause?:

      @mading Du solltest deine Adresse unkenntlich machen...

      Hab ich eben, danke 😊

      posted in Blockly
      M
      mading
    • RE: Ist das Auto Zuhause?

      bei meinem ID4 wird eine Adresse mit angegeben. Für den Check habe ich mir eine Funktion geschrieben, die mir ein Ergebnis zurück gibt. Könntest du auch auf Koordinaten umbauen. Vielleicht kanns ja sonst einer noch brauchen.

      Ich habe es so gelöst, da ich in einem anderen Blockly die Sicherheit des Autos prüfe: wenn es nicht an sicheren Adressen steht und nicht fährt und irgendwas offen ist, bekomme ich Telegran Pushs alle 3 Min bis das Auto sicher ist oder ich es als sicher markiere.

      IMG_2395.jpeg

      
      <block xmlns="https://developers.google.com/blockly/xml" type="procedures_defreturn" id="kv/4u/%nz6OcWL(E|tLV" x="-462" y="338">
        <field name="NAME">AutoStehtZuHauseCheck</field>
        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
        <statement name="STACK">
          <block type="variables_set" id="e~b.:Vj728.+w@zhjGAz">
            <field name="VAR" id="@fc$X!}u~n%K)#B@2F*W">AdressenZuHause</field>
            <value name="VALUE">
              <block type="lists_create_with" id="f].ye#l:_g.^V9gRb{!$">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="text" id="%+i#(ExXz:^vek#/,/Lx">
                    <field name="TEXT">hackersche höfe, berlin</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="text" id="4|]Z5GaFrM66Sn?CqTVI">
                    <field name="TEXT">hackersche höfe 2, berlin</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set" id="!s]ujF7Pxg~xYYp4K|Le">
                <field name="VAR" id="j|Pt|`qty/u=H6[Z]@6q">ErgebnisAdressCheck</field>
                <value name="VALUE">
                  <block type="lists_indexOf" id="]3wDN[5qCJgny$919!+;">
                    <field name="END">FIRST</field>
                    <value name="VALUE">
                      <block type="variables_get" id="h*tPX:v=/bXy{jsdV?S:">
                        <field name="VAR" id="@fc$X!}u~n%K)#B@2F*W">AdressenZuHause</field>
                      </block>
                    </value>
                    <value name="FIND">
                      <block type="get_value" id="{7UE{FrO.PPS;ao[F:rn">
                        <field name="ATTR">val</field>
                        <field name="OID">vw-connect.0.xyz.position.address.displayName</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="VATk;neTeDL37fP59!_`">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="y7W*n8sy/?P`_?4-rR9R">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="variables_get" id="s+c6m$-52$7Q1-L=zF!w">
                            <field name="VAR" id="j|Pt|`qty/u=H6[Z]@6q">ErgebnisAdressCheck</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="?w-%x/V}UO3i+8]#-#d^">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="rR,Px|j(i`;_oCDv^R3p">
                        <field name="VAR" id="ED(wb~Y=h[bX:%hDq~{k">BoolAutoZuHause</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="?Q{5~~;(2je:amh+p9;*">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="variables_set" id="La99OjSxhH(~q{w[+%FL">
                        <field name="VAR" id="ED(wb~Y=h[bX:%hDq~{k">BoolAutoZuHause</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="XT?L%b07V%Cg|E}ctCb;">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <value name="RETURN">
          <block type="variables_get" id="CwaV;GnU(dEt|3W(2!G|">
            <field name="VAR" id="ED(wb~Y=h[bX:%hDq~{k">BoolAutoZuHause</field>
          </block>
        </value>
      </block>
      
      
      posted in Blockly
      M
      mading
    • RE: Test Adapter Awtrix-Light (Awtrix 3)

      @topsurfer sagte in Test Adapter Awtrix-Light (Awtrix 3):

      @haus-automatisierung
      Über eine Blockly-Schleife lasse ich ca. 10 Werte/Daten jeweils 10s anzeigen,
      über "Falls ..." Bedingungen entscheide ich jeweils welche Farbe, welcher Text und welches Icon angezeigt werden soll
      Bsp. Icon: Normal Ladezustand e-Auto, wenn lädt: Anderes, animiertes Icon
      Bsp. Farbe: erhöhte Werte=gelb; kritische Werte=rot

      Könntest du sonst auch über custom apps mit visibility lösen

      posted in Tester
      M
      mading
    • RE: Test Adapter VW Connect für VW, ID, Audi, Seat, Skoda

      @maddm sagte in Test Adapter VW Connect für VW, ID, Audi, Seat, Skoda:

      Und - letzte Frage (vorerst): welchen Datenpunkt sollte man nehmen um den "Zeitstempel der letzten Aktualsierung" zu haben, sprich: ich würde auf meiner Visualisierung gern sehen, wie aktuell die Daten sind (ohne hinter jeden Wert den Zeitstempel der letzten Aktualisierung des Wertes zu schreiben)?

      vw-connect.0.xxx.status.accessStatus.carCapturedTimestamp

      Der müsste passen. Bei mir zuletzt:2025-04-26T14:03:53.824Z. Zu dem Zeitpunkt habe ich das Auto abgestellt. Kann aber nicht sagen, ob sich z.B. bei einer SoC Änderung der aktualisiert. Müsstest du mal beobachten.

      posted in Tester
      M
      mading
    • RE: [Neuer Adapter] Reolink Kamera

      @wendy2702 sagte in [Neuer Adapter] Reolink Kamera:

      @mading kannst du mir mal zeigen wie du die Bewegungserkennung in der Kamera eingestellt hast.

      z.B. über das Web Interface kannst du unter Alarm Settings ein paar Einstellungen durchführen (in welchem Zeitraum etc.).

      d82eb7b2-5de3-4f77-893d-f6c040c0259f-grafik.png

      c69cca23-ed4a-441c-a135-8a80e16fa938-grafik.png

      Ich habe die Erkennung so eingestellt, dass keine vorbei fahrenden Fahrzeuge auf der Kreisstrasse triggern

      bea45429-ea13-4f5b-b108-29f773e1f96d-grafik.png

      posted in Entwicklung
      M
      mading
    • RE: [Neuer Adapter] Reolink Kamera

      @ben1983 sagte in [Neuer Adapter] Reolink Kamera:

      @wendy2702 Mein Vorhaben ist im Einfachsten Sinne:

      Kamera auf Pool gerichtet. Wird eine Person erkannt (Nicht spezifisch, sondern einfach nur irgendeine Person),
      dann wäre es schön über den Adapter einen Datenpukt gesetzt zu bekommen.
      Geht das irgendwie?
      Und Optional Aufzeichnung über Netzwerk auf NAS.

      Was könnt ihr mir da Empfehlen?

      Mögliche Kameras hast du ja jetzt. Diese liefern einen entsprechenden Datenpunkt person_detected als bool. Du brauchst also für den Use Case ke8n frigate oä. Den DP kannst du zb via Blockly auswerten, und via rtsp ein Bild ziehen oder ein Video und entsprechend weiterverarbeiten. Ich schicke mir für meine Haustür bei Detection sofort ein Bild und nehme zusätzlich noch ein Video auf. Beides schicke ich mir per Telegram. Wenn du im reolink Adapter den Abfragezyklus auf 1 stelltst, klappt das gut mit sofortiger Benachrichtigung.

      Hier meine Blocklys (ich habe mir Funktionen für Bild/ Video geschrieben, die ich verwenden kann). Das Bild/ Video wird unter /opt/iobroker/… temp. gespeichert und nach Verwendung gelöscht. Den Ziel-Unterordner musst du anlegen.

      IMG_2390.jpeg

      
      Trigger Personenerkennung:
      
      <block xmlns="https://developers.google.com/blockly/xml" type="on" id="uuz$N*O37(GIt3L;|W,}" x="-1888" y="-128">
        <field name="OID">reolink.0.sensor.people.state</field>
        <field name="CONDITION">true</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="controls_if" id="dF$sT|2X(V+]B`g3IQ8l">
            <value name="IF0">
              <block type="logic_compare" id="#Z$ww+GTV,y;~1k~a8)^">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="math_arithmetic" id="LS:]$a.1mBO5=~n2;8xr">
                    <field name="OP">MINUS</field>
                    <value name="A">
                      <shadow type="math_number" id="lu!qJ9/RycKkMtPVDoyu">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="time_get" id=")D:qa2zsxK)]g]y)Yh)7">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                        <field name="OPTION">object</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="}duth#L-rZjmX9{VARn|">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="get_value" id=":bDq^SoFSvWOy3h19dge">
                        <field name="ATTR">val</field>
                        <field name="OID">0_userdata.0.EigeneDatenpunkte.Sicherheit.HaustuerLetzterAlarm</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="^D9d^X/PE(GSW3sa9%}`">
                    <field name="NUM">180000</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="telegram" id="2e}?TZmnO-$81$jl$5FH">
                <field name="INSTANCE"></field>
                <field name="LOG"></field>
                <field name="SILENT">FALSE</field>
                <field name="PARSEMODE">default</field>
                <field name="ESCAPING">FALSE</field>
                <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                <value name="MESSAGE">
                  <shadow type="text" id="Ay7o1YPRHx%^/vY]u:-?">
                    <field name="TEXT">Bewegung Haustuere erkannt!</field>
                  </shadow>
                  <block type="text" id="OTh(H#q:)PwET+Up{]-^">
                    <field name="TEXT">Bewegung Haustüre erkannt: Person/en</field>
                  </block>
                </value>
                <next>
                  <block type="debug" id="5rD}Pawz6])4pf^h`6k_">
                    <field name="Severity">info</field>
                    <value name="TEXT">
                      <shadow type="text" id="C1UVogP=14,aAc?{8w0{">
                        <field name="TEXT">-HausInfos- Bewegung an Haustüre erkannt!</field>
                      </shadow>
                      <block type="text_join" id="^$hbaQieBtOV+y2oA.Fe">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="P,HXb+hM1zI()Ed)Sxo1">
                            <field name="TEXT">-HausInfos- Bewegung Haustüre erkannt: Person/en</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="update" id=":%Z!4W+?#v`4v;ti#vH^">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.EigeneDatenpunkte.Sicherheit.HaustuerLetzterAlarm</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="get_value" id="F^@,^WdCJ+g3)1Dn$DO_">
                            <field name="ATTR">ts</field>
                            <field name="OID">reolink.0.sensor.motion</field>
                          </block>
                        </value>
                        <next>
                          <block type="procedures_callnoreturn" id="p4lNhcd_%*NuGTeu0PG)">
                            <mutation name="HaustuerBilderSchicken"></mutation>
                            <next>
                              <block type="procedures_callnoreturn" id="@S~s;54ZH+uI%vHQMMY+">
                                <mutation name="HaustuereVideoSchicken"></mutation>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
      </block>
      
      

      Bild schicken:

      
      <block xmlns="https://developers.google.com/blockly/xml" type="procedures_defnoreturn" id="31W4)co*hfllBmNKD0j2" x="2713" y="-113">
        <field name="NAME">HaustuerBilderSchicken</field>
        <comment pinned="false" h="80" w="160">holt ein Bild vom der Cam und schickt es per Telegram</comment>
        <statement name="STACK">
          <block type="controls_if" id="A6cOkP*h,n}ZilH7=u]+">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="get_value" id="2xz7D/{7Cr;$%oJ]Qkn-">
                <field name="ATTR">val</field>
                <field name="OID">reolink.0.network.connected</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="comment" id="dUWhgD..@x7NToA81J~x">
                <field name="COMMENT">http://192.168.253.9:8085</field>
                <next>
                  <block type="http_get" id="P^;u4LBNv`?U^}YD(64+">
                    <field name="TIMEOUT">2000</field>
                    <field name="UNIT">ms</field>
                    <field name="TYPE">arraybuffer</field>
                    <value name="URL">
                      <shadow type="text" id="H]!+Lf(Nc%5_V~fo4v7O">
                        <field name="TEXT">http://192.168.253.148/cgi-bin/api.cgi?cmd=Snap&amp;channel=0&amp;rs=&amp;user=admin&amp;password=pw</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="telegram" id="r8,YW-hqOMW(=su_.DVb">
                        <field name="INSTANCE"></field>
                        <field name="LOG"></field>
                        <field name="SILENT">FALSE</field>
                        <field name="PARSEMODE">default</field>
                        <field name="ESCAPING">FALSE</field>
                        <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                        <value name="MESSAGE">
                          <shadow type="text" id="9eq;NDr4^eD/Qs0(3wN5">
                            <field name="TEXT">text</field>
                          </shadow>
                          <block type="http_response_tofile" id="!:Ngwi;@%%gZV,lT;T,x">
                            <value name="FILENAME">
                              <shadow type="text" id="tO6FZSDjDBqC[fXo`v+?">
                                <field name="TEXT">temp.jpg</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="telegram" id="Ov9ho$a#M2b#*oVML:(|">
                <field name="INSTANCE"></field>
                <field name="LOG"></field>
                <field name="SILENT">FALSE</field>
                <field name="PARSEMODE">default</field>
                <field name="ESCAPING">FALSE</field>
                <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                <value name="MESSAGE">
                  <shadow type="text" id="]ynKN#t)%{I1c=V__Q(U">
                    <field name="TEXT">Kamera Haustüre nicht erreichbar!</field>
                  </shadow>
                </value>
              </block>
            </statement>
          </block>
        </statement>
      </block>
      
      

      Video schicken

      
      <block xmlns="https://developers.google.com/blockly/xml" type="procedures_defnoreturn" id=":u%-]}+:Oq#$%z.*G/X`" x="1897" y="-321">
        <field name="NAME">HaustuereVideoSchicken</field>
        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
        <statement name="STACK">
          <block type="comment" id="=;Hz#?O{6CO(;J.tKZ}z">
            <field name="COMMENT">h264Preview_01_ext</field>
            <next>
              <block type="variables_set" id="CSw$Oh|zU}or7j|W4sSn">
                <field name="VAR" id="fJUJCIN5HrB8Akm?Xu?R">Befehl</field>
                <value name="VALUE">
                  <block type="text_join" id="D6.783^7hR8$?`tMsiG~">
                    <mutation items="3"></mutation>
                    <value name="ADD0">
                      <block type="text" id="GKb14HP_!Jd~d|6;SWTH">
                        <field name="TEXT">ffmpeg -y -i rtsp://admin:pw@192.168.253.148:554/h264Preview_01_main -t </field>
                      </block>
                    </value>
                    <value name="ADD1">
                      <block type="math_number" id="M_4$tL0mfoUN(A`|pHri">
                        <field name="NUM">30</field>
                      </block>
                    </value>
                    <value name="ADD2">
                      <block type="text" id="Wj-o%7;;v,y(I~6-t*bK">
                        <field name="TEXT"> -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=1024:768 -r 15 /opt/iobroker/CamSnapshots/Haustuere.mp4</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="exec" id="]Mmgt=)}fsMT=2m/c0ub">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
                    <field name="WITH_STATEMENT">TRUE</field>
                    <field name="LOG"></field>
                    <value name="COMMAND">
                      <shadow type="text" id="e.P0Y4sWi?jQvW0Ikv9n">
                        <field name="TEXT">text</field>
                      </shadow>
                      <block type="variables_get" id="qF?QeOdsvtvtsgYP][Aq">
                        <field name="VAR" id="fJUJCIN5HrB8Akm?Xu?R">Befehl</field>
                      </block>
                    </value>
                    <statement name="STATEMENT">
                      <block type="telegram" id="Ch~%tXvQ*FvZheza+M.o">
                        <field name="INSTANCE"></field>
                        <field name="LOG"></field>
                        <field name="SILENT">FALSE</field>
                        <field name="PARSEMODE">default</field>
                        <field name="ESCAPING">FALSE</field>
                        <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                        <value name="MESSAGE">
                          <shadow type="text" id="`}*6Z.:`6}.?55h*`(Nb">
                            <field name="TEXT">/opt/iobroker/AlarmCam/ImouFlur.jpg</field>
                          </shadow>
                          <block type="text" id="Mp89tz^y0ft*:zf$N__P">
                            <field name="TEXT">/opt/iobroker/CamSnapshots/Haustuere.mp4</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_wait" id="gDyq4a]Em:EvTOg?ONqG">
                            <field name="DELAY">10</field>
                            <field name="UNIT">sec</field>
                            <next>
                              <block type="exec" id="N64}k!dt^P+9a7-86D//">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                <field name="WITH_STATEMENT">FALSE</field>
                                <field name="LOG"></field>
                                <value name="COMMAND">
                                  <shadow type="text" id="e.P0Y4sWi?jQvW0Ikv9n">
                                    <field name="TEXT">text</field>
                                  </shadow>
                                  <block type="text" id="^([ZI#zcti8E-p5%1bvt">
                                    <field name="TEXT">rm /opt/iobroker/CamSnapshots/Haustuere.mp4</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      
      
      posted in Entwicklung
      M
      mading
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo