<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Auswertung vieler &quot;States&quot; auf einmal.]]></title><description><![CDATA[<p dir="auto">Hallo zusammen,</p>
<p dir="auto">ich möchte gerne folgendes.</p>
<p dir="auto">Wenn alle Heizungen aus sind mache etwas. Oder wenn alle Fenster zu sind mache etwas.</p>
<p dir="auto">Wie stelle ich das an? Kann man eine "Liste" erstellen die dann als "eine" Einheit betrachtet wird die dann "einen" Zustand einnimmt?</p>
<p dir="auto">Grüße<br />
Manfred</p>
]]></description><link>https://forum.iobroker.net/topic/64818/auswertung-vieler-states-auf-einmal</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 15:00:59 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/64818.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Apr 2023 19:29:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 14:35:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> sagte in <a href="/post/981783">Auswertung vieler "States" auf einmal.</a>:</p>
<blockquote>
<p dir="auto">War nicht richtig?</p>
</blockquote>
<p dir="auto">keine Ahnung?<br />
Was soll der DP bewirken?<br />
eigene DP "tun" nichts.</p>
]]></description><link>https://forum.iobroker.net/post/981887</link><guid isPermaLink="true">https://forum.iobroker.net/post/981887</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sat, 22 Apr 2023 14:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 10:58:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mickym" aria-label="Profile: mickym">@<bdi>mickym</bdi></a><br />
Oh! Danke für den Hinweis. Ich war der Meinung, dass das Blockly erst triggert, wenn ALLE States false sind. Wenn dem nicht so ist, muss man das natürlich noch anpassen! Sorry!</p>
]]></description><link>https://forum.iobroker.net/post/981831</link><guid isPermaLink="true">https://forum.iobroker.net/post/981831</guid><dc:creator><![CDATA[badsnoopy667]]></dc:creator><pubDate>Sat, 22 Apr 2023 10:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 10:40:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/badsnoopy667" aria-label="Profile: badsnoopy667">@<bdi>badsnoopy667</bdi></a> sagte in <a href="/post/981805">Auswertung vieler "States" auf einmal.</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a><br />
Wenn das nicht unendlich lange Listen sind die da zusammengefasst werden sollen, kann man das mit Blockly mMn so lösen:</p>
<p dir="auto"><img src="/assets/uploads/files/1682155782971-mache-etwas.png" alt="mache etwas.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Alternativ kann man auch mit dem Szenen-Adapter arbeiten und Szenen anlegen und dann auf den Status einer Szene triggern.</p>
</blockquote>
<p dir="auto">Das ist halt mE nicht das, da Du ja nur auf den EINEN Wert eines der von Dir angegebenen Objekte reagierst. Die Anforderung war aber, dass Du mit EINEM Trigger gleich den Gesamtstatus aller Objekte ermitteln kannst. Also wie in meinem Beispiel ist eines dieser Geräte EIN geschaltet oder sind ALLE ausgeschaltet. Das hätte ich mit der Auswertung VIELER States aufeinmal verstanden.</p>
]]></description><link>https://forum.iobroker.net/post/981820</link><guid isPermaLink="true">https://forum.iobroker.net/post/981820</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Sat, 22 Apr 2023 10:40:09 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 10:56:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> Der Vollständigkeit will ich Dir das vollständige Blockly über das Objekt noch zeigen - ist eigentlich nicht weiter schwierig, da Du Dir nur einen Datenpunkt für den Gesamtstatus aussuchen musst und oben halt die ganzen Trigger.</p>
<p dir="auto">Ich habe alles in ein Blockly gepackt, aber das funktioniert auch:</p>
<p dir="auto"><img src="/assets/uploads/files/1682159012514-fb5a8bfc-ee72-4cc2-9bf6-1aa15669f234-image-resized.png" alt="fb5a8bfc-ee72-4cc2-9bf6-1aa15669f234-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Sprich den Datenpunkt den Du mit dem Objekt beschreibst, triggert gleichzeitig und wertet aus. ;) In diesem Fall mit einer ODER verknüpfung. Das Schöne an dieser Variante ist, dass Du nicht wissen musst wieviele States Du miteinander verknüpfen musst:</p>
<p dir="auto">Du siehst als ERGEBNIS hast Du immer, ob ein Geräte eingeschaltet ist oder alle ausgeschaltet sind, egal welches Gerät eingeschaltet ist:</p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>&lt;xml xmlns="https://developers.google.com/blockly/xml"&gt;
 &lt;variables&gt;
   &lt;variable id="bq5jga7TC-f@LCDhpZh."&gt;object&lt;/variable&gt;
   &lt;variable id="Mmdyn9mwz@F]Y4#{h/%a"&gt;topic&lt;/variable&gt;
   &lt;variable id="a/crk2UE78?HjQxVhqZb"&gt;payload&lt;/variable&gt;
   &lt;variable id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/variable&gt;
 &lt;/variables&gt;
 &lt;block type="procedures_defcustomreturn" id="s-Qa*`D#SWcHOzxzKfAp" x="63" y="13"&gt;
   &lt;mutation statements="false"&gt;
     &lt;arg name="object" varid="bq5jga7TC-f@LCDhpZh."&gt;&lt;/arg&gt;
     &lt;arg name="topic" varid="Mmdyn9mwz@F]Y4#{h/%a"&gt;&lt;/arg&gt;
     &lt;arg name="payload" varid="a/crk2UE78?HjQxVhqZb"&gt;&lt;/arg&gt;
   &lt;/mutation&gt;
   &lt;field name="NAME"&gt;aktualisiere Objekt&lt;/field&gt;
   &lt;field name="SCRIPT"&gt;bGV0IG9iaiA9IG9iamVjdCA/IEpTT04ucGFyc2Uob2JqZWN0KSA6IHt9Ow0Kb2JqW3RvcGljXSA9IHBheWxvYWQ7DQpyZXR1cm4gb2JqOw==&lt;/field&gt;
   &lt;comment pinned="false" h="80" w="160"&gt;Beschreibe diese Funktion …&lt;/comment&gt;
 &lt;/block&gt;
 &lt;block type="on_ext" id="*r2uUmu-uT%[lG+dMGwP" x="38" y="63"&gt;
   &lt;mutation xmlns="http://www.w3.org/1999/xhtml" items="2"&gt;&lt;/mutation&gt;
   &lt;field name="CONDITION"&gt;ne&lt;/field&gt;
   &lt;field name="ACK_CONDITION"&gt;&lt;/field&gt;
   &lt;value name="OID0"&gt;
     &lt;shadow type="field_oid" id="sJEm/XPcq~3aM/c(B1cR"&gt;
       &lt;field name="oid"&gt;alias.0.schalter.ku_kaffeemaschine.on&lt;/field&gt;
     &lt;/shadow&gt;
   &lt;/value&gt;
   &lt;value name="OID1"&gt;
     &lt;shadow type="field_oid" id="VQ]-v7IIs(::8gnGroyE"&gt;
       &lt;field name="oid"&gt;alias.0.schalter.ku_wasserkocher.on&lt;/field&gt;
     &lt;/shadow&gt;
   &lt;/value&gt;
   &lt;statement name="STATEMENT"&gt;
     &lt;block type="variables_set" id="K9+[YE#FjWxl!^)fd0H6"&gt;
       &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
       &lt;value name="VALUE"&gt;
         &lt;block type="get_value" id="B81FcYeMf|T:{BqC/6X7"&gt;
           &lt;field name="ATTR"&gt;val&lt;/field&gt;
           &lt;field name="OID"&gt;0_userdata.0.test0.test.gesamtstatus&lt;/field&gt;
         &lt;/block&gt;
       &lt;/value&gt;
       &lt;next&gt;
         &lt;block type="variables_set" id="YXhrzgFZ0vm.$YkE5+#r"&gt;
           &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
           &lt;value name="VALUE"&gt;
             &lt;block type="procedures_callcustomreturn" id="vGKX!G~0V3p//hlLtV+M"&gt;
               &lt;mutation name="aktualisiere Objekt"&gt;
                 &lt;arg name="object"&gt;&lt;/arg&gt;
                 &lt;arg name="topic"&gt;&lt;/arg&gt;
                 &lt;arg name="payload"&gt;&lt;/arg&gt;
               &lt;/mutation&gt;
               &lt;value name="ARG0"&gt;
                 &lt;block type="variables_get" id="u@t=)X:fPF$TV$yG-eNl"&gt;
                   &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
               &lt;value name="ARG1"&gt;
                 &lt;block type="on_source" id="(_MJ2|KJIYlQWGM,^F|J"&gt;
                   &lt;field name="ATTR"&gt;id&lt;/field&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
               &lt;value name="ARG2"&gt;
                 &lt;block type="on_source" id="kTLM3oN:sOZ/lvm3kI@^"&gt;
                   &lt;field name="ATTR"&gt;state.val&lt;/field&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
             &lt;/block&gt;
           &lt;/value&gt;
           &lt;next&gt;
             &lt;block type="update" id="]xf!.rB%fic?+#o,hrgh"&gt;
               &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
               &lt;field name="OID"&gt;0_userdata.0.test0.test.gesamtstatus&lt;/field&gt;
               &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
               &lt;value name="VALUE"&gt;
                 &lt;block type="convert_object2json" id="nv:e+@SGgQa^gI9Dv]%="&gt;
                   &lt;field name="PRETTIFY"&gt;FALSE&lt;/field&gt;
                   &lt;value name="VALUE"&gt;
                     &lt;block type="variables_get" id="^@o79UI:+,uho]G5OaR;"&gt;
                       &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
                     &lt;/block&gt;
                   &lt;/value&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
             &lt;/block&gt;
           &lt;/next&gt;
         &lt;/block&gt;
       &lt;/next&gt;
     &lt;/block&gt;
   &lt;/statement&gt;
   &lt;next&gt;
     &lt;block type="on" id="mnH9,(VeaeJB^jj^9x~y"&gt;
       &lt;field name="OID"&gt;0_userdata.0.test0.test.gesamtstatus&lt;/field&gt;
       &lt;field name="CONDITION"&gt;any&lt;/field&gt;
       &lt;field name="ACK_CONDITION"&gt;&lt;/field&gt;
       &lt;statement name="STATEMENT"&gt;
         &lt;block type="variables_set" id="ev+#x)pwG$!u6;ORE+?-"&gt;
           &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
           &lt;value name="VALUE"&gt;
             &lt;block type="convert_jsonata" id="Y!Bd4h25!QC=LtUzmCbH"&gt;
               &lt;value name="EXPRESSION"&gt;
                 &lt;shadow type="text" id="wgjU%hIUFUT31$~7):sP"&gt;
                   &lt;field name="TEXT"&gt;$reduce($.*,function($i, $j){$i or $j})&lt;/field&gt;
                 &lt;/shadow&gt;
               &lt;/value&gt;
               &lt;value name="TARGET"&gt;
                 &lt;block type="convert_json2object" id="`4[U@!1*lz7v9khI:+82"&gt;
                   &lt;value name="VALUE"&gt;
                     &lt;block type="on_source" id="E^v7:G/5#20!6h+EJ:!}"&gt;
                       &lt;field name="ATTR"&gt;state.val&lt;/field&gt;
                     &lt;/block&gt;
                   &lt;/value&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
             &lt;/block&gt;
           &lt;/value&gt;
           &lt;next&gt;
             &lt;block type="controls_if" id="q5hu@zX@y_U16$Tz1LOf"&gt;
               &lt;mutation else="1"&gt;&lt;/mutation&gt;
               &lt;value name="IF0"&gt;
                 &lt;block type="variables_get" id=")upW1TlLrEtPO(2kQygG"&gt;
                   &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
               &lt;statement name="DO0"&gt;
                 &lt;block type="debug" id="eH#$U3_!%PB.KdiREFv4"&gt;
                   &lt;field name="Severity"&gt;log&lt;/field&gt;
                   &lt;value name="TEXT"&gt;
                     &lt;shadow type="text" id="gLY!pi%chFRXrQ/%07SV"&gt;
                       &lt;field name="TEXT"&gt;Es ist mindestens ein Gerät EINGESCHALTET&lt;/field&gt;
                     &lt;/shadow&gt;
                   &lt;/value&gt;
                 &lt;/block&gt;
               &lt;/statement&gt;
               &lt;statement name="ELSE"&gt;
                 &lt;block type="debug" id="{z8agKpnH1Go|JZI`Mv2"&gt;
                   &lt;field name="Severity"&gt;log&lt;/field&gt;
                   &lt;value name="TEXT"&gt;
                     &lt;shadow type="text" id="M)l8VxNjUqb{!-Y)9)^_"&gt;
                       &lt;field name="TEXT"&gt;Alle Geräte sind AUSGESCHALTET&lt;/field&gt;
                     &lt;/shadow&gt;
                   &lt;/value&gt;
                 &lt;/block&gt;
               &lt;/statement&gt;
             &lt;/block&gt;
           &lt;/next&gt;
         &lt;/block&gt;
       &lt;/statement&gt;
     &lt;/block&gt;
   &lt;/next&gt;
 &lt;/block&gt;
&lt;/xml&gt;
</code></pre>
<p dir="auto"></p></section></section><p></p>
<p dir="auto">Wenn Du dann im Blockly auch mit Wildcards triggern kannst, dann WÄRE es fast so einfach wie in NodeRed. ;)</p>
<p dir="auto">Funktioniert halt nur mit true und false (also wahr und falsch). Wenn Du wissen willst, musst Du halt den Wert vorher wandeln. Als bei einer Heizung, wenn Ventilöffnung &gt;0 dann true (wahr), wenn =0 dann false (falsch).</p>
<p dir="auto">In dem Fall ist es ausreichend den Zahlenwert also die Ventilöffnung in einen Logikwert zu konvertieren:</p>
<p dir="auto"><img src="/assets/uploads/files/1682160958495-56812e11-61dd-4eec-b655-9722dbd8a692-image.png" alt="56812e11-61dd-4eec-b655-9722dbd8a692-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">da 0 automatisch auf false und jede Zahl ungleich 0 auf true konvertiert wird.</p>
]]></description><link>https://forum.iobroker.net/post/981817</link><guid isPermaLink="true">https://forum.iobroker.net/post/981817</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Sat, 22 Apr 2023 10:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 10:03:48 GMT]]></title><description><![CDATA[<p dir="auto">Oh ha,</p>
<p dir="auto">ich glaube ich versuche das erst mal mit einer Szene.</p>
]]></description><link>https://forum.iobroker.net/post/981814</link><guid isPermaLink="true">https://forum.iobroker.net/post/981814</guid><dc:creator><![CDATA[Beowolf]]></dc:creator><pubDate>Sat, 22 Apr 2023 10:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 10:04:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> Na wie gesagt ich mache es mit NodeRed - da ist es einfach solche Objekte dynamisch zu erstellen und auszuwerten. Mit dem Blockly ist mir das fast zu mühselig, aber ich habs mal versucht. Sprich, dass was Du manuell gemacht hast, musst Du halt mit Deinem Blockly bauen.</p>
<p dir="auto">Ich habe mal zur Veranschaulichung 2 meiner Küchengeräte genommen:</p>
<p dir="auto"><img src="/assets/uploads/files/1682157424167-42842aed-85ee-408e-9b0e-824ca25356eb-image-resized.png" alt="42842aed-85ee-408e-9b0e-824ca25356eb-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Den Status erhälst Du auch in einem Blockly über einen Trigger oder den Namen der ID.<br />
Ich machs bei mir mal mit einem Wasserkocher und meiner Kaffeemaschine. ;)</p>
<pre><code>{
  object-ID: true,
  object-ID: false
}
</code></pre>
<p dir="auto">das Blockly erstellt aus Deinen Trigger (wie beispielsweise <a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a>) gezeigt hat so ein Objekt:</p>
<p dir="auto"><img src="/assets/uploads/files/1682157542334-fa5665f3-07f9-4664-b5d4-5f7bf6a9567e-image.png" alt="fa5665f3-07f9-4664-b5d4-5f7bf6a9567e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In dem Fall muss man wohl immer wieder auf Javascript zurückgreifen. Mit den Puzzleteilchen alleine schaffe ich es nicht. ;)</p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>&lt;xml xmlns="https://developers.google.com/blockly/xml"&gt;
 &lt;variables&gt;
   &lt;variable id="bq5jga7TC-f@LCDhpZh."&gt;object&lt;/variable&gt;
   &lt;variable id="Mmdyn9mwz@F]Y4#{h/%a"&gt;topic&lt;/variable&gt;
   &lt;variable id="a/crk2UE78?HjQxVhqZb"&gt;payload&lt;/variable&gt;
   &lt;variable id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/variable&gt;
 &lt;/variables&gt;
 &lt;block type="procedures_defcustomreturn" id="s-Qa*`D#SWcHOzxzKfAp" x="63" y="13"&gt;
   &lt;mutation statements="false"&gt;
     &lt;arg name="object" varid="bq5jga7TC-f@LCDhpZh."&gt;&lt;/arg&gt;
     &lt;arg name="topic" varid="Mmdyn9mwz@F]Y4#{h/%a"&gt;&lt;/arg&gt;
     &lt;arg name="payload" varid="a/crk2UE78?HjQxVhqZb"&gt;&lt;/arg&gt;
   &lt;/mutation&gt;
   &lt;field name="NAME"&gt;aktualisiere Objekt&lt;/field&gt;
   &lt;field name="SCRIPT"&gt;bGV0IG9iaiA9IG9iamVjdCA/IEpTT04ucGFyc2Uob2JqZWN0KSA6IHt9Ow0Kb2JqW3RvcGljXSA9IHBheWxvYWQ7DQpyZXR1cm4gb2JqOw==&lt;/field&gt;
   &lt;comment pinned="false" h="80" w="160"&gt;Beschreibe diese Funktion …&lt;/comment&gt;
 &lt;/block&gt;
 &lt;block type="on_ext" id="*r2uUmu-uT%[lG+dMGwP" x="38" y="63"&gt;
   &lt;mutation xmlns="http://www.w3.org/1999/xhtml" items="2"&gt;&lt;/mutation&gt;
   &lt;field name="CONDITION"&gt;ne&lt;/field&gt;
   &lt;field name="ACK_CONDITION"&gt;&lt;/field&gt;
   &lt;value name="OID0"&gt;
     &lt;shadow type="field_oid" id="sJEm/XPcq~3aM/c(B1cR"&gt;
       &lt;field name="oid"&gt;alias.0.schalter.ku_kaffeemaschine.on&lt;/field&gt;
     &lt;/shadow&gt;
   &lt;/value&gt;
   &lt;value name="OID1"&gt;
     &lt;shadow type="field_oid" id="VQ]-v7IIs(::8gnGroyE"&gt;
       &lt;field name="oid"&gt;alias.0.schalter.ku_wasserkocher.on&lt;/field&gt;
     &lt;/shadow&gt;
   &lt;/value&gt;
   &lt;statement name="STATEMENT"&gt;
     &lt;block type="variables_set" id="K9+[YE#FjWxl!^)fd0H6"&gt;
       &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
       &lt;value name="VALUE"&gt;
         &lt;block type="get_value" id="B81FcYeMf|T:{BqC/6X7"&gt;
           &lt;field name="ATTR"&gt;val&lt;/field&gt;
           &lt;field name="OID"&gt;0_userdata.0.test0.test.gesamtstatus&lt;/field&gt;
         &lt;/block&gt;
       &lt;/value&gt;
       &lt;next&gt;
         &lt;block type="variables_set" id="YXhrzgFZ0vm.$YkE5+#r"&gt;
           &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
           &lt;value name="VALUE"&gt;
             &lt;block type="procedures_callcustomreturn" id="vGKX!G~0V3p//hlLtV+M"&gt;
               &lt;mutation name="aktualisiere Objekt"&gt;
                 &lt;arg name="object"&gt;&lt;/arg&gt;
                 &lt;arg name="topic"&gt;&lt;/arg&gt;
                 &lt;arg name="payload"&gt;&lt;/arg&gt;
               &lt;/mutation&gt;
               &lt;value name="ARG0"&gt;
                 &lt;block type="variables_get" id="u@t=)X:fPF$TV$yG-eNl"&gt;
                   &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
               &lt;value name="ARG1"&gt;
                 &lt;block type="on_source" id="(_MJ2|KJIYlQWGM,^F|J"&gt;
                   &lt;field name="ATTR"&gt;id&lt;/field&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
               &lt;value name="ARG2"&gt;
                 &lt;block type="on_source" id="kTLM3oN:sOZ/lvm3kI@^"&gt;
                   &lt;field name="ATTR"&gt;state.val&lt;/field&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
             &lt;/block&gt;
           &lt;/value&gt;
           &lt;next&gt;
             &lt;block type="update" id="]xf!.rB%fic?+#o,hrgh"&gt;
               &lt;mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"&gt;&lt;/mutation&gt;
               &lt;field name="OID"&gt;0_userdata.0.test0.test.gesamtstatus&lt;/field&gt;
               &lt;field name="WITH_DELAY"&gt;FALSE&lt;/field&gt;
               &lt;value name="VALUE"&gt;
                 &lt;block type="convert_object2json" id="nv:e+@SGgQa^gI9Dv]%="&gt;
                   &lt;field name="PRETTIFY"&gt;FALSE&lt;/field&gt;
                   &lt;value name="VALUE"&gt;
                     &lt;block type="variables_get" id="^@o79UI:+,uho]G5OaR;"&gt;
                       &lt;field name="VAR" id="n^#Q3xhq{=n.V8K7#VVB"&gt;gesamtstatus&lt;/field&gt;
                     &lt;/block&gt;
                   &lt;/value&gt;
                 &lt;/block&gt;
               &lt;/value&gt;
             &lt;/block&gt;
           &lt;/next&gt;
         &lt;/block&gt;
       &lt;/next&gt;
     &lt;/block&gt;
   &lt;/statement&gt;
 &lt;/block&gt;
&lt;/xml&gt;
</code></pre>
<p dir="auto"></p></section></section><p></p>
<p dir="auto">Man könnte nun die Objekt-ID in dem Blockly noch verschönern, aber lassen wir das mal. Aus dem oberen Blockly mit diesen beiden Beispielen wird also so ein Objekt erzeugt:</p>
<p dir="auto"><img src="/assets/uploads/files/1682157750114-d24574ea-8d63-4c18-b60b-85f7b6a05d16-image.png" alt="d24574ea-8d63-4c18-b60b-85f7b6a05d16-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">und durch die trigger automatisch aktualisiert.</p>
<p dir="auto">Mit einem 2. Blockly - kann man glaub auch in das selbe machen ermittelst Du nun den Gesamtstatus und kannst dann darauf reagieren.</p>
]]></description><link>https://forum.iobroker.net/post/981813</link><guid isPermaLink="true">https://forum.iobroker.net/post/981813</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Sat, 22 Apr 2023 10:04:57 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 09:30:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a><br />
Wenn das nicht unendlich lange Listen sind die da zusammengefasst werden sollen, kann man das mit Blockly mMn so lösen:</p>
<p dir="auto"><img src="/assets/uploads/files/1682155782971-mache-etwas.png" alt="mache etwas.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Alternativ kann man auch mit dem Szenen-Adapter arbeiten und Szenen anlegen und dann auf den Status einer Szene triggern.</p>
]]></description><link>https://forum.iobroker.net/post/981805</link><guid isPermaLink="true">https://forum.iobroker.net/post/981805</guid><dc:creator><![CDATA[badsnoopy667]]></dc:creator><pubDate>Sat, 22 Apr 2023 09:30:10 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 07:53:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: homoran">@<bdi>homoran</bdi></a></p>
<p dir="auto">Ich habe unter 0_userdata.0 einen Ordner "devicesOnline  Heizkörper" angelegt.</p>
<p dir="auto">(0_userdata.0.devicesOnline.Heizkörper)</p>
<p dir="auto">Dort habe ich einen Datenpunkt mit Zustandstyp json angelegt. "Ventilstellung"</p>
<p dir="auto">In diesen Datenpunkt habe ich dann das eingefügt:</p>
<pre><code>{
  "Schreibtischleuchte POWER": true
}
</code></pre>
<p dir="auto">War nicht richtig?</p>
]]></description><link>https://forum.iobroker.net/post/981783</link><guid isPermaLink="true">https://forum.iobroker.net/post/981783</guid><dc:creator><![CDATA[Beowolf]]></dc:creator><pubDate>Sat, 22 Apr 2023 07:53:58 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 07:49:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> sagte in <a href="/post/981779">Auswertung vieler "States" auf einmal.</a>:</p>
<blockquote>
<p dir="auto">Ich habe jetzt folgendes versucht.</p>
</blockquote>
<p dir="auto">was ist das?</p>
]]></description><link>https://forum.iobroker.net/post/981781</link><guid isPermaLink="true">https://forum.iobroker.net/post/981781</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sat, 22 Apr 2023 07:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 07:47:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mickym" aria-label="Profile: mickym">@<bdi>mickym</bdi></a> sagte in <a href="/post/981730">Auswertung vieler "States" auf einmal.</a>:</p>
<blockquote>
<p dir="auto">Mach das aber nicht mit Blockly.</p>
</blockquote>
<p dir="auto">Was meinst Du damit?</p>
<p dir="auto">Ich habe jetzt folgendes versucht.</p>
<p dir="auto"><img src="/assets/uploads/files/1682149556935-json1.jpg" alt="json1.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Wenn ich die Leuchte schalte, passiert aber mit dem Datenpunkt nichts. Was mache ich falsch?<br />
(Ich habe eine Lampe genommen, weil es schneller geht als mit einem Ventil)</p>
]]></description><link>https://forum.iobroker.net/post/981779</link><guid isPermaLink="true">https://forum.iobroker.net/post/981779</guid><dc:creator><![CDATA[Beowolf]]></dc:creator><pubDate>Sat, 22 Apr 2023 07:47:07 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 21:55:02 GMT]]></title><description><![CDATA[<p dir="auto">Ich speichere einfach alle Zustände eines Typs oder was auch immer in einem topic oder DP in einen JSON bzw. einem Objekt. Alle Trigger laufen über Wildcards oder direkt in das Objekt, dass dann in Summe ausgewertet wird.</p>
<p dir="auto">Mach das aber nicht mit Blockly.</p>
<p dir="auto"><img src="/assets/uploads/files/1682112745892-c88ea9c9-3735-4194-867c-13949ac954cb-image-resized.png" alt="c88ea9c9-3735-4194-867c-13949ac954cb-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Der Vorteil alles in einem Objekt zu speichern ist, dass Du den Zustand bei jedem Zustand sofort verfügbar hast und bei jedem Trigger - der Gesamtzustand sofort aktualisiert wird.</p>
]]></description><link>https://forum.iobroker.net/post/981730</link><guid isPermaLink="true">https://forum.iobroker.net/post/981730</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Fri, 21 Apr 2023 21:55:02 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 20:51:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a><br />
Danke</p>
]]></description><link>https://forum.iobroker.net/post/981712</link><guid isPermaLink="true">https://forum.iobroker.net/post/981712</guid><dc:creator><![CDATA[Beowolf]]></dc:creator><pubDate>Fri, 21 Apr 2023 20:51:23 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 20:34:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> sagte: Ein Tipp?</p>
<p dir="auto"><a href="https://forum.iobroker.net/post/777610">Beispiel in Blockly mit Selektor</a>.</p>
]]></description><link>https://forum.iobroker.net/post/981701</link><guid isPermaLink="true">https://forum.iobroker.net/post/981701</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Fri, 21 Apr 2023 20:34:19 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 20:31:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: homoran">@<bdi>homoran</bdi></a><br />
Up´s, das wusste ich nicht. Das ist doch schon mal was.</p>
<p dir="auto">Danke für die Hilfe.</p>
]]></description><link>https://forum.iobroker.net/post/981698</link><guid isPermaLink="true">https://forum.iobroker.net/post/981698</guid><dc:creator><![CDATA[Beowolf]]></dc:creator><pubDate>Fri, 21 Apr 2023 20:31:20 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 20:29:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> sagte in <a href="/post/981693">Auswertung vieler "States" auf einmal.</a>:</p>
<blockquote>
<p dir="auto">, das ich einen Datenpunkt habe, der mir sagt ob alle zwanzig Lichter aus sind.</p>
</blockquote>
<p dir="auto">macht die Szene doch auch.<br />
in dem Moment wo <strong>alle</strong> States der Szene den vorgegebenen Wert haben, schaltet die Szene auf true.</p>
]]></description><link>https://forum.iobroker.net/post/981695</link><guid isPermaLink="true">https://forum.iobroker.net/post/981695</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Fri, 21 Apr 2023 20:29:21 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 20:27:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: homoran">@<bdi>homoran</bdi></a><br />
Eine Szene ist doch genau anders herum als das was ich suche, oder? Bei einer Szene habe ich einen Datenpunkt um t.B. zwanzig Lichter einzuschalten.</p>
<p dir="auto">Ich suche es aber so, das ich einen Datenpunkt habe, der mir sagt ob alle zwanzig Lichter aus sind.</p>
]]></description><link>https://forum.iobroker.net/post/981693</link><guid isPermaLink="true">https://forum.iobroker.net/post/981693</guid><dc:creator><![CDATA[Beowolf]]></dc:creator><pubDate>Fri, 21 Apr 2023 20:27:26 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 20:23:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> sagte in <a href="/post/981653">Auswertung vieler "States" auf einmal.</a>:</p>
<blockquote>
<p dir="auto">Kann man eine "Liste" erstellen die dann als "eine" Einheit betrachtet wird die dann "einen" Zustand einnimmt?</p>
</blockquote>
<p dir="auto">das geht auch mit dem Szenen Adapter.<br />
Da könnte man sogar für einzelne Geräte einen anderen Status bei true definieren.<br />
z.B. bei Szene <em>alle Lichter aus</em>: alle Lichter aus, aber zwei Nachtlichter an</p>
]]></description><link>https://forum.iobroker.net/post/981689</link><guid isPermaLink="true">https://forum.iobroker.net/post/981689</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Fri, 21 Apr 2023 20:23:53 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 20:20:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> sagte in <a href="/post/981681">Auswertung vieler "States" auf einmal.</a>:</p>
<blockquote>
<p dir="auto">Beispiele gibt es reichlich hier im Forum.</p>
</blockquote>
<p dir="auto">Ein Tipp? Ich habe keine Ahnung nach was ich suchen soll. Wie nennt man so etwas?</p>
]]></description><link>https://forum.iobroker.net/post/981686</link><guid isPermaLink="true">https://forum.iobroker.net/post/981686</guid><dc:creator><![CDATA[Beowolf]]></dc:creator><pubDate>Fri, 21 Apr 2023 20:20:14 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Sat, 22 Apr 2023 10:07:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> sagte: Kann man eine "Liste" erstellen die dann als "eine" Einheit betrachtet wird die dann "einen" Zustand einnimmt?</p>
<p dir="auto">Man kann eine Liste mit allen betreffenden Datenpunkt-IDs erstellen und alle Werte in einer Schleife prüfen. Beispiele gibt es reichlich hier im Forum.<br />
Bei einheitlicher ID-Struktur oder mit Hilfe von Aufzählungen kann man die Liste auch per Selektor erstellen.</p>
]]></description><link>https://forum.iobroker.net/post/981681</link><guid isPermaLink="true">https://forum.iobroker.net/post/981681</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 22 Apr 2023 10:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Auswertung vieler &quot;States&quot; auf einmal. on Fri, 21 Apr 2023 19:56:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beowolf" aria-label="Profile: beowolf">@<bdi>beowolf</bdi></a> Du kannst wenn Du eine eingermassen einheitliche Struktur hast mit Wildcards arbeiten.</p>
]]></description><link>https://forum.iobroker.net/post/981669</link><guid isPermaLink="true">https://forum.iobroker.net/post/981669</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Fri, 21 Apr 2023 19:56:31 GMT</pubDate></item></channel></rss>