<?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[Wert aus JSON? per Blockly auslesen]]></title><description><![CDATA[<p dir="auto">Hallo zusammen,</p>
<p dir="auto">ich hole in Blockly per URL ein JSON (zumindest glaube ich, das es ein JSON ist).<br />
Aus dem JSON möchte ich den Wert von "battery_level" auslesen, im Beispiel also die 97.</p>
<pre><code>{
  "response": {
    "result": true,
    "reason": "The request was successfully processed.",
    "vin": "LRW6E3FS2NC598456",
    "command": "vehicle_data",
    "response": {
      "charge_state": {
        "timestamp": 1778331943,
        "charging_state": "Stopped",
        "charge_limit_soc": 100,
        "battery_level": 97
      },
      "climate_state": {
        "timestamp": 1778331945,
        "inside_temp": 21.1,
        "outside_temp": 15.5,
        "side_mirror_heaters": false,
        "wiper_blade_heater": false
      }
    }
  }
}
</code></pre>
<p dir="auto">Ich bekomme es aber nicht hin, das JSON in seine Bestandteile zu zerlegen, um dann auf den Wert von "battery_level" zuzugreifen. Habe mir schon viele JSON-Beispiele angesehen, aber die JSONs sehen dort etwas anders aus.</p>
<p dir="auto">Kann mir hier jemand helfen?</p>
<p dir="auto">Danke und liebe Grüße<br />
René</p>
]]></description><link>https://forum.iobroker.net/topic/84520/wert-aus-json-per-blockly-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 04:28:16 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/84520.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 May 2026 17:28:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 19:30:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tunichgut" aria-label="Profile: tunichgut">@<bdi>tunichgut</bdi></a></p>
<p dir="auto">Dann wäre die Fehlermeldung hilfreich .<br />
Auch für zukünftig Fragende.</p>
]]></description><link>https://forum.iobroker.net/post/1338996</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338996</guid><dc:creator><![CDATA[haselchen]]></dc:creator><pubDate>Sun, 10 May 2026 19:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 18:46:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/haselchen" aria-label="Profile: haselchen">@<bdi>haselchen</bdi></a>: Deine Lösungsidee läuft nicht, gibt eine Fehlermeldung.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/homoran" aria-label="Profile: Homoran">@<bdi>Homoran</bdi></a>: Dein Lösungsansatz funktioniert.</p>
<p dir="auto">Vielen Dank Euch beiden für die Unterstützung.</p>
]]></description><link>https://forum.iobroker.net/post/1338992</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338992</guid><dc:creator><![CDATA[tunichgut]]></dc:creator><pubDate>Sun, 10 May 2026 18:46:27 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 18:37:34 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/haselchen" aria-label="Profile: haselchen">@<bdi>haselchen</bdi></a> <a href="/post/1338982">sagte</a>:</p>
<p dir="auto">In das Feld Attribut schreibt er zum Beispiel battery_level und er bekommt den Wert 97</p>
</blockquote>
<p dir="auto">Eben nicht.</p>
<p dir="auto">Da muss rein</p>
<blockquote>
<p dir="auto">Homoran <a href="/post/1338969">sagte</a>:</p>
<p dir="auto">response.response.charge_state.battery_level</p>
</blockquote>
]]></description><link>https://forum.iobroker.net/post/1338988</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338988</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 10 May 2026 18:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 18:14:04 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">Reden wir aneinander vorbei?<br />
Er hat doch die Werte, die das JSON liefert.<br />
Er muss doch nur mein Blockly nachbauen.<br />
In das Feld Attribut schreibt er zum Beispiel battery_level und er bekommt den Wert 97 in seinen Datenpunkt geschrieben, den er vorher angelegt hat (hatte ich in meinem 1.Post aber auch schon geschrieben)</p>
]]></description><link>https://forum.iobroker.net/post/1338982</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338982</guid><dc:creator><![CDATA[haselchen]]></dc:creator><pubDate>Sun, 10 May 2026 18:14:04 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 18:07:12 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/haselchen" aria-label="Profile: haselchen">@<bdi>haselchen</bdi></a> <a href="/post/1338976">sagte</a>:</p>
<p dir="auto">den Wert in das Feld Attribut einfügen, den man separieren will.</p>
</blockquote>
<p dir="auto">Und genau dafür brauchte er Hilfe</p>
]]></description><link>https://forum.iobroker.net/post/1338979</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338979</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 10 May 2026 18:07:12 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 18:01:44 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">Er muss es doch nur nachbauen.<br />
Die JSON URL wie bei mir ins Blockly einfügen und dann den Wert in das Feld Attribut einfügen, den man separieren will.</p>
]]></description><link>https://forum.iobroker.net/post/1338976</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338976</guid><dc:creator><![CDATA[haselchen]]></dc:creator><pubDate>Sun, 10 May 2026 18:01:44 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 17:49:31 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tunichgut" aria-label="Profile: tunichgut">@<bdi>tunichgut</bdi></a> <a href="/post/1338968">sagte</a>:</p>
<p dir="auto">Ich bekomme es aber nicht hin, das JSON in seine Bestandteile zu zerlegen</p>
</blockquote>
<p dir="auto">Siehe <a href="http://jsonpathfinder.com" rel="nofollow ugc">jsonpathfinder.com</a><br />
<img src="/assets/uploads/files/1778435368504-798.jpg" alt="798.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/1338974</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338974</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 10 May 2026 17:49:31 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 17:42:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tunichgut" aria-label="Profile: tunichgut">@<bdi>tunichgut</bdi></a> jetzt getestet 😉</p>
<p dir="auto"><img src="/assets/uploads/files/1778434929058-792.jpg" alt="792.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/1338972</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338972</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 10 May 2026 17:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 17:39:26 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/haselchen" aria-label="Profile: haselchen">@<bdi>haselchen</bdi></a> <a href="/post/1338970">sagte</a>:</p>
<p dir="auto">aus <strong>dem</strong> JSON</p>
</blockquote>
<p dir="auto">Welchen?</p>
]]></description><link>https://forum.iobroker.net/post/1338971</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338971</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 10 May 2026 17:39:26 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 17:37:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tunichgut" aria-label="Profile: tunichgut">@<bdi>tunichgut</bdi></a></p>
<p dir="auto">Hier hole ich alle 5sek den Wert Power aus dem JSON</p>
<p dir="auto"><img src="/assets/uploads/files/1778434617025-0016c4fb-17ef-4d36-866f-450059f535b1-image.jpeg" alt="0016c4fb-17ef-4d36-866f-450059f535b1-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Vorher Datenpunkt anlegen.</p>
]]></description><link>https://forum.iobroker.net/post/1338970</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338970</guid><dc:creator><![CDATA[haselchen]]></dc:creator><pubDate>Sun, 10 May 2026 17:37:13 GMT</pubDate></item><item><title><![CDATA[Reply to Wert aus JSON? per Blockly auslesen on Sun, 10 May 2026 17:38:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tunichgut" aria-label="Profile: tunichgut">@<bdi>tunichgut</bdi></a> wert von attribut <code>response.response.charge_state.battery_level</code><br />
Ungetestet</p>
]]></description><link>https://forum.iobroker.net/post/1338969</link><guid isPermaLink="true">https://forum.iobroker.net/post/1338969</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 10 May 2026 17:38:26 GMT</pubDate></item></channel></rss>