<?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[&quot;formatierte Values&quot; in VIS anzeigen]]></title><description><![CDATA[<p dir="auto">Hallo zusammen,</p>
<p dir="auto">ich bin mir nicht ganz sicher, was die korrekte Bezeichnung für das ist, was ich eigentlich will, daher hab ich das einfach "formatierte Values" genannt. Es geht um folgendes:</p>
<p dir="auto">Unter "Objekte" wird bei manchen Datenpunkten etwas anderes angezeigt, als der eigentliche Wert ist. So ist das zum Beispiel beim mihome-vacuum-Adapter. Der Datenpunkt <code>mihome-vacuum.0.info.state</code> zeigt <code>No error(0)</code>an, obwohl der eigentliche Inhalt einfach nur <code>0</code> ist. In den Datenpunkteigenschaften ist das auch nachvollziehbar:</p>
<pre><code>{
  "_id": "mihome-vacuum.0.info.error",
  "type": "state",
  "common": {
    "name": "Error",
    "type": "number",
    "read": true,
    "write": false,
    "max": 30,
    "states": {
      "0": "No error",
      "1": "Laser distance sensor error",
      "2": "Collision sensor error",
      "3": "Wheels on top of void, move robot",
      "4": "Clean hovering sensors, move robot",
      "5": "Clean main brush",
      "6": "Clean side brush",
      "7": "Main wheel stuck?",
      "8": "Device stuck, clean area",
      "9": "Dust collector missing",
      "10": "Clean filter",
      "11": "Stuck in magnetic barrier",
      "12": "Low battery",
      "13": "Charging fault",
      "14": "Battery fault",
      "15": "Wall sensors dirty, wipe them",
      "16": "Place me on flat surface",
      "17": "Side brushes problem, reboot me",
      "18": "Suction fan problem",
      "19": "Unpowered charging station"
    }
  },
  "native": {},
  "from": "system.adapter.mihome-vacuum.0",
  "ts": 1640546002353,
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  },
  "user": "system.user.admin"
}
</code></pre>
<p dir="auto">Die Frage lautet nun: wie kann ich auf diesen Wert unter VIS zugreifen, sodass dort <code>No error</code> statt <code>0</code> angezeigt wird?</p>
]]></description><link>https://forum.iobroker.net/topic/56415/formatierte-values-in-vis-anzeigen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 14:01:14 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/56415.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Jul 2022 14:48:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 16:47:45 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 />
Ich glaube diese Diskussion ist nicht zielführend, denn jeder hat einen anderen Anspruch und einen anderen Ansatz.</p>
<p dir="auto">Ich könnte mit der englischen Bezeichnung gut leben und hätte mich gefreut, wenn ich die Hilfestellung, die für den Admin gedacht ist, auch direkt in VIS nutzen könnte.</p>
<p dir="auto">Geht nicht, das hab ich verstanden und mich des Scripts von weiter oben bedient.</p>
]]></description><link>https://forum.iobroker.net/post/829079</link><guid isPermaLink="true">https://forum.iobroker.net/post/829079</guid><dc:creator><![CDATA[Hiltex]]></dc:creator><pubDate>Sun, 17 Jul 2022 16:47:45 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 16:24:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hiltex" aria-label="Profile: hiltex">@<bdi>hiltex</bdi></a> sagte in <a href="/post/829062">"formatierte Values" in VIS anzeigen</a>:</p>
<blockquote>
<p dir="auto">Aber die Informationen sind ja bereits vorhanden</p>
</blockquote>
<p dir="auto">nicht wirklich! als Werte stehen nur die Ziffern zur Verfügung.</p>
<p dir="auto">die Klartexte werden als Zusatzinfo für drn Admin vom Adapter hinzugefügt.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hiltex" aria-label="Profile: hiltex">@<bdi>hiltex</bdi></a> sagte in <a href="/post/829062">"formatierte Values" in VIS anzeigen</a>:</p>
<blockquote>
<p dir="auto">dass die API mal geändert wird und ein Fehlercode dann eine andere Bedeutung hat,</p>
</blockquote>
<p dir="auto">aber gerade dann wäre ja der Code selber ja die Anzeige der Wahl.<br />
deswegen enthält der Wert ja auch nur die Ziffer/den Code</p>
<p dir="auto">Ausserdem sind die Ziffern, wie Paul schon schrieb,  International gleich.  Die Klartexte müssten dann für alle Länder/Sprachen zur Verfügung stehen.<br />
Hier kannst du die Bezeichnung individuell anpassen.</p>
<p dir="auto">Es gab da auch schon Anfragen, dass eine Bezeichnung nicht dem regionalen Sprachgebrauch entspräche und das anzupassen sei.</p>
]]></description><link>https://forum.iobroker.net/post/829068</link><guid isPermaLink="true">https://forum.iobroker.net/post/829068</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 17 Jul 2022 16:24:21 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 16:10:42 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 />
Das ist kein Problem, zumindest kein technisches. Aber die Informationen sind ja bereits vorhanden und deswegen finde ich es nicht gut, dass ich die selbst noch einmal erzeugen muss.</p>
<p dir="auto">Es kann ja auch passieren, dass die API mal geändert wird und ein Fehlercode dann eine andere Bedeutung hat, das wäre dann automatisch aktuell, wenn der Adapter aktuell ist. Sicherlich ist das nicht besonders wahrscheinlich, aber ist ja auch nur ein grundsätzliches Beispiel.</p>
]]></description><link>https://forum.iobroker.net/post/829062</link><guid isPermaLink="true">https://forum.iobroker.net/post/829062</guid><dc:creator><![CDATA[Hiltex]]></dc:creator><pubDate>Sun, 17 Jul 2022 16:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 15:49:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hiltex" aria-label="Profile: hiltex">@<bdi>hiltex</bdi></a> sagte in <a href="/post/829048">"formatierte Values" in VIS anzeigen</a>:</p>
<blockquote>
<p dir="auto">Ich hatte mir da irgendwie mehr erhofft.</p>
</blockquote>
<p dir="auto">wo ist das Problem?<br />
du nimmst wie <a class="plugin-mentions-user plugin-mentions-a" href="/user/paul53" aria-label="Profile: paul53">@<bdi>paul53</bdi></a> schreibt, eins von den</p>
<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/829040">"formatierte Values" in VIS anzeigen</a>:</p>
<blockquote>
<p dir="auto">Widgets mit ValueList im Namen</p>
</blockquote>
<p dir="auto">und kopierst zeilenweise die Liste ausxden Objektdaten.</p>
<p dir="auto">dauert paar Klicks und fertig</p>
]]></description><link>https://forum.iobroker.net/post/829056</link><guid isPermaLink="true">https://forum.iobroker.net/post/829056</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 17 Jul 2022 15:49:43 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 15:19:20 GMT]]></title><description><![CDATA[<p dir="auto">Ok, schade. Ich hatte mir da irgendwie mehr erhofft.<br />
Aber vielen Dank für Eure Hilfe :)</p>
]]></description><link>https://forum.iobroker.net/post/829048</link><guid isPermaLink="true">https://forum.iobroker.net/post/829048</guid><dc:creator><![CDATA[Hiltex]]></dc:creator><pubDate>Sun, 17 Jul 2022 15:19:20 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 15:18:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hiltex" aria-label="Profile: hiltex">@<bdi>hiltex</bdi></a> sagte: das muss doch VIS auch selber können, oder täusche ich mich da?</p>
<p dir="auto">Soweit ich weiß, muss man in Vis die 20 Texte eingeben. Das hat den Vorteil, dass man sie dabei auch übersetzen kann.</p>
]]></description><link>https://forum.iobroker.net/post/829044</link><guid isPermaLink="true">https://forum.iobroker.net/post/829044</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sun, 17 Jul 2022 15:18:14 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 15:11:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hiltex" aria-label="Profile: hiltex">@<bdi>hiltex</bdi></a> sagte in <a href="/post/829042">"formatierte Values" in VIS anzeigen</a>:</p>
<blockquote>
<p dir="auto">Aber das muss doch VIS auch selber können</p>
</blockquote>
<p dir="auto">warum?</p>
<p dir="auto">der eigentliche Wert ist die Ziffer (siehe Objektdaten).<br />
der Admin wandelt das in verständliche Begriffe um.</p>
]]></description><link>https://forum.iobroker.net/post/829043</link><guid isPermaLink="true">https://forum.iobroker.net/post/829043</guid><dc:creator><![CDATA[Homoran]]></dc:creator><pubDate>Sun, 17 Jul 2022 15:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 15:09:46 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 />
Vielen Dank für die schnelle Antwort. Aber das muss doch VIS auch selber können, oder täusche ich mich da?</p>
]]></description><link>https://forum.iobroker.net/post/829042</link><guid isPermaLink="true">https://forum.iobroker.net/post/829042</guid><dc:creator><![CDATA[Hiltex]]></dc:creator><pubDate>Sun, 17 Jul 2022 15:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;formatierte Values&quot; in VIS anzeigen on Sun, 17 Jul 2022 15:24:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hiltex" aria-label="Profile: hiltex">@<bdi>hiltex</bdi></a> sagte: unter VIS zugreifen, sodass dort No error statt 0 angezeigt wird?</p>
<p dir="auto">Widgets mit <em>ValueList</em> im Namen erlauben, die Texte einzugeben.<br />
Soll die Wandlung in Text automatisch erfolgen, muss man sie mittels eines kleinen Skripts in einen eigenen Datenpunkt vom Typ "string" unter "0_userdata.0" schreiben.</p>
<pre><code>on('mihome-vacuum.0.info.error', function(dp) {
   setState('0_userdata.0.xyz', dp.common.states[dp.state.val], true);
});
</code></pre>
]]></description><link>https://forum.iobroker.net/post/829040</link><guid isPermaLink="true">https://forum.iobroker.net/post/829040</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sun, 17 Jul 2022 15:24:49 GMT</pubDate></item></channel></rss>