Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Anleitung/Use-Case: TFA Sensoren ohne Cloud in ioBroker

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Anleitung/Use-Case: TFA Sensoren ohne Cloud in ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • Bommelpage
      Bommelpage last edited by Bommelpage

      4# Mobile Alerts Server Daten im MQTT-Adapter

      • Die Daten kommen im MQTT-Adapter nach mehren Minuten an, beim Regensensor kann es bis zu vier Stunden dauern
      • Unter Objekte im MQTT Adapter sollte im Datenpunkt "mqtt.0.info.connection" dann "MABroker" stehen wenn der Server läuft.
      • Im Ordner MobileAlerts sind dann die Sensoren

      mqtt_objekte.jpg

      • Temperatursensor MA10200 der Wetterstation MA10050

      {
        "temperature": [
          10.8,
          10.8
        ],
        "humidity": [
          74,
          74
        ],
        "id": "0308ff550d7a",
        "t": "2/18/2023, 8:30:29 PM",
        "ut": 1676748629,
        "utms": "2023-02-18T19:30:29.000Z",
        "battery": "ok",
        "offline": false
      }
      

      • Regensensor MA10650

      {
        "temperature": [
          12.6
        ],
        "eventCounter": 5382,
        "eventTimes": [
          792000,
          170460,
          1863,
          1338,
          1215,
          1266,
          1298,
          74220,
          2344
        ],
        "id": "0823219a5cdd",
        "t": "2/18/2023, 8:03:43 PM",
        "ut": 1676747023,
        "utms": "2023-02-18T19:03:43.000Z",
        "battery": "ok",
        "offline": false
      }
      

      • Windsensor MA10660

      {
        "directionDegree": 202.5,
        "direction": "SSW",
        "windSpeed": 1.4,
        "gustSpeed": 3.9,
        "lastTransmit": 422,
        "id": "0b0cb63b79db",
        "t": "2/18/2023, 8:32:37 PM",
        "ut": 1676748757,
        "utms": "2023-02-18T19:32:37.000Z",
        "battery": "ok",
        "offline": false
      }
      

      • Wettersation MA10430

      {
        "temperature": [
          20.9,
          20.9
        ],
        "waterTemperature": [
          10.9,
          10.9
        ],
        "humidity": [
          49,
          49
        ],
        "id": "0637ff82e134",
        "t": "2/18/2023, 8:30:49 PM",
        "ut": 1676748649,
        "utms": "2023-02-18T19:30:49.000Z",
        "battery": "ok",
        "offline": false
      }
      

      1 Reply Last reply Reply Quote 0
      • Bommelpage
        Bommelpage last edited by

        5# Mobile Alerts Server Überwachen
        Damit der Server überwacht wird hab ich ein Blockly Script geschrieben.
        Zusätzlich benötigter Adapter Linux-Control.
        Damit wird alle 5 Minuten mit einem Trigger überprüft ob er noch läuft und gegeben falls der Service MAServer über den Linux-Control Adapter neu gestartet .
        Funktioniert auch beim Neustart bis IOBroker und MQTT-Adapter wieder online sind
        Hierfür wird der DP system.adapter.mqtt.0.alive überwacht.
        Und auch eine Warnmeldung gesendet wenn gewünscht.
        Benötigt wird dafür ein Datenpunkt Boolean.
        Meiner ist unter 0_userdata.0.Warnung.Wettersensor_Server
        und der Telegram Adapter wenn gewünscht

        Linux Control Adapter:

        • Reiter Allgemein
          Host IObroker anlegen
          linux_adapter_1a.jpg

        • Reiter Datenpunkte
          Haken unter services Information und Fernsteuerung von Diensten
          linux_adapter_2.jpg

        • Reiter Services
          Dienst hinzufügen "maserver"
          linux_adapter_3.jpg

        • Datenpunkte
          Zum Restarten den Datenpunkt:
          linux-control.0.HAUSAUTO-PI4.services.maserver.restart
          linux_adapter_4.jpg

        • Hier das Blockly Script:

        blockly_warn.jpg

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</variable>
          </variables>
          <block type="schedule" id="#KzrbCB{qj,Cz2G8jZhd" x="69" y="-54">
            <field name="SCHEDULE">*/5 * * * *</field>
            <statement name="STATEMENT">
              <block type="comment" id="sYr#E%,3;j%TK6/q%yQn">
                <field name="COMMENT">MAServer überwachen ob online</field>
                <next>
                  <block type="variables_set" id="MoEIP)Cp|G2Ce$sr{+0j">
                    <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                    <value name="VALUE">
                      <block type="text" id="x{T7C#Ih1j4Ld/j|ijgy">
                        <field name="TEXT"></field>
                      </block>
                    </value>
                    <next>
                      <block type="comment" id="x%oiS%4|l?qv5p!36*n0">
                        <field name="COMMENT">MQTT Adapter auswerten ob MAServer Online</field>
                        <next>
                          <block type="comment" id="1_yyY6Ss/s_f(sRY9zjq">
                            <field name="COMMENT">mqtt.0.info.connection</field>
                            <next>
                              <block type="controls_if" id="[^`)^!ZVG9tI.yFP3Ww8">
                                <value name="IF0">
                                  <block type="logic_compare" id="xh3zf4R#1_1d%4@gi546">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="math_number" id="fD%QS,l4^gMRp;KhH[(n">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="text_indexOf" id="HgFZ],OGx8}g*bdF;pTB">
                                        <field name="END">FIRST</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="#!Ja:^u)j-wgIYePFdgM">
                                            <field name="ATTR">val</field>
                                            <field name="OID">mqtt.0.info.connection</field>
                                          </block>
                                        </value>
                                        <value name="FIND">
                                          <shadow type="text" id="2KX*d/pT4k3|F1N6^!k[">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="text" id="NQsov+wAhX(b.(W}$g-[">
                                            <field name="TEXT">MABroker</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="SdtgQ/Danh]4jXe4Wj6!">
                                    <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                    <value name="VALUE">
                                      <block type="text_join" id="mp:Pfg0]TQ+E-R_O^Azc">
                                        <mutation items="3"></mutation>
                                        <value name="ADD0">
                                          <block type="variables_get" id="-o,M^ox=Cgc|z1x.BT?=">
                                            <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                          </block>
                                        </value>
                                        <value name="ADD1">
                                          <block type="text_newline" id="hCw`vC^2L`,drPQLC.rd">
                                            <field name="Type">\n</field>
                                          </block>
                                        </value>
                                        <value name="ADD2">
                                          <block type="text" id="KN48c9wyBVrXSW53L?4b">
                                            <field name="TEXT">MQTT Server ist offline</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="comment" id="@b7M,eXfo|)V@QjMH.@*">
                                        <field name="COMMENT">System DP auswerten ob MQTT Adater online</field>
                                        <next>
                                          <block type="comment" id="mxT4wg}J`?Gj2nHxU/st">
                                            <field name="COMMENT">system.adapter.mqtt.0.alive</field>
                                            <next>
                                              <block type="controls_if" id="I-(1F=JP.KgUlEsIZlsi">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="0Gm`/+bkv4+M@Wq7.O1w">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="Iqr)IIJmfTIRD6QdaA7!">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">system.adapter.mqtt.0.alive</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="^a45FCNEO4o5-iC.+d+U">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="comment" id="$9z:*+t|KOLMLOcLFYiF">
                                                    <field name="COMMENT">Dienst im Linux Adapter neu starten</field>
                                                    <next>
                                                      <block type="comment" id="CQ_7P2x{-nux+$FclQ/}">
                                                        <field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.restart</field>
                                                        <next>
                                                          <block type="controls_if" id="~$W(QxM`)^!R6aP8#gzx">
                                                            <value name="IF0">
                                                              <block type="logic_compare" id=",IVC]b8VZx;!RI*rI2}v">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="math_number" id="0]){f!cV^%y#$+()P~@I">
                                                                    <field name="NUM">1</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number" id="mHLoYyIY4yehxsONxPtN">
                                                                    <field name="NUM">1</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="update" id="10LEPcff*5{fMJ]N%J11">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.restart</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="8DwEynny58Ct]ixP#rr6">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="variables_set" id="{xx=Dxi.;Kh#YX[w1J@7">
                                                                    <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                    <value name="VALUE">
                                                                      <block type="text_join" id="%pg8(hJ[ABd#+W1rCHd-">
                                                                        <mutation items="3"></mutation>
                                                                        <value name="ADD0">
                                                                          <block type="variables_get" id="PYwnAI]urY]oaE0fls(D">
                                                                            <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD1">
                                                                          <block type="text_newline" id="uEuR{ylJ:zY-z:nUn6$v">
                                                                            <field name="Type">\n</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD2">
                                                                          <block type="text" id="CJkgiQ*sr^K[|+-ktVA*">
                                                                            <field name="TEXT">MA Server Neustart ausgelöst</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="comment" id="Z:9H0oa#F.O1Cocrb3$H">
                                    <field name="COMMENT">Linux Adapter DP auswerten ob MAServer Aktiv</field>
                                    <next>
                                      <block type="comment" id="-!aT_Yl8S*#r{cEyyx%)">
                                        <field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.active</field>
                                        <next>
                                          <block type="controls_if" id="@9;[([tCI#,5ET{SC*-i">
                                            <value name="IF0">
                                              <block type="logic_compare" id="NUxd,SPV1)cfLlDv|3m[">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="math_number" id="/0;Nlg/+y{ss.bs}msd@">
                                                    <field name="NUM">0</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="text_indexOf" id="CRRBuYA5w8N4*szU}-#E">
                                                    <field name="END">FIRST</field>
                                                    <value name="VALUE">
                                                      <block type="get_value" id="[9:2!4+}?t2j#3_*;V+#">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.active</field>
                                                      </block>
                                                    </value>
                                                    <value name="FIND">
                                                      <shadow type="text">
                                                        <field name="TEXT">abc</field>
                                                      </shadow>
                                                      <block type="text" id="cQB39D]J{2ZJl_W5%Rm?">
                                                        <field name="TEXT">active</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="variables_set" id="oC}@-^0Z+8ZnZbu!-)SC">
                                                <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                <value name="VALUE">
                                                  <block type="text_join" id="ryE4Z-58DcaA,e9Rz3bx">
                                                    <mutation items="3"></mutation>
                                                    <value name="ADD0">
                                                      <block type="variables_get" id="hk2S$p}2?Ly{njk5I-1]">
                                                        <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD1">
                                                      <block type="text_newline" id="W/zHX2%liy-wS(-,Rmj7">
                                                        <field name="Type">\n</field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD2">
                                                      <block type="text" id="7^60gGeI5KtpC5ee93[t">
                                                        <field name="TEXT">MAServer Service ist nicht aktive</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="comment" id="ip]Zy1zdUiZrD]b#]1]#">
                                                <field name="COMMENT">Linux Adapter DP auswerten ob MAServer geladen</field>
                                                <next>
                                                  <block type="comment" id="Y_OW,qH66/mfBTQPRED_">
                                                    <field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.load</field>
                                                    <next>
                                                      <block type="controls_if" id="s`Le=%+lm}9lU@H-p|2U">
                                                        <value name="IF0">
                                                          <block type="logic_compare" id="qTk1r~!W^ncN4.wVnf@z">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="math_number" id="UF+3hVka7@jVMot`hA^E">
                                                                <field name="NUM">0</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="text_indexOf" id="^:6`u-IKjt5lvpvk2bE#">
                                                                <field name="END">FIRST</field>
                                                                <value name="VALUE">
                                                                  <block type="get_value" id="|73Hb_:@u3Q7%`KD1ck3">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.load</field>
                                                                  </block>
                                                                </value>
                                                                <value name="FIND">
                                                                  <shadow type="text">
                                                                    <field name="TEXT">abc</field>
                                                                  </shadow>
                                                                  <block type="text" id="uyxRuKt8HCUapqf|VjX8">
                                                                    <field name="TEXT">loaded</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="variables_set" id="=kUwyb/|4d[K%QbhCQrJ">
                                                            <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                            <value name="VALUE">
                                                              <block type="text_join" id="}8j+|#6VNq9CnJfnT:G%">
                                                                <mutation items="3"></mutation>
                                                                <value name="ADD0">
                                                                  <block type="variables_get" id="z,0_E.Ai9r{(0W$ej2^C">
                                                                    <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD1">
                                                                  <block type="text_newline" id="NtE~XbNo|NGHh^DCNv?_">
                                                                    <field name="Type">\n</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD2">
                                                                  <block type="text" id="$6NCjPK=)I%dq1:WL7Uh">
                                                                    <field name="TEXT">MAServer Service ist nicht geladen</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="comment" id="Yn]c~_GxwjI-[OISL]c2">
                                                            <field name="COMMENT">Linux Adapter DP auswerten ob MAServer läuft</field>
                                                            <next>
                                                              <block type="comment" id="XA%NU1E0yq9u0rg`6?=,">
                                                                <field name="COMMENT">linux-control.0.HAUSAUTO-PI4.services.maserver.running</field>
                                                                <next>
                                                                  <block type="controls_if" id="R@^$V+vWp[[E3Yj,{!cu">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="yo:P6!c44/aHdK+]#:V1">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="sr,dE2o_qH(Ct~uCpa*$">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">linux-control.0.HAUSAUTO-PI4.services.maserver.running</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="~f5TZeEtPd];S:vcMv}B">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="variables_set" id="Wft[k|maKyXF*HufTGW.">
                                                                        <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                        <value name="VALUE">
                                                                          <block type="text_join" id="HND|S%FCv8`z)VOUOdo]">
                                                                            <mutation items="3"></mutation>
                                                                            <value name="ADD0">
                                                                              <block type="variables_get" id="46qNeDT{qFm#7$h8g@O-">
                                                                                <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD1">
                                                                              <block type="text_newline" id="kOD6K4)npHAa4#=Q~,0v">
                                                                                <field name="Type">\n</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD2">
                                                                              <block type="text" id="2CkS/Z$|xy0.0]rK0#;K">
                                                                                <field name="TEXT">MAServer Service Dienst läuft nicht</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="L;}!oX{u@hL0zi}|=?W|">
                                                                        <field name="COMMENT">Senoren Serverwarnung Nachricht Senden</field>
                                                                        <next>
                                                                          <block type="comment" id="6u*Y#qzrwot!S42pS}R]">
                                                                            <field name="COMMENT">0_userdata.0.Warnung.Wettersensor_Server</field>
                                                                            <next>
                                                                              <block type="controls_if" id="P-vvDKJ}}Be9pn|.s7ZI">
                                                                                <mutation else="1"></mutation>
                                                                                <value name="IF0">
                                                                                  <block type="logic_negate" id="`gI]?Od{G,7,|ve)1%J?">
                                                                                    <value name="BOOL">
                                                                                      <block type="text_isEmpty" id="A3Id/TBI(SuxVAP+ofto">
                                                                                        <value name="VALUE">
                                                                                          <shadow type="text">
                                                                                            <field name="TEXT"></field>
                                                                                          </shadow>
                                                                                          <block type="variables_get" id="!8Xry$sMEi|B`@mA!T3$">
                                                                                            <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <statement name="DO0">
                                                                                  <block type="controls_if" id="tYzM+HX:N)l:7_D^[=aK">
                                                                                    <value name="IF0">
                                                                                      <block type="logic_compare" id="DmTrFS6tJi82fJtLGV4x">
                                                                                        <field name="OP">EQ</field>
                                                                                        <value name="A">
                                                                                          <block type="get_value" id="J38~]7OH8TJNQO(:#4RU">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="logic_boolean" id="G}Xg8(eVd}v~NxC(8xU,">
                                                                                            <field name="BOOL">FALSE</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="comment" id="pG@/jdH%Y$,0v7-g7eV0">
                                                                                        <field name="COMMENT">DP Warnmeldung Server setzen</field>
                                                                                        <next>
                                                                                          <block type="comment" id="F`%[U|yaU?zKB1xTBe+m">
                                                                                            <field name="COMMENT">0_userdata.0.Warnung.Wettersensor_Server</field>
                                                                                            <next>
                                                                                              <block type="update" id="Ms_dE,Z8{;jD[lGWwny_">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="logic_boolean" id="A-9PA=XbTm6p=dVaSFH9">
                                                                                                    <field name="BOOL">TRUE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <next>
                                                                                                  <block type="debug" id="FTZ+WBGxw{3NCK8V+*XQ">
                                                                                                    <field name="Severity">warn</field>
                                                                                                    <value name="TEXT">
                                                                                                      <shadow type="text" id="B.co@YP{$pb:M*{/*nLQ">
                                                                                                        <field name="TEXT">test</field>
                                                                                                      </shadow>
                                                                                                      <block type="text_join" id="Ph;a}:u!6Vwh#$]iHOXd">
                                                                                                        <mutation items="2"></mutation>
                                                                                                        <value name="ADD0">
                                                                                                          <block type="text" id="tE2d4P|*$Abibpka%2,B">
                                                                                                            <field name="TEXT">Fehler Wettersensor Server:</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <value name="ADD1">
                                                                                                          <block type="variables_get" id="#d,g6:@`4KoF6Yv9G[bS">
                                                                                                            <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <next>
                                                                                                      <block type="comment" id="kS-XG1t`I)cXFu:U^Yvo">
                                                                                                        <field name="COMMENT">Warnmeldung senden wenn gewünscht einstellen</field>
                                                                                                        <next>
                                                                                                          <block type="controls_if" id="Jcfr!6m.5zuF!u4MOTDq">
                                                                                                            <value name="IF0">
                                                                                                              <block type="logic_compare" id="bya-Xhj1$=VQ-V.,v%9v">
                                                                                                                <field name="OP">EQ</field>
                                                                                                                <value name="A">
                                                                                                                  <block type="math_number" id="PQn3oEb:p/O71hj=(+[T">
                                                                                                                    <field name="NUM">1</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <value name="B">
                                                                                                                  <block type="math_number" id="AxkR2#pmN%RTbuq%KSs1">
                                                                                                                    <field name="NUM">0</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <statement name="DO0">
                                                                                                              <block type="telegram" id="-CU3qr*q{j3P:XJVfepU">
                                                                                                                <field name="INSTANCE"></field>
                                                                                                                <field name="LOG"></field>
                                                                                                                <field name="SILENT">FALSE</field>
                                                                                                                <field name="PARSEMODE">default</field>
                                                                                                                <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                                                                                <value name="MESSAGE">
                                                                                                                  <shadow type="text">
                                                                                                                    <field name="TEXT">text</field>
                                                                                                                  </shadow>
                                                                                                                  <block type="text_join" id="jz^fE#.})8uoh_MsL;Y#">
                                                                                                                    <mutation items="2"></mutation>
                                                                                                                    <value name="ADD0">
                                                                                                                      <block type="text" id="U1oN]y1msQTM18Bdd!MK">
                                                                                                                        <field name="TEXT">Fehler Wettersensor Server:</field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <value name="ADD1">
                                                                                                                      <block type="variables_get" id="J*4SWHb~tO!zIBx(Id2-">
                                                                                                                        <field name="VAR" id=".DIu3]*Kn5iE$d{n+j-N">Fehler_Nachricht_Server</field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                              </block>
                                                                                                            </statement>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </statement>
                                                                                <statement name="ELSE">
                                                                                  <block type="comment" id="d~0WHr*q+uu4ykneuN:h">
                                                                                    <field name="COMMENT">DP Warnmeldung Server zurücksetzen</field>
                                                                                    <next>
                                                                                      <block type="comment" id="/G([Sp,43.?=:ir0Pxuv">
                                                                                        <field name="COMMENT">0_userdata.0.Warnung.Wettersensor_Server</field>
                                                                                        <next>
                                                                                          <block type="controls_if" id="!gG(_$jP8EHaJt^dCVsg">
                                                                                            <value name="IF0">
                                                                                              <block type="logic_compare" id="vEz!zp_|z{LZGerWA#8b">
                                                                                                <field name="OP">EQ</field>
                                                                                                <value name="A">
                                                                                                  <block type="get_value" id="9wHp(.VS+mT:V*O{J3])">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="logic_boolean" id="8itAzJkA.NQ@ePt?Ac+F">
                                                                                                    <field name="BOOL">TRUE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="debug" id="O,tURJ=K+(E0YdDe(Rdi">
                                                                                                <field name="Severity">log</field>
                                                                                                <value name="TEXT">
                                                                                                  <shadow type="text">
                                                                                                    <field name="TEXT">test</field>
                                                                                                  </shadow>
                                                                                                  <block type="text_join" id="}Wvbl82-UKX,N4nc1qu{">
                                                                                                    <mutation items="2"></mutation>
                                                                                                    <value name="ADD0">
                                                                                                      <block type="text" id="Lr`r2{;^^W)S_iC3-(vT">
                                                                                                        <field name="TEXT">Fehler Wettersensor Server:</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="ADD1">
                                                                                                      <block type="text" id="Rs[=a]o_zb8rkCrb@:R6">
                                                                                                        <field name="TEXT">Fehler aufgehoben</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <next>
                                                                                                  <block type="update" id="PBM{w;Hv8TZbqC42i~~G">
                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                    <field name="OID">0_userdata.0.Warnung.Wettersensor_Server</field>
                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                    <value name="VALUE">
                                                                                                      <block type="logic_boolean" id="VY@hLDX4KC,xWIN00+ii">
                                                                                                        <field name="BOOL">FALSE</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </statement>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        

        1 Reply Last reply Reply Quote 0
        • Great SUN
          Great SUN @Bommelpage last edited by

          @bommelpage Freut mich, dass es bei Dir gut funktioniert 🙂
          Sorry, dass ich offline war und mich noch nicht gemeldet hab bis jetzt.

          1 Reply Last reply Reply Quote 0
          • Great SUN
            Great SUN @renderender last edited by

            @renderender Hi 🙂
            Super, hoffe, Du bist soweit zufrieden. Wenn was sein sollte... Bin wieder erreichbar jetzt.

            1 Reply Last reply Reply Quote 0
            • Bommelpage
              Bommelpage last edited by Bommelpage

              Ich tu mal hier meine alten Blocklyscripte rein um die Werte der MobileAlerts Sensoren auszulesen.
              Das es ja unzählige Sensoren gibt, soll dies den einen oder anderen vielleicht Helfen für sich was zu basteln.

              6# Mobile Alerts Server Werte auslesen Datenpunkte anlegen

              Folgende Datenpunkte werden angelegt
              sind bei mit im Ordner 0_userdata.0.Wetter_Sensoren

              z.B. Temperatursensor MA10200
              SensorTemp1.jpg
              z.B. Wettersation MA10430
              SensorTemp2.jpg
              Regensensor MA10650
              SensorRegen.jpg
              Windsensor MA10660
              SensorWind.jpg
              und für die Statistik
              StatistikTempLuft.jpg

              StatistikWind.jpg

              StatistikRegen.jpg

              BlocklyScript um die Datenpunkte anzulegen:
              MA_Datenpunkte.txt

              7# Mobile Alerts Server Werte auslesen Werte in Datenpunkte schreiben
              BlocklyScript um die Werte aus MQTT auszulesen und in die Datenpunkte zu speichern
              MA_Werte_auslesen.txt

              BlocklyScript mit einem Zeit-Trigger um Mitternacht,
              das die Aktuellen-Werte in den Datenpunkt Gestern speichert,
              Und am Ende sogar in eine SQL-Datenbank einträgt
              MA_DatenpunkteStatistik.txt

              Vielleicht hilft das den einen oder anderen

              1 Reply Last reply Reply Quote 0
              • S
                sadir @Bommelpage last edited by

                @bommelpage Hallo und vielen Dank, ich bin genau nach der Anleitung vorgegangen und scheitere dabei die Datei maserver.service in den Ordner /etc/systemd/system/ zu kopieren/schieben. Es kommt immer die Fehlermeldung "Datei oder Verzeichnis nicht vorhanden". Komme da einfach nicht weiter, was mach ich falsch oder ? Vielen Dank

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @sadir last edited by

                  @sadir sagte in Anleitung/Use-Case: TFA Sensoren ohne Cloud in ioBroker:

                  scheitere dabei die Datei maserver.service in den Ordner /etc/systemd/system/ zu kopieren/schieben.

                  Konkret? Was machst du mit welchen Befehlen?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sadir @Thomas Braun last edited by

                    @thomas-braun dieser Befehl "sudo mv maserver.service /etc/systemd/system/"
                    es scheint an den Zugriffsrechten zu scheitern.

                    Bommelpage Thomas Braun 2 Replies Last reply Reply Quote 0
                    • Bommelpage
                      Bommelpage last edited by

                      @sadir Servus,
                      Anleitung ist für Raspi mit Bullseye
                      dort sollte es einen Ordner geben:
                      ....\etc\system\system
                      und in den von dir hochgeladen Dateien sollte es einen Ordner und eine Datei geben:
                      ......\opt\maserver\maserver.service
                      Wie du die Datei verschiebst bleibt dir überlassen
                      Entweder mit Befehl oder Programm z.B. MobaXterm oder Midnight Commander

                      1 Reply Last reply Reply Quote 0
                      • Bommelpage
                        Bommelpage @sadir last edited by Bommelpage

                        @sadir
                        Sehe grad einen Fehler in der Anleitung, Glaub ich
                        du musst im Ordner
                        ......\opt\maserver\
                        sein

                        cd /opt/maserver
                        sudo mv maserver.service /etc/systemd/system/
                        

                        Habs damals mit Programm verschoben

                        S 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @sadir last edited by

                          @sadir sagte in Anleitung/Use-Case: TFA Sensoren ohne Cloud in ioBroker:

                          dieser Befehl "sudo mv maserver.service /etc/systemd/system/"
                          es scheint an den Zugriffsrechten zu scheitern.

                          Konkreter...
                          Vollständige (inkl. LoginPrompt) Ein- wie Ausgaben zeigen.

                          1 Reply Last reply Reply Quote 0
                          • S
                            sadir @Bommelpage last edited by

                            @bommelpage Danke, jetzt hat es funktioniert, die Datei ist im richtigen Ordner. Aber ein kleiner Fehler ist bei dir vorhanden:
                            "sudo mv maserver.service /etc/systemd/system/" das s hatte gefehlt, aber ansonsten lief es jetzt, obwohl ich es vorher auch mit Filezilla und MobaXterm probiert hatte, Mhm. Eine Frage hätte ich noch zu dem MQTT Adapter, ist es egal welchen man nimmt und belässt man die URL auf 127.0.0.1 und den Port auf 1883? Vielen Dank schon mal, ich hoffe ich bekomme es wieder ans laufen.

                            1 Reply Last reply Reply Quote 0
                            • S
                              sadir @Bommelpage last edited by

                              @bommelpage leider noch nicht ganz geschafft:

                              Screenshot 2023-09-27 173253.png

                              Bommelpage 1 Reply Last reply Reply Quote 0
                              • Bommelpage
                                Bommelpage @sadir last edited by

                                @sadir bei mir sind folgende Einstellungen:
                                [IPv4] 0.0.0.0 - Zugriff von allen IPs zulassen
                                Port 1883

                                Screenshot 2023-09-27 183855.jpg
                                Screenshot 2023-09-27 183948.jpg

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  sadir @Bommelpage last edited by

                                  @bommelpage Danke und der Rest bleibt so bei den Verbindungen?

                                  Bommelpage 1 Reply Last reply Reply Quote 0
                                  • Bommelpage
                                    Bommelpage @sadir last edited by

                                    @sadir Falls der MQTT Adapter rot bleibt und keine Daten empfängt
                                    den MAServer mal neu starten

                                    über den Linux adapter restart
                                    Link Text
                                    Linux Adapter mit Blockly empfehle ich sowieso damit der MAServer beim Neustart vom IOBroker mit gestartet wird sonst mußt du es manuell machen

                                    oder über Befehl:

                                    sudo systemctl restart maserver.service
                                    
                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      sadir @Bommelpage last edited by

                                      @bommelpage Vielen Dank schon mal bis dahin. Bin jetzt an Punkt 4 angelangt und habe den MQTT Adapter am laufen, welcher auch Daten liefert in den Objekten. Den Linux Adapter habe ich auch am laufen, mir ist aber nicht schlüssig wie ich an die einzelnen Werte wie Temperatur, Luftfeuchte komme und diese wieder in meine VIS übernehmen kann? Habe mich mal durch die Blockly Skripte gekämpft, hat mich aber eher irritiert und nicht weiter gebracht. Leider sind meine Programmkenntnisse nicht sehr gut um da alleine weiter zu kommen, vielleicht kannst du mir da ein wenig helfen. Danke.

                                      Bommelpage 1 Reply Last reply Reply Quote 0
                                      • Bommelpage
                                        Bommelpage @sadir last edited by

                                        @sadir zum auslesen gibts noch den Sonoff-Adapter aber da müßte dir @great-sun helfen, ich mach alles über Blockly.
                                        Hier mal einfach wie du die Werte einzeln bekommst:
                                        Beispiel: Temperatursensor
                                        MQTT Datenpunkt Inhalt:

                                        {"temperature":[20.6,20.6],"humidity":[64,64],"id":"0308ff550d7a","t":"9/28/2023, 4:15:16 PM","ut":1695910516,"utms":"2023-09-28T14:15:16.000Z","battery":"ok","offline":false}
                                        

                                        Trigger auf den MQTT Datenpunkt Beispiel:mqtt.0.MobileAlerts.0308ff550d7a.json
                                        wetterScreenshot.jpg
                                        Werte mit Komma wie Temperatur mit "in der Liste"
                                        Statt debug output halt einen NummernDatenpunkt anlegen und den Wert dort reinschreiben

                                        S Great SUN 3 Replies Last reply Reply Quote 0
                                        • S
                                          sadir @Bommelpage last edited by

                                          @bommelpage Danke schön, werde es morgen gleich mal austesten.

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            sadir @Bommelpage last edited by

                                            @bommelpage Hast du den Blockly auch zum importieren für mich? Danke

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            500
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            35
                                            3165
                                            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