<?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[Mal wieder eine Frage zu bindings....]]></title><description><![CDATA[<p dir="auto">Hallo an alle,</p>
<p dir="auto">ich hoffe Ihr hattet ein schönes Weihnachtsfest.</p>
<p dir="auto">Habe nochmal zu einem binding.<br />
Ist vermutlich ganz leicht, aber irgendwie scheitere ich.</p>
<p dir="auto">Nutze aktuell für verschiedene Dinge dieses binding:</p>
<pre><code>{wert:0_userdata.0.Multimedia.TV_Wohnzimmer.Ist_ein_aus; wert === "true" ? "an" : "aus"}
</code></pre>
<p dir="auto">Jedoch schaffe ich es jetzt nicht, für "an" einen Wert aus einem anderen Datenpunkt</p>
<pre><code>{0_userdata.0.Multimedia.TV_Wohnzimmer.aktive_app} 
</code></pre>
<p dir="auto">einzusetzen.</p>
<p dir="auto">Kann mir da jemand weiterhelfen?</p>
<p dir="auto">In der SuFu finde ich nur die komplizierten Dinge. Vermutlich bin nur ich zu Beschränkt 🤣</p>
]]></description><link>https://forum.iobroker.net/topic/50727/mal-wieder-eine-frage-zu-bindings</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 23:36:47 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/50727.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Dec 2021 16:12:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 22 Feb 2022 11:31:12 GMT]]></title><description><![CDATA[<p dir="auto">@david-g sagte in <a href="/post/766568">Mal wieder eine Frage zu bindings....</a>:</p>
<blockquote>
<p dir="auto">Selbst bei einem</p>
<pre><code>{bravia.0.info.playingContentInfo}
</code></pre>
<p dir="auto">bleibt das binding leer.</p>
<p dir="auto">EDIT:<br />
Kann es dran liegen, dass ich den selben Datenpunkt 2x in verschiedenen Bindings nutze?<br />
EDIT 2:<br />
Das war es nicht. Hab das andere Binding testhalber entfernt.</p>
</blockquote>
<p dir="auto">bzgl. EDIT (hast du aber schon selbst bemerkt): du kannst alles beliebig oft benutzen, eine Variable aber nur einmalig innerhalb "{}" zuweisen und auch nur da auswerten/mit arbeiten. Innerhalb Binding(#2) kannst du auf keine Variable mehr von Binding(#1) zugreifen.</p>
<p dir="auto">Dass er bei dem einfachen Binding schon den Sender nicht mehr anzeigt kann dann nur an Lovelace liegen. Geht es denn bei einem Sender ohne Leerzeichen?<br />
Versuche es ev. auch mal so mit Anführungszeichen:</p>
<pre><code>"{bravia.0.info.playingContentInfo}"
</code></pre>
]]></description><link>https://forum.iobroker.net/post/766902</link><guid isPermaLink="true">https://forum.iobroker.net/post/766902</guid><dc:creator><![CDATA[SBorg]]></dc:creator><pubDate>Tue, 22 Feb 2022 11:31:12 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 21 Feb 2022 20:03:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sborg" aria-label="Profile: sborg">@<bdi>sborg</bdi></a></p>
<p dir="auto">Jetzt hab ich doch ein Problem. Liegt aber denke nicht am Binding selber.</p>
<p dir="auto">So sieht die Karte aus. Oben die Bindings und unten das Ergebnis. Das untere Bindung ist das aktuelle um das es geht.</p>
<p dir="auto"><img src="/assets/uploads/files/1645473325344-screenshot_20220221-204958_fully-kiosk-browser.jpg" alt="Screenshot_20220221-204958_Fully Kiosk Browser.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Wie man sieht, wird das TV aus dem ersten Datenpunkt erkannt. Allerdings fehlt der Text aus dem Sony Datenpunkt.<br />
Im Bild sieht man, dass der Datenpunkt befüllt ist.<br />
<img src="/assets/uploads/files/1645473183125-screenshot_20220221-205227_chrome.jpg" alt="Screenshot_20220221-205227_Chrome.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Wenn ich testhalber den Datenpunkt drüber mit der Modellnummer nehme geht's.</p>
<p dir="auto">Selbst bei einem</p>
<pre><code>{bravia.0.info.playingContentInfo}
</code></pre>
<p dir="auto">bleibt das binding leer.</p>
<p dir="auto">EDIT:<br />
Kann es dran liegen, dass ich den selben Datenpunkt 2x in verschiedenen Bindings nutze?<br />
EDIT 2:<br />
Das war es nicht. Hab das andere Binding testhalber entfernt.</p>
]]></description><link>https://forum.iobroker.net/post/766568</link><guid isPermaLink="true">https://forum.iobroker.net/post/766568</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Mon, 21 Feb 2022 20:03:37 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 21 Feb 2022 13:10:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sborg" aria-label="Profile: sborg">@<bdi>sborg</bdi></a></p>
<p dir="auto">Klappt wunderbar, vielen Dank.<br />
Die Leerstelle nach dem "-" muss ich weg lassen, sonst macht er mir da in der Visualisierung (Lovelace) eine Aufzählung draus.</p>
]]></description><link>https://forum.iobroker.net/post/766291</link><guid isPermaLink="true">https://forum.iobroker.net/post/766291</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Mon, 21 Feb 2022 13:10:06 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 21 Feb 2022 12:47:34 GMT]]></title><description><![CDATA[<p dir="auto">@david-g Kann ich leider nicht testen, aber Selbstversuch macht kluch ;)</p>
<pre><code>{app:0_userdata.0.Multimedia.TV_Wohnzimmer.aktive_app; sony:sony-bravia.0.info.playingContentInfo; app == "TV" ? "-"+sony : ""}
</code></pre>
<p dir="auto">Solange da <em>genau</em> "TV" drin steht.</p>
]]></description><link>https://forum.iobroker.net/post/766281</link><guid isPermaLink="true">https://forum.iobroker.net/post/766281</guid><dc:creator><![CDATA[SBorg]]></dc:creator><pubDate>Mon, 21 Feb 2022 12:47:34 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 21 Feb 2022 12:33:27 GMT]]></title><description><![CDATA[<p dir="auto">Der Sony-TV Adapter hat ein Update bekommen und jetzt habe ich die nächste Idee für meine Visu.<br />
Scheitere aber wieder am Binding...</p>
<p dir="auto">Würde gerne wenn</p>
<pre><code>0_userdata.0.Multimedia.TV_Wohnzimmer.aktive_app
</code></pre>
<p dir="auto">den Inhalt "TV" hat den Inhalt von</p>
<pre><code>sony-bravia.0.info.playingContentInfo
</code></pre>
<p dir="auto">mit einem " - " vor anzeigen lassen.<br />
Wenn bei Aktive App was anderes wie TV steht, möchte ich einfach nichts angezeigt bekommen.</p>
<p dir="auto">Geht das?</p>
]]></description><link>https://forum.iobroker.net/post/766268</link><guid isPermaLink="true">https://forum.iobroker.net/post/766268</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Mon, 21 Feb 2022 12:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 13:38:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Danke für deine Unterstützung.</p>
]]></description><link>https://forum.iobroker.net/post/728206</link><guid isPermaLink="true">https://forum.iobroker.net/post/728206</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Tue, 28 Dec 2021 13:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 13:20:10 GMT]]></title><description><![CDATA[<p dir="auto">@david-g sagte in <a href="/post/727990">Mal wieder eine Frage zu bindings....</a>:</p>
<blockquote>
<p dir="auto">Hab beim vorangestellten Text das &amp; durch ein + getauscht.</p>
</blockquote>
<p dir="auto">ja, das ist es.</p>
]]></description><link>https://forum.iobroker.net/post/728183</link><guid isPermaLink="true">https://forum.iobroker.net/post/728183</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Tue, 28 Dec 2021 13:20:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 11:50:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a> sagte in <a href="/post/727978">Mal wieder eine Frage zu bindings....</a>:</p>
<blockquote>
<p dir="auto">@david-g</p>
<p dir="auto">so mal schnell (ohne Test)</p>
<p dir="auto">ändere mal<br />
v1=="true"?v2:"aus"<br />
ab in<br />
v1=="true"?"aktuell läuft"&amp;v2:"aus"</p>
<p dir="auto">klappt das ?</p>
</blockquote>
<p dir="auto">Also</p>
<pre><code>{v1:0_userdata.0.Multimedia.TV_Wohnzimmer.Ist_ein_aus;v2:0_userdata.0.Multimedia.TV_Wohnzimmer.aktive_app;v1=="true"?"aktuell läuft"&amp;v2:"aus"}
</code></pre>
<p dir="auto">Da kommt jetzt wenn der TV an ist als Ergebniss 0.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a> sagte in <a href="/post/727981">Mal wieder eine Frage zu bindings....</a>:</p>
<blockquote>
<p dir="auto">@david-g</p>
<p dir="auto">Es gibt auch widgets, da kannst du Text davor oder dahinter stellen lassen!<br />
<img src="/assets/uploads/files/1640684995576-dc72a421-2220-4bb0-bde2-d6b29012024d-image.png" alt="dc72a421-2220-4bb0-bde2-d6b29012024d-image.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">Nutze kein VIS. Han lovelace. Da klappen auch Bindibgs.</p>
<p dir="auto">EDIT:<br />
Hab es hinbekommen.<br />
Hab beim vorangestellten Text das &amp; durch ein + getauscht.</p>
<pre><code>{v1:0_userdata.0.Multimedia.TV_Wohnzimmer.Ist_ein_aus;v2:0_userdata.0.Multimedia.TV_Wohnzimmer.aktive_app;v1=="true"?"Aktuelle Medienquelle: "+v2:"Der Fernseher ist ausgeschaltet."}
</code></pre>
]]></description><link>https://forum.iobroker.net/post/727990</link><guid isPermaLink="true">https://forum.iobroker.net/post/727990</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Tue, 28 Dec 2021 11:50:42 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 09:50:00 GMT]]></title><description><![CDATA[<p dir="auto">@david-g</p>
<p dir="auto">Es gibt auch widgets, da kannst du Text davor oder dahinter stellen lassen!<br />
<img src="/assets/uploads/files/1640684995576-dc72a421-2220-4bb0-bde2-d6b29012024d-image.png" alt="dc72a421-2220-4bb0-bde2-d6b29012024d-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/727981</link><guid isPermaLink="true">https://forum.iobroker.net/post/727981</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Tue, 28 Dec 2021 09:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 09:47:59 GMT]]></title><description><![CDATA[<p dir="auto">@david-g</p>
<p dir="auto">so mal schnell (ohne Test)</p>
<p dir="auto">ändere mal<br />
v1=="true"?v2:"aus"<br />
ab in<br />
v1=="true"?"aktuell läuft"&amp;v2:"aus"</p>
<p dir="auto">klappt das ?</p>
]]></description><link>https://forum.iobroker.net/post/727978</link><guid isPermaLink="true">https://forum.iobroker.net/post/727978</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Tue, 28 Dec 2021 09:47:59 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 09:45:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Immer gleich.<br />
Der erste Datenpunkt sagt ob der TV ein ist.<br />
Im zweiten welche App zuletzt am TV geöffnet war.</p>
<p dir="auto">In der letzten Version hab ich dann jetzt jenachdem ob der TV an oder aus ist:</p>
<p dir="auto">"Der Fernseher ist ausgeschaltet" oder zb "Netflix".</p>
<p dir="auto">Anstatt nur "Netflix" aus dem zweiten Datenpunkt wäre zb "Aktuell läuft Netflix" ganz cool.</p>
]]></description><link>https://forum.iobroker.net/post/727976</link><guid isPermaLink="true">https://forum.iobroker.net/post/727976</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Tue, 28 Dec 2021 09:45:52 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 09:39:57 GMT]]></title><description><![CDATA[<p dir="auto">@david-g sagte in <a href="/post/727970">Mal wieder eine Frage zu bindings....</a>:</p>
<blockquote>
<p dir="auto">Text vor schreiben?</p>
</blockquote>
<p dir="auto">Text der immer gleich ist.<br />
Oder auch wieder ein anderer DP?</p>
]]></description><link>https://forum.iobroker.net/post/727975</link><guid isPermaLink="true">https://forum.iobroker.net/post/727975</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Tue, 28 Dec 2021 09:39:57 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 09:20:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Jetzt komme ich vom Ästchen aufs Stöckchen.</p>
<p dir="auto">Kann man vor den zweiten eingebunden Datenpunkt noch einen Text vor schreiben?<br />
Hab an verschieden Stellen einfach mal was hingeschrieben. Klappt aber nicht....</p>
<p dir="auto">Könnte einfach noch ein binding vor machen. Aber In einem wäre es aber korrekter und man lernt noch was ^^.</p>
]]></description><link>https://forum.iobroker.net/post/727970</link><guid isPermaLink="true">https://forum.iobroker.net/post/727970</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Tue, 28 Dec 2021 09:20:02 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 09:03:12 GMT]]></title><description><![CDATA[<p dir="auto">@david-g</p>
<p dir="auto">seit irgendeiner vis version braucht es das "true" bei boolean-werten - sonst geht es nicht</p>
<p dir="auto">manchmal müssen sogar zahlen umgewandelt werden, da sie als string gesehen werden.</p>
<p dir="auto">beispiel:<br />
im 2ten Beispiel braucht es die umwandlung mit number(). im ersten beispiel nicht</p>
<pre><code>{v:0_userdata.0.CONTROL-OWN.AAATEST.TestZahlPx; Math.round(v * 100)/100}
{v:0_userdata.0.CONTROL-OWN.AAATEST.TestZahlPx; Number(v).toFixed(2)}
</code></pre>
]]></description><link>https://forum.iobroker.net/post/727959</link><guid isPermaLink="true">https://forum.iobroker.net/post/727959</guid><dc:creator><![CDATA[liv-in-sky]]></dc:creator><pubDate>Tue, 28 Dec 2021 09:03:12 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 08:57:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Vielen Dank.<br />
Klappt. Danke für die Hilfe.</p>
<p dir="auto">P.S.:<br />
Ohne die "" klappt es bei mir auch nicht. Auch nicht bei meiner ersten Version. Gestern vergessen zu schreiben.</p>
]]></description><link>https://forum.iobroker.net/post/727957</link><guid isPermaLink="true">https://forum.iobroker.net/post/727957</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Tue, 28 Dec 2021 08:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Tue, 28 Dec 2021 08:42:06 GMT]]></title><description><![CDATA[<p dir="auto">@david-g</p>
<p dir="auto">probiers mal so:</p>
<pre><code>{v1:0_userdata.0.Multimedia.TV_Wohnzimmer.Ist_ein_aus;v2:dein_anderer_DP;v1=="true"?v2:"aus"}
</code></pre>
<p dir="auto">Das hat bei mir geklappt.<br />
Und ich musste auch true in "" lassen; ohne ging es nicht.</p>
<p dir="auto">Bitte Rückinfo wenn es klappt.</p>
]]></description><link>https://forum.iobroker.net/post/727948</link><guid isPermaLink="true">https://forum.iobroker.net/post/727948</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Tue, 28 Dec 2021 08:42:06 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 27 Dec 2021 17:45:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Das bekomme ich hin ^^.</p>
<p dir="auto">Steht nurnoch die Frage im Raum, wie ich anstatt "an" einen anderen Datenpunkt einsetze.<br />
Falls das denn möglich ist.</p>
]]></description><link>https://forum.iobroker.net/post/727727</link><guid isPermaLink="true">https://forum.iobroker.net/post/727727</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Mon, 27 Dec 2021 17:45:03 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 27 Dec 2021 17:35:10 GMT]]></title><description><![CDATA[<p dir="auto">@david-g Gänsefüsschen um das true wegmachen^^</p>
]]></description><link>https://forum.iobroker.net/post/727716</link><guid isPermaLink="true">https://forum.iobroker.net/post/727716</guid><dc:creator><![CDATA[mickym]]></dc:creator><pubDate>Mon, 27 Dec 2021 17:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 27 Dec 2021 17:33:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a> sagte in <a href="/post/727694">Mal wieder eine Frage zu bindings....</a>:</p>
<blockquote>
<p dir="auto">Weil, du wertest einen string ! aus ("true") !</p>
</blockquote>
]]></description><link>https://forum.iobroker.net/post/727713</link><guid isPermaLink="true">https://forum.iobroker.net/post/727713</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Mon, 27 Dec 2021 17:33:52 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 27 Dec 2021 17:32:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bahnuhr" aria-label="Profile: bahnuhr">@<bdi>bahnuhr</bdi></a></p>
<p dir="auto">Ja, ist ein boolean.<br />
Den Wert den ich bei true einsetzen möchte ist ein String.</p>
]]></description><link>https://forum.iobroker.net/post/727702</link><guid isPermaLink="true">https://forum.iobroker.net/post/727702</guid><dc:creator><![CDATA[David G.]]></dc:creator><pubDate>Mon, 27 Dec 2021 17:32:32 GMT</pubDate></item><item><title><![CDATA[Reply to Mal wieder eine Frage zu bindings.... on Mon, 27 Dec 2021 17:21:17 GMT]]></title><description><![CDATA[<p dir="auto">@david-g sagte in <a href="/post/727642">Mal wieder eine Frage zu bindings....</a>:</p>
<blockquote>
<p dir="auto">{wert:0_userdata.0.Multimedia.TV_Wohnzimmer.Ist_ein_aus; wert === "true" ? "an" : "aus"}</p>
</blockquote>
<p dir="auto">Ist der DP boolean oder string?</p>
<p dir="auto">Weil, du wertest einen string ! aus ("true") !</p>
]]></description><link>https://forum.iobroker.net/post/727694</link><guid isPermaLink="true">https://forum.iobroker.net/post/727694</guid><dc:creator><![CDATA[bahnuhr]]></dc:creator><pubDate>Mon, 27 Dec 2021 17:21:17 GMT</pubDate></item></channel></rss>