<?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[Problem mit Funktion unter Aufzählungen [gelöst]]]></title><description><![CDATA[<p dir="auto">Hallo, ich habe leider ein Problem mit einer selbst erstellten Funktion und dem Reiter Aufzählungen.<br />
Ich möchte gerne von gewissen Geräten den Batteriezustand abfragen.</p>
<p dir="auto">Meine Funktion unter Aufzählungen sieht so aus<br />
<img src="/assets/uploads/files/1686076983528-img_2023-6-6-203224.png" alt="IMG_2023-6-6-203224.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1686077000479-img_2023-6-6-203249.png" alt="IMG_2023-6-6-203249.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">und mein Blockly Script so.<br />
<img src="/assets/uploads/files/1686077028150-img_2023-6-6-203316.png" alt="IMG_2023-6-6-203316.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Debug output zeigt aber immer nur [].</p>
<p dir="auto">Was mache ich falsch?<br />
Gruß Andreas.</p>
]]></description><link>https://forum.iobroker.net/topic/65983/problem-mit-funktion-unter-aufzählungen-gelöst</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 22:30:44 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/65983.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Jun 2023 17:34:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Funktion unter Aufzählungen [gelöst] on Wed, 07 Jun 2023 17:28:09 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 />
Das ist die Lösung.<br />
Vielen Dank, jetzt kann ich endlich mein Skript weiter ausbauen und meine Auswahl für die entsprechenden Objekte weiter auswählen.</p>
]]></description><link>https://forum.iobroker.net/post/1000704</link><guid isPermaLink="true">https://forum.iobroker.net/post/1000704</guid><dc:creator><![CDATA[Siragus]]></dc:creator><pubDate>Wed, 07 Jun 2023 17:28:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Funktion unter Aufzählungen [gelöst] on Wed, 07 Jun 2023 17:03:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/siragus" aria-label="Profile: siragus">@<bdi>siragus</bdi></a> sagte: Leider alles ohne Erfolg.</p>
<p dir="auto">Teste mal den Selektor:</p>
<p dir="auto"><img src="/assets/uploads/files/1686156671027-blockly_temp.jpg" alt="Blockly_temp.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Es muss ein Array mit allen zugeordneten IDs ausgegeben werden.<br />
Da Datenpunkte zugeordnet sind, darf nicht "channel" angegeben werden.</p>
]]></description><link>https://forum.iobroker.net/post/1000694</link><guid isPermaLink="true">https://forum.iobroker.net/post/1000694</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Wed, 07 Jun 2023 17:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Funktion unter Aufzählungen [gelöst] on Wed, 07 Jun 2023 16:32:23 GMT]]></title><description><![CDATA[<p dir="auto">Leider bin ich kein Blockly-Anwender. Mit JS wäre es so möglich:</p>
<pre><code>    var vData = getObject("enum.functions.batterie").common.members;
    for(let i = 0; i &lt; vData.length; i++) {
        console.log(getState(vData[i]).val);
    }
</code></pre>
<p dir="auto">Ro75.</p>
]]></description><link>https://forum.iobroker.net/post/1000685</link><guid isPermaLink="true">https://forum.iobroker.net/post/1000685</guid><dc:creator><![CDATA[Ro75]]></dc:creator><pubDate>Wed, 07 Jun 2023 16:32:23 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Funktion unter Aufzählungen [gelöst] on Tue, 06 Jun 2023 20:44:55 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 />
Ja, aus meiner ganzen Verzweiflung habe ich sogar schon das ganze System rebootet. Leider alles ohne Erfolg. Irgendetwas muss ich vergessen haben.<br />
Allerdings funktioniert die Eingabe von<br />
channel[state.id=*battery]<br />
einwandfrei.<br />
Wobei diese Anweisung ja auch nichts mit der selbst erstellten Funktion zu tun hat.</p>
]]></description><link>https://forum.iobroker.net/post/1000282</link><guid isPermaLink="true">https://forum.iobroker.net/post/1000282</guid><dc:creator><![CDATA[Siragus]]></dc:creator><pubDate>Tue, 06 Jun 2023 20:44:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Funktion unter Aufzählungen [gelöst] on Tue, 06 Jun 2023 19:57:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/siragus" aria-label="Profile: siragus">@<bdi>siragus</bdi></a><br />
Wurde die Javascript-Instanz mal neu gestartet, nachdem die Zuordnung der Datenpunkte zur Aufzählung erfolgte?</p>
]]></description><link>https://forum.iobroker.net/post/1000274</link><guid isPermaLink="true">https://forum.iobroker.net/post/1000274</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Tue, 06 Jun 2023 19:57:32 GMT</pubDate></item></channel></rss>