<?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[Json einlesen]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">ich habe folgenden Datenpunk:</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"><br />
{<br />
"packV": "27.43",<br />
"packA": "0.00",<br />
"packBalCap": "279.86",<br />
"packRateCap": "280.00",<br />
"packCycles": 0,<br />
"packNumberOfCells": 8,<br />
"balanceStatus": [<br />
{<br />
"cell0": true<br />
},<br />
{<br />
"cell1": false<br />
},<br />
{<br />
"cell2": false<br />
},<br />
{<br />
"cell3": false<br />
},<br />
{<br />
"cell4": false<br />
},<br />
{<br />
"cell5": false<br />
},<br />
{<br />
"cell6": false<br />
},<br />
{<br />
"cell7": false<br />
}<br />
],<br />
"balanceStatusHigh": [<br />
{<br />
"cell0": false<br />
},<br />
{<br />
"cell1": false<br />
},<br />
{<br />
"cell2": false<br />
},<br />
{<br />
"cell3": false<br />
},<br />
{<br />
"cell4": false<br />
},<br />
{<br />
"cell5": false<br />
},<br />
{<br />
"cell6": false<br />
},<br />
{<br />
"cell7": false<br />
}<br />
],<br />
"protectionStatus": {<br />
"singleCellOvervolt": false,<br />
"singleCellUndervolt": false,<br />
"packOvervolt": false,<br />
"packUndervolt": false,<br />
"chargeOvertemp": false,<br />
"chargeUndertemp": false,<br />
"dischargeOvertemp": false,<br />
"dischargeUndertemp": false,<br />
"chargeOvercurrent": false,<br />
"dischargeOvercurrent": false,<br />
"shortCircut": false,<br />
"frontEndDetectionICError": false,<br />
"softwareLockMOS": false<br />
},<br />
"bmsSWVersion": 40,<br />
"packSOC": 100,<br />
"FETStatus": {<br />
"charging": true,<br />
"discharging": true<br />
},<br />
"tempSensorCount": 2,<br />
"tempSensorValues": {<br />
"NTC0": "18.35",<br />
"NTC1": "17.95"<br />
}<br />
}<br />
</section></section><p></p>
<p dir="auto">Daraus möchte ich jetzt den Wert cell0 bei balanceStatus heraus haben.<br />
Bei der Spannung kann ich das mit "Attribut XX von Objekt. Ich weiß aber nicht wie ich zu dem wert cell0 komme.</p>
]]></description><link>https://forum.iobroker.net/topic/53325/json-einlesen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 18:30:47 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/53325.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Mar 2022 23:50:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Json einlesen on Sun, 13 Mar 2022 09:00:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/der-jeti" aria-label="Profile: der-jeti">@<bdi>der-jeti</bdi></a> sagte: Das funktioniert so wie ich es mache wohl nicht</p>
<p dir="auto">So sollte es funktionieren:</p>
<p dir="auto"><img src="/assets/uploads/files/1647161982145-bild_2022-03-13_095942.png" alt="Bild_2022-03-13_095942.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/776195</link><guid isPermaLink="true">https://forum.iobroker.net/post/776195</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sun, 13 Mar 2022 09:00:15 GMT</pubDate></item><item><title><![CDATA[Reply to Json einlesen on Sun, 13 Mar 2022 08:05:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liv-in-sky" aria-label="Profile: liv-in-sky">@<bdi>liv-in-sky</bdi></a> Funktioniert, besten dank.</p>
]]></description><link>https://forum.iobroker.net/post/776177</link><guid isPermaLink="true">https://forum.iobroker.net/post/776177</guid><dc:creator><![CDATA[Der-Jeti]]></dc:creator><pubDate>Sun, 13 Mar 2022 08:05:02 GMT</pubDate></item><item><title><![CDATA[Reply to Json einlesen on Sun, 13 Mar 2022 07:41:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/der-jeti" aria-label="Profile: der-jeti">@<bdi>der-jeti</bdi></a></p>
<p dir="auto">probiere mal das - das blockly funktioniert nicht, wenn sowas wie [0] drinsteht - das attribut ist aber richtig</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="R7178gP?Nb8zB3C6jVn["&gt;x&lt;/variable&gt;
 &lt;/variables&gt;
 &lt;block type="procedures_defcustomreturn" id="cry.f6{sii]V8#7#wQYh" x="-288" y="337"&gt;
   &lt;mutation statements="false"&gt;
     &lt;arg name="x" varid="R7178gP?Nb8zB3C6jVn["&gt;&lt;/arg&gt;
   &lt;/mutation&gt;
   &lt;field name="NAME"&gt;etwas tun&lt;/field&gt;
   &lt;field name="SCRIPT"&gt;cmV0dXJuIHguYmFsYW5jZVN0YXR1c1swXS5jZWxsMDs=&lt;/field&gt;
   &lt;comment pinned="false" h="80" w="160"&gt;Beschreibe diese Funktion …&lt;/comment&gt;
 &lt;/block&gt;
 &lt;block type="debug" id="Uc5}IbV{g[tIGGdK{hf3" x="-513" y="413"&gt;
   &lt;field name="Severity"&gt;log&lt;/field&gt;
   &lt;value name="TEXT"&gt;
     &lt;shadow type="text" id="lk7T79z(b+H,RtjOHj}_"&gt;
       &lt;field name="TEXT"&gt;test&lt;/field&gt;
     &lt;/shadow&gt;
     &lt;block type="procedures_callcustomreturn" id="W^iw!YLAUd~npz:hYS!b"&gt;
       &lt;mutation name="etwas tun"&gt;
         &lt;arg name="x"&gt;&lt;/arg&gt;
       &lt;/mutation&gt;
       &lt;value name="ARG0"&gt;
         &lt;block type="convert_json2object" id="JX@=4|P~b`p2,$Q)aHqn"&gt;
           &lt;value name="VALUE"&gt;
             &lt;block type="get_value" id="jyzn/]|wCoVW*8cO==H,"&gt;
               &lt;field name="ATTR"&gt;val&lt;/field&gt;
               &lt;field name="OID"&gt;0_userdata.0.CONTROL-OWN.AAATEST.TestString6&lt;/field&gt;
             &lt;/block&gt;
           &lt;/value&gt;
         &lt;/block&gt;
       &lt;/value&gt;
     &lt;/block&gt;
   &lt;/value&gt;
 &lt;/block&gt;
&lt;/xml&gt;
</code></pre>
<p dir="auto"></p></section></section><p></p>
]]></description><link>https://forum.iobroker.net/post/776169</link><guid isPermaLink="true">https://forum.iobroker.net/post/776169</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Sun, 13 Mar 2022 07:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Json einlesen on Sun, 13 Mar 2022 07:29:35 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1647156443300-screenshot-2022-03-13-082654.png" alt="Screenshot 2022-03-13 082654.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Das funktioniert so wie ich es mache wohl nicht<br />
state={"val":null,"c":"</p>
]]></description><link>https://forum.iobroker.net/post/776166</link><guid isPermaLink="true">https://forum.iobroker.net/post/776166</guid><dc:creator><![CDATA[Der-Jeti]]></dc:creator><pubDate>Sun, 13 Mar 2022 07:29:35 GMT</pubDate></item><item><title><![CDATA[Reply to Json einlesen on Sun, 13 Mar 2022 06:51:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a><br />
Da hast du natürlich Recht damit</p>
<p dir="auto">Hatte ich übersehen</p>
]]></description><link>https://forum.iobroker.net/post/776161</link><guid isPermaLink="true">https://forum.iobroker.net/post/776161</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Sun, 13 Mar 2022 06:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to Json einlesen on Sun, 13 Mar 2022 00:40:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/der-jeti" aria-label="Profile: der-jeti">@<bdi>der-jeti</bdi></a></p>
<p dir="auto">ich wäre mehr für</p>
<pre><code>balanceStatus[0].cell0
</code></pre>
<p dir="auto">balanceStatus ist ein array of objects</p>
]]></description><link>https://forum.iobroker.net/post/776146</link><guid isPermaLink="true">https://forum.iobroker.net/post/776146</guid><dc:creator><![CDATA[OliverIO]]></dc:creator><pubDate>Sun, 13 Mar 2022 00:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Json einlesen on Sun, 13 Mar 2022 06:53:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/der-jeti" aria-label="Profile: der-jeti">@<bdi>der-jeti</bdi></a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/der-jeti" aria-label="Profile: der-jeti">@<bdi>der-jeti</bdi></a> du musst dieses json in ein Objekt konvertieren und das Attribut ist dann .... Siehe Post darunter</p>
]]></description><link>https://forum.iobroker.net/post/776144</link><guid isPermaLink="true">https://forum.iobroker.net/post/776144</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Sun, 13 Mar 2022 06:53:51 GMT</pubDate></item></channel></rss>