<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://wiki.fhem.de/w/index.php?action=history&amp;feed=atom&amp;title=FHEMWEB%2FPopup</id>
	<title>FHEMWEB/Popup - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.fhem.de/w/index.php?action=history&amp;feed=atom&amp;title=FHEMWEB%2FPopup"/>
	<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=FHEMWEB/Popup&amp;action=history"/>
	<updated>2026-11-18T14:06:53Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in FHEMWiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=FHEMWEB/Popup&amp;diff=41384&amp;oldid=prev</id>
		<title>Schwatter am 13. November 2026 um 21:17 Uhr</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=FHEMWEB/Popup&amp;diff=41384&amp;oldid=prev"/>
		<updated>2026-11-13T21:17:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 13. November 2026, 22:17 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Datei:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;popupwidget&lt;/del&gt;.png|Mini|rechts]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Datei:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Popup&lt;/ins&gt;.png|Mini|rechts]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Popup – Werte und Bedienelemente in einem Dialog ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Popup – Werte und Bedienelemente in einem Dialog ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1fhemwiki:diff:1.41:old-41381:rev-41384:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Schwatter</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=FHEMWEB/Popup&amp;diff=41381&amp;oldid=prev</id>
		<title>Schwatter: /* Popup – Werte und Bedienelemente in einem Dialog */</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=FHEMWEB/Popup&amp;diff=41381&amp;oldid=prev"/>
		<updated>2026-11-13T21:09:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Popup – Werte und Bedienelemente in einem Dialog&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 13. November 2026, 22:09 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Zeile 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Hilfe ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Hilfe ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Forenthread zum {{Link2Forum|Topic=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;XXXXXX&lt;/del&gt;|LinkText= Popup-Widget}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Forenthread zum {{Link2Forum|Topic=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;145840&lt;/ins&gt;|LinkText= Popup-Widget}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== popup – Dialog für Werte und Bedienelemente ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== popup – Dialog für Werte und Bedienelemente ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1fhemwiki:diff:1.41:old-41380:rev-41381:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Schwatter</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=FHEMWEB/Popup&amp;diff=41380&amp;oldid=prev</id>
		<title>Schwatter: Die Seite wurde neu angelegt: „rechts == Popup – Werte und Bedienelemente in einem Dialog ==  Das &#039;&#039;&#039;Popup-Widget&#039;&#039;&#039; zeigt im FHEMWEB (PGM2) Frontend einen kleinen Menü-Button (drei Striche) in der Gerätezeile. Ein Klick darauf öffnet einen Dialog mit frei wählbaren Readings samt Einheit und Icon sowie allen Bedienelementen aus dem &lt;code&gt;webCmd&lt;/code&gt; des Geräts, z. B. Slider, Auswahllisten, Colorpicker oder Icons aus &lt;code&gt;cmdIcon&lt;/code&gt;.…“</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=FHEMWEB/Popup&amp;diff=41380&amp;oldid=prev"/>
		<updated>2026-11-13T21:07:20Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&lt;a href=&quot;/w/index.php?title=Datei:Popupwidget.png&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Datei:Popupwidget.png (Seite nicht vorhanden)&quot;&gt;Mini|rechts&lt;/a&gt; == Popup – Werte und Bedienelemente in einem Dialog ==  Das &amp;#039;&amp;#039;&amp;#039;Popup-Widget&amp;#039;&amp;#039;&amp;#039; zeigt im &lt;a href=&quot;/wiki/FHEMWEB&quot; title=&quot;FHEMWEB&quot;&gt;FHEMWEB&lt;/a&gt; (&lt;a href=&quot;/wiki/PGM2&quot; title=&quot;PGM2&quot;&gt;PGM2&lt;/a&gt;) Frontend einen kleinen Menü-Button (drei Striche) in der Gerätezeile. Ein Klick darauf öffnet einen Dialog mit frei wählbaren Readings samt Einheit und Icon sowie allen Bedienelementen aus dem &amp;lt;code&amp;gt;webCmd&amp;lt;/code&amp;gt; des Geräts, z. B. Slider, Auswahllisten, Colorpicker oder Icons aus &amp;lt;code&amp;gt;cmdIcon&amp;lt;/code&amp;gt;.…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Datei:popupwidget.png|Mini|rechts]]&lt;br /&gt;
== Popup – Werte und Bedienelemente in einem Dialog ==&lt;br /&gt;
&lt;br /&gt;
Das &amp;#039;&amp;#039;&amp;#039;Popup-Widget&amp;#039;&amp;#039;&amp;#039; zeigt im [[FHEMWEB]] ([[PGM2]]) Frontend einen kleinen Menü-Button (drei Striche) in der Gerätezeile. Ein Klick darauf öffnet einen Dialog mit frei wählbaren Readings samt Einheit und Icon sowie allen Bedienelementen aus dem &amp;lt;code&amp;gt;webCmd&amp;lt;/code&amp;gt; des Geräts, z. B. Slider, Auswahllisten, Colorpicker oder Icons aus &amp;lt;code&amp;gt;cmdIcon&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Gedacht ist es vor allem für das Smartphone. Das Popup holt diese Bedienelemente zurück, ohne dass die Detailseite geöffnet werden muss. Das Popup übernimmt den Style des Skins und bringt keine eigenen Farben mit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Hilfe ===&lt;br /&gt;
* Forenthread zum {{Link2Forum|Topic=XXXXXX|LinkText= Popup-Widget}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== popup – Dialog für Werte und Bedienelemente ==&lt;br /&gt;
&lt;br /&gt;
=== 1️⃣ Widget im Device einrichten ===&lt;br /&gt;
Die Einrichtung erfolgt über das Attribut &amp;lt;code&amp;gt;webCmd&amp;lt;/code&amp;gt; und &amp;lt;code&amp;gt;widgetOverride&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Perl&amp;quot;&amp;gt;&lt;br /&gt;
attr &amp;lt;devicename&amp;gt; webCmd cmd&amp;lt;X&amp;gt;&lt;br /&gt;
attr &amp;lt;devicename&amp;gt; widgetOverride cmd&amp;lt;X&amp;gt;:popup,&amp;lt;Reading&amp;gt;@&amp;lt;Einheit&amp;gt;,&amp;lt;Reading&amp;gt;@&amp;lt;Einheit&amp;gt;,...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 2️⃣ Parameter ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter !! Beschreibung&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Reading@Einheit&amp;lt;/code&amp;gt; || Beliebig viele Readings, die im Dialog angezeigt werden. Die Einheit ist optional. Die Werte werden live aktualisiert.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;alwaysVisible&amp;lt;/code&amp;gt; || Optional: Button bei jeder Bildschirmbreite zeigen. Ohne diesen Schalter erscheint der Button nur im Hochformat bis 480 px Breite, also dort, wo f18 die Spalten ausblendet. Die Position in der Liste ist egal.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 3️⃣ Beispiel ===&lt;br /&gt;
&lt;br /&gt;
Nur auf dem Smartphone&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Perl&amp;quot;&amp;gt;&lt;br /&gt;
attr &amp;lt;device&amp;gt; webCmd pct:state:cmd1&lt;br /&gt;
attr &amp;lt;device&amp;gt; widgetOverride cmd1:popup,measured-temp@°C,humidity@%&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bei jeder Bildschirmbreite&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Perl&amp;quot;&amp;gt;&lt;br /&gt;
attr &amp;lt;device&amp;gt; widgetOverride cmd1:popup,alwaysVisible,measured-temp@°C,humidity@%&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auf Touch-Geräten öffnet sich der Dialog mittig, auf dem Desktop direkt am Button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bedienelemente aus webCmd ==&lt;br /&gt;
&lt;br /&gt;
Alle Einträge aus &amp;lt;code&amp;gt;webCmd&amp;lt;/code&amp;gt; erscheinen automatisch im Dialog, unterhalb der Readings. Der Popup-Eintrag selbst wird übersprungen. Die fertigen Elemente der Gerätezeile werden beim Öffnen in den Dialog verschoben und beim Schließen zurückgelegt. Slider, Auswahllisten, Colorpicker und &amp;lt;code&amp;gt;cmdIcon&amp;lt;/code&amp;gt; funktionieren deshalb genauso wie in der Gerätezeile.&lt;br /&gt;
&lt;br /&gt;
Als Beschriftung dient der Name des zugehörigen Readings, bei &amp;lt;code&amp;gt;cmdIcon&amp;lt;/code&amp;gt; der Befehlsname.&lt;br /&gt;
&lt;br /&gt;
Hängt ein Widget an einem Reading, das es noch nicht gibt, verwendet FHEM &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt;, und im Dialog steht dann auch &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt;. Abhilfe schafft, das Reading einmal anzulegen:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Perl&amp;quot;&amp;gt;&lt;br /&gt;
setreading &amp;lt;device&amp;gt; &amp;lt;reading&amp;gt; -&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Icons für Readings ==&lt;br /&gt;
&lt;br /&gt;
Links neben jedem Reading kann statt des Namens ein Icon stehen. Ist kein Icon gesetzt oder der Name unbekannt, steht dort der Reading-Name.&lt;br /&gt;
&lt;br /&gt;
=== 1️⃣ Icons im Device einrichten ===&lt;br /&gt;
Die Icons werden über die Attribute &amp;lt;code&amp;gt;icon_1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;icon_2&amp;lt;/code&amp;gt; usw. gesetzt. Die Nummer zählt nach der Reihenfolge der Readings in der Popup-Definition, &amp;lt;code&amp;gt;alwaysVisible&amp;lt;/code&amp;gt; zählt dabei nicht mit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Perl&amp;quot;&amp;gt;&lt;br /&gt;
attr &amp;lt;devicename&amp;gt; userattr icon_1 icon_2&lt;br /&gt;
attr &amp;lt;devicename&amp;gt; icon_1 &amp;lt;Icon&amp;gt;&lt;br /&gt;
attr &amp;lt;devicename&amp;gt; icon_2 &amp;lt;Icon&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 2️⃣ Parameter ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Format !! Beschreibung&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;temp_temperature@red&amp;lt;/code&amp;gt; || FHEM-Icon aus dem &amp;lt;code&amp;gt;iconPath&amp;lt;/code&amp;gt; von FHEMWEB, SVG oder PNG.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;data:image/svg+xml;;charset=utf-8,%3Csvg...%3E@red&amp;lt;/code&amp;gt; || SVG direkt im Attribut. Mit Farbe gilt sie für das ganze SVG.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;mdi-thermometer&amp;lt;/code&amp;gt; || Material Design Icon, die MDI-Schrift muss im Frontend geladen sein.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;fa-tint&amp;lt;/code&amp;gt; || Wird zuerst als FHEM-Icon gesucht, sonst als Font-Awesome-Klasse gesetzt.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;@Farbe&amp;lt;/code&amp;gt; || Optional bei FHEM-Icons und SVG: Farbname (&amp;lt;code&amp;gt;@red&amp;lt;/code&amp;gt;) oder Hex-Wert mit oder ohne Raute (&amp;lt;code&amp;gt;@FF8800&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;@#00AAFF&amp;lt;/code&amp;gt;). Ohne Farbe übernimmt ein SVG-Icon die Textfarbe des Styles.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 3️⃣ Beispiel ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Perl&amp;quot;&amp;gt;&lt;br /&gt;
attr &amp;lt;device&amp;gt; widgetOverride cmd1:popup,measured-temp@°C,humidity@%&lt;br /&gt;
attr &amp;lt;device&amp;gt; userattr icon_1 icon_2&lt;br /&gt;
attr &amp;lt;device&amp;gt; icon_1 temp_temperature@red&lt;br /&gt;
attr &amp;lt;device&amp;gt; icon_2 humidity&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Aussehen anpassen ==&lt;br /&gt;
&lt;br /&gt;
Das Popup verwendet dieselben Klassen wie die Detailseite (&amp;lt;code&amp;gt;block&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;odd&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;even&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;col1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dval&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mkTitle&amp;lt;/code&amp;gt;) und übernimmt auch die f18-Einstellung „Wrap columns on small screens“. Für eigene Anpassungen im Style stehen diese Klassen zur Verfügung:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Klasse !! Element&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;.fhem-popup-btn&amp;lt;/code&amp;gt; || Button in der Gerätezeile&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;.fhem-popup-container&amp;lt;/code&amp;gt; || Inhalt des Dialogs&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;.fhem-popup-table&amp;lt;/code&amp;gt; || Tabelle mit Readings und Bedienelementen&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;.fhem-popup-icon&amp;lt;/code&amp;gt; || Icon eines Readings&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Beispiel für mehr Abstand zwischen den Zeilen:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
.fhem-popup-table td {&lt;br /&gt;
    padding-top: 12px !important;&lt;br /&gt;
    padding-bottom: 12px !important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tipp für eigene dunkle Styles: jQuery UI legt auf &amp;lt;code&amp;gt;.ui-dialog&amp;lt;/code&amp;gt; ein helles Hintergrundbild. Wer dort nur &amp;lt;code&amp;gt;background-color&amp;lt;/code&amp;gt; setzt, sollte zusätzlich &amp;lt;code&amp;gt;background-image: none !important;&amp;lt;/code&amp;gt; ergänzen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [[FHEMWEB/Widgets|FHEMWEB Widgets]]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Code Snippets]]&lt;br /&gt;
[[Kategorie:FHEM Frontends]]&lt;/div&gt;</summary>
		<author><name>Schwatter</name></author>
	</entry>
</feed>