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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Hardware
  4. IR Lesekopf/NodeMCU per MQTT einbinden [gelöst ...]

NEWS

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

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

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.2k

IR Lesekopf/NodeMCU per MQTT einbinden [gelöst ...]

Geplant Angeheftet Gesperrt Verschoben Hardware
79 Beiträge 7 Kommentatoren 7.7k Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • K kurt_88

    @tt-tom

    Danke, ich habe das mal umgesetzt, aber es klappt nach wie vor nicht ...
    Ich habe jetzt zwar einen neuen Ordner Zaehler1, aber nach wie vor keine relevanten Daten vom Zähler.
    :(

    Screenshot_20230126_204559_neu7.png

    Screenshot_20230126_204559_neu6.png

    Viele Grüße

    T Offline
    T Offline
    TT-Tom
    schrieb am zuletzt editiert von TT-Tom
    #19

    @kurt_88

    passt schon so. Jetzt kommt Teil2, unter tele / sensor hast du die Daten. Klicke mal auf den Text {"Time"..... dann macht sich ein Fenster auf und zeigt dir den Inhalt.

    diese werden per Blockly ausgelesen. das sieht dann so aus.

    Bildschirmfoto 2023-01-26 um 20.57.10.png

    <xml xmlns="https://developers.google.com/blockly/xml">
     <variables>
       <variable id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</variable>
       <variable id="=PjH*5J}WCH}|GQxuE!Q">Bezug</variable>
       <variable id="5=hKGU(m$i[]qc3syZjS">Tag</variable>
       <variable id="nEj.:^1A]V^!5`$(P9)$">Woche</variable>
       <variable id="X{v.JNv2M`1iHjL[)X,l">Monat</variable>
       <variable id="g;{.pi%+DV4VUngk~p{g">Jahr</variable>
       <variable id="yK^u+S#}N~|IeJsi~VAh">aktuell</variable>
     </variables>
     <block type="on_ext" id="p~c_9Fq1{DWv5J%;1?1H" x="-437" y="-613">
       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
       <field name="CONDITION">ne</field>
       <field name="ACK_CONDITION"></field>
       <value name="OID0">
         <shadow type="field_oid" id="?g1f{w5n!;pGTzeI_1Fs">
           <field name="oid">default</field>
         </shadow>
         <block type="field_oid" id="z=GDvQkiX8NSAqoo#H=w">
           <field name="oid">mqtt.0.smartmeter.tele.SENSOR</field>
         </block>
       </value>
       <statement name="STATEMENT">
         <block type="variables_set" id="h|nP.?B6J~_AHedSv8W,">
           <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
           <value name="VALUE">
             <block type="get_attr" id="z:S4j%{$(p.V2z~;jxIk">
               <value name="PATH">
                 <shadow type="text" id="3q5lsf*K_:RzQ50%;Gtr">
                   <field name="TEXT">LK13BE.total_verbrauch</field>
                 </shadow>
               </value>
               <value name="OBJECT">
                 <block type="on_source" id="MpJ$Vt{.;lSjqx%E^ds$">
                   <field name="ATTR">state.val</field>
                 </block>
               </value>
             </block>
           </value>
           <next>
             <block type="variables_set" id="#9fup9f@*R{k{RtGXtL6">
               <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
               <value name="VALUE">
                 <block type="get_attr" id="wL;#00(`iyvo[+sZRHs8">
                   <value name="PATH">
                     <shadow type="text" id="f$YA%UVCBi;0uSW#4vIF">
                       <field name="TEXT">LK13BE.total_bezug</field>
                     </shadow>
                   </value>
                   <value name="OBJECT">
                     <block type="on_source" id="[mABeLHqbSh/bSOB6=3A">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                 </block>
               </value>
               <next>
                 <block type="variables_set" id="@8JF|C[)BUok^dYPTUV0">
                   <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                   <value name="VALUE">
                     <block type="get_attr" id="Ub(E,s/}j9]`]OT_acZe">
                       <value name="PATH">
                         <shadow type="text" id="iJbuA,L=]-y[0N)oxP!P">
                           <field name="TEXT">LK13BE.total_1d</field>
                         </shadow>
                       </value>
                       <value name="OBJECT">
                         <block type="on_source" id="I^?]oLjj|=#6$:Q^,*2M">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <next>
                     <block type="variables_set" id="9/QxF-kOgB;O}Bc5Xh(1">
                       <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                       <value name="VALUE">
                         <block type="get_attr" id="3fPETP1./.EtewfIXaku">
                           <value name="PATH">
                             <shadow type="text" id="?6DJyU??z:IW1b!u:[G!">
                               <field name="TEXT">LK13BE.total_7d</field>
                             </shadow>
                           </value>
                           <value name="OBJECT">
                             <block type="on_source" id="8Dt.@1I2Q4KI3zZe:31u">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="],~%EPk!h#r4@Qb,jQy4">
                           <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                           <value name="VALUE">
                             <block type="get_attr" id="!@0){e]9}dslL.mAt#iW">
                               <value name="PATH">
                                 <shadow type="text" id=",1^ABSgaOzDzThe9vS!R">
                                   <field name="TEXT">LK13BE.total_30d</field>
                                 </shadow>
                               </value>
                               <value name="OBJECT">
                                 <block type="on_source" id="G07M2~-0O?%k|pz0k]9m">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="variables_set" id="B_n8`nexqS`m.TNt%icY">
                               <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                               <value name="VALUE">
                                 <block type="get_attr" id="5C*EM*^TV^3p0XY.bIsR">
                                   <value name="PATH">
                                     <shadow type="text" id="nwlkj11|MiQrd(;CR1FR">
                                       <field name="TEXT">LK13BE.total_365d</field>
                                     </shadow>
                                   </value>
                                   <value name="OBJECT">
                                     <block type="on_source" id="V$hMSK+C%s7usXF5(MlK">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="variables_set" id="LkJtt}8`3K:V=*Q*oZln">
                                   <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                   <value name="VALUE">
                                     <block type="get_attr" id="*ovm[7(U%[}E=x^YeUgS">
                                       <value name="PATH">
                                         <shadow type="text" id="ao+m:*3H=8Pj(%2N$d-O">
                                           <field name="TEXT">LK13BE.current</field>
                                         </shadow>
                                       </value>
                                       <value name="OBJECT">
                                         <block type="on_source" id="v8$PYhv_^cHXK%EqZ]/E">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="debug" id="(vG/K[#x+!Yx-`14uihw">
                                       <field name="Severity">log</field>
                                       <value name="TEXT">
                                         <shadow type="text" id="MAp?W)hbI1Ne[[Ac;F7#">
                                           <field name="TEXT">test</field>
                                         </shadow>
                                         <block type="text_join" id="q1~t(B|Y()[K{E(5XU%c">
                                           <mutation items="14"></mutation>
                                           <value name="ADD0">
                                             <block type="text" id="m=;?FK(d/O~Gn5NJv$J1">
                                               <field name="TEXT">Verbrauch: </field>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="variables_get" id="*LYJsz5::!Lj,C}RecMB">
                                               <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                             </block>
                                           </value>
                                           <value name="ADD2">
                                             <block type="text" id="G;_iEBNv|EN^w|Jx.h2t">
                                               <field name="TEXT">Bezug: </field>
                                             </block>
                                           </value>
                                           <value name="ADD3">
                                             <block type="variables_get" id="hPfi%a4o~M!k($e-qHs}">
                                               <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                             </block>
                                           </value>
                                           <value name="ADD4">
                                             <block type="text" id="Z7_R?9d!NZE]^$uOk3X*">
                                               <field name="TEXT">Tag: </field>
                                             </block>
                                           </value>
                                           <value name="ADD5">
                                             <block type="variables_get" id="Pbo(V,@myxz|Or.BwGiz">
                                               <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                             </block>
                                           </value>
                                           <value name="ADD6">
                                             <block type="text" id="5AjV=}^D:43Ul[kwlTk?">
                                               <field name="TEXT">Woche: </field>
                                             </block>
                                           </value>
                                           <value name="ADD7">
                                             <block type="variables_get" id="B0Vh]vU2LxerJvTd])f#">
                                               <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                             </block>
                                           </value>
                                           <value name="ADD8">
                                             <block type="text" id="h2W^qqx{8[wl3|/JO|OX">
                                               <field name="TEXT">Monat: </field>
                                             </block>
                                           </value>
                                           <value name="ADD9">
                                             <block type="variables_get" id="~31KxaBkABZTf-uI4Hu#">
                                               <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                             </block>
                                           </value>
                                           <value name="ADD10">
                                             <block type="text" id="=3z(ofW`9TqEP.xsU-ED">
                                               <field name="TEXT">Jahr: </field>
                                             </block>
                                           </value>
                                           <value name="ADD11">
                                             <block type="variables_get" id="0W-RZ_Em4t$Sy`FARv+Z">
                                               <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                             </block>
                                           </value>
                                           <value name="ADD12">
                                             <block type="text" id="Ty(JV^J0(_X}qAjRj;)m">
                                               <field name="TEXT">aktuell: </field>
                                             </block>
                                           </value>
                                           <value name="ADD13">
                                             <block type="variables_get" id="EzerXBpL(,s_|$n_*G]q">
                                               <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </next>
         </block>
       </statement>
     </block>
    </xml>
    

    im Spolier ist der code zum Importieren

    EDIT: du musst natürlich die ObjektId am Trigger oben auf deinen Pfad anpassen!!

    Gruß Tom
    https://github.com/tt-tom17
    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

    NSPanel Script Wiki
    https://github.com/joBr99/nspanel-lovelace-ui/wiki

    NSPanel Adapter Wiki
    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

    K 1 Antwort Letzte Antwort
    1
    • K kurt_88

      @tt-tom

      Danke, ich habe das mal umgesetzt, aber es klappt nach wie vor nicht ...
      Ich habe jetzt zwar einen neuen Ordner Zaehler1, aber nach wie vor keine relevanten Daten vom Zähler.
      :(

      Screenshot_20230126_204559_neu7.png

      Screenshot_20230126_204559_neu6.png

      Viele Grüße

      T Offline
      T Offline
      TT-Tom
      schrieb am zuletzt editiert von
      #20

      @kurt_88
      Du kannst di anderen Ordner alle löschen bis auf stromzeahler1.

      Gruß Tom
      https://github.com/tt-tom17
      Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

      NSPanel Script Wiki
      https://github.com/joBr99/nspanel-lovelace-ui/wiki

      NSPanel Adapter Wiki
      https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

      1 Antwort Letzte Antwort
      1
      • T TT-Tom

        @kurt_88

        passt schon so. Jetzt kommt Teil2, unter tele / sensor hast du die Daten. Klicke mal auf den Text {"Time"..... dann macht sich ein Fenster auf und zeigt dir den Inhalt.

        diese werden per Blockly ausgelesen. das sieht dann so aus.

        Bildschirmfoto 2023-01-26 um 20.57.10.png

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</variable>
           <variable id="=PjH*5J}WCH}|GQxuE!Q">Bezug</variable>
           <variable id="5=hKGU(m$i[]qc3syZjS">Tag</variable>
           <variable id="nEj.:^1A]V^!5`$(P9)$">Woche</variable>
           <variable id="X{v.JNv2M`1iHjL[)X,l">Monat</variable>
           <variable id="g;{.pi%+DV4VUngk~p{g">Jahr</variable>
           <variable id="yK^u+S#}N~|IeJsi~VAh">aktuell</variable>
         </variables>
         <block type="on_ext" id="p~c_9Fq1{DWv5J%;1?1H" x="-437" y="-613">
           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION"></field>
           <value name="OID0">
             <shadow type="field_oid" id="?g1f{w5n!;pGTzeI_1Fs">
               <field name="oid">default</field>
             </shadow>
             <block type="field_oid" id="z=GDvQkiX8NSAqoo#H=w">
               <field name="oid">mqtt.0.smartmeter.tele.SENSOR</field>
             </block>
           </value>
           <statement name="STATEMENT">
             <block type="variables_set" id="h|nP.?B6J~_AHedSv8W,">
               <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
               <value name="VALUE">
                 <block type="get_attr" id="z:S4j%{$(p.V2z~;jxIk">
                   <value name="PATH">
                     <shadow type="text" id="3q5lsf*K_:RzQ50%;Gtr">
                       <field name="TEXT">LK13BE.total_verbrauch</field>
                     </shadow>
                   </value>
                   <value name="OBJECT">
                     <block type="on_source" id="MpJ$Vt{.;lSjqx%E^ds$">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                 </block>
               </value>
               <next>
                 <block type="variables_set" id="#9fup9f@*R{k{RtGXtL6">
                   <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                   <value name="VALUE">
                     <block type="get_attr" id="wL;#00(`iyvo[+sZRHs8">
                       <value name="PATH">
                         <shadow type="text" id="f$YA%UVCBi;0uSW#4vIF">
                           <field name="TEXT">LK13BE.total_bezug</field>
                         </shadow>
                       </value>
                       <value name="OBJECT">
                         <block type="on_source" id="[mABeLHqbSh/bSOB6=3A">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <next>
                     <block type="variables_set" id="@8JF|C[)BUok^dYPTUV0">
                       <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                       <value name="VALUE">
                         <block type="get_attr" id="Ub(E,s/}j9]`]OT_acZe">
                           <value name="PATH">
                             <shadow type="text" id="iJbuA,L=]-y[0N)oxP!P">
                               <field name="TEXT">LK13BE.total_1d</field>
                             </shadow>
                           </value>
                           <value name="OBJECT">
                             <block type="on_source" id="I^?]oLjj|=#6$:Q^,*2M">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="9/QxF-kOgB;O}Bc5Xh(1">
                           <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                           <value name="VALUE">
                             <block type="get_attr" id="3fPETP1./.EtewfIXaku">
                               <value name="PATH">
                                 <shadow type="text" id="?6DJyU??z:IW1b!u:[G!">
                                   <field name="TEXT">LK13BE.total_7d</field>
                                 </shadow>
                               </value>
                               <value name="OBJECT">
                                 <block type="on_source" id="8Dt.@1I2Q4KI3zZe:31u">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="variables_set" id="],~%EPk!h#r4@Qb,jQy4">
                               <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                               <value name="VALUE">
                                 <block type="get_attr" id="!@0){e]9}dslL.mAt#iW">
                                   <value name="PATH">
                                     <shadow type="text" id=",1^ABSgaOzDzThe9vS!R">
                                       <field name="TEXT">LK13BE.total_30d</field>
                                     </shadow>
                                   </value>
                                   <value name="OBJECT">
                                     <block type="on_source" id="G07M2~-0O?%k|pz0k]9m">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="variables_set" id="B_n8`nexqS`m.TNt%icY">
                                   <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                   <value name="VALUE">
                                     <block type="get_attr" id="5C*EM*^TV^3p0XY.bIsR">
                                       <value name="PATH">
                                         <shadow type="text" id="nwlkj11|MiQrd(;CR1FR">
                                           <field name="TEXT">LK13BE.total_365d</field>
                                         </shadow>
                                       </value>
                                       <value name="OBJECT">
                                         <block type="on_source" id="V$hMSK+C%s7usXF5(MlK">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="LkJtt}8`3K:V=*Q*oZln">
                                       <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                       <value name="VALUE">
                                         <block type="get_attr" id="*ovm[7(U%[}E=x^YeUgS">
                                           <value name="PATH">
                                             <shadow type="text" id="ao+m:*3H=8Pj(%2N$d-O">
                                               <field name="TEXT">LK13BE.current</field>
                                             </shadow>
                                           </value>
                                           <value name="OBJECT">
                                             <block type="on_source" id="v8$PYhv_^cHXK%EqZ]/E">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="debug" id="(vG/K[#x+!Yx-`14uihw">
                                           <field name="Severity">log</field>
                                           <value name="TEXT">
                                             <shadow type="text" id="MAp?W)hbI1Ne[[Ac;F7#">
                                               <field name="TEXT">test</field>
                                             </shadow>
                                             <block type="text_join" id="q1~t(B|Y()[K{E(5XU%c">
                                               <mutation items="14"></mutation>
                                               <value name="ADD0">
                                                 <block type="text" id="m=;?FK(d/O~Gn5NJv$J1">
                                                   <field name="TEXT">Verbrauch: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="variables_get" id="*LYJsz5::!Lj,C}RecMB">
                                                   <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                 </block>
                                               </value>
                                               <value name="ADD2">
                                                 <block type="text" id="G;_iEBNv|EN^w|Jx.h2t">
                                                   <field name="TEXT">Bezug: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD3">
                                                 <block type="variables_get" id="hPfi%a4o~M!k($e-qHs}">
                                                   <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                 </block>
                                               </value>
                                               <value name="ADD4">
                                                 <block type="text" id="Z7_R?9d!NZE]^$uOk3X*">
                                                   <field name="TEXT">Tag: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD5">
                                                 <block type="variables_get" id="Pbo(V,@myxz|Or.BwGiz">
                                                   <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                 </block>
                                               </value>
                                               <value name="ADD6">
                                                 <block type="text" id="5AjV=}^D:43Ul[kwlTk?">
                                                   <field name="TEXT">Woche: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD7">
                                                 <block type="variables_get" id="B0Vh]vU2LxerJvTd])f#">
                                                   <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                 </block>
                                               </value>
                                               <value name="ADD8">
                                                 <block type="text" id="h2W^qqx{8[wl3|/JO|OX">
                                                   <field name="TEXT">Monat: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD9">
                                                 <block type="variables_get" id="~31KxaBkABZTf-uI4Hu#">
                                                   <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                 </block>
                                               </value>
                                               <value name="ADD10">
                                                 <block type="text" id="=3z(ofW`9TqEP.xsU-ED">
                                                   <field name="TEXT">Jahr: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD11">
                                                 <block type="variables_get" id="0W-RZ_Em4t$Sy`FARv+Z">
                                                   <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                 </block>
                                               </value>
                                               <value name="ADD12">
                                                 <block type="text" id="Ty(JV^J0(_X}qAjRj;)m">
                                                   <field name="TEXT">aktuell: </field>
                                                 </block>
                                               </value>
                                               <value name="ADD13">
                                                 <block type="variables_get" id="EzerXBpL(,s_|$n_*G]q">
                                                   <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </statement>
         </block>
        </xml>
        

        im Spolier ist der code zum Importieren

        EDIT: du musst natürlich die ObjektId am Trigger oben auf deinen Pfad anpassen!!

        K Offline
        K Offline
        kurt_88
        schrieb am zuletzt editiert von kurt_88
        #21

        @tt-tom
        Danke, aber jetzt komme ich nicht mehr mit, meine Block ID wäre dann?

        mqtt.0.stromzaehler1.tele.SENSOR
        

        Und das steht bei mir unter Sensor drinn.

        {
          "_id": "mqtt.0.stromzaehler1.tele.SENSOR",
          "common": {
            "name": "stromzaehler1/tele/SENSOR",
            "write": true,
            "read": true,
            "role": "variable",
            "desc": "mqtt server variable",
            "type": "string"
          },
          "native": {
            "topic": "stromzaehler1/tele/SENSOR"
          },
          "type": "state",
          "from": "system.adapter.mqtt.0",
          "user": "system.user.admin",
          "ts": xxxxxxxxxxxxx
        }
        

        Ich habe auch mal ein Test Script erstellt, aber da ist schon ein Fehler drinn :(

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="?d~dU6aLc0]]|rXGp~h_">Verbrauch</variable>
            <variable id="rvPzZf!%yy5-1}!W.1q_">wert</variable>
          </variables>
          <block type="on_ext" id="=)-pDa`St[WQqoo/HMYc" x="-875" y="-642">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="zq)F~W|rc{,awaLFfA/S">
                <field name="oid">mqtt.0.stromzaehler1.tele.SENSOR</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="variables_set" id="`d@27F8,p#YG9Suw{|Vl">
                <field name="VAR" id="?d~dU6aLc0]]|rXGp~h_">Verbrauch</field>
                <value name="VALUE">
                  <block type="get_attr" id="iguEIZgoR.Q*2J!#?K{!">
                    <value name="PATH">
                      <shadow type="text" id="uE]6-?luPtrafN5fE0^S">
                        <field name="TEXT">LK13BE.total_bezug</field>
                      </shadow>
                    </value>
                    <value name="OBJECT">
                      <block type="variables_get" id="=E.Z2IbJ7xlRU:09k8]_">
                        <field name="VAR" id="rvPzZf!%yy5-1}!W.1q_">wert</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="debug" id="C,JumF.?kbDdWldMAe$(">
                    <field name="Severity">log</field>
                    <value name="TEXT">
                      <shadow type="text" id="1O!mtw9x7$i853Po2[Q4">
                        <field name="TEXT">test</field>
                      </shadow>
                      <block type="text_join" id="[2VG!es:8RHWUx)lJ0F-">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="qL:NU9uD0Ru!%Wq8M70C">
                            <field name="TEXT">Verbrauch</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="B8o;@q,znJtczvdK|P*E">
                            <field name="VAR" id="?d~dU6aLc0]]|rXGp~h_">Verbrauch</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        

        Screenshot_20230126_204559_neu8.png

        Viele Grüße

        T 1 Antwort Letzte Antwort
        0
        • K kurt_88

          @tt-tom
          Danke, aber jetzt komme ich nicht mehr mit, meine Block ID wäre dann?

          mqtt.0.stromzaehler1.tele.SENSOR
          

          Und das steht bei mir unter Sensor drinn.

          {
            "_id": "mqtt.0.stromzaehler1.tele.SENSOR",
            "common": {
              "name": "stromzaehler1/tele/SENSOR",
              "write": true,
              "read": true,
              "role": "variable",
              "desc": "mqtt server variable",
              "type": "string"
            },
            "native": {
              "topic": "stromzaehler1/tele/SENSOR"
            },
            "type": "state",
            "from": "system.adapter.mqtt.0",
            "user": "system.user.admin",
            "ts": xxxxxxxxxxxxx
          }
          

          Ich habe auch mal ein Test Script erstellt, aber da ist schon ein Fehler drinn :(

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="?d~dU6aLc0]]|rXGp~h_">Verbrauch</variable>
              <variable id="rvPzZf!%yy5-1}!W.1q_">wert</variable>
            </variables>
            <block type="on_ext" id="=)-pDa`St[WQqoo/HMYc" x="-875" y="-642">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="zq)F~W|rc{,awaLFfA/S">
                  <field name="oid">mqtt.0.stromzaehler1.tele.SENSOR</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="variables_set" id="`d@27F8,p#YG9Suw{|Vl">
                  <field name="VAR" id="?d~dU6aLc0]]|rXGp~h_">Verbrauch</field>
                  <value name="VALUE">
                    <block type="get_attr" id="iguEIZgoR.Q*2J!#?K{!">
                      <value name="PATH">
                        <shadow type="text" id="uE]6-?luPtrafN5fE0^S">
                          <field name="TEXT">LK13BE.total_bezug</field>
                        </shadow>
                      </value>
                      <value name="OBJECT">
                        <block type="variables_get" id="=E.Z2IbJ7xlRU:09k8]_">
                          <field name="VAR" id="rvPzZf!%yy5-1}!W.1q_">wert</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="debug" id="C,JumF.?kbDdWldMAe$(">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id="1O!mtw9x7$i853Po2[Q4">
                          <field name="TEXT">test</field>
                        </shadow>
                        <block type="text_join" id="[2VG!es:8RHWUx)lJ0F-">
                          <mutation items="2"></mutation>
                          <value name="ADD0">
                            <block type="text" id="qL:NU9uD0Ru!%Wq8M70C">
                              <field name="TEXT">Verbrauch</field>
                            </block>
                          </value>
                          <value name="ADD1">
                            <block type="variables_get" id="B8o;@q,znJtczvdK|P*E">
                              <field name="VAR" id="?d~dU6aLc0]]|rXGp~h_">Verbrauch</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </xml>
          

          Screenshot_20230126_204559_neu8.png

          Viele Grüße

          T Offline
          T Offline
          TT-Tom
          schrieb am zuletzt editiert von
          #22

          @kurt_88 sagte in IR Lesekopf/NodeMCU per MQTT einbinden:

          nicht aufgeben wir bekommen das hin. es läuft bei mir ja, dann auch bei dir.

          Danke, aber jetzt komme ich nicht mehr mit, meine Block ID wäre dann?

          mqtt.0.stromzaehler1.tele.SENSOR
          

          ja ist richtig.

          Und das steht bei mir unter Sensor drinn.

          du darfst nicht auf den Bleistift klicken sondern auf den Text.

          Bildschirmfoto 2023-01-26 um 21.51.52.png

          der Fehler im Script kann sein das ein Schreibfehler vorliegt. dazu benötige ich diesen Inhalt von sensor

          Gruß Tom
          https://github.com/tt-tom17
          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

          NSPanel Script Wiki
          https://github.com/joBr99/nspanel-lovelace-ui/wiki

          NSPanel Adapter Wiki
          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

          K 1 Antwort Letzte Antwort
          1
          • T TT-Tom

            @kurt_88 sagte in IR Lesekopf/NodeMCU per MQTT einbinden:

            nicht aufgeben wir bekommen das hin. es läuft bei mir ja, dann auch bei dir.

            Danke, aber jetzt komme ich nicht mehr mit, meine Block ID wäre dann?

            mqtt.0.stromzaehler1.tele.SENSOR
            

            ja ist richtig.

            Und das steht bei mir unter Sensor drinn.

            du darfst nicht auf den Bleistift klicken sondern auf den Text.

            Bildschirmfoto 2023-01-26 um 21.51.52.png

            der Fehler im Script kann sein das ein Schreibfehler vorliegt. dazu benötige ich diesen Inhalt von sensor

            K Offline
            K Offline
            kurt_88
            schrieb am zuletzt editiert von kurt_88
            #23

            @tt-tom
            Den Inhalt?

            {
              "Time": "2023-01-26T21:57:42",
              "LK13BE": {
                "total_bezug": 8797.2885,
                "total_eingespeist": 76.7869,
                "total_1d": 3.3,
                "total_7d": 31.2,
                "total_30d": 141.7,
                "total_365d": 1788.3,
                "current": 186
              }
            }
            

            Viele Grüße

            T 1 Antwort Letzte Antwort
            0
            • K kurt_88

              @tt-tom
              Den Inhalt?

              {
                "Time": "2023-01-26T21:57:42",
                "LK13BE": {
                  "total_bezug": 8797.2885,
                  "total_eingespeist": 76.7869,
                  "total_1d": 3.3,
                  "total_7d": 31.2,
                  "total_30d": 141.7,
                  "total_365d": 1788.3,
                  "current": 186
                }
              }
              

              Viele Grüße

              T Offline
              T Offline
              TT-Tom
              schrieb am zuletzt editiert von TT-Tom
              #24

              @kurt_88

              passt perfekt. habe dein Fehler gefunden. du hast eine Variable Wert angelegt. das ist falsch. Der Wert kommt vom Trigger. da musst du unter Trigger Objekt ID auswählen und dann umstellen auf wert. okay verstanden?

              Bildschirmfoto 2023-01-26 um 22.07.58.png

              Edit: du kannst auch mein Blockly importieren muss nur auf den Spoiler klicken

              Gruß Tom
              https://github.com/tt-tom17
              Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

              NSPanel Script Wiki
              https://github.com/joBr99/nspanel-lovelace-ui/wiki

              NSPanel Adapter Wiki
              https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

              K 1 Antwort Letzte Antwort
              1
              • T TT-Tom

                @kurt_88

                passt perfekt. habe dein Fehler gefunden. du hast eine Variable Wert angelegt. das ist falsch. Der Wert kommt vom Trigger. da musst du unter Trigger Objekt ID auswählen und dann umstellen auf wert. okay verstanden?

                Bildschirmfoto 2023-01-26 um 22.07.58.png

                Edit: du kannst auch mein Blockly importieren muss nur auf den Spoiler klicken

                K Offline
                K Offline
                kurt_88
                schrieb am zuletzt editiert von
                #25

                @tt-tom
                Danke, dass probiere ich gleich mal aus, beim importieren bekomme einen Fehler.

                Screenshot_20230126_204559_neu9.png

                Viele Grüße

                T 1 Antwort Letzte Antwort
                0
                • K kurt_88

                  @tt-tom
                  Danke, dass probiere ich gleich mal aus, beim importieren bekomme einen Fehler.

                  Screenshot_20230126_204559_neu9.png

                  Viele Grüße

                  T Offline
                  T Offline
                  TT-Tom
                  schrieb am zuletzt editiert von TT-Tom
                  #26

                  @kurt_88
                  habe nochmal neu exportiert. versuche bitte nochmal.

                  <xml xmlns="https://developers.google.com/blockly/xml">
                   <variables>
                     <variable id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</variable>
                     <variable id="=PjH*5J}WCH}|GQxuE!Q">Bezug</variable>
                     <variable id="5=hKGU(m$i[]qc3syZjS">Tag</variable>
                     <variable id="nEj.:^1A]V^!5`$(P9)$">Woche</variable>
                     <variable id="X{v.JNv2M`1iHjL[)X,l">Monat</variable>
                     <variable id="g;{.pi%+DV4VUngk~p{g">Jahr</variable>
                     <variable id="yK^u+S#}N~|IeJsi~VAh">aktuell</variable>
                   </variables>
                   <block type="on_ext" id="p~c_9Fq1{DWv5J%;1?1H" x="-437" y="-613">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                     <field name="CONDITION">ne</field>
                     <field name="ACK_CONDITION"></field>
                     <value name="OID0">
                       <shadow type="field_oid" id="?g1f{w5n!;pGTzeI_1Fs">
                         <field name="oid">default</field>
                       </shadow>
                       <block type="field_oid" id="z=GDvQkiX8NSAqoo#H=w">
                         <field name="oid">mqtt.0.smartmeter.tele.SENSOR</field>
                       </block>
                     </value>
                     <statement name="STATEMENT">
                       <block type="variables_set" id="h|nP.?B6J~_AHedSv8W,">
                         <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                         <value name="VALUE">
                           <block type="get_attr" id="z:S4j%{$(p.V2z~;jxIk">
                             <value name="PATH">
                               <shadow type="text" id="3q5lsf*K_:RzQ50%;Gtr">
                                 <field name="TEXT">LK13BE.total_verbrauch</field>
                               </shadow>
                             </value>
                             <value name="OBJECT">
                               <block type="on_source" id="MpJ$Vt{.;lSjqx%E^ds$">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <next>
                           <block type="variables_set" id="#9fup9f@*R{k{RtGXtL6">
                             <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                             <value name="VALUE">
                               <block type="get_attr" id="wL;#00(`iyvo[+sZRHs8">
                                 <value name="PATH">
                                   <shadow type="text" id="f$YA%UVCBi;0uSW#4vIF">
                                     <field name="TEXT">LK13BE.total_bezug</field>
                                   </shadow>
                                 </value>
                                 <value name="OBJECT">
                                   <block type="on_source" id="[mABeLHqbSh/bSOB6=3A">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="variables_set" id="@8JF|C[)BUok^dYPTUV0">
                                 <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                 <value name="VALUE">
                                   <block type="get_attr" id="Ub(E,s/}j9]`]OT_acZe">
                                     <value name="PATH">
                                       <shadow type="text" id="iJbuA,L=]-y[0N)oxP!P">
                                         <field name="TEXT">LK13BE.total_1d</field>
                                       </shadow>
                                     </value>
                                     <value name="OBJECT">
                                       <block type="on_source" id="I^?]oLjj|=#6$:Q^,*2M">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="variables_set" id="9/QxF-kOgB;O}Bc5Xh(1">
                                     <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                     <value name="VALUE">
                                       <block type="get_attr" id="3fPETP1./.EtewfIXaku">
                                         <value name="PATH">
                                           <shadow type="text" id="?6DJyU??z:IW1b!u:[G!">
                                             <field name="TEXT">LK13BE.total_7d</field>
                                           </shadow>
                                         </value>
                                         <value name="OBJECT">
                                           <block type="on_source" id="8Dt.@1I2Q4KI3zZe:31u">
                                             <field name="ATTR">state.val</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="],~%EPk!h#r4@Qb,jQy4">
                                         <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                         <value name="VALUE">
                                           <block type="get_attr" id="!@0){e]9}dslL.mAt#iW">
                                             <value name="PATH">
                                               <shadow type="text" id=",1^ABSgaOzDzThe9vS!R">
                                                 <field name="TEXT">LK13BE.total_30d</field>
                                               </shadow>
                                             </value>
                                             <value name="OBJECT">
                                               <block type="on_source" id="G07M2~-0O?%k|pz0k]9m">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="variables_set" id="B_n8`nexqS`m.TNt%icY">
                                             <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                             <value name="VALUE">
                                               <block type="get_attr" id="5C*EM*^TV^3p0XY.bIsR">
                                                 <value name="PATH">
                                                   <shadow type="text" id="nwlkj11|MiQrd(;CR1FR">
                                                     <field name="TEXT">LK13BE.total_365d</field>
                                                   </shadow>
                                                 </value>
                                                 <value name="OBJECT">
                                                   <block type="on_source" id="V$hMSK+C%s7usXF5(MlK">
                                                     <field name="ATTR">state.val</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="variables_set" id="LkJtt}8`3K:V=*Q*oZln">
                                                 <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                 <value name="VALUE">
                                                   <block type="get_attr" id="*ovm[7(U%[}E=x^YeUgS">
                                                     <value name="PATH">
                                                       <shadow type="text" id="ao+m:*3H=8Pj(%2N$d-O">
                                                         <field name="TEXT">LK13BE.current</field>
                                                       </shadow>
                                                     </value>
                                                     <value name="OBJECT">
                                                       <block type="on_source" id="v8$PYhv_^cHXK%EqZ]/E">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="debug" id="(vG/K[#x+!Yx-`14uihw">
                                                     <field name="Severity">log</field>
                                                     <value name="TEXT">
                                                       <shadow type="text" id="MAp?W)hbI1Ne[[Ac;F7#">
                                                         <field name="TEXT">test</field>
                                                       </shadow>
                                                       <block type="text_join" id="q1~t(B|Y()[K{E(5XU%c">
                                                         <mutation items="15"></mutation>
                                                         <value name="ADD0">
                                                           <block type="text" id="m=;?FK(d/O~Gn5NJv$J1">
                                                             <field name="TEXT">Verbrauch: </field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD1">
                                                           <block type="variables_get" id="*LYJsz5::!Lj,C}RecMB">
                                                             <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD2">
                                                           <block type="text" id="G;_iEBNv|EN^w|Jx.h2t">
                                                             <field name="TEXT">kWh, Bezug: </field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD3">
                                                           <block type="variables_get" id="hPfi%a4o~M!k($e-qHs}">
                                                             <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD4">
                                                           <block type="text" id="Z7_R?9d!NZE]^$uOk3X*">
                                                             <field name="TEXT">kWh, Tag: </field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD5">
                                                           <block type="variables_get" id="Pbo(V,@myxz|Or.BwGiz">
                                                             <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD6">
                                                           <block type="text" id="5AjV=}^D:43Ul[kwlTk?">
                                                             <field name="TEXT">kWh, Woche: </field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD7">
                                                           <block type="variables_get" id="B0Vh]vU2LxerJvTd])f#">
                                                             <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD8">
                                                           <block type="text" id="h2W^qqx{8[wl3|/JO|OX">
                                                             <field name="TEXT">kWh, Monat: </field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD9">
                                                           <block type="variables_get" id="~31KxaBkABZTf-uI4Hu#">
                                                             <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD10">
                                                           <block type="text" id="=3z(ofW`9TqEP.xsU-ED">
                                                             <field name="TEXT">kWh, Jahr: </field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD11">
                                                           <block type="variables_get" id="0W-RZ_Em4t$Sy`FARv+Z">
                                                             <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD12">
                                                           <block type="text" id="Ty(JV^J0(_X}qAjRj;)m">
                                                             <field name="TEXT">kWh, aktuell: </field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD13">
                                                           <block type="variables_get" id="EzerXBpL(,s_|$n_*G]q">
                                                             <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                           </block>
                                                         </value>
                                                         <value name="ADD14">
                                                           <block type="text" id="K`P{T/@{b2ImK0Nr2o!m">
                                                             <field name="TEXT">W</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                  </xml>
                  

                  Edit hast du ein neues Blockly angelegt?

                  Gruß Tom
                  https://github.com/tt-tom17
                  Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                  NSPanel Script Wiki
                  https://github.com/joBr99/nspanel-lovelace-ui/wiki

                  NSPanel Adapter Wiki
                  https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                  K 1 Antwort Letzte Antwort
                  1
                  • T TT-Tom

                    @kurt_88
                    habe nochmal neu exportiert. versuche bitte nochmal.

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</variable>
                       <variable id="=PjH*5J}WCH}|GQxuE!Q">Bezug</variable>
                       <variable id="5=hKGU(m$i[]qc3syZjS">Tag</variable>
                       <variable id="nEj.:^1A]V^!5`$(P9)$">Woche</variable>
                       <variable id="X{v.JNv2M`1iHjL[)X,l">Monat</variable>
                       <variable id="g;{.pi%+DV4VUngk~p{g">Jahr</variable>
                       <variable id="yK^u+S#}N~|IeJsi~VAh">aktuell</variable>
                     </variables>
                     <block type="on_ext" id="p~c_9Fq1{DWv5J%;1?1H" x="-437" y="-613">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="?g1f{w5n!;pGTzeI_1Fs">
                           <field name="oid">default</field>
                         </shadow>
                         <block type="field_oid" id="z=GDvQkiX8NSAqoo#H=w">
                           <field name="oid">mqtt.0.smartmeter.tele.SENSOR</field>
                         </block>
                       </value>
                       <statement name="STATEMENT">
                         <block type="variables_set" id="h|nP.?B6J~_AHedSv8W,">
                           <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                           <value name="VALUE">
                             <block type="get_attr" id="z:S4j%{$(p.V2z~;jxIk">
                               <value name="PATH">
                                 <shadow type="text" id="3q5lsf*K_:RzQ50%;Gtr">
                                   <field name="TEXT">LK13BE.total_verbrauch</field>
                                 </shadow>
                               </value>
                               <value name="OBJECT">
                                 <block type="on_source" id="MpJ$Vt{.;lSjqx%E^ds$">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="variables_set" id="#9fup9f@*R{k{RtGXtL6">
                               <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                               <value name="VALUE">
                                 <block type="get_attr" id="wL;#00(`iyvo[+sZRHs8">
                                   <value name="PATH">
                                     <shadow type="text" id="f$YA%UVCBi;0uSW#4vIF">
                                       <field name="TEXT">LK13BE.total_bezug</field>
                                     </shadow>
                                   </value>
                                   <value name="OBJECT">
                                     <block type="on_source" id="[mABeLHqbSh/bSOB6=3A">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="variables_set" id="@8JF|C[)BUok^dYPTUV0">
                                   <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                   <value name="VALUE">
                                     <block type="get_attr" id="Ub(E,s/}j9]`]OT_acZe">
                                       <value name="PATH">
                                         <shadow type="text" id="iJbuA,L=]-y[0N)oxP!P">
                                           <field name="TEXT">LK13BE.total_1d</field>
                                         </shadow>
                                       </value>
                                       <value name="OBJECT">
                                         <block type="on_source" id="I^?]oLjj|=#6$:Q^,*2M">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="9/QxF-kOgB;O}Bc5Xh(1">
                                       <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                       <value name="VALUE">
                                         <block type="get_attr" id="3fPETP1./.EtewfIXaku">
                                           <value name="PATH">
                                             <shadow type="text" id="?6DJyU??z:IW1b!u:[G!">
                                               <field name="TEXT">LK13BE.total_7d</field>
                                             </shadow>
                                           </value>
                                           <value name="OBJECT">
                                             <block type="on_source" id="8Dt.@1I2Q4KI3zZe:31u">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id="],~%EPk!h#r4@Qb,jQy4">
                                           <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                           <value name="VALUE">
                                             <block type="get_attr" id="!@0){e]9}dslL.mAt#iW">
                                               <value name="PATH">
                                                 <shadow type="text" id=",1^ABSgaOzDzThe9vS!R">
                                                   <field name="TEXT">LK13BE.total_30d</field>
                                                 </shadow>
                                               </value>
                                               <value name="OBJECT">
                                                 <block type="on_source" id="G07M2~-0O?%k|pz0k]9m">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id="B_n8`nexqS`m.TNt%icY">
                                               <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                               <value name="VALUE">
                                                 <block type="get_attr" id="5C*EM*^TV^3p0XY.bIsR">
                                                   <value name="PATH">
                                                     <shadow type="text" id="nwlkj11|MiQrd(;CR1FR">
                                                       <field name="TEXT">LK13BE.total_365d</field>
                                                     </shadow>
                                                   </value>
                                                   <value name="OBJECT">
                                                     <block type="on_source" id="V$hMSK+C%s7usXF5(MlK">
                                                       <field name="ATTR">state.val</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="variables_set" id="LkJtt}8`3K:V=*Q*oZln">
                                                   <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                   <value name="VALUE">
                                                     <block type="get_attr" id="*ovm[7(U%[}E=x^YeUgS">
                                                       <value name="PATH">
                                                         <shadow type="text" id="ao+m:*3H=8Pj(%2N$d-O">
                                                           <field name="TEXT">LK13BE.current</field>
                                                         </shadow>
                                                       </value>
                                                       <value name="OBJECT">
                                                         <block type="on_source" id="v8$PYhv_^cHXK%EqZ]/E">
                                                           <field name="ATTR">state.val</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="debug" id="(vG/K[#x+!Yx-`14uihw">
                                                       <field name="Severity">log</field>
                                                       <value name="TEXT">
                                                         <shadow type="text" id="MAp?W)hbI1Ne[[Ac;F7#">
                                                           <field name="TEXT">test</field>
                                                         </shadow>
                                                         <block type="text_join" id="q1~t(B|Y()[K{E(5XU%c">
                                                           <mutation items="15"></mutation>
                                                           <value name="ADD0">
                                                             <block type="text" id="m=;?FK(d/O~Gn5NJv$J1">
                                                               <field name="TEXT">Verbrauch: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD1">
                                                             <block type="variables_get" id="*LYJsz5::!Lj,C}RecMB">
                                                               <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD2">
                                                             <block type="text" id="G;_iEBNv|EN^w|Jx.h2t">
                                                               <field name="TEXT">kWh, Bezug: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD3">
                                                             <block type="variables_get" id="hPfi%a4o~M!k($e-qHs}">
                                                               <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD4">
                                                             <block type="text" id="Z7_R?9d!NZE]^$uOk3X*">
                                                               <field name="TEXT">kWh, Tag: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD5">
                                                             <block type="variables_get" id="Pbo(V,@myxz|Or.BwGiz">
                                                               <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD6">
                                                             <block type="text" id="5AjV=}^D:43Ul[kwlTk?">
                                                               <field name="TEXT">kWh, Woche: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD7">
                                                             <block type="variables_get" id="B0Vh]vU2LxerJvTd])f#">
                                                               <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD8">
                                                             <block type="text" id="h2W^qqx{8[wl3|/JO|OX">
                                                               <field name="TEXT">kWh, Monat: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD9">
                                                             <block type="variables_get" id="~31KxaBkABZTf-uI4Hu#">
                                                               <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD10">
                                                             <block type="text" id="=3z(ofW`9TqEP.xsU-ED">
                                                               <field name="TEXT">kWh, Jahr: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD11">
                                                             <block type="variables_get" id="0W-RZ_Em4t$Sy`FARv+Z">
                                                               <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD12">
                                                             <block type="text" id="Ty(JV^J0(_X}qAjRj;)m">
                                                               <field name="TEXT">kWh, aktuell: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD13">
                                                             <block type="variables_get" id="EzerXBpL(,s_|$n_*G]q">
                                                               <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD14">
                                                             <block type="text" id="K`P{T/@{b2ImK0Nr2o!m">
                                                               <field name="TEXT">W</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                    </xml>
                    

                    Edit hast du ein neues Blockly angelegt?

                    K Offline
                    K Offline
                    kurt_88
                    schrieb am zuletzt editiert von kurt_88
                    #27

                    @tt-tom said in IR Lesekopf/NodeMCU per MQTT einbinden:

                    <xml xmlns="https://developers.google.com/blockly/xml">

                    Vielen Dank, das mit dem importieren hat jetzt super geklappt und das Script läuft jetzt auch bei mir ohne Fehler :)

                    Aber jetzt kommt die ganz blöde Frage, ich habe irgendwie ein Brett vor den Kopf, was mache ich jetzt mit den Script. Ich sehe momentan den Wald vor lauter Bäumen nicht ...

                    Screenshot_20230126_223548_script01.png

                    Viele Grüße

                    T 1 Antwort Letzte Antwort
                    0
                    • K kurt_88

                      @tt-tom said in IR Lesekopf/NodeMCU per MQTT einbinden:

                      <xml xmlns="https://developers.google.com/blockly/xml">

                      Vielen Dank, das mit dem importieren hat jetzt super geklappt und das Script läuft jetzt auch bei mir ohne Fehler :)

                      Aber jetzt kommt die ganz blöde Frage, ich habe irgendwie ein Brett vor den Kopf, was mache ich jetzt mit den Script. Ich sehe momentan den Wald vor lauter Bäumen nicht ...

                      Screenshot_20230126_223548_script01.png

                      Viele Grüße

                      T Offline
                      T Offline
                      TT-Tom
                      schrieb am zuletzt editiert von TT-Tom
                      #28

                      @kurt_88

                      dann wollen wir mal die Kettensäge rausholen. :blush:

                      du solltest jetzt im Protokoll die Werte sehen, wenn der Zähler neue Werte sendet.

                      du musst dir jetzt unter userdata_0.0. Datenpunkte anlegen, wo dann die Werte reingeschrieben werden sollen.

                      Dann werden wir das Blockly erweitern. bei example_state_current müssen deine Datenpunkte dann rein

                      Bildschirmfoto 2023-01-26 um 22.41.41.png

                      Gruß Tom
                      https://github.com/tt-tom17
                      Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                      NSPanel Script Wiki
                      https://github.com/joBr99/nspanel-lovelace-ui/wiki

                      NSPanel Adapter Wiki
                      https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                      K 1 Antwort Letzte Antwort
                      1
                      • T TT-Tom

                        @kurt_88

                        dann wollen wir mal die Kettensäge rausholen. :blush:

                        du solltest jetzt im Protokoll die Werte sehen, wenn der Zähler neue Werte sendet.

                        du musst dir jetzt unter userdata_0.0. Datenpunkte anlegen, wo dann die Werte reingeschrieben werden sollen.

                        Dann werden wir das Blockly erweitern. bei example_state_current müssen deine Datenpunkte dann rein

                        Bildschirmfoto 2023-01-26 um 22.41.41.png

                        K Offline
                        K Offline
                        kurt_88
                        schrieb am zuletzt editiert von
                        #29

                        @tt-tom
                        Vielen Dank für Deine Hilfe, ich wäre nie soweit gekommen. Ich muss jetzt aber schluss machen, muss morgen wieder früh raus. Ich würde aber morgen gerne weiter machen, würde mich auch gerne noch belesen, denn so wie es aussieht, habe ich so gut wie keinen blassen Schimmer.
                        Ich hatte immer die Gosund Smart Steckdose vor Augen, die hatte ich mit Tasmota geflasht und perr MQTT über den Sonoff Adapter, mit den IoBroker verbunden und da konnte ich, die Verbrauchswerte gleich sehen. Danke nochmal für Deine Hilfe und Geduld :)

                        T WalW 2 Antworten Letzte Antwort
                        0
                        • K kurt_88

                          @tt-tom
                          Vielen Dank für Deine Hilfe, ich wäre nie soweit gekommen. Ich muss jetzt aber schluss machen, muss morgen wieder früh raus. Ich würde aber morgen gerne weiter machen, würde mich auch gerne noch belesen, denn so wie es aussieht, habe ich so gut wie keinen blassen Schimmer.
                          Ich hatte immer die Gosund Smart Steckdose vor Augen, die hatte ich mit Tasmota geflasht und perr MQTT über den Sonoff Adapter, mit den IoBroker verbunden und da konnte ich, die Verbrauchswerte gleich sehen. Danke nochmal für Deine Hilfe und Geduld :)

                          T Offline
                          T Offline
                          TT-Tom
                          schrieb am zuletzt editiert von TT-Tom
                          #30

                          @kurt_88

                          kein Problem, ich helfe gern. bin morgen auch den Tag unterwegs. werde aber zwischen durch rein sehen. lege dir erstmal Datenpunkte unter userdata_0.0 an. bis morgen

                          EDIT: man das USER Objektverzeichnis heisst doch 0_userdata.0 . Asche auf mein Haupt, mann ist halt nicht perfekt :astonished:

                          Gruß Tom
                          https://github.com/tt-tom17
                          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                          NSPanel Script Wiki
                          https://github.com/joBr99/nspanel-lovelace-ui/wiki

                          NSPanel Adapter Wiki
                          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                          1 Antwort Letzte Antwort
                          1
                          • T Offline
                            T Offline
                            TT-Tom
                            schrieb am zuletzt editiert von
                            #31

                            @kurt_88

                            Hi, ich habe mal das Script so weit angepasst, das auch die Datenpunkte in 0_userdata.0 erstellt werden und gleichzeitig mit den Daten gefüllt werden. Du musst natürlich wieder den Datenpunkt im Trigger anpassen und ein neues Blockly erstellen. bis .....

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <variables>
                               <variable id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</variable>
                               <variable id="=PjH*5J}WCH}|GQxuE!Q">Bezug</variable>
                               <variable id="5=hKGU(m$i[]qc3syZjS">Tag</variable>
                               <variable id="nEj.:^1A]V^!5`$(P9)$">Woche</variable>
                               <variable id="X{v.JNv2M`1iHjL[)X,l">Monat</variable>
                               <variable id="g;{.pi%+DV4VUngk~p{g">Jahr</variable>
                               <variable id="yK^u+S#}N~|IeJsi~VAh">aktuell</variable>
                             </variables>
                             <block type="create" id="swB_9{Mg2QcF?v|UMaP#" x="-387" y="-887">
                               <field name="NAME">0_userdata.0.Stromzähler.Verbrauch</field>
                               <value name="VALUE">
                                 <block type="math_number" id="Z+;(E`E9+ht]r5cCHBr1">
                                   <field name="NUM">0</field>
                                 </block>
                               </value>
                               <value name="COMMON">
                                 <block type="text" id="zn9`[(J+$[cPEt,=~Ahf">
                                   <field name="TEXT">{"name": "Stromzähler.Verbrauch","type": "number","write": false}</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="create" id="@@dkn1^I6xwn%lT;FaGl">
                                   <field name="NAME">0_userdata.0.Stromzähler.Bezug</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="zNwvnTY:ED2GEu1}}]GB">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                   <value name="COMMON">
                                     <block type="text" id=",W|sROdfU{#e~dwwRXDL">
                                       <field name="TEXT">{"name": "Stromzähler.Bezug","type": "number","write": false}</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="create" id="4!zi^L_C:oLPi4=q[ds(">
                                       <field name="NAME">0_userdata.0.Stromzähler.Tag</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="1L@11cJjD}Lxo`Fibkzu">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                       <value name="COMMON">
                                         <block type="text" id="^z*;3w$8_?xMfzNlpb/T">
                                           <field name="TEXT">{"name": "Stromzähler.Tag","type": "number","write": false}</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="create" id="I@0cfJ_XxN:}X)4a/LvU">
                                           <field name="NAME">0_userdata.0.Stromzähler.Woche</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="g8+k1NFq%,O0Px@EmZ6A">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                           <value name="COMMON">
                                             <block type="text" id="h?$B]udPY|CJoThsd]@%">
                                               <field name="TEXT">{"name": "Stromzähler.Woche","type": "number","write": false}</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="create" id="FbJ8*Z?Ax/B+zh;(cI?Z">
                                               <field name="NAME">0_userdata.0.Stromzähler.Monat</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="F*nx^%Bs[_.XcoWC,?*[">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                               <value name="COMMON">
                                                 <block type="text" id="5%@E`W$mBtxGhqa|a_V3">
                                                   <field name="TEXT">{"name": "Stromzähler.Monat","type": "number","write": false}</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="create" id="IDH01F2+`~$8}vCq~/)k">
                                                   <field name="NAME">0_userdata.0.Stromzähler.Jahr</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="wtoBF)t/Qr%^Wa8Thmac">
                                                       <field name="NUM">0</field>
                                                     </block>
                                                   </value>
                                                   <value name="COMMON">
                                                     <block type="text" id="x+u[]cxcg_/OU`zY7INL">
                                                       <field name="TEXT">{"name": "Stromzähler.Jahr","type": "number","write": false}</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="create" id="q*9KBLu?K}gL2bnrM^kE">
                                                       <field name="NAME">0_userdata.0.Stromzähler.Aktuell</field>
                                                       <value name="VALUE">
                                                         <block type="math_number" id="ujd+dCs:F$C6dY^TE-Y#">
                                                           <field name="NUM">0</field>
                                                         </block>
                                                       </value>
                                                       <value name="COMMON">
                                                         <block type="text" id="i4dWZV|-U8*%Q?EA(iJt">
                                                           <field name="TEXT">{"name": "Stromzähler.Aktuell","type": "number","write": false}</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="on_ext" id="p~c_9Fq1{DWv5J%;1?1H">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                           <field name="CONDITION">ne</field>
                                                           <field name="ACK_CONDITION"></field>
                                                           <value name="OID0">
                                                             <shadow type="field_oid" id="?g1f{w5n!;pGTzeI_1Fs">
                                                               <field name="oid">default</field>
                                                             </shadow>
                                                             <block type="field_oid" id="z=GDvQkiX8NSAqoo#H=w">
                                                               <field name="oid">mqtt.0.smartmeter.tele.SENSOR</field>
                                                             </block>
                                                           </value>
                                                           <statement name="STATEMENT">
                                                             <block type="variables_set" id="h|nP.?B6J~_AHedSv8W,">
                                                               <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                               <value name="VALUE">
                                                                 <block type="get_attr" id="z:S4j%{$(p.V2z~;jxIk">
                                                                   <value name="PATH">
                                                                     <shadow type="text" id="3q5lsf*K_:RzQ50%;Gtr">
                                                                       <field name="TEXT">LK13BE.total_verbrauch</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <value name="OBJECT">
                                                                     <block type="on_source" id="MpJ$Vt{.;lSjqx%E^ds$">
                                                                       <field name="ATTR">state.val</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="variables_set" id="#9fup9f@*R{k{RtGXtL6">
                                                                   <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                                   <value name="VALUE">
                                                                     <block type="get_attr" id="wL;#00(`iyvo[+sZRHs8">
                                                                       <value name="PATH">
                                                                         <shadow type="text" id="f$YA%UVCBi;0uSW#4vIF">
                                                                           <field name="TEXT">LK13BE.total_bezug</field>
                                                                         </shadow>
                                                                       </value>
                                                                       <value name="OBJECT">
                                                                         <block type="on_source" id="[mABeLHqbSh/bSOB6=3A">
                                                                           <field name="ATTR">state.val</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="variables_set" id="@8JF|C[)BUok^dYPTUV0">
                                                                       <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                                       <value name="VALUE">
                                                                         <block type="get_attr" id="Ub(E,s/}j9]`]OT_acZe">
                                                                           <value name="PATH">
                                                                             <shadow type="text" id="iJbuA,L=]-y[0N)oxP!P">
                                                                               <field name="TEXT">LK13BE.total_1d</field>
                                                                             </shadow>
                                                                           </value>
                                                                           <value name="OBJECT">
                                                                             <block type="on_source" id="I^?]oLjj|=#6$:Q^,*2M">
                                                                               <field name="ATTR">state.val</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="variables_set" id="9/QxF-kOgB;O}Bc5Xh(1">
                                                                           <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                                           <value name="VALUE">
                                                                             <block type="get_attr" id="3fPETP1./.EtewfIXaku">
                                                                               <value name="PATH">
                                                                                 <shadow type="text" id="?6DJyU??z:IW1b!u:[G!">
                                                                                   <field name="TEXT">LK13BE.total_7d</field>
                                                                                 </shadow>
                                                                               </value>
                                                                               <value name="OBJECT">
                                                                                 <block type="on_source" id="8Dt.@1I2Q4KI3zZe:31u">
                                                                                   <field name="ATTR">state.val</field>
                                                                                 </block>
                                                                               </value>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="variables_set" id="],~%EPk!h#r4@Qb,jQy4">
                                                                               <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                                               <value name="VALUE">
                                                                                 <block type="get_attr" id="!@0){e]9}dslL.mAt#iW">
                                                                                   <value name="PATH">
                                                                                     <shadow type="text" id=",1^ABSgaOzDzThe9vS!R">
                                                                                       <field name="TEXT">LK13BE.total_30d</field>
                                                                                     </shadow>
                                                                                   </value>
                                                                                   <value name="OBJECT">
                                                                                     <block type="on_source" id="G07M2~-0O?%k|pz0k]9m">
                                                                                       <field name="ATTR">state.val</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="variables_set" id="B_n8`nexqS`m.TNt%icY">
                                                                                   <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="get_attr" id="5C*EM*^TV^3p0XY.bIsR">
                                                                                       <value name="PATH">
                                                                                         <shadow type="text" id="nwlkj11|MiQrd(;CR1FR">
                                                                                           <field name="TEXT">LK13BE.total_365d</field>
                                                                                         </shadow>
                                                                                       </value>
                                                                                       <value name="OBJECT">
                                                                                         <block type="on_source" id="V$hMSK+C%s7usXF5(MlK">
                                                                                           <field name="ATTR">state.val</field>
                                                                                         </block>
                                                                                       </value>
                                                                                     </block>
                                                                                   </value>
                                                                                   <next>
                                                                                     <block type="variables_set" id="LkJtt}8`3K:V=*Q*oZln">
                                                                                       <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="get_attr" id="*ovm[7(U%[}E=x^YeUgS">
                                                                                           <value name="PATH">
                                                                                             <shadow type="text" id="ao+m:*3H=8Pj(%2N$d-O">
                                                                                               <field name="TEXT">LK13BE.current</field>
                                                                                             </shadow>
                                                                                           </value>
                                                                                           <value name="OBJECT">
                                                                                             <block type="on_source" id="v8$PYhv_^cHXK%EqZ]/E">
                                                                                               <field name="ATTR">state.val</field>
                                                                                             </block>
                                                                                           </value>
                                                                                         </block>
                                                                                       </value>
                                                                                       <next>
                                                                                         <block type="debug" id="(vG/K[#x+!Yx-`14uihw">
                                                                                           <field name="Severity">log</field>
                                                                                           <value name="TEXT">
                                                                                             <shadow type="text" id="MAp?W)hbI1Ne[[Ac;F7#">
                                                                                               <field name="TEXT">test</field>
                                                                                             </shadow>
                                                                                             <block type="text_join" id="q1~t(B|Y()[K{E(5XU%c">
                                                                                               <mutation items="15"></mutation>
                                                                                               <value name="ADD0">
                                                                                                 <block type="text" id="m=;?FK(d/O~Gn5NJv$J1">
                                                                                                   <field name="TEXT">Verbrauch: </field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD1">
                                                                                                 <block type="variables_get" id="*LYJsz5::!Lj,C}RecMB">
                                                                                                   <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD2">
                                                                                                 <block type="text" id="G;_iEBNv|EN^w|Jx.h2t">
                                                                                                   <field name="TEXT">kWh, Bezug: </field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD3">
                                                                                                 <block type="variables_get" id="hPfi%a4o~M!k($e-qHs}">
                                                                                                   <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD4">
                                                                                                 <block type="text" id="Z7_R?9d!NZE]^$uOk3X*">
                                                                                                   <field name="TEXT">kWh, Tag: </field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD5">
                                                                                                 <block type="variables_get" id="Pbo(V,@myxz|Or.BwGiz">
                                                                                                   <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD6">
                                                                                                 <block type="text" id="5AjV=}^D:43Ul[kwlTk?">
                                                                                                   <field name="TEXT">kWh, Woche: </field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD7">
                                                                                                 <block type="variables_get" id="B0Vh]vU2LxerJvTd])f#">
                                                                                                   <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD8">
                                                                                                 <block type="text" id="h2W^qqx{8[wl3|/JO|OX">
                                                                                                   <field name="TEXT">kWh, Monat: </field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD9">
                                                                                                 <block type="variables_get" id="~31KxaBkABZTf-uI4Hu#">
                                                                                                   <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD10">
                                                                                                 <block type="text" id="=3z(ofW`9TqEP.xsU-ED">
                                                                                                   <field name="TEXT">kWh, Jahr: </field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD11">
                                                                                                 <block type="variables_get" id="0W-RZ_Em4t$Sy`FARv+Z">
                                                                                                   <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD12">
                                                                                                 <block type="text" id="Ty(JV^J0(_X}qAjRj;)m">
                                                                                                   <field name="TEXT">kWh, aktuell: </field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD13">
                                                                                                 <block type="variables_get" id="EzerXBpL(,s_|$n_*G]q">
                                                                                                   <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <value name="ADD14">
                                                                                                 <block type="text" id="K`P{T/@{b2ImK0Nr2o!m">
                                                                                                   <field name="TEXT">W</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </value>
                                                                                           <next>
                                                                                             <block type="update" id="J{{TRb8Hbkwqn{GzXpS9">
                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                               <field name="OID">0_userdata.0.Stromzähler.Aktuell</field>
                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="variables_get" id="7Xn;#P#@kY?Qep9!SRrN">
                                                                                                   <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                               <next>
                                                                                                 <block type="update" id="d|;[[W#h-3Ec*#8(1]Ag">
                                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                   <field name="OID">0_userdata.0.Stromzähler.Bezug</field>
                                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                                   <value name="VALUE">
                                                                                                     <block type="variables_get" id="9B2g/E=Y:JwGJ2sur_Xj">
                                                                                                       <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                                                                     </block>
                                                                                                   </value>
                                                                                                   <next>
                                                                                                     <block type="update" id="vjeAJCkDo4LC=cG}Pp|1">
                                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                       <field name="OID">0_userdata.0.Stromzähler.Verbrauch</field>
                                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                                       <value name="VALUE">
                                                                                                         <block type="variables_get" id="ZO@m6Igkuar$n2kv!)4I">
                                                                                                           <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                       <next>
                                                                                                         <block type="update" id="?]s]x8W5R*Z4H@c!n,Ed">
                                                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                           <field name="OID">0_userdata.0.Stromzähler.Tag</field>
                                                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                                                           <value name="VALUE">
                                                                                                             <block type="variables_get" id="8Tog%1HU,h;xpLpR4g*/">
                                                                                                               <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                           <next>
                                                                                                             <block type="update" id="[C}otI+VqMX-j}()w;Ef">
                                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                               <field name="OID">0_userdata.0.Stromzähler.Woche</field>
                                                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                                                               <value name="VALUE">
                                                                                                                 <block type="variables_get" id="34,v5Nuuu$uYNiVa$17l">
                                                                                                                   <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                               <next>
                                                                                                                 <block type="update" id="Ktm|6bOs,wz}YfQJZCfe">
                                                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                   <field name="OID">0_userdata.0.Stromzähler.Monat</field>
                                                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                                                   <value name="VALUE">
                                                                                                                     <block type="variables_get" id="hRG#*ND:XMA7GY4*KNG,">
                                                                                                                       <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <next>
                                                                                                                     <block type="update" id="WvkJ)0hP@ul#3@+`NS+X">
                                                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                       <field name="OID">0_userdata.0.Stromzähler.Jahr</field>
                                                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                                                       <value name="VALUE">
                                                                                                                         <block type="variables_get" id="r~a(;`J.J#J]d46FXz@q">
                                                                                                                           <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </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>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                            </xml>
                            

                            Gruß Tom
                            https://github.com/tt-tom17
                            Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                            NSPanel Script Wiki
                            https://github.com/joBr99/nspanel-lovelace-ui/wiki

                            NSPanel Adapter Wiki
                            https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                            K 1 Antwort Letzte Antwort
                            0
                            • K kurt_88

                              @tt-tom
                              Vielen Dank für Deine Hilfe, ich wäre nie soweit gekommen. Ich muss jetzt aber schluss machen, muss morgen wieder früh raus. Ich würde aber morgen gerne weiter machen, würde mich auch gerne noch belesen, denn so wie es aussieht, habe ich so gut wie keinen blassen Schimmer.
                              Ich hatte immer die Gosund Smart Steckdose vor Augen, die hatte ich mit Tasmota geflasht und perr MQTT über den Sonoff Adapter, mit den IoBroker verbunden und da konnte ich, die Verbrauchswerte gleich sehen. Danke nochmal für Deine Hilfe und Geduld :)

                              WalW Offline
                              WalW Offline
                              Wal
                              Developer
                              schrieb am zuletzt editiert von Wal
                              #32

                              @kurt_88,
                              der Sonoff-Adapter reicht für die Anzeige, man braucht kein Skript.

                              03:33:03.404 MQT: tele/Haus.Stromzähler/SENSOR = {"Time":"2023-01-27T03:33:03","MT175":{"E_in":20623.0,"E_in_HT":10016.0,"E_in_NT":10606.0,"E_out":0.0,"P":0.00,"L1":0.00,"L2":0.00,"L3":0.00,"Server_ID":"09014953330004370815"}}
                              

                              zeig mal diese Zeile bei dir.

                              Edit: habe gesehen das deine Sensorzeile korrekt ist, der Sonoff-Adapter müsste es Anzeigen d.h. Tasmota ist/war richtig eingestellt.

                              Hier meine Konfig für den Sonoff-Adapter:
                              Screenshot 2023-01-27 033924.png

                              Gruß
                              Walter

                              DoorIO-Adapter
                              wioBrowser-Adapter und wioBrowser

                              T 1 Antwort Letzte Antwort
                              1
                              • WalW Wal

                                @kurt_88,
                                der Sonoff-Adapter reicht für die Anzeige, man braucht kein Skript.

                                03:33:03.404 MQT: tele/Haus.Stromzähler/SENSOR = {"Time":"2023-01-27T03:33:03","MT175":{"E_in":20623.0,"E_in_HT":10016.0,"E_in_NT":10606.0,"E_out":0.0,"P":0.00,"L1":0.00,"L2":0.00,"L3":0.00,"Server_ID":"09014953330004370815"}}
                                

                                zeig mal diese Zeile bei dir.

                                Edit: habe gesehen das deine Sensorzeile korrekt ist, der Sonoff-Adapter müsste es Anzeigen d.h. Tasmota ist/war richtig eingestellt.

                                Hier meine Konfig für den Sonoff-Adapter:
                                Screenshot 2023-01-27 033924.png

                                T Offline
                                T Offline
                                TT-Tom
                                schrieb am zuletzt editiert von
                                #33

                                @wal

                                Hi,

                                Eine Frage, werden die Werte bei Sonoff in einzelne Datenpunkte geschrieben oder als JSON abgelegt?

                                Gruß Tom
                                https://github.com/tt-tom17
                                Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                                NSPanel Script Wiki
                                https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                NSPanel Adapter Wiki
                                https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                                WalW 1 Antwort Letzte Antwort
                                0
                                • T TT-Tom

                                  @wal

                                  Hi,

                                  Eine Frage, werden die Werte bei Sonoff in einzelne Datenpunkte geschrieben oder als JSON abgelegt?

                                  WalW Offline
                                  WalW Offline
                                  Wal
                                  Developer
                                  schrieb am zuletzt editiert von Wal
                                  #34

                                  @tt-tom ,
                                  einzelne Datenpunkte.
                                  Du siehst die MQTT-Nachricht von Tasmota und die wird im Sonoff-Adapter mit der Einstellung "Für tele/Sensor" in einzelne Datenpunkte gewandelt.

                                  Gruß
                                  Walter

                                  DoorIO-Adapter
                                  wioBrowser-Adapter und wioBrowser

                                  T 1 Antwort Letzte Antwort
                                  1
                                  • WalW Wal

                                    @tt-tom ,
                                    einzelne Datenpunkte.
                                    Du siehst die MQTT-Nachricht von Tasmota und die wird im Sonoff-Adapter mit der Einstellung "Für tele/Sensor" in einzelne Datenpunkte gewandelt.

                                    T Offline
                                    T Offline
                                    TT-Tom
                                    schrieb am zuletzt editiert von
                                    #35

                                    @wal

                                    Okay, dann muss @kurt_88 nochmal seine Einstellung prüfen, denn er hat keine Werte gefunden.
                                    Da ich den Adapter nicht kenne, habe ich ihm mein Weg vorgeschlagen.

                                    Gruß Tom
                                    https://github.com/tt-tom17
                                    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                                    NSPanel Script Wiki
                                    https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                    NSPanel Adapter Wiki
                                    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                                    K 1 Antwort Letzte Antwort
                                    0
                                    • T TT-Tom

                                      @wal

                                      Okay, dann muss @kurt_88 nochmal seine Einstellung prüfen, denn er hat keine Werte gefunden.
                                      Da ich den Adapter nicht kenne, habe ich ihm mein Weg vorgeschlagen.

                                      K Offline
                                      K Offline
                                      kurt_88
                                      schrieb am zuletzt editiert von kurt_88
                                      #36

                                      @tt-tom
                                      Hallo Zusammen,

                                      Bei mir scheint es anders zu sein. Ich habe keine Datenpunkte unter Sonoff, aber auch kein Sensor Datenpunkt, anbei mal die Screenshots.

                                      Viele GrüßeScreenshot_20230126_204559_neu_02.png

                                      Screenshot_20230126_204559_neu_02.png

                                      WalW 1 Antwort Letzte Antwort
                                      0
                                      • K kurt_88

                                        @tt-tom
                                        Hallo Zusammen,

                                        Bei mir scheint es anders zu sein. Ich habe keine Datenpunkte unter Sonoff, aber auch kein Sensor Datenpunkt, anbei mal die Screenshots.

                                        Viele GrüßeScreenshot_20230126_204559_neu_02.png

                                        Screenshot_20230126_204559_neu_02.png

                                        WalW Offline
                                        WalW Offline
                                        Wal
                                        Developer
                                        schrieb am zuletzt editiert von
                                        #37

                                        @kurt_88 ,
                                        so sieht es bei mir aus mit der MQTT-Nachricht:

                                        18:08:03.406 MQT: tele/Haus.Stromzähler/SENSOR = {"Time":"2023-01-27T18:08:03","MT175":{"E_in":20630.0,"E_in_HT":10022.0,"E_in_NT":10607.0,"E_out":0.0,"P":0.00,"L1":0.00,"L2":0.00,"L3":0.00,"Server_ID":"090149533330000815"}}
                                        

                                        Screenshot 2023-01-27 180906.png

                                        Gruß
                                        Walter

                                        DoorIO-Adapter
                                        wioBrowser-Adapter und wioBrowser

                                        K 1 Antwort Letzte Antwort
                                        0
                                        • T TT-Tom

                                          @kurt_88

                                          Hi, ich habe mal das Script so weit angepasst, das auch die Datenpunkte in 0_userdata.0 erstellt werden und gleichzeitig mit den Daten gefüllt werden. Du musst natürlich wieder den Datenpunkt im Trigger anpassen und ein neues Blockly erstellen. bis .....

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                           <variables>
                                             <variable id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</variable>
                                             <variable id="=PjH*5J}WCH}|GQxuE!Q">Bezug</variable>
                                             <variable id="5=hKGU(m$i[]qc3syZjS">Tag</variable>
                                             <variable id="nEj.:^1A]V^!5`$(P9)$">Woche</variable>
                                             <variable id="X{v.JNv2M`1iHjL[)X,l">Monat</variable>
                                             <variable id="g;{.pi%+DV4VUngk~p{g">Jahr</variable>
                                             <variable id="yK^u+S#}N~|IeJsi~VAh">aktuell</variable>
                                           </variables>
                                           <block type="create" id="swB_9{Mg2QcF?v|UMaP#" x="-387" y="-887">
                                             <field name="NAME">0_userdata.0.Stromzähler.Verbrauch</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="Z+;(E`E9+ht]r5cCHBr1">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                             <value name="COMMON">
                                               <block type="text" id="zn9`[(J+$[cPEt,=~Ahf">
                                                 <field name="TEXT">{"name": "Stromzähler.Verbrauch","type": "number","write": false}</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="create" id="@@dkn1^I6xwn%lT;FaGl">
                                                 <field name="NAME">0_userdata.0.Stromzähler.Bezug</field>
                                                 <value name="VALUE">
                                                   <block type="math_number" id="zNwvnTY:ED2GEu1}}]GB">
                                                     <field name="NUM">0</field>
                                                   </block>
                                                 </value>
                                                 <value name="COMMON">
                                                   <block type="text" id=",W|sROdfU{#e~dwwRXDL">
                                                     <field name="TEXT">{"name": "Stromzähler.Bezug","type": "number","write": false}</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="create" id="4!zi^L_C:oLPi4=q[ds(">
                                                     <field name="NAME">0_userdata.0.Stromzähler.Tag</field>
                                                     <value name="VALUE">
                                                       <block type="math_number" id="1L@11cJjD}Lxo`Fibkzu">
                                                         <field name="NUM">0</field>
                                                       </block>
                                                     </value>
                                                     <value name="COMMON">
                                                       <block type="text" id="^z*;3w$8_?xMfzNlpb/T">
                                                         <field name="TEXT">{"name": "Stromzähler.Tag","type": "number","write": false}</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="create" id="I@0cfJ_XxN:}X)4a/LvU">
                                                         <field name="NAME">0_userdata.0.Stromzähler.Woche</field>
                                                         <value name="VALUE">
                                                           <block type="math_number" id="g8+k1NFq%,O0Px@EmZ6A">
                                                             <field name="NUM">0</field>
                                                           </block>
                                                         </value>
                                                         <value name="COMMON">
                                                           <block type="text" id="h?$B]udPY|CJoThsd]@%">
                                                             <field name="TEXT">{"name": "Stromzähler.Woche","type": "number","write": false}</field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="create" id="FbJ8*Z?Ax/B+zh;(cI?Z">
                                                             <field name="NAME">0_userdata.0.Stromzähler.Monat</field>
                                                             <value name="VALUE">
                                                               <block type="math_number" id="F*nx^%Bs[_.XcoWC,?*[">
                                                                 <field name="NUM">0</field>
                                                               </block>
                                                             </value>
                                                             <value name="COMMON">
                                                               <block type="text" id="5%@E`W$mBtxGhqa|a_V3">
                                                                 <field name="TEXT">{"name": "Stromzähler.Monat","type": "number","write": false}</field>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="create" id="IDH01F2+`~$8}vCq~/)k">
                                                                 <field name="NAME">0_userdata.0.Stromzähler.Jahr</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_number" id="wtoBF)t/Qr%^Wa8Thmac">
                                                                     <field name="NUM">0</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="COMMON">
                                                                   <block type="text" id="x+u[]cxcg_/OU`zY7INL">
                                                                     <field name="TEXT">{"name": "Stromzähler.Jahr","type": "number","write": false}</field>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="create" id="q*9KBLu?K}gL2bnrM^kE">
                                                                     <field name="NAME">0_userdata.0.Stromzähler.Aktuell</field>
                                                                     <value name="VALUE">
                                                                       <block type="math_number" id="ujd+dCs:F$C6dY^TE-Y#">
                                                                         <field name="NUM">0</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="COMMON">
                                                                       <block type="text" id="i4dWZV|-U8*%Q?EA(iJt">
                                                                         <field name="TEXT">{"name": "Stromzähler.Aktuell","type": "number","write": false}</field>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="on_ext" id="p~c_9Fq1{DWv5J%;1?1H">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                                         <field name="CONDITION">ne</field>
                                                                         <field name="ACK_CONDITION"></field>
                                                                         <value name="OID0">
                                                                           <shadow type="field_oid" id="?g1f{w5n!;pGTzeI_1Fs">
                                                                             <field name="oid">default</field>
                                                                           </shadow>
                                                                           <block type="field_oid" id="z=GDvQkiX8NSAqoo#H=w">
                                                                             <field name="oid">mqtt.0.smartmeter.tele.SENSOR</field>
                                                                           </block>
                                                                         </value>
                                                                         <statement name="STATEMENT">
                                                                           <block type="variables_set" id="h|nP.?B6J~_AHedSv8W,">
                                                                             <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                                             <value name="VALUE">
                                                                               <block type="get_attr" id="z:S4j%{$(p.V2z~;jxIk">
                                                                                 <value name="PATH">
                                                                                   <shadow type="text" id="3q5lsf*K_:RzQ50%;Gtr">
                                                                                     <field name="TEXT">LK13BE.total_verbrauch</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                                 <value name="OBJECT">
                                                                                   <block type="on_source" id="MpJ$Vt{.;lSjqx%E^ds$">
                                                                                     <field name="ATTR">state.val</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <next>
                                                                               <block type="variables_set" id="#9fup9f@*R{k{RtGXtL6">
                                                                                 <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="get_attr" id="wL;#00(`iyvo[+sZRHs8">
                                                                                     <value name="PATH">
                                                                                       <shadow type="text" id="f$YA%UVCBi;0uSW#4vIF">
                                                                                         <field name="TEXT">LK13BE.total_bezug</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                     <value name="OBJECT">
                                                                                       <block type="on_source" id="[mABeLHqbSh/bSOB6=3A">
                                                                                         <field name="ATTR">state.val</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="variables_set" id="@8JF|C[)BUok^dYPTUV0">
                                                                                     <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="get_attr" id="Ub(E,s/}j9]`]OT_acZe">
                                                                                         <value name="PATH">
                                                                                           <shadow type="text" id="iJbuA,L=]-y[0N)oxP!P">
                                                                                             <field name="TEXT">LK13BE.total_1d</field>
                                                                                           </shadow>
                                                                                         </value>
                                                                                         <value name="OBJECT">
                                                                                           <block type="on_source" id="I^?]oLjj|=#6$:Q^,*2M">
                                                                                             <field name="ATTR">state.val</field>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                     <next>
                                                                                       <block type="variables_set" id="9/QxF-kOgB;O}Bc5Xh(1">
                                                                                         <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                                                         <value name="VALUE">
                                                                                           <block type="get_attr" id="3fPETP1./.EtewfIXaku">
                                                                                             <value name="PATH">
                                                                                               <shadow type="text" id="?6DJyU??z:IW1b!u:[G!">
                                                                                                 <field name="TEXT">LK13BE.total_7d</field>
                                                                                               </shadow>
                                                                                             </value>
                                                                                             <value name="OBJECT">
                                                                                               <block type="on_source" id="8Dt.@1I2Q4KI3zZe:31u">
                                                                                                 <field name="ATTR">state.val</field>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </value>
                                                                                         <next>
                                                                                           <block type="variables_set" id="],~%EPk!h#r4@Qb,jQy4">
                                                                                             <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                                                             <value name="VALUE">
                                                                                               <block type="get_attr" id="!@0){e]9}dslL.mAt#iW">
                                                                                                 <value name="PATH">
                                                                                                   <shadow type="text" id=",1^ABSgaOzDzThe9vS!R">
                                                                                                     <field name="TEXT">LK13BE.total_30d</field>
                                                                                                   </shadow>
                                                                                                 </value>
                                                                                                 <value name="OBJECT">
                                                                                                   <block type="on_source" id="G07M2~-0O?%k|pz0k]9m">
                                                                                                     <field name="ATTR">state.val</field>
                                                                                                   </block>
                                                                                                 </value>
                                                                                               </block>
                                                                                             </value>
                                                                                             <next>
                                                                                               <block type="variables_set" id="B_n8`nexqS`m.TNt%icY">
                                                                                                 <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                                                                 <value name="VALUE">
                                                                                                   <block type="get_attr" id="5C*EM*^TV^3p0XY.bIsR">
                                                                                                     <value name="PATH">
                                                                                                       <shadow type="text" id="nwlkj11|MiQrd(;CR1FR">
                                                                                                         <field name="TEXT">LK13BE.total_365d</field>
                                                                                                       </shadow>
                                                                                                     </value>
                                                                                                     <value name="OBJECT">
                                                                                                       <block type="on_source" id="V$hMSK+C%s7usXF5(MlK">
                                                                                                         <field name="ATTR">state.val</field>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                   </block>
                                                                                                 </value>
                                                                                                 <next>
                                                                                                   <block type="variables_set" id="LkJtt}8`3K:V=*Q*oZln">
                                                                                                     <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                                                                     <value name="VALUE">
                                                                                                       <block type="get_attr" id="*ovm[7(U%[}E=x^YeUgS">
                                                                                                         <value name="PATH">
                                                                                                           <shadow type="text" id="ao+m:*3H=8Pj(%2N$d-O">
                                                                                                             <field name="TEXT">LK13BE.current</field>
                                                                                                           </shadow>
                                                                                                         </value>
                                                                                                         <value name="OBJECT">
                                                                                                           <block type="on_source" id="v8$PYhv_^cHXK%EqZ]/E">
                                                                                                             <field name="ATTR">state.val</field>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                     <next>
                                                                                                       <block type="debug" id="(vG/K[#x+!Yx-`14uihw">
                                                                                                         <field name="Severity">log</field>
                                                                                                         <value name="TEXT">
                                                                                                           <shadow type="text" id="MAp?W)hbI1Ne[[Ac;F7#">
                                                                                                             <field name="TEXT">test</field>
                                                                                                           </shadow>
                                                                                                           <block type="text_join" id="q1~t(B|Y()[K{E(5XU%c">
                                                                                                             <mutation items="15"></mutation>
                                                                                                             <value name="ADD0">
                                                                                                               <block type="text" id="m=;?FK(d/O~Gn5NJv$J1">
                                                                                                                 <field name="TEXT">Verbrauch: </field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD1">
                                                                                                               <block type="variables_get" id="*LYJsz5::!Lj,C}RecMB">
                                                                                                                 <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD2">
                                                                                                               <block type="text" id="G;_iEBNv|EN^w|Jx.h2t">
                                                                                                                 <field name="TEXT">kWh, Bezug: </field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD3">
                                                                                                               <block type="variables_get" id="hPfi%a4o~M!k($e-qHs}">
                                                                                                                 <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD4">
                                                                                                               <block type="text" id="Z7_R?9d!NZE]^$uOk3X*">
                                                                                                                 <field name="TEXT">kWh, Tag: </field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD5">
                                                                                                               <block type="variables_get" id="Pbo(V,@myxz|Or.BwGiz">
                                                                                                                 <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD6">
                                                                                                               <block type="text" id="5AjV=}^D:43Ul[kwlTk?">
                                                                                                                 <field name="TEXT">kWh, Woche: </field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD7">
                                                                                                               <block type="variables_get" id="B0Vh]vU2LxerJvTd])f#">
                                                                                                                 <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD8">
                                                                                                               <block type="text" id="h2W^qqx{8[wl3|/JO|OX">
                                                                                                                 <field name="TEXT">kWh, Monat: </field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD9">
                                                                                                               <block type="variables_get" id="~31KxaBkABZTf-uI4Hu#">
                                                                                                                 <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD10">
                                                                                                               <block type="text" id="=3z(ofW`9TqEP.xsU-ED">
                                                                                                                 <field name="TEXT">kWh, Jahr: </field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD11">
                                                                                                               <block type="variables_get" id="0W-RZ_Em4t$Sy`FARv+Z">
                                                                                                                 <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD12">
                                                                                                               <block type="text" id="Ty(JV^J0(_X}qAjRj;)m">
                                                                                                                 <field name="TEXT">kWh, aktuell: </field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD13">
                                                                                                               <block type="variables_get" id="EzerXBpL(,s_|$n_*G]q">
                                                                                                                 <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="ADD14">
                                                                                                               <block type="text" id="K`P{T/@{b2ImK0Nr2o!m">
                                                                                                                 <field name="TEXT">W</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                           </block>
                                                                                                         </value>
                                                                                                         <next>
                                                                                                           <block type="update" id="J{{TRb8Hbkwqn{GzXpS9">
                                                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                             <field name="OID">0_userdata.0.Stromzähler.Aktuell</field>
                                                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                                                             <value name="VALUE">
                                                                                                               <block type="variables_get" id="7Xn;#P#@kY?Qep9!SRrN">
                                                                                                                 <field name="VAR" id="yK^u+S#}N~|IeJsi~VAh">aktuell</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <next>
                                                                                                               <block type="update" id="d|;[[W#h-3Ec*#8(1]Ag">
                                                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                 <field name="OID">0_userdata.0.Stromzähler.Bezug</field>
                                                                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                                                                 <value name="VALUE">
                                                                                                                   <block type="variables_get" id="9B2g/E=Y:JwGJ2sur_Xj">
                                                                                                                     <field name="VAR" id="=PjH*5J}WCH}|GQxuE!Q">Bezug</field>
                                                                                                                   </block>
                                                                                                                 </value>
                                                                                                                 <next>
                                                                                                                   <block type="update" id="vjeAJCkDo4LC=cG}Pp|1">
                                                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                     <field name="OID">0_userdata.0.Stromzähler.Verbrauch</field>
                                                                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                                                                     <value name="VALUE">
                                                                                                                       <block type="variables_get" id="ZO@m6Igkuar$n2kv!)4I">
                                                                                                                         <field name="VAR" id="o^VE=q/EJxRCU@p=Nq({">Verbrauch</field>
                                                                                                                       </block>
                                                                                                                     </value>
                                                                                                                     <next>
                                                                                                                       <block type="update" id="?]s]x8W5R*Z4H@c!n,Ed">
                                                                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                         <field name="OID">0_userdata.0.Stromzähler.Tag</field>
                                                                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                                                                         <value name="VALUE">
                                                                                                                           <block type="variables_get" id="8Tog%1HU,h;xpLpR4g*/">
                                                                                                                             <field name="VAR" id="5=hKGU(m$i[]qc3syZjS">Tag</field>
                                                                                                                           </block>
                                                                                                                         </value>
                                                                                                                         <next>
                                                                                                                           <block type="update" id="[C}otI+VqMX-j}()w;Ef">
                                                                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                             <field name="OID">0_userdata.0.Stromzähler.Woche</field>
                                                                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                                                                             <value name="VALUE">
                                                                                                                               <block type="variables_get" id="34,v5Nuuu$uYNiVa$17l">
                                                                                                                                 <field name="VAR" id="nEj.:^1A]V^!5`$(P9)$">Woche</field>
                                                                                                                               </block>
                                                                                                                             </value>
                                                                                                                             <next>
                                                                                                                               <block type="update" id="Ktm|6bOs,wz}YfQJZCfe">
                                                                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                 <field name="OID">0_userdata.0.Stromzähler.Monat</field>
                                                                                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                                                                                 <value name="VALUE">
                                                                                                                                   <block type="variables_get" id="hRG#*ND:XMA7GY4*KNG,">
                                                                                                                                     <field name="VAR" id="X{v.JNv2M`1iHjL[)X,l">Monat</field>
                                                                                                                                   </block>
                                                                                                                                 </value>
                                                                                                                                 <next>
                                                                                                                                   <block type="update" id="WvkJ)0hP@ul#3@+`NS+X">
                                                                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                     <field name="OID">0_userdata.0.Stromzähler.Jahr</field>
                                                                                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                                                                                     <value name="VALUE">
                                                                                                                                       <block type="variables_get" id="r~a(;`J.J#J]d46FXz@q">
                                                                                                                                         <field name="VAR" id="g;{.pi%+DV4VUngk~p{g">Jahr</field>
                                                                                                                                       </block>
                                                                                                                                     </value>
                                                                                                                                   </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>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                          </xml>
                                          

                                          K Offline
                                          K Offline
                                          kurt_88
                                          schrieb am zuletzt editiert von
                                          #38

                                          @tt-tom
                                          Hallo,
                                          Danke für das angepasste Script, habe es jetzt importiert und dir Datenpunkte wurden angelegt.

                                          Viele Grüße Screenshot_20230126_204559_neu_03.png

                                          T 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          732

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe