<?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[[INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">durch den aktuellen JS-Adapter im IOB mit strengerer Prüfung ändert sich die "states-Struktur" in Objekten.</p>
<p dir="auto">Bisher war erlaubt:</p>
<pre><code>{
.......
"name": "Diagrammart",
"desc": "Manuell erzeugt",
"role": "state",
"type": "number",
"read": true,
"write": true,    
"states": {
      "PV-Module": "0",
      "Hausakku": "1",
      "Wallboxen": "2",
      "Stromfluss": "3",
      "Stromeinkauf": "4",
      "Strompreis": "5"
    },
.......
}
</code></pre>
<p dir="auto">Neu ist nur mehr diese Form funktionsfähig:</p>
<pre><code>{
.......
"name": "Diagrammart",
"desc": "Manuell erzeugt",
"role": "state",
"type": "number",
"read": true,
"write": true,   
"states": {
      "0": "PV-Module",
      "1": "Hausakku",
      "2": "Wallboxen",
      "3": "Stromfluss",
      "4": "Stromeinkauf",
      "5": "Strompreis"
    },
.......
}
</code></pre>
<p dir="auto">Sofern jemand die "states-Struktur" verwendet hat, muss diese umgestellt werden, weil sonst etwa im <strong>VIS-2  Material-Widgets - Schalter/Köpfe</strong> eine nicht funktionierende Auswahl angezeigt wird.</p>
<p dir="auto">Gruß, Fuzzy</p>
]]></description><link>https://forum.iobroker.net/topic/84307/info-objekt-states-ändert-sich-mit-js-adapter-v9.0.18</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 14:54:16 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/84307.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Apr 2026 05:39:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 12:26:48 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/skvarel" aria-label="Profile: skvarel">@<bdi>skvarel</bdi></a> <a href="/post/1334581">sagte</a>:</p>
<p dir="auto">Es wird am Widget liegen</p>
</blockquote>
<p dir="auto">Möglich. Ist aber egal. So wie oben beschrieben funktioniert es. Ich glaube, wir beenden die Debatte.</p>
]]></description><link>https://forum.iobroker.net/post/1334597</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334597</guid><dc:creator><![CDATA[fuzzy1955]]></dc:creator><pubDate>Tue, 14 Apr 2026 12:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 11:32:48 GMT]]></title><description><![CDATA[<p dir="auto">Es wird am Widget liegen. Bei unserem Dropdown lässt sich auswählen was von beiden (oder beides) man angezeigt bekommen möchte.</p>
]]></description><link>https://forum.iobroker.net/post/1334581</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334581</guid><dc:creator><![CDATA[skvarel]]></dc:creator><pubDate>Tue, 14 Apr 2026 11:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 11:04:36 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fuzzy1955" aria-label="Profile: fuzzy1955">@<bdi>fuzzy1955</bdi></a> [sagte]: Bei 0: "PV-Module" kommt ein Fehler.</p>
</blockquote>
<p dir="auto">Der Admin zeigt das Objekt als <strong>JSON</strong>.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fuzzy1955" aria-label="Profile: fuzzy1955">@<bdi>fuzzy1955</bdi></a> [sagte]: Nur das läuft nicht mehr:</p>
<pre><code>"name": "Diagrammart",
"desc": "Manuell erzeugt",
"role": "state",
"type": "number",
"read": true,
"write": true,    
"states": {
      "PV-Module": "0",
      "Hausakku": "1"
</code></pre>
<p dir="auto">Der DP muss vom Typ "string" sein.<br />
Diese Version macht wenig Sinn.</p>
]]></description><link>https://forum.iobroker.net/post/1334577</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334577</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Tue, 14 Apr 2026 11:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 09:57:40 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fuzzy1955" aria-label="Profile: fuzzy1955">@<bdi>fuzzy1955</bdi></a> <a href="/post/1334548">sagte</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a> <a href="/post/1334545">sagte</a>:</p>
<p dir="auto">so hab ich es in zwavews als definition</p>
</blockquote>
<p dir="auto">Genauso funktioniert es eben bei mir auch. Nur das läuft nicht mehr:</p>
<pre><code>"name": "Diagrammart",
"desc": "Manuell erzeugt",
"role": "state",
"type": "number",
"read": true,
"write": true,    
"states": {
      "PV-Module": "0",
      "Hausakku": "1"
</code></pre>
</blockquote>
<p dir="auto">afaik war das aber schon immer "falsch".</p>
<p dir="auto">"Wert": "Beschreibung"</p>
<pre><code>"1": "bla",
"2": "doppleBla"
</code></pre>
<p dir="auto">oder (hier bin ich nicht ganz sicher, weil ich da nie arrays rein schreibe)<br />
"Beschreibung"</p>
<pre><code>"bla",  //0
"doppleBla" //1
</code></pre>
<p dir="auto">oder halt<br />
Wert: "Beschreibung"</p>
<pre><code>1: "bla",
2: "doppleBla"
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1776160417301-bildschirmfoto-2026-04-14-um-11.53.33.png" alt="Bildschirmfoto 2026-04-14 um 11.53.33.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/1334575</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334575</guid><dc:creator><![CDATA[ticaki]]></dc:creator><pubDate>Tue, 14 Apr 2026 09:57:40 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 07:37:09 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a> <a href="/post/1334545">sagte</a>:</p>
<p dir="auto">so hab ich es in zwavews als definition</p>
</blockquote>
<p dir="auto">Genauso funktioniert es eben bei mir auch. Nur das läuft nicht mehr:</p>
<pre><code>"name": "Diagrammart",
"desc": "Manuell erzeugt",
"role": "state",
"type": "number",
"read": true,
"write": true,    
"states": {
      "PV-Module": "0",
      "Hausakku": "1"
</code></pre>
]]></description><link>https://forum.iobroker.net/post/1334548</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334548</guid><dc:creator><![CDATA[fuzzy1955]]></dc:creator><pubDate>Tue, 14 Apr 2026 07:37:09 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 07:18:44 GMT]]></title><description><![CDATA[<pre><code>"common": {
    "id": "scene",
    "name": "scene",
    "write": false,
    "read": true,
    "desc": "Scene 001",
    "type": "number",
    "min": 0,
    "max": 255,
    "def": 0,
    "unit": "",
    "role": "state",
    "states": {
      "0": "KeyPressed",
      "1": "KeyReleased",
      "2": "KeyHeldDown",
      "3": "KeyPressed2x"
    }
  },
</code></pre>
<p dir="auto">so hab ich es in zwavews als definition<br />
so siehts aus <img src="/assets/uploads/files/1776151097884-7edf7434-f8d5-4e27-9527-f20a4fe90675-image.jpeg" alt="7edf7434-f8d5-4e27-9527-f20a4fe90675-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">ist aber im admin</p>
<p dir="auto">kann sein das der widget kaputt ist ?</p>
]]></description><link>https://forum.iobroker.net/post/1334545</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334545</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Tue, 14 Apr 2026 07:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 07:16:28 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mcm1957" aria-label="Profile: mcm1957">@<bdi>mcm1957</bdi></a> <a href="/post/1334542">sagte</a>:</p>
<p dir="auto">Schau bitte als erstes mal was im State für ein Wert steht</p>
</blockquote>
<p dir="auto">Ich kann bei States nur "0": "PV-Module" reinschreiben. Bei 0: "PV-Module" kommt ein Fehler.<br />
<img src="/assets/uploads/files/1776150776343-1745d189-f79f-4ada-baa9-160590d5b859-image.jpeg" alt="1745d189-f79f-4ada-baa9-160590d5b859-image.jpeg" class=" img-fluid img-markdown" /></p>
<blockquote>
<p dir="auto">"offline":"0" ist definitiv falsch und kann m.e. noch nie funktioniert haben</p>
</blockquote>
<p dir="auto">Hat aber monatelang funktioniert bis zum letzten JS-Update ;-)</p>
]]></description><link>https://forum.iobroker.net/post/1334543</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334543</guid><dc:creator><![CDATA[fuzzy1955]]></dc:creator><pubDate>Tue, 14 Apr 2026 07:16:28 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 07:02:20 GMT]]></title><description><![CDATA[<p dir="auto">Also der Eintrag LINKS muss dem val (aka Wert) des States in Typ un Inhalt entsprechen. Wenn der State number ist (und ich gehe mal davon aus, dass das so stimmt, da wahrscheinlich auch der Code mit Zahlen rechnet) dann ist 0: 'offline' richtig. "0": "offline" könnte funktionieren da ev eine implizite String to number Funktion wo stattfindet. "offline":"0" ist definitiv falsch und kann m.e. noch nie funktioniert haben.</p>
<p dir="auto">ERGO:<br />
Schau bitte als erstes mal was im State für ein Wert steht. Direkt im Stet nocht via states konvertiert. Also das was .val liefert oder du bei aktivem expert Mode siehst. Oder schau ob dein Code 0 oder 'offline" also Zahö oder String auslesen will bzw. reinschreibt</p>
]]></description><link>https://forum.iobroker.net/post/1334542</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334542</guid><dc:creator><![CDATA[mcm1957]]></dc:creator><pubDate>Tue, 14 Apr 2026 07:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 07:04:49 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mcm1957" aria-label="Profile: mcm1957">@<bdi>mcm1957</bdi></a> sagte in <a href="/post/1334534">[INFO] Objekt "states" ändert sich mit JS-Adapter v9.0.18</a>:<br />
Welchen Typ hat denn der State 'Ofenbetriebszeiten' ?</p>
</blockquote>
<p dir="auto">[EDIT]<br />
"type": "string" funktioniert aber bei mir auch nicht mit "PV-Module": "0"<br />
Nur "type": "string" oder "type": "number" mit "0": "PV-Module" funktioniert .</p>
<p dir="auto"><img src="/assets/uploads/files/1776149588975-f425ee0b-3bf8-416a-96d8-5d065ee51c6e-image.jpeg" alt="f425ee0b-3bf8-416a-96d8-5d065ee51c6e-image.jpeg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/1334539</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334539</guid><dc:creator><![CDATA[fuzzy1955]]></dc:creator><pubDate>Tue, 14 Apr 2026 07:04:49 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 06:48:45 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fuzzy1955" aria-label="Profile: fuzzy1955">@<bdi>fuzzy1955</bdi></a> <a href="/post/1334537">sagte</a>:</p>
<p dir="auto">Aber der "type": "number". Das ist die Ursache.</p>
</blockquote>
<p dir="auto">nein die definition der states..wenn der dp numerisch bleiben soll</p>
]]></description><link>https://forum.iobroker.net/post/1334538</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334538</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Tue, 14 Apr 2026 06:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 06:47:42 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a> <a href="/post/1334536">sagte</a>:</p>
<p dir="auto">das ist aber ein string</p>
</blockquote>
<p dir="auto">Aber der "type": "number". Das ist die Ursache.</p>
]]></description><link>https://forum.iobroker.net/post/1334537</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334537</guid><dc:creator><![CDATA[fuzzy1955]]></dc:creator><pubDate>Tue, 14 Apr 2026 06:47:42 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 06:45:31 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fuzzy1955" aria-label="Profile: fuzzy1955">@<bdi>fuzzy1955</bdi></a> <a href="/post/1334535">sagte</a>:</p>
<p dir="auto">"0"</p>
</blockquote>
<p dir="auto">das ist aber ein string</p>
]]></description><link>https://forum.iobroker.net/post/1334536</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334536</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Tue, 14 Apr 2026 06:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 06:43:24 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mcm1957" aria-label="Profile: mcm1957">@<bdi>mcm1957</bdi></a> <a href="/post/1334534">sagte</a>:</p>
<p dir="auto">Welchen Typ hat denn der State 'Ofenbetriebszeiten' ?</p>
</blockquote>
<p dir="auto">Aah .. weil ich "type": "number" verwende.</p>
<pre><code>{
  "common": {
    "name": "Diagrammart",
    "desc": "Manuell erzeugt",
    "role": "state",
    "type": "number",
    "read": true,
    "write": true,
    "states": {
      "0": "PV-Module",
      "1": "Hausakku",
      "2": "Wallboxen",
      "3": "Stromfluss",
      "4": "Stromeinkauf",
      "5": "Strompreis",
      "7": "Ofenbetriebszeiten",
      "8": "Witterung",
      "9": "Regenmengen"
    },
    "alias": {
      "id": "0_userdata.0.s106"
    }
  },
  "type": "state",
  "native": {},
  "_id": "alias.0.Diagrammdaten.Diagrammart",
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  },
  "from": "system.adapter.admin.0",
  "user": "system.user.admin",
  "ts": 1776148555438
}
</code></pre>
]]></description><link>https://forum.iobroker.net/post/1334535</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334535</guid><dc:creator><![CDATA[fuzzy1955]]></dc:creator><pubDate>Tue, 14 Apr 2026 06:43:24 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 06:41:41 GMT]]></title><description><![CDATA[<p dir="auto">Also beide Angaben sind definitiv als "States" für einen State mit Typ string zulässsig. Links steht was als Wert im State steht, rechts der anzuzeigene Text. Welchen Typ hat denn der State 'Ofenbetriebszeiten' ?</p>
]]></description><link>https://forum.iobroker.net/post/1334534</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334534</guid><dc:creator><![CDATA[mcm1957]]></dc:creator><pubDate>Tue, 14 Apr 2026 06:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 06:37:35 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a> <a href="/post/1334523">sagte</a>:</p>
<p dir="auto">wiso beides ist valide</p>
</blockquote>
<p dir="auto">Bei mir funktioniert es leider nicht mehr.</p>
<p dir="auto">Bisher "PV-Module": "0":<br />
<img src="/assets/uploads/files/1776148522484-8ce67e32-3c32-4910-b44f-1b036b70aa55-image.jpeg" alt="8ce67e32-3c32-4910-b44f-1b036b70aa55-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Neu "0": "PV-Module":<br />
<img src="/assets/uploads/files/1776148582646-b3670207-adb8-4f11-a795-6b98d4db4b3e-image.jpeg" alt="b3670207-adb8-4f11-a795-6b98d4db4b3e-image.jpeg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/1334531</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334531</guid><dc:creator><![CDATA[fuzzy1955]]></dc:creator><pubDate>Tue, 14 Apr 2026 06:37:35 GMT</pubDate></item><item><title><![CDATA[Reply to [INFO] Objekt &quot;states&quot; ändert sich mit JS-Adapter v9.0.18 on Tue, 14 Apr 2026 06:11:56 GMT]]></title><description><![CDATA[<p dir="auto">wiso beides ist valide.. in dem einem Fall hab ich die Teste in der combobox und in dem anderen Fall die numerischen Werte</p>
]]></description><link>https://forum.iobroker.net/post/1334523</link><guid isPermaLink="true">https://forum.iobroker.net/post/1334523</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Tue, 14 Apr 2026 06:11:56 GMT</pubDate></item></channel></rss>