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. Skripten / Logik
  4. Stromverbraucher: zusammenzählen

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.6k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.0k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.3k

Stromverbraucher: zusammenzählen

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
21 Beiträge 2 Kommentatoren 874 Aufrufe 1 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.
  • paul53P paul53

    @mico sagte: das überarbeitete Script für den Stromverbrauch.

    Falsche Variable:

    Blockly_temp.JPG

    ... und setze den Debug-Block in den Trigger:

    Blockly_temp.JPG

    Poste bitte den Export des Alexa-Blocklys in Code tags.

    EDIT: Auch hier sind die Variablen vertauscht:

    Blockly_temp.JPG

    Was soll hier passieren?

    Blockly_temp.JPG

    M Offline
    M Offline
    Mico
    schrieb am zuletzt editiert von Mico
    #12

    @paul53
    Guten Morgen
    Ich habe die Variablen getauscht.

    Ich hoffe das sind die richtigen Export der Blocklys

    Als erstes vom Blockly Stromverbrauch

    13.4.2024, 05:32:54.255	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.Stromverbrauch
    13.4.2024, 05:32:54.263	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: registered 12 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
    13.4.2024, 05:32:55.025	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:13:3)
    13.4.2024, 05:33:00.031	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
    13.4.2024, 05:33:00.034	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
    13.4.2024, 05:33:00.035	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
    13.4.2024, 05:33:00.037	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
    13.4.2024, 05:33:00.038	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
    13.4.2024, 05:33:00.040	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
    13.4.2024, 05:33:00.041	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:55:3)
    13.4.2024, 05:33:00.043	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:56:3)
    13.4.2024, 05:33:00.045	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: 0
    13.4.2024, 05:33:15.925	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:41:3)
    13.4.2024, 05:33:22.394	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:6:3)
    

    und der vom Alexa Blockly

    13.4.2024, 05:20:54.415	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
    13.4.2024, 05:23:01.898	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
    13.4.2024, 05:23:51.775	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.alexa_stromausgabe
    13.4.2024, 05:23:51.781	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
    13.4.2024, 05:31:15.008	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
    13.4.2024, 05:31:15.010	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
    13.4.2024, 05:31:15.012	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
    13.4.2024, 05:31:15.013	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
    13.4.2024, 05:31:15.014	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
    13.4.2024, 05:31:15.015	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
    13.4.2024, 05:31:15.044	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Büro Computer 
    13.4.2024, 05:31:15.046	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Fernseher Stube 
    13.4.2024, 05:31:15.050	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Gefrierschrank Keller 
    13.4.2024, 05:31:15.052	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Küche Steckdose 
    13.4.2024, 05:31:15.055	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Raspberry 
    13.4.2024, 05:31:15.058	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Waschküche Steckdose 
    

    Im Blockly Stromverbrauch gibt er jetzt die Anzahl der Geräte richtig aus aber zählt nicht die kWh zusammen die bleiben bei 0

    Im Blockly Alexa werden die Geräte aufgeführt leider aber nicht die entsprechenden Wattzahlen, bzw ein gesamt kWh Verbrauch.

    Danke für deine Mühen und Geduld mit mir.
    PS. die Meisten Blocklys habe ich aus Videos ohne wirklich zu wissen wa diese machen deswegen wahrscheinlich auch das Blockly Modul schreibe objekt id_sensor kommt aus dem Script sind Fenster offen.

    Gruß
    Mico

    paul53P 3 Antworten Letzte Antwort
    0
    • M Mico

      @paul53
      Guten Morgen
      Ich habe die Variablen getauscht.

      Ich hoffe das sind die richtigen Export der Blocklys

      Als erstes vom Blockly Stromverbrauch

      13.4.2024, 05:32:54.255	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.Stromverbrauch
      13.4.2024, 05:32:54.263	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: registered 12 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
      13.4.2024, 05:32:55.025	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:13:3)
      13.4.2024, 05:33:00.031	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
      13.4.2024, 05:33:00.034	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
      13.4.2024, 05:33:00.035	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
      13.4.2024, 05:33:00.037	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
      13.4.2024, 05:33:00.038	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
      13.4.2024, 05:33:00.040	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
      13.4.2024, 05:33:00.041	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:55:3)
      13.4.2024, 05:33:00.043	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:56:3)
      13.4.2024, 05:33:00.045	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: 0
      13.4.2024, 05:33:15.925	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:41:3)
      13.4.2024, 05:33:22.394	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:6:3)
      

      und der vom Alexa Blockly

      13.4.2024, 05:20:54.415	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
      13.4.2024, 05:23:01.898	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
      13.4.2024, 05:23:51.775	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.alexa_stromausgabe
      13.4.2024, 05:23:51.781	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
      13.4.2024, 05:31:15.008	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
      13.4.2024, 05:31:15.010	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
      13.4.2024, 05:31:15.012	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
      13.4.2024, 05:31:15.013	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
      13.4.2024, 05:31:15.014	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
      13.4.2024, 05:31:15.015	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
      13.4.2024, 05:31:15.044	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Büro Computer 
      13.4.2024, 05:31:15.046	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Fernseher Stube 
      13.4.2024, 05:31:15.050	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Gefrierschrank Keller 
      13.4.2024, 05:31:15.052	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Küche Steckdose 
      13.4.2024, 05:31:15.055	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Raspberry 
      13.4.2024, 05:31:15.058	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Waschküche Steckdose 
      

      Im Blockly Stromverbrauch gibt er jetzt die Anzahl der Geräte richtig aus aber zählt nicht die kWh zusammen die bleiben bei 0

      Im Blockly Alexa werden die Geräte aufgeführt leider aber nicht die entsprechenden Wattzahlen, bzw ein gesamt kWh Verbrauch.

      Danke für deine Mühen und Geduld mit mir.
      PS. die Meisten Blocklys habe ich aus Videos ohne wirklich zu wissen wa diese machen deswegen wahrscheinlich auch das Blockly Modul schreibe objekt id_sensor kommt aus dem Script sind Fenster offen.

      Gruß
      Mico

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von
      #13

      @mico sagte: Ich hoffe das sind die richtigen Export der Blocklys

      Nein, das sind Log-Ausgaben. Im ersten Post hast Du exportiert, aber aus dem Alexa-Blockly nur einen kleinen Teil.

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Antwort Letzte Antwort
      0
      • M Mico

        @paul53
        Guten Morgen
        Ich habe die Variablen getauscht.

        Ich hoffe das sind die richtigen Export der Blocklys

        Als erstes vom Blockly Stromverbrauch

        13.4.2024, 05:32:54.255	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.Stromverbrauch
        13.4.2024, 05:32:54.263	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: registered 12 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
        13.4.2024, 05:32:55.025	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:13:3)
        13.4.2024, 05:33:00.031	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
        13.4.2024, 05:33:00.034	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
        13.4.2024, 05:33:00.035	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
        13.4.2024, 05:33:00.037	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
        13.4.2024, 05:33:00.038	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
        13.4.2024, 05:33:00.040	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
        13.4.2024, 05:33:00.041	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:55:3)
        13.4.2024, 05:33:00.043	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:56:3)
        13.4.2024, 05:33:00.045	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: 0
        13.4.2024, 05:33:15.925	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:41:3)
        13.4.2024, 05:33:22.394	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:6:3)
        

        und der vom Alexa Blockly

        13.4.2024, 05:20:54.415	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
        13.4.2024, 05:23:01.898	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
        13.4.2024, 05:23:51.775	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.alexa_stromausgabe
        13.4.2024, 05:23:51.781	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
        13.4.2024, 05:31:15.008	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
        13.4.2024, 05:31:15.010	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
        13.4.2024, 05:31:15.012	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
        13.4.2024, 05:31:15.013	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
        13.4.2024, 05:31:15.014	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
        13.4.2024, 05:31:15.015	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
        13.4.2024, 05:31:15.044	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Büro Computer 
        13.4.2024, 05:31:15.046	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Fernseher Stube 
        13.4.2024, 05:31:15.050	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Gefrierschrank Keller 
        13.4.2024, 05:31:15.052	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Küche Steckdose 
        13.4.2024, 05:31:15.055	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Raspberry 
        13.4.2024, 05:31:15.058	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Waschküche Steckdose 
        

        Im Blockly Stromverbrauch gibt er jetzt die Anzahl der Geräte richtig aus aber zählt nicht die kWh zusammen die bleiben bei 0

        Im Blockly Alexa werden die Geräte aufgeführt leider aber nicht die entsprechenden Wattzahlen, bzw ein gesamt kWh Verbrauch.

        Danke für deine Mühen und Geduld mit mir.
        PS. die Meisten Blocklys habe ich aus Videos ohne wirklich zu wissen wa diese machen deswegen wahrscheinlich auch das Blockly Modul schreibe objekt id_sensor kommt aus dem Script sind Fenster offen.

        Gruß
        Mico

        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von paul53
        #14

        @mico sagte: script.js.common.Binding.Stromwerte.Stromverbrauch: registered 12 subscriptions

        Es sind doch nur 6 Geräte?

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        M 1 Antwort Letzte Antwort
        0
        • paul53P paul53

          @mico sagte: script.js.common.Binding.Stromwerte.Stromverbrauch: registered 12 subscriptions

          Es sind doch nur 6 Geräte?

          M Offline
          M Offline
          Mico
          schrieb am zuletzt editiert von Mico
          #15

          @paul53

          Guten Morgen,

          so nun hoffe ich es sind die richtigen post

          <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="Efa#FlJ@p?Yuc2R;_FIG" x="-1663" y="-3688">
            <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="ulTB*-|$fF^-}k*`zpSl">
                <field name="oid">0_userdata.0.binding.Stromverbrauch.Alexastrom</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                <value name="VALUE">
                  <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                    <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                    <value name="VALUE">
                      <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="$T-aA`]2N|mqLJ#Sj;%N">
                        <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                        <value name="VALUE">
                          <block type="math_number" id="*.45QqqqTiR]G26N!}F)">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="nR#YHsLS1sEsCE)=:8Q}">
                            <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                            <value name="VALUE">
                              <block type="text" id="JxfeT-}[nDfJKWNixP0-">
                                <field name="TEXT"></field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="VcdbJ[ZEg6)aD5*W!Pzc">
                                <field name="VAR" id="vTh0raSr}p-!xZ_5Tac?">Watt</field>
                                <value name="VALUE">
                                  <block type="math_number" id="xtzoa4m;+9)n?$vv[NX)">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                                    <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                    <value name="LIST">
                                      <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                        <field name="TEXT">state[id=*](functions=power_consumption)</field>
                                      </block>
                                    </value>
                                    <statement name="DO">
                                      <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                        <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                        <value name="DELTA">
                                          <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                            <field name="NUM">1</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                            <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                            <value name="DELTA">
                                              <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                                <field name="ATTR">val</field>
                                                <value name="OID">
                                                  <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                                    <field name="oid">Object ID</field>
                                                  </shadow>
                                                  <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                                    <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_forEach" id="0oph2k:|^II9K_@E#P!)">
                                        <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                        <value name="LIST">
                                          <block type="selector" id="gg25viywl-Rm!Mjxafhv">
                                            <field name="TEXT">state[id=*](functions=Strommessung)</field>
                                          </block>
                                        </value>
                                        <statement name="DO">
                                          <block type="math_change" id="$U5QEzHFb_T),^3a=/ox">
                                            <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                                            <value name="DELTA">
                                              <shadow type="math_number" id="^^V,*gi(-GE3sbIa9fSp">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="controls_if" id="4Qac65vVYC*mj{PC5$`~">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="+qvtC2bL@5xw#tmz[gTa">
                                                    <field name="OP">GT</field>
                                                    <value name="A">
                                                      <block type="get_value_var" id=":1{hW-_.]ggz:qvXLn/B">
                                                        <field name="ATTR">val</field>
                                                        <value name="OID">
                                                          <shadow type="text" id="C^_y)x}0WB3|YD`C+1Xm">
                                                            <field name="TEXT"></field>
                                                          </shadow>
                                                          <block type="variables_get" id="3@,=S#2CUo~4ZdYHulk1">
                                                            <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="Nv@7[)pa`:l{b;C:1@gC">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="text_append" id="gt.FVwQ~``f371pa+h^`">
                                                    <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="359Mx-xZ0Gkv/ylM!e3;">
                                                        <field name="TEXT"></field>
                                                      </shadow>
                                                      <block type="text_join" id="fDn;%yn@L~E7fH-r)LJo">
                                                        <mutation items="2"></mutation>
                                                        <value name="ADD0">
                                                          <block type="text" id="5(Iy-sO8y7c,1`+/LIF%">
                                                            <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="text_getSubstring" id="d=75(a.@^24VM1$(M#-u">
                                                            <mutation at1="false" at2="true"></mutation>
                                                            <field name="WHERE1">FIRST</field>
                                                            <field name="WHERE2">FROM_END</field>
                                                            <value name="STRING">
                                                              <block type="get_value_var" id="iH,9(!i.px.Tccd^*M3#">
                                                                <field name="ATTR">common.name</field>
                                                                <value name="OID">
                                                                  <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                    <field name="oid">Object ID</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="Lq=r`BIO/Z=g32SS2%_Q">
                                                                    <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="AT2">
                                                              <block type="math_number" id="l6OP:3)gFw{+jI]aFN$j">
                                                                <field name="NUM">2</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="debug" id="x%WStX/{fnS%vA07n$9J">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="s9TJ|/nCL6rn)3#aho6t">
                                                        <field name="TEXT">test</field>
                                                      </shadow>
                                                      <block type="text_join" id="X^!8$T9E9d+:fTPI3,.V">
                                                        <mutation items="3"></mutation>
                                                        <value name="ADD0">
                                                          <block type="text" id="A@3g6~q`qS7+`pv@zOFv">
                                                            <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="text_getSubstring" id="avV8VhH,/1BI{?mkk$V=">
                                                            <mutation at1="false" at2="true"></mutation>
                                                            <field name="WHERE1">FIRST</field>
                                                            <field name="WHERE2">FROM_END</field>
                                                            <value name="STRING">
                                                              <block type="get_value_var" id="Kae|/Wh[Z#${`L[BWXin">
                                                                <field name="ATTR">common.name</field>
                                                                <value name="OID">
                                                                  <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                    <field name="oid">Object ID</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="v];mab^Hy%HlYS1+:4Rr">
                                                                    <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="AT2">
                                                              <block type="math_number" id="0qy|%:y8h#Sh_LZs+]i7">
                                                                <field name="NUM">2</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD2">
                                                          <block type="variables_get" id="JR%*7!]Ys?#m_cF3OEHo">
                                                            <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="+O:b-,w{IJa{hHuXH~Q;">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="uPC4%)m6,V)JZ~?tNR(:">
                                                            <field name="TEXT">test</field>
                                                          </shadow>
                                                          <block type="variables_get" id="yhtN^=4.44Sawl66b!vD">
                                                            <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="control" id="iubBb/fciz7}ww3~!C`T">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="text_join" id="l!49D^4#|N?p+!]h3Cu*">
                                                <mutation items="5"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="`S0qG$k$uLQ==[IlO|15">
                                                    <field name="TEXT">Der gesamt Kilowatt Verbrauch beträgt zur Zeit, </field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="variables_get" id="k|*y.chIRjdUqy7U3iuI">
                                                    <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                  </block>
                                                </value>
                                                <value name="ADD2">
                                                  <block type="text" id="eMqb$!A|DmVp(]#CIM:B">
                                                    <field name="TEXT">, von</field>
                                                  </block>
                                                </value>
                                                <value name="ADD3">
                                                  <block type="variables_get" id="@mdQ+I^YH=rV**hN!Ue-">
                                                    <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                  </block>
                                                </value>
                                                <value name="ADD4">
                                                  <block type="text" id="!LU1Vi+6)ikMzc^$-?#;">
                                                    <field name="TEXT"> Geräten.</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="Wtgq|MGHiH#IPBfj#`?i">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="text_join" id="Dg*@]Z^VpTiRZDVHc!D{">
                                                    <mutation items="5"></mutation>
                                                    <value name="ADD0">
                                                      <block type="text" id="G}hUb8wUV*CH+xD}P:,b">
                                                        <field name="TEXT">Der einzelnde Verbrauch beträgt zur Zeit von, </field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD1">
                                                      <block type="text_getSubstring" id="(zY:%zW/0fvTV2*L5LT(">
                                                        <mutation at1="false" at2="true"></mutation>
                                                        <field name="WHERE1">FIRST</field>
                                                        <field name="WHERE2">FROM_END</field>
                                                        <value name="STRING">
                                                          <block type="get_value_var" id="Qq%jlCxpO}y:Ut$gaP*+">
                                                            <field name="ATTR">common.name</field>
                                                            <value name="OID">
                                                              <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                <field name="oid">Object ID</field>
                                                              </shadow>
                                                              <block type="variables_get" id="aCzw!gP7nj0?1gbeXPWb">
                                                                <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="AT2">
                                                          <block type="math_number" id="?tFNC,X$wUa-0~:HCd)0">
                                                            <field name="NUM">2</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="ADD3">
                                                      <block type="text" id="E!LhL,XjIC53v`@.vQRY">
                                                        <field name="TEXT"> Geräten.</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          

          Das ist der vom Stromverbrauch kWh

          <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="y3-!Ta1.arM^iAtsk%#A" x="-1062" y="-237">
            <field name="SCHEDULE">* * * * *</field>
            <statement name="STATEMENT">
              <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                <value name="VALUE">
                  <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                    <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                    <value name="VALUE">
                      <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                        <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plug</field>
                        <value name="LIST">
                          <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                            <field name="TEXT">state[id=*](functions=power_consumption)</field>
                          </block>
                        </value>
                        <statement name="DO">
                          <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                            <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                            <value name="DELTA">
                              <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                    <field name="ATTR">val</field>
                                    <value name="OID">
                                      <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                        <field name="oid">Object ID</field>
                                      </shadow>
                                      <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                        <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="update" id="zP7w0.Gv%Osb}%%8_d,=">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.binding.Stromverbrauch.total_kWh</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="variables_get" id="gsC5K$W,#;LqKw7vzMlI">
                                <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="wiD:-KEN29R0%fmvj{K,">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.binding.Stromverbrauch.kWh_Total_Anzahl_Geräte</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="r/8w{awrzb^R?]2:j%Y-">
                                    <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="mt7a_l#))=_6@q;r#7Ye">
                                    <field name="Severity">log</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="5988F+t:=$(+y8r]Uw(x">
                                        <field name="TEXT">test</field>
                                      </shadow>
                                      <block type="variables_get" id="sl+:m::Tf6C+]NBYJmnf">
                                        <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          

          Es sind 6 Geräte zählt auch richtig zusammen nur leider die kWh nicht.

          und alexa benennt alle Geräte aber keine Werte dazu.

          Gruß
          Mico

          paul53P 3 Antworten Letzte Antwort
          0
          • M Mico

            @paul53

            Guten Morgen,

            so nun hoffe ich es sind die richtigen post

            <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="Efa#FlJ@p?Yuc2R;_FIG" x="-1663" y="-3688">
              <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="ulTB*-|$fF^-}k*`zpSl">
                  <field name="oid">0_userdata.0.binding.Stromverbrauch.Alexastrom</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                  <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                  <value name="VALUE">
                    <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                      <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                      <value name="VALUE">
                        <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="$T-aA`]2N|mqLJ#Sj;%N">
                          <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                          <value name="VALUE">
                            <block type="math_number" id="*.45QqqqTiR]G26N!}F)">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="nR#YHsLS1sEsCE)=:8Q}">
                              <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                              <value name="VALUE">
                                <block type="text" id="JxfeT-}[nDfJKWNixP0-">
                                  <field name="TEXT"></field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="VcdbJ[ZEg6)aD5*W!Pzc">
                                  <field name="VAR" id="vTh0raSr}p-!xZ_5Tac?">Watt</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="xtzoa4m;+9)n?$vv[NX)">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                                      <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                      <value name="LIST">
                                        <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                          <field name="TEXT">state[id=*](functions=power_consumption)</field>
                                        </block>
                                      </value>
                                      <statement name="DO">
                                        <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                          <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                          <value name="DELTA">
                                            <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                              <field name="NUM">1</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                              <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                              <value name="DELTA">
                                                <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                                  <field name="ATTR">val</field>
                                                  <value name="OID">
                                                    <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                                      <field name="oid">Object ID</field>
                                                    </shadow>
                                                    <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                                      <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="controls_forEach" id="0oph2k:|^II9K_@E#P!)">
                                          <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                          <value name="LIST">
                                            <block type="selector" id="gg25viywl-Rm!Mjxafhv">
                                              <field name="TEXT">state[id=*](functions=Strommessung)</field>
                                            </block>
                                          </value>
                                          <statement name="DO">
                                            <block type="math_change" id="$U5QEzHFb_T),^3a=/ox">
                                              <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                                              <value name="DELTA">
                                                <shadow type="math_number" id="^^V,*gi(-GE3sbIa9fSp">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                              </value>
                                              <next>
                                                <block type="controls_if" id="4Qac65vVYC*mj{PC5$`~">
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="+qvtC2bL@5xw#tmz[gTa">
                                                      <field name="OP">GT</field>
                                                      <value name="A">
                                                        <block type="get_value_var" id=":1{hW-_.]ggz:qvXLn/B">
                                                          <field name="ATTR">val</field>
                                                          <value name="OID">
                                                            <shadow type="text" id="C^_y)x}0WB3|YD`C+1Xm">
                                                              <field name="TEXT"></field>
                                                            </shadow>
                                                            <block type="variables_get" id="3@,=S#2CUo~4ZdYHulk1">
                                                              <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="Nv@7[)pa`:l{b;C:1@gC">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="text_append" id="gt.FVwQ~``f371pa+h^`">
                                                      <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="359Mx-xZ0Gkv/ylM!e3;">
                                                          <field name="TEXT"></field>
                                                        </shadow>
                                                        <block type="text_join" id="fDn;%yn@L~E7fH-r)LJo">
                                                          <mutation items="2"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="5(Iy-sO8y7c,1`+/LIF%">
                                                              <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="text_getSubstring" id="d=75(a.@^24VM1$(M#-u">
                                                              <mutation at1="false" at2="true"></mutation>
                                                              <field name="WHERE1">FIRST</field>
                                                              <field name="WHERE2">FROM_END</field>
                                                              <value name="STRING">
                                                                <block type="get_value_var" id="iH,9(!i.px.Tccd^*M3#">
                                                                  <field name="ATTR">common.name</field>
                                                                  <value name="OID">
                                                                    <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                      <field name="oid">Object ID</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="Lq=r`BIO/Z=g32SS2%_Q">
                                                                      <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="AT2">
                                                                <block type="math_number" id="l6OP:3)gFw{+jI]aFN$j">
                                                                  <field name="NUM">2</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="debug" id="x%WStX/{fnS%vA07n$9J">
                                                      <field name="Severity">log</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="s9TJ|/nCL6rn)3#aho6t">
                                                          <field name="TEXT">test</field>
                                                        </shadow>
                                                        <block type="text_join" id="X^!8$T9E9d+:fTPI3,.V">
                                                          <mutation items="3"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="A@3g6~q`qS7+`pv@zOFv">
                                                              <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="text_getSubstring" id="avV8VhH,/1BI{?mkk$V=">
                                                              <mutation at1="false" at2="true"></mutation>
                                                              <field name="WHERE1">FIRST</field>
                                                              <field name="WHERE2">FROM_END</field>
                                                              <value name="STRING">
                                                                <block type="get_value_var" id="Kae|/Wh[Z#${`L[BWXin">
                                                                  <field name="ATTR">common.name</field>
                                                                  <value name="OID">
                                                                    <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                      <field name="oid">Object ID</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="v];mab^Hy%HlYS1+:4Rr">
                                                                      <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="AT2">
                                                                <block type="math_number" id="0qy|%:y8h#Sh_LZs+]i7">
                                                                  <field name="NUM">2</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="ADD2">
                                                            <block type="variables_get" id="JR%*7!]Ys?#m_cF3OEHo">
                                                              <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="debug" id="+O:b-,w{IJa{hHuXH~Q;">
                                                          <field name="Severity">log</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="uPC4%)m6,V)JZ~?tNR(:">
                                                              <field name="TEXT">test</field>
                                                            </shadow>
                                                            <block type="variables_get" id="yhtN^=4.44Sawl66b!vD">
                                                              <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="control" id="iubBb/fciz7}ww3~!C`T">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="text_join" id="l!49D^4#|N?p+!]h3Cu*">
                                                  <mutation items="5"></mutation>
                                                  <value name="ADD0">
                                                    <block type="text" id="`S0qG$k$uLQ==[IlO|15">
                                                      <field name="TEXT">Der gesamt Kilowatt Verbrauch beträgt zur Zeit, </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="variables_get" id="k|*y.chIRjdUqy7U3iuI">
                                                      <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD2">
                                                    <block type="text" id="eMqb$!A|DmVp(]#CIM:B">
                                                      <field name="TEXT">, von</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD3">
                                                    <block type="variables_get" id="@mdQ+I^YH=rV**hN!Ue-">
                                                      <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD4">
                                                    <block type="text" id="!LU1Vi+6)ikMzc^$-?#;">
                                                      <field name="TEXT"> Geräten.</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="Wtgq|MGHiH#IPBfj#`?i">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text_join" id="Dg*@]Z^VpTiRZDVHc!D{">
                                                      <mutation items="5"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="G}hUb8wUV*CH+xD}P:,b">
                                                          <field name="TEXT">Der einzelnde Verbrauch beträgt zur Zeit von, </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="text_getSubstring" id="(zY:%zW/0fvTV2*L5LT(">
                                                          <mutation at1="false" at2="true"></mutation>
                                                          <field name="WHERE1">FIRST</field>
                                                          <field name="WHERE2">FROM_END</field>
                                                          <value name="STRING">
                                                            <block type="get_value_var" id="Qq%jlCxpO}y:Ut$gaP*+">
                                                              <field name="ATTR">common.name</field>
                                                              <value name="OID">
                                                                <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                  <field name="oid">Object ID</field>
                                                                </shadow>
                                                                <block type="variables_get" id="aCzw!gP7nj0?1gbeXPWb">
                                                                  <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="AT2">
                                                            <block type="math_number" id="?tFNC,X$wUa-0~:HCd)0">
                                                              <field name="NUM">2</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="text" id="E!LhL,XjIC53v`@.vQRY">
                                                          <field name="TEXT"> Geräten.</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
            

            Das ist der vom Stromverbrauch kWh

            <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="y3-!Ta1.arM^iAtsk%#A" x="-1062" y="-237">
              <field name="SCHEDULE">* * * * *</field>
              <statement name="STATEMENT">
                <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                  <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                  <value name="VALUE">
                    <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                      <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                      <value name="VALUE">
                        <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                      <next>
                        <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                          <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plug</field>
                          <value name="LIST">
                            <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                              <field name="TEXT">state[id=*](functions=power_consumption)</field>
                            </block>
                          </value>
                          <statement name="DO">
                            <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                              <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                              <value name="DELTA">
                                <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                  <field name="NUM">1</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                  <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                  <value name="DELTA">
                                    <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                      <field name="ATTR">val</field>
                                      <value name="OID">
                                        <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                          <field name="oid">Object ID</field>
                                        </shadow>
                                        <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                          <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <next>
                            <block type="update" id="zP7w0.Gv%Osb}%%8_d,=">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.binding.Stromverbrauch.total_kWh</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="gsC5K$W,#;LqKw7vzMlI">
                                  <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="wiD:-KEN29R0%fmvj{K,">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.binding.Stromverbrauch.kWh_Total_Anzahl_Geräte</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="r/8w{awrzb^R?]2:j%Y-">
                                      <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="debug" id="mt7a_l#))=_6@q;r#7Ye">
                                      <field name="Severity">log</field>
                                      <value name="TEXT">
                                        <shadow type="text" id="5988F+t:=$(+y8r]Uw(x">
                                          <field name="TEXT">test</field>
                                        </shadow>
                                        <block type="variables_get" id="sl+:m::Tf6C+]NBYJmnf">
                                          <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
            

            Es sind 6 Geräte zählt auch richtig zusammen nur leider die kWh nicht.

            und alexa benennt alle Geräte aber keine Werte dazu.

            Gruß
            Mico

            paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von paul53
            #16

            @mico sagte: hoffe ich es sind die richtigen post

            Habe das Alexa-Blockly modifiziert und korrigiert:

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable id="Ytfc(-6$Cdm6*w;91ARD">total kWh</variable>
               <variable id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</variable>
               <variable id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</variable>
               <variable id="=F.$d#jlt7ynTV~jTSF5">Plugon</variable>
               <variable id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</variable>
               <variable id="sqi6483J7j.fB_t~4OZy">Leistung</variable>
             </variables>
             <block type="on_ext" id="Efa#FlJ@p?Yuc2R;_FIG" x="-1663" y="-3688">
               <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="ulTB*-|$fF^-}k*`zpSl">
                   <field name="oid">0_userdata.0.binding.Stromverbrauch.Alexastrom</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                   <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                   <value name="VALUE">
                     <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                       <field name="NUM">0</field>
                     </block>
                   </value>
                   <next>
                     <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                       <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                       <value name="VALUE">
                         <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                           <field name="NUM">0</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="nR#YHsLS1sEsCE)=:8Q}">
                           <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                           <value name="VALUE">
                             <block type="text" id="+6]cY%T?nJQ-ciYy|dWS">
                               <field name="TEXT">Es sind folgende Stromverbraucher, </field>
                             </block>
                           </value>
                           <next>
                             <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                               <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                               <value name="LIST">
                                 <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                   <field name="TEXT">state[id=*](functions=power_consumption)</field>
                                 </block>
                               </value>
                               <statement name="DO">
                                 <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                   <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                   <value name="DELTA">
                                     <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                       <field name="NUM">1</field>
                                     </shadow>
                                   </value>
                                   <next>
                                     <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                       <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                       <value name="DELTA">
                                         <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                           <field name="ATTR">val</field>
                                           <value name="OID">
                                             <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                               <field name="oid">Object ID</field>
                                             </shadow>
                                             <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                               <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <next>
                                 <block type="debug" id="fp1Rth86BdEMRD#apoA!">
                                   <field name="Severity">log</field>
                                   <value name="TEXT">
                                     <shadow type="text" id="uO[3Pzjd3`BtG9K;:Fw~">
                                       <field name="TEXT">test</field>
                                     </shadow>
                                     <block type="text_join" id="dj(hsj}+Iw(uQw3a1zZ,">
                                       <mutation items="2"></mutation>
                                       <value name="ADD0">
                                         <block type="text" id="~vN|ukOU^pTuulPjstcK">
                                           <field name="TEXT">Verbrauch (kWh): </field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="variables_get" id="-%x*.-8EmYq2_0Owjc7H">
                                           <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="controls_forEach" id="0oph2k:|^II9K_@E#P!)">
                                       <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                       <value name="LIST">
                                         <block type="selector" id="gg25viywl-Rm!Mjxafhv">
                                           <field name="TEXT">state[id=*](functions=Strommessung)</field>
                                         </block>
                                       </value>
                                       <statement name="DO">
                                         <block type="variables_set" id="uE5I]hxB2B_?6X3}CgPS">
                                           <field name="VAR" id="sqi6483J7j.fB_t~4OZy">Leistung</field>
                                           <value name="VALUE">
                                             <block type="get_value_var" id=":1{hW-_.]ggz:qvXLn/B">
                                               <field name="ATTR">val</field>
                                               <value name="OID">
                                                 <shadow type="text" id="C^_y)x}0WB3|YD`C+1Xm">
                                                   <field name="TEXT"></field>
                                                 </shadow>
                                                 <block type="variables_get" id="3@,=S#2CUo~4ZdYHulk1">
                                                   <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="controls_if" id="4Qac65vVYC*mj{PC5$`~">
                                               <value name="IF0">
                                                 <block type="logic_compare" id="+qvtC2bL@5xw#tmz[gTa">
                                                   <field name="OP">GT</field>
                                                   <value name="A">
                                                     <block type="variables_get" id="eZ@=q+.++3=gBaKbl%8b">
                                                       <field name="VAR" id="sqi6483J7j.fB_t~4OZy">Leistung</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="math_number" id="Nv@7[)pa`:l{b;C:1@gC">
                                                       <field name="NUM">0</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO0">
                                                 <block type="text_append" id="gt.FVwQ~``f371pa+h^`">
                                                   <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="359Mx-xZ0Gkv/ylM!e3;">
                                                       <field name="TEXT"></field>
                                                     </shadow>
                                                     <block type="text_join" id="fDn;%yn@L~E7fH-r)LJo">
                                                       <mutation items="4"></mutation>
                                                       <value name="ADD0">
                                                         <block type="text_getSubstring" id="d=75(a.@^24VM1$(M#-u">
                                                           <mutation at1="false" at2="true"></mutation>
                                                           <field name="WHERE1">FIRST</field>
                                                           <field name="WHERE2">FROM_END</field>
                                                           <value name="STRING">
                                                             <block type="get_value_var" id="iH,9(!i.px.Tccd^*M3#">
                                                               <field name="ATTR">common.name</field>
                                                               <value name="OID">
                                                                 <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                   <field name="oid">Object ID</field>
                                                                 </shadow>
                                                                 <block type="variables_get" id="Lq=r`BIO/Z=g32SS2%_Q">
                                                                   <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <value name="AT2">
                                                             <block type="math_number" id="l6OP:3)gFw{+jI]aFN$j">
                                                               <field name="NUM">2</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <value name="ADD1">
                                                         <block type="text" id="{%#f.@6@~[P+AGybs-%C">
                                                           <field name="TEXT"> mit </field>
                                                         </block>
                                                       </value>
                                                       <value name="ADD2">
                                                         <block type="variables_get" id="}*6bk|nr@iF2hkF8ryS8">
                                                           <field name="VAR" id="sqi6483J7j.fB_t~4OZy">Leistung</field>
                                                         </block>
                                                       </value>
                                                       <value name="ADD3">
                                                         <block type="text" id="slbROE8c==2xS)=I~Fa;">
                                                           <field name="TEXT"> Watt, </field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="debug" id="x%WStX/{fnS%vA07n$9J">
                                                       <field name="Severity">log</field>
                                                       <value name="TEXT">
                                                         <shadow type="text" id="s9TJ|/nCL6rn)3#aho6t">
                                                           <field name="TEXT">test</field>
                                                         </shadow>
                                                         <block type="text_join" id="X^!8$T9E9d+:fTPI3,.V">
                                                           <mutation items="2"></mutation>
                                                           <value name="ADD0">
                                                             <block type="text" id="YzDi:MgF6_|wJ%2;!|)G">
                                                               <field name="TEXT">Stromverbraucher: </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD1">
                                                             <block type="text_getSubstring" id="avV8VhH,/1BI{?mkk$V=">
                                                               <mutation at1="false" at2="true"></mutation>
                                                               <field name="WHERE1">FIRST</field>
                                                               <field name="WHERE2">FROM_END</field>
                                                               <value name="STRING">
                                                                 <block type="get_value_var" id="Kae|/Wh[Z#${`L[BWXin">
                                                                   <field name="ATTR">common.name</field>
                                                                   <value name="OID">
                                                                     <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                       <field name="oid">Object ID</field>
                                                                     </shadow>
                                                                     <block type="variables_get" id="v];mab^Hy%HlYS1+:4Rr">
                                                                       <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <value name="AT2">
                                                                 <block type="math_number" id="0qy|%:y8h#Sh_LZs+]i7">
                                                                   <field name="NUM">2</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <next>
                                         <block type="control" id="iubBb/fciz7}ww3~!C`T">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="text_join" id="l!49D^4#|N?p+!]h3Cu*">
                                               <mutation items="5"></mutation>
                                               <value name="ADD0">
                                                 <block type="text" id="`S0qG$k$uLQ==[IlO|15">
                                                   <field name="TEXT">Der gesamt Verbrauch beträgt zur Zeit, </field>
                                                 </block>
                                               </value>
                                               <value name="ADD1">
                                                 <block type="variables_get" id="k|*y.chIRjdUqy7U3iuI">
                                                   <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                 </block>
                                               </value>
                                               <value name="ADD2">
                                                 <block type="text" id="eMqb$!A|DmVp(]#CIM:B">
                                                   <field name="TEXT"> Kilowattstunden, von</field>
                                                 </block>
                                               </value>
                                               <value name="ADD3">
                                                 <block type="variables_get" id="@mdQ+I^YH=rV**hN!Ue-">
                                                   <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                 </block>
                                               </value>
                                               <value name="ADD4">
                                                 <block type="text" id="!LU1Vi+6)ikMzc^$-?#;">
                                                   <field name="TEXT"> Geräten.</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="timeouts_wait" id="|pB:~#q^Eyz|i;`,7-Ea">
                                               <field name="DELAY">2</field>
                                               <field name="UNIT">sec</field>
                                               <next>
                                                 <block type="control" id="Wtgq|MGHiH#IPBfj#`?i">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="text_join" id="Dg*@]Z^VpTiRZDVHc!D{">
                                                       <mutation items="2"></mutation>
                                                       <value name="ADD0">
                                                         <block type="variables_get" id="n+n(I44kG$)@~T^(basC">
                                                           <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                         </block>
                                                       </value>
                                                       <value name="ADD1">
                                                         <block type="text" id="X]Cz~KP)`lpC##H_O+^U">
                                                           <field name="TEXT">eingeschaltet</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
            </xml>
            

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            1 Antwort Letzte Antwort
            0
            • M Mico

              @paul53

              Guten Morgen,

              so nun hoffe ich es sind die richtigen post

              <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="Efa#FlJ@p?Yuc2R;_FIG" x="-1663" y="-3688">
                <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="ulTB*-|$fF^-}k*`zpSl">
                    <field name="oid">0_userdata.0.binding.Stromverbrauch.Alexastrom</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                    <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                    <value name="VALUE">
                      <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                        <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                        <value name="VALUE">
                          <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="$T-aA`]2N|mqLJ#Sj;%N">
                            <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                            <value name="VALUE">
                              <block type="math_number" id="*.45QqqqTiR]G26N!}F)">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="nR#YHsLS1sEsCE)=:8Q}">
                                <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                <value name="VALUE">
                                  <block type="text" id="JxfeT-}[nDfJKWNixP0-">
                                    <field name="TEXT"></field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="VcdbJ[ZEg6)aD5*W!Pzc">
                                    <field name="VAR" id="vTh0raSr}p-!xZ_5Tac?">Watt</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="xtzoa4m;+9)n?$vv[NX)">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                                        <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                        <value name="LIST">
                                          <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                            <field name="TEXT">state[id=*](functions=power_consumption)</field>
                                          </block>
                                        </value>
                                        <statement name="DO">
                                          <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                            <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                            <value name="DELTA">
                                              <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                                <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                <value name="DELTA">
                                                  <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                                    <field name="ATTR">val</field>
                                                    <value name="OID">
                                                      <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                                        <field name="oid">Object ID</field>
                                                      </shadow>
                                                      <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                                        <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="controls_forEach" id="0oph2k:|^II9K_@E#P!)">
                                            <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                            <value name="LIST">
                                              <block type="selector" id="gg25viywl-Rm!Mjxafhv">
                                                <field name="TEXT">state[id=*](functions=Strommessung)</field>
                                              </block>
                                            </value>
                                            <statement name="DO">
                                              <block type="math_change" id="$U5QEzHFb_T),^3a=/ox">
                                                <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                                                <value name="DELTA">
                                                  <shadow type="math_number" id="^^V,*gi(-GE3sbIa9fSp">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="controls_if" id="4Qac65vVYC*mj{PC5$`~">
                                                    <value name="IF0">
                                                      <block type="logic_compare" id="+qvtC2bL@5xw#tmz[gTa">
                                                        <field name="OP">GT</field>
                                                        <value name="A">
                                                          <block type="get_value_var" id=":1{hW-_.]ggz:qvXLn/B">
                                                            <field name="ATTR">val</field>
                                                            <value name="OID">
                                                              <shadow type="text" id="C^_y)x}0WB3|YD`C+1Xm">
                                                                <field name="TEXT"></field>
                                                              </shadow>
                                                              <block type="variables_get" id="3@,=S#2CUo~4ZdYHulk1">
                                                                <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="Nv@7[)pa`:l{b;C:1@gC">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="text_append" id="gt.FVwQ~``f371pa+h^`">
                                                        <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="359Mx-xZ0Gkv/ylM!e3;">
                                                            <field name="TEXT"></field>
                                                          </shadow>
                                                          <block type="text_join" id="fDn;%yn@L~E7fH-r)LJo">
                                                            <mutation items="2"></mutation>
                                                            <value name="ADD0">
                                                              <block type="text" id="5(Iy-sO8y7c,1`+/LIF%">
                                                                <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                              </block>
                                                            </value>
                                                            <value name="ADD1">
                                                              <block type="text_getSubstring" id="d=75(a.@^24VM1$(M#-u">
                                                                <mutation at1="false" at2="true"></mutation>
                                                                <field name="WHERE1">FIRST</field>
                                                                <field name="WHERE2">FROM_END</field>
                                                                <value name="STRING">
                                                                  <block type="get_value_var" id="iH,9(!i.px.Tccd^*M3#">
                                                                    <field name="ATTR">common.name</field>
                                                                    <value name="OID">
                                                                      <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                        <field name="oid">Object ID</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="Lq=r`BIO/Z=g32SS2%_Q">
                                                                        <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="AT2">
                                                                  <block type="math_number" id="l6OP:3)gFw{+jI]aFN$j">
                                                                    <field name="NUM">2</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="debug" id="x%WStX/{fnS%vA07n$9J">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="s9TJ|/nCL6rn)3#aho6t">
                                                            <field name="TEXT">test</field>
                                                          </shadow>
                                                          <block type="text_join" id="X^!8$T9E9d+:fTPI3,.V">
                                                            <mutation items="3"></mutation>
                                                            <value name="ADD0">
                                                              <block type="text" id="A@3g6~q`qS7+`pv@zOFv">
                                                                <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                              </block>
                                                            </value>
                                                            <value name="ADD1">
                                                              <block type="text_getSubstring" id="avV8VhH,/1BI{?mkk$V=">
                                                                <mutation at1="false" at2="true"></mutation>
                                                                <field name="WHERE1">FIRST</field>
                                                                <field name="WHERE2">FROM_END</field>
                                                                <value name="STRING">
                                                                  <block type="get_value_var" id="Kae|/Wh[Z#${`L[BWXin">
                                                                    <field name="ATTR">common.name</field>
                                                                    <value name="OID">
                                                                      <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                        <field name="oid">Object ID</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="v];mab^Hy%HlYS1+:4Rr">
                                                                        <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="AT2">
                                                                  <block type="math_number" id="0qy|%:y8h#Sh_LZs+]i7">
                                                                    <field name="NUM">2</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="ADD2">
                                                              <block type="variables_get" id="JR%*7!]Ys?#m_cF3OEHo">
                                                                <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="debug" id="+O:b-,w{IJa{hHuXH~Q;">
                                                            <field name="Severity">log</field>
                                                            <value name="TEXT">
                                                              <shadow type="text" id="uPC4%)m6,V)JZ~?tNR(:">
                                                                <field name="TEXT">test</field>
                                                              </shadow>
                                                              <block type="variables_get" id="yhtN^=4.44Sawl66b!vD">
                                                                <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="control" id="iubBb/fciz7}ww3~!C`T">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="text_join" id="l!49D^4#|N?p+!]h3Cu*">
                                                    <mutation items="5"></mutation>
                                                    <value name="ADD0">
                                                      <block type="text" id="`S0qG$k$uLQ==[IlO|15">
                                                        <field name="TEXT">Der gesamt Kilowatt Verbrauch beträgt zur Zeit, </field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD1">
                                                      <block type="variables_get" id="k|*y.chIRjdUqy7U3iuI">
                                                        <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD2">
                                                      <block type="text" id="eMqb$!A|DmVp(]#CIM:B">
                                                        <field name="TEXT">, von</field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD3">
                                                      <block type="variables_get" id="@mdQ+I^YH=rV**hN!Ue-">
                                                        <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD4">
                                                      <block type="text" id="!LU1Vi+6)ikMzc^$-?#;">
                                                        <field name="TEXT"> Geräten.</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="Wtgq|MGHiH#IPBfj#`?i">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="text_join" id="Dg*@]Z^VpTiRZDVHc!D{">
                                                        <mutation items="5"></mutation>
                                                        <value name="ADD0">
                                                          <block type="text" id="G}hUb8wUV*CH+xD}P:,b">
                                                            <field name="TEXT">Der einzelnde Verbrauch beträgt zur Zeit von, </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="text_getSubstring" id="(zY:%zW/0fvTV2*L5LT(">
                                                            <mutation at1="false" at2="true"></mutation>
                                                            <field name="WHERE1">FIRST</field>
                                                            <field name="WHERE2">FROM_END</field>
                                                            <value name="STRING">
                                                              <block type="get_value_var" id="Qq%jlCxpO}y:Ut$gaP*+">
                                                                <field name="ATTR">common.name</field>
                                                                <value name="OID">
                                                                  <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                    <field name="oid">Object ID</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="aCzw!gP7nj0?1gbeXPWb">
                                                                    <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="AT2">
                                                              <block type="math_number" id="?tFNC,X$wUa-0~:HCd)0">
                                                                <field name="NUM">2</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD3">
                                                          <block type="text" id="E!LhL,XjIC53v`@.vQRY">
                                                            <field name="TEXT"> Geräten.</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
              

              Das ist der vom Stromverbrauch kWh

              <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="y3-!Ta1.arM^iAtsk%#A" x="-1062" y="-237">
                <field name="SCHEDULE">* * * * *</field>
                <statement name="STATEMENT">
                  <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                    <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                    <value name="VALUE">
                      <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                        <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                        <value name="VALUE">
                          <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                            <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plug</field>
                            <value name="LIST">
                              <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                <field name="TEXT">state[id=*](functions=power_consumption)</field>
                              </block>
                            </value>
                            <statement name="DO">
                              <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                    <field name="NUM">1</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                    <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                    <value name="DELTA">
                                      <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                        <field name="ATTR">val</field>
                                        <value name="OID">
                                          <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                            <field name="oid">Object ID</field>
                                          </shadow>
                                          <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                            <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="update" id="zP7w0.Gv%Osb}%%8_d,=">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.binding.Stromverbrauch.total_kWh</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="gsC5K$W,#;LqKw7vzMlI">
                                    <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="update" id="wiD:-KEN29R0%fmvj{K,">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.binding.Stromverbrauch.kWh_Total_Anzahl_Geräte</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id="r/8w{awrzb^R?]2:j%Y-">
                                        <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="debug" id="mt7a_l#))=_6@q;r#7Ye">
                                        <field name="Severity">log</field>
                                        <value name="TEXT">
                                          <shadow type="text" id="5988F+t:=$(+y8r]Uw(x">
                                            <field name="TEXT">test</field>
                                          </shadow>
                                          <block type="variables_get" id="sl+:m::Tf6C+]NBYJmnf">
                                            <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
              

              Es sind 6 Geräte zählt auch richtig zusammen nur leider die kWh nicht.

              und alexa benennt alle Geräte aber keine Werte dazu.

              Gruß
              Mico

              paul53P Offline
              paul53P Offline
              paul53
              schrieb am zuletzt editiert von
              #17

              @mico sagte: leider die kWh nicht.

              Wenn die falsche Variable hochgezählt wird, kann es nicht funktionieren:

              Blockly_temp.JPG

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              1 Antwort Letzte Antwort
              0
              • M Mico

                @paul53

                Guten Morgen,

                so nun hoffe ich es sind die richtigen post

                <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="Efa#FlJ@p?Yuc2R;_FIG" x="-1663" y="-3688">
                  <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="ulTB*-|$fF^-}k*`zpSl">
                      <field name="oid">0_userdata.0.binding.Stromverbrauch.Alexastrom</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                      <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                      <value name="VALUE">
                        <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                          <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                          <value name="VALUE">
                            <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="$T-aA`]2N|mqLJ#Sj;%N">
                              <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                              <value name="VALUE">
                                <block type="math_number" id="*.45QqqqTiR]G26N!}F)">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="nR#YHsLS1sEsCE)=:8Q}">
                                  <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                  <value name="VALUE">
                                    <block type="text" id="JxfeT-}[nDfJKWNixP0-">
                                      <field name="TEXT"></field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="VcdbJ[ZEg6)aD5*W!Pzc">
                                      <field name="VAR" id="vTh0raSr}p-!xZ_5Tac?">Watt</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="xtzoa4m;+9)n?$vv[NX)">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                                          <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                          <value name="LIST">
                                            <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                              <field name="TEXT">state[id=*](functions=power_consumption)</field>
                                            </block>
                                          </value>
                                          <statement name="DO">
                                            <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                              <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                              <value name="DELTA">
                                                <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                              </value>
                                              <next>
                                                <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                                  <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                  <value name="DELTA">
                                                    <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                                      <field name="ATTR">val</field>
                                                      <value name="OID">
                                                        <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                                          <field name="oid">Object ID</field>
                                                        </shadow>
                                                        <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                                          <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="controls_forEach" id="0oph2k:|^II9K_@E#P!)">
                                              <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                              <value name="LIST">
                                                <block type="selector" id="gg25viywl-Rm!Mjxafhv">
                                                  <field name="TEXT">state[id=*](functions=Strommessung)</field>
                                                </block>
                                              </value>
                                              <statement name="DO">
                                                <block type="math_change" id="$U5QEzHFb_T),^3a=/ox">
                                                  <field name="VAR" id="r%b6Pv~I3?S~/*0)]kEr">stromverbraucher</field>
                                                  <value name="DELTA">
                                                    <shadow type="math_number" id="^^V,*gi(-GE3sbIa9fSp">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                  </value>
                                                  <next>
                                                    <block type="controls_if" id="4Qac65vVYC*mj{PC5$`~">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="+qvtC2bL@5xw#tmz[gTa">
                                                          <field name="OP">GT</field>
                                                          <value name="A">
                                                            <block type="get_value_var" id=":1{hW-_.]ggz:qvXLn/B">
                                                              <field name="ATTR">val</field>
                                                              <value name="OID">
                                                                <shadow type="text" id="C^_y)x}0WB3|YD`C+1Xm">
                                                                  <field name="TEXT"></field>
                                                                </shadow>
                                                                <block type="variables_get" id="3@,=S#2CUo~4ZdYHulk1">
                                                                  <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="Nv@7[)pa`:l{b;C:1@gC">
                                                              <field name="NUM">0</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="text_append" id="gt.FVwQ~``f371pa+h^`">
                                                          <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="359Mx-xZ0Gkv/ylM!e3;">
                                                              <field name="TEXT"></field>
                                                            </shadow>
                                                            <block type="text_join" id="fDn;%yn@L~E7fH-r)LJo">
                                                              <mutation items="2"></mutation>
                                                              <value name="ADD0">
                                                                <block type="text" id="5(Iy-sO8y7c,1`+/LIF%">
                                                                  <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text_getSubstring" id="d=75(a.@^24VM1$(M#-u">
                                                                  <mutation at1="false" at2="true"></mutation>
                                                                  <field name="WHERE1">FIRST</field>
                                                                  <field name="WHERE2">FROM_END</field>
                                                                  <value name="STRING">
                                                                    <block type="get_value_var" id="iH,9(!i.px.Tccd^*M3#">
                                                                      <field name="ATTR">common.name</field>
                                                                      <value name="OID">
                                                                        <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                          <field name="oid">Object ID</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="Lq=r`BIO/Z=g32SS2%_Q">
                                                                          <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="AT2">
                                                                    <block type="math_number" id="l6OP:3)gFw{+jI]aFN$j">
                                                                      <field name="NUM">2</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="debug" id="x%WStX/{fnS%vA07n$9J">
                                                          <field name="Severity">log</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="s9TJ|/nCL6rn)3#aho6t">
                                                              <field name="TEXT">test</field>
                                                            </shadow>
                                                            <block type="text_join" id="X^!8$T9E9d+:fTPI3,.V">
                                                              <mutation items="3"></mutation>
                                                              <value name="ADD0">
                                                                <block type="text" id="A@3g6~q`qS7+`pv@zOFv">
                                                                  <field name="TEXT">Es sind folgene Stromverbraucher, </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text_getSubstring" id="avV8VhH,/1BI{?mkk$V=">
                                                                  <mutation at1="false" at2="true"></mutation>
                                                                  <field name="WHERE1">FIRST</field>
                                                                  <field name="WHERE2">FROM_END</field>
                                                                  <value name="STRING">
                                                                    <block type="get_value_var" id="Kae|/Wh[Z#${`L[BWXin">
                                                                      <field name="ATTR">common.name</field>
                                                                      <value name="OID">
                                                                        <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                          <field name="oid">Object ID</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="v];mab^Hy%HlYS1+:4Rr">
                                                                          <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="AT2">
                                                                    <block type="math_number" id="0qy|%:y8h#Sh_LZs+]i7">
                                                                      <field name="NUM">2</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="variables_get" id="JR%*7!]Ys?#m_cF3OEHo">
                                                                  <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="debug" id="+O:b-,w{IJa{hHuXH~Q;">
                                                              <field name="Severity">log</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="uPC4%)m6,V)JZ~?tNR(:">
                                                                  <field name="TEXT">test</field>
                                                                </shadow>
                                                                <block type="variables_get" id="yhtN^=4.44Sawl66b!vD">
                                                                  <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="control" id="iubBb/fciz7}ww3~!C`T">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text_join" id="l!49D^4#|N?p+!]h3Cu*">
                                                      <mutation items="5"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="`S0qG$k$uLQ==[IlO|15">
                                                          <field name="TEXT">Der gesamt Kilowatt Verbrauch beträgt zur Zeit, </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="variables_get" id="k|*y.chIRjdUqy7U3iuI">
                                                          <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="text" id="eMqb$!A|DmVp(]#CIM:B">
                                                          <field name="TEXT">, von</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="variables_get" id="@mdQ+I^YH=rV**hN!Ue-">
                                                          <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD4">
                                                        <block type="text" id="!LU1Vi+6)ikMzc^$-?#;">
                                                          <field name="TEXT"> Geräten.</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="Wtgq|MGHiH#IPBfj#`?i">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="text_join" id="Dg*@]Z^VpTiRZDVHc!D{">
                                                          <mutation items="5"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="G}hUb8wUV*CH+xD}P:,b">
                                                              <field name="TEXT">Der einzelnde Verbrauch beträgt zur Zeit von, </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="text_getSubstring" id="(zY:%zW/0fvTV2*L5LT(">
                                                              <mutation at1="false" at2="true"></mutation>
                                                              <field name="WHERE1">FIRST</field>
                                                              <field name="WHERE2">FROM_END</field>
                                                              <value name="STRING">
                                                                <block type="get_value_var" id="Qq%jlCxpO}y:Ut$gaP*+">
                                                                  <field name="ATTR">common.name</field>
                                                                  <value name="OID">
                                                                    <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                      <field name="oid">Object ID</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="aCzw!gP7nj0?1gbeXPWb">
                                                                      <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="AT2">
                                                                <block type="math_number" id="?tFNC,X$wUa-0~:HCd)0">
                                                                  <field name="NUM">2</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="ADD3">
                                                            <block type="text" id="E!LhL,XjIC53v`@.vQRY">
                                                              <field name="TEXT"> Geräten.</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
                

                Das ist der vom Stromverbrauch kWh

                <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="y3-!Ta1.arM^iAtsk%#A" x="-1062" y="-237">
                  <field name="SCHEDULE">* * * * *</field>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                      <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                      <value name="VALUE">
                        <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                          <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                          <value name="VALUE">
                            <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                              <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plug</field>
                              <value name="LIST">
                                <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                  <field name="TEXT">state[id=*](functions=power_consumption)</field>
                                </block>
                              </value>
                              <statement name="DO">
                                <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                  <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                  <value name="DELTA">
                                    <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                      <field name="NUM">1</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                      <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                      <value name="DELTA">
                                        <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                          <field name="ATTR">val</field>
                                          <value name="OID">
                                            <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                              <field name="oid">Object ID</field>
                                            </shadow>
                                            <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                              <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="update" id="zP7w0.Gv%Osb}%%8_d,=">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.binding.Stromverbrauch.total_kWh</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="gsC5K$W,#;LqKw7vzMlI">
                                      <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="update" id="wiD:-KEN29R0%fmvj{K,">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.binding.Stromverbrauch.kWh_Total_Anzahl_Geräte</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="variables_get" id="r/8w{awrzb^R?]2:j%Y-">
                                          <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="debug" id="mt7a_l#))=_6@q;r#7Ye">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="5988F+t:=$(+y8r]Uw(x">
                                              <field name="TEXT">test</field>
                                            </shadow>
                                            <block type="variables_get" id="sl+:m::Tf6C+]NBYJmnf">
                                              <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
                

                Es sind 6 Geräte zählt auch richtig zusammen nur leider die kWh nicht.

                und alexa benennt alle Geräte aber keine Werte dazu.

                Gruß
                Mico

                paul53P Offline
                paul53P Offline
                paul53
                schrieb am zuletzt editiert von paul53
                #18

                @mico sagte: alexa benennt alle Geräte aber keine Werte dazu.

                Hier als Blockly-Bild, aufgeteilt in zwei Bilder mit 1. Energie

                Blockly_Alexa_Energie.JPG

                und 2. Leistung

                Blockly_Alexa_Leistung.JPG

                <xml xmlns="https://developers.google.com/blockly/xml">
                 <variables>
                   <variable id="Ytfc(-6$Cdm6*w;91ARD">total kWh</variable>
                   <variable id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</variable>
                   <variable id="=F.$d#jlt7ynTV~jTSF5">Plugon</variable>
                   <variable id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</variable>
                   <variable id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</variable>
                   <variable id="sqi6483J7j.fB_t~4OZy">Leistung</variable>
                   <variable id="(fM|(zBy-0~Cfh)qYk?]">Name</variable>
                 </variables>
                 <block type="on_ext" id="Efa#FlJ@p?Yuc2R;_FIG" x="-1663" y="-3688">
                   <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="ulTB*-|$fF^-}k*`zpSl">
                       <field name="oid">0_userdata.0.binding.Stromverbrauch.Alexastrom</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="variables_set" id="g!MtdySaG`6l;n]Y]J+g">
                       <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                       <value name="VALUE">
                         <block type="math_number" id="skF3XK[8kbUts0__aGBM">
                           <field name="NUM">0</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="%4H,FKoIUajum3/nM*(!">
                           <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                           <value name="VALUE">
                             <block type="math_number" id="7V7nK}W@,~Bl).?v_T]2">
                               <field name="NUM">0</field>
                             </block>
                           </value>
                           <next>
                             <block type="controls_forEach" id=";r~t`AXW.MQq9?g-w=}A">
                               <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                               <value name="LIST">
                                 <block type="selector" id="$8x65P;*Jwm(;197ZLZ2">
                                   <field name="TEXT">state[id=*](functions=power_consumption)</field>
                                 </block>
                               </value>
                               <statement name="DO">
                                 <block type="math_change" id="[fCtZF-v,(bM*DqjGhr-">
                                   <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                   <value name="DELTA">
                                     <shadow type="math_number" id="D4~`7NR!c2N6ZM,:J[So">
                                       <field name="NUM">1</field>
                                     </shadow>
                                   </value>
                                   <next>
                                     <block type="math_change" id="jEfM:P3_tyTA!f9C`2C/">
                                       <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                       <value name="DELTA">
                                         <shadow type="math_number" id="?8N8S}7EH60..})HzMQU">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="get_value_var" id="aZufSIQ^b.N5nj3@kLXM">
                                           <field name="ATTR">val</field>
                                           <value name="OID">
                                             <shadow type="field_oid" id="H]nCszjq(nf6~5-wNxu1">
                                               <field name="oid">Object ID</field>
                                             </shadow>
                                             <block type="variables_get" id=",%ml$FKbUfjZNdB=E#O*">
                                               <field name="VAR" id="=F.$d#jlt7ynTV~jTSF5">Plugon</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <next>
                                 <block type="debug" id="fp1Rth86BdEMRD#apoA!">
                                   <field name="Severity">log</field>
                                   <value name="TEXT">
                                     <shadow type="text" id="uO[3Pzjd3`BtG9K;:Fw~">
                                       <field name="TEXT">test</field>
                                     </shadow>
                                     <block type="text_join" id="dj(hsj}+Iw(uQw3a1zZ,">
                                       <mutation items="2"></mutation>
                                       <value name="ADD0">
                                         <block type="text" id="~vN|ukOU^pTuulPjstcK">
                                           <field name="TEXT">Verbrauch (kWh): </field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="variables_get" id="-%x*.-8EmYq2_0Owjc7H">
                                           <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="iubBb/fciz7}ww3~!C`T">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="text_join" id="l!49D^4#|N?p+!]h3Cu*">
                                           <mutation items="5"></mutation>
                                           <value name="ADD0">
                                             <block type="text" id="`S0qG$k$uLQ==[IlO|15">
                                               <field name="TEXT">Der gesamt Verbrauch beträgt zur Zeit, </field>
                                             </block>
                                           </value>
                                           <value name="ADD1">
                                             <block type="variables_get" id="k|*y.chIRjdUqy7U3iuI">
                                               <field name="VAR" id="Ytfc(-6$Cdm6*w;91ARD">total kWh</field>
                                             </block>
                                           </value>
                                           <value name="ADD2">
                                             <block type="text" id="eMqb$!A|DmVp(]#CIM:B">
                                               <field name="TEXT"> Kilowattstunden, von</field>
                                             </block>
                                           </value>
                                           <value name="ADD3">
                                             <block type="variables_get" id="@mdQ+I^YH=rV**hN!Ue-">
                                               <field name="VAR" id="2dM?TCiAT822*Lnos#%w">Anzahl Plugs</field>
                                             </block>
                                           </value>
                                           <value name="ADD4">
                                             <block type="text" id="!LU1Vi+6)ikMzc^$-?#;">
                                               <field name="TEXT"> Geräten.</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="timeouts_wait" id="|pB:~#q^Eyz|i;`,7-Ea">
                                           <field name="DELAY">2</field>
                                           <field name="UNIT">sec</field>
                                           <next>
                                             <block type="variables_set" id="nR#YHsLS1sEsCE)=:8Q}">
                                               <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                               <value name="VALUE">
                                                 <block type="text" id="+6]cY%T?nJQ-ciYy|dWS">
                                                   <field name="TEXT">Es sind folgende Stromverbraucher, </field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="controls_forEach" id="0oph2k:|^II9K_@E#P!)">
                                                   <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                   <value name="LIST">
                                                     <block type="selector" id="gg25viywl-Rm!Mjxafhv">
                                                       <field name="TEXT">state[id=*](functions=Strommessung)</field>
                                                     </block>
                                                   </value>
                                                   <statement name="DO">
                                                     <block type="variables_set" id="uE5I]hxB2B_?6X3}CgPS">
                                                       <field name="VAR" id="sqi6483J7j.fB_t~4OZy">Leistung</field>
                                                       <value name="VALUE">
                                                         <block type="get_value_var" id=":1{hW-_.]ggz:qvXLn/B">
                                                           <field name="ATTR">val</field>
                                                           <value name="OID">
                                                             <shadow type="text" id="C^_y)x}0WB3|YD`C+1Xm">
                                                               <field name="TEXT"></field>
                                                             </shadow>
                                                             <block type="variables_get" id="3@,=S#2CUo~4ZdYHulk1">
                                                               <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="controls_if" id="4Qac65vVYC*mj{PC5$`~">
                                                           <value name="IF0">
                                                             <block type="logic_compare" id="+qvtC2bL@5xw#tmz[gTa">
                                                               <field name="OP">GT</field>
                                                               <value name="A">
                                                                 <block type="variables_get" id="eZ@=q+.++3=gBaKbl%8b">
                                                                   <field name="VAR" id="sqi6483J7j.fB_t~4OZy">Leistung</field>
                                                                 </block>
                                                               </value>
                                                               <value name="B">
                                                                 <block type="math_number" id="Nv@7[)pa`:l{b;C:1@gC">
                                                                   <field name="NUM">0</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <statement name="DO0">
                                                             <block type="variables_set" id="SP@|LyM+;nblxbXFH7oF">
                                                               <field name="VAR" id="(fM|(zBy-0~Cfh)qYk?]">Name</field>
                                                               <value name="VALUE">
                                                                 <block type="text_getSubstring" id="d=75(a.@^24VM1$(M#-u">
                                                                   <mutation at1="false" at2="true"></mutation>
                                                                   <field name="WHERE1">FIRST</field>
                                                                   <field name="WHERE2">FROM_END</field>
                                                                   <value name="STRING">
                                                                     <block type="get_value_var" id="iH,9(!i.px.Tccd^*M3#">
                                                                       <field name="ATTR">common.name</field>
                                                                       <value name="OID">
                                                                         <shadow type="field_oid" id="eoLO;ixj(wMCm}=+_g+h">
                                                                           <field name="oid">Object ID</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="Lq=r`BIO/Z=g32SS2%_Q">
                                                                           <field name="VAR" id=",~#*KjS[0iVt[Ij0|EvB">Stromverbrauch</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <value name="AT2">
                                                                     <block type="math_number" id="l6OP:3)gFw{+jI]aFN$j">
                                                                       <field name="NUM">2</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <next>
                                                                 <block type="text_append" id="gt.FVwQ~``f371pa+h^`">
                                                                   <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                                   <value name="TEXT">
                                                                     <shadow type="text" id="359Mx-xZ0Gkv/ylM!e3;">
                                                                       <field name="TEXT"></field>
                                                                     </shadow>
                                                                     <block type="text_join" id="fDn;%yn@L~E7fH-r)LJo">
                                                                       <mutation items="4"></mutation>
                                                                       <value name="ADD0">
                                                                         <block type="variables_get" id="@BX$P6O]}FRQsUdH(*yJ">
                                                                           <field name="VAR" id="(fM|(zBy-0~Cfh)qYk?]">Name</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="ADD1">
                                                                         <block type="text" id="{%#f.@6@~[P+AGybs-%C">
                                                                           <field name="TEXT"> mit </field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="ADD2">
                                                                         <block type="variables_get" id="}*6bk|nr@iF2hkF8ryS8">
                                                                           <field name="VAR" id="sqi6483J7j.fB_t~4OZy">Leistung</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="ADD3">
                                                                         <block type="text" id="slbROE8c==2xS)=I~Fa;">
                                                                           <field name="TEXT"> Watt, </field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="debug" id="x%WStX/{fnS%vA07n$9J">
                                                                       <field name="Severity">log</field>
                                                                       <value name="TEXT">
                                                                         <shadow type="text" id="s9TJ|/nCL6rn)3#aho6t">
                                                                           <field name="TEXT">test</field>
                                                                         </shadow>
                                                                         <block type="text_join" id="X^!8$T9E9d+:fTPI3,.V">
                                                                           <mutation items="2"></mutation>
                                                                           <value name="ADD0">
                                                                             <block type="text" id="YzDi:MgF6_|wJ%2;!|)G">
                                                                               <field name="TEXT">Stromverbraucher: </field>
                                                                             </block>
                                                                           </value>
                                                                           <value name="ADD1">
                                                                             <block type="variables_get" id="l^[fWd8Z6occc$Hm3s^a">
                                                                               <field name="VAR" id="(fM|(zBy-0~Cfh)qYk?]">Name</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </statement>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                   <next>
                                                     <block type="control" id="Wtgq|MGHiH#IPBfj#`?i">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">alias.0.Sprachausgabe kino.Sprache</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text_join" id="Dg*@]Z^VpTiRZDVHc!D{">
                                                           <mutation items="2"></mutation>
                                                           <value name="ADD0">
                                                             <block type="variables_get" id="n+n(I44kG$)@~T^(basC">
                                                               <field name="VAR" id="m4EI8`q`G,HxmiaR6GJ]">Name Stromverbraucher</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD1">
                                                             <block type="text" id="X]Cz~KP)`lpC##H_O+^U">
                                                               <field name="TEXT">eingeschaltet</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
                </xml>
                

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                1 Antwort Letzte Antwort
                0
                • M Mico

                  @paul53
                  Guten Morgen
                  Ich habe die Variablen getauscht.

                  Ich hoffe das sind die richtigen Export der Blocklys

                  Als erstes vom Blockly Stromverbrauch

                  13.4.2024, 05:32:54.255	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.Stromverbrauch
                  13.4.2024, 05:32:54.263	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: registered 12 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                  13.4.2024, 05:32:55.025	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:13:3)
                  13.4.2024, 05:33:00.031	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
                  13.4.2024, 05:33:00.034	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
                  13.4.2024, 05:33:00.035	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
                  13.4.2024, 05:33:00.037	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
                  13.4.2024, 05:33:00.038	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
                  13.4.2024, 05:33:00.040	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:53:67)
                  13.4.2024, 05:33:00.041	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:55:3)
                  13.4.2024, 05:33:00.043	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:56:3)
                  13.4.2024, 05:33:00.045	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.Stromverbrauch: 0
                  13.4.2024, 05:33:15.925	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:41:3)
                  13.4.2024, 05:33:22.394	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.Stromverbrauch:6:3)
                  

                  und der vom Alexa Blockly

                  13.4.2024, 05:20:54.415	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
                  13.4.2024, 05:23:01.898	[info ]: javascript.0 (51536) Stop script script.js.common.Binding.Stromwerte.alexa_stromausgabe
                  13.4.2024, 05:23:51.775	[info ]: javascript.0 (51536) Start javascript script.js.common.Binding.Stromwerte.alexa_stromausgabe
                  13.4.2024, 05:23:51.781	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                  13.4.2024, 05:31:15.008	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
                  13.4.2024, 05:31:15.010	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
                  13.4.2024, 05:31:15.012	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
                  13.4.2024, 05:31:15.013	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
                  13.4.2024, 05:31:15.014	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
                  13.4.2024, 05:31:15.015	[warn ]: javascript.0 (51536)     at Object.<anonymous> (script.js.common.Binding.Stromwerte.alexa_stromausgabe:21:67)
                  13.4.2024, 05:31:15.044	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Büro Computer 
                  13.4.2024, 05:31:15.046	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Fernseher Stube 
                  13.4.2024, 05:31:15.050	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Gefrierschrank Keller 
                  13.4.2024, 05:31:15.052	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Küche Steckdose 
                  13.4.2024, 05:31:15.055	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Raspberry 
                  13.4.2024, 05:31:15.058	[info ]: javascript.0 (51536) script.js.common.Binding.Stromwerte.alexa_stromausgabe: Es sind folgeneStromverbraucher, Waschküche Steckdose 
                  

                  Im Blockly Stromverbrauch gibt er jetzt die Anzahl der Geräte richtig aus aber zählt nicht die kWh zusammen die bleiben bei 0

                  Im Blockly Alexa werden die Geräte aufgeführt leider aber nicht die entsprechenden Wattzahlen, bzw ein gesamt kWh Verbrauch.

                  Danke für deine Mühen und Geduld mit mir.
                  PS. die Meisten Blocklys habe ich aus Videos ohne wirklich zu wissen wa diese machen deswegen wahrscheinlich auch das Blockly Modul schreibe objekt id_sensor kommt aus dem Script sind Fenster offen.

                  Gruß
                  Mico

                  paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb am zuletzt editiert von
                  #19

                  @mico sagte: Als erstes vom Blockly Stromverbrauch

                  Die beiden Datenpunkte sind vom Typ "Zahl"?

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  M 1 Antwort Letzte Antwort
                  0
                  • paul53P paul53

                    @mico sagte: Als erstes vom Blockly Stromverbrauch

                    Die beiden Datenpunkte sind vom Typ "Zahl"?

                    M Offline
                    M Offline
                    Mico
                    schrieb am zuletzt editiert von
                    #20

                    @paul53

                    Vom Typ Zeichenkette String also nicht Boolan

                    Mit deinem modifiezirten Blockly haut das wohl schon sehr gut hin werde heute im laufe des Tages nochmals genauer nachhöhren können.

                    Gibt es auch die Möglichkeit das Alexa dann schon gleich an der richtigen Stelle ein Komma in der Zahl setzt. also 1,02 kWh oder sollte ich einfach den ermittelten Wert dann durch 1000 teilen bevor Alexa diesen ansagt.

                    paul53P 1 Antwort Letzte Antwort
                    0
                    • M Mico

                      @paul53

                      Vom Typ Zeichenkette String also nicht Boolan

                      Mit deinem modifiezirten Blockly haut das wohl schon sehr gut hin werde heute im laufe des Tages nochmals genauer nachhöhren können.

                      Gibt es auch die Möglichkeit das Alexa dann schon gleich an der richtigen Stelle ein Komma in der Zahl setzt. also 1,02 kWh oder sollte ich einfach den ermittelten Wert dann durch 1000 teilen bevor Alexa diesen ansagt.

                      paul53P Offline
                      paul53P Offline
                      paul53
                      schrieb am zuletzt editiert von
                      #21

                      @mico sagte: Vom Typ Zeichenkette String also nicht Boolan

                      Sie müssen vom Typ "Zahl" sein.

                      @mico sagte in Stromverbraucher: zusammenzählen:

                      Alexa dann schon gleich an der richtigen Stelle ein Komma in der Zahl setzt

                      Von Alexa habe ich keine Ahnung.

                      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                      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

                      461

                      Online

                      32.6k

                      Benutzer

                      82.3k

                      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