<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://wiki.fhem.de/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Micomat</id>
	<title>FHEMWiki - Benutzerbeiträge [de]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.fhem.de/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Micomat"/>
	<link rel="alternate" type="text/html" href="http://wiki.fhem.de/wiki/Spezial:Beitr%C3%A4ge/Micomat"/>
	<updated>2026-04-30T01:04:54Z</updated>
	<subtitle>Benutzerbeiträge</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=22077</id>
		<title>G-Homa</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=22077"/>
		<updated>2017-08-09T10:09:38Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* WLAN konfigurieren */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=GHoma&lt;br /&gt;
|ModPurpose=Anbindung der WIFI Steckdose G-Homa&lt;br /&gt;
|ModCmdRef=GHoma&lt;br /&gt;
|ModType=d&lt;br /&gt;
|ModForumArea=Sonstige Systeme&lt;br /&gt;
|ModTechName=53_GHoma.pm&lt;br /&gt;
|ModOwner=klausw&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Die G-Homa oder GHoma Steckdose ist eine per WLAN schaltbare Steckdose. Diese Steckdose wird in vielen Baumärkten und im Internet vertrieben. Das Modul unterstützt die &amp;quot;set extensions&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Es gibt sowohl eine Indoor, als auch eine Outdoor Variante.&lt;br /&gt;
&lt;br /&gt;
==Vorbereitung der Steckdose==&lt;br /&gt;
Standardmäßig verbindet sich die Dose zu einem Server in der Cloud. Damit sie mit FHEM funktoiniert, muss diese Konfiguration angepasst werden.&lt;br /&gt;
===WLAN konfigurieren===&lt;br /&gt;
* Gerät in den AP Modus bringen (Knopf für mehr als 3s drücken, diesen Schritt wiederholen bis die LED permanent leuchtet)&lt;br /&gt;
* Nun einen Computer mit der SSID &amp;lt;code&amp;gt;G-Homa&amp;lt;/code&amp;gt; verbinden.&lt;br /&gt;
* Im Browser zu http://10.10.100.254 (username:passwort = admin:admin)&lt;br /&gt;
* In STA Setting WLAN Einstellungen eintragen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hinweis:&#039;&#039;&#039; Ab einer Firmware &amp;gt;1.0.06 wird in diesen Geräten die Konfiguration über HTTP nicht mehr unterstützt. In diesem Fall muss die Konfiguration über die G-Homa App erfolgen.&lt;br /&gt;
&lt;br /&gt;
===Network Parameters settings===&lt;br /&gt;
Other Setting -&amp;gt; Protocol auf TCP-Server (bei 1.0.06 kann es notwendig sein auf TCP-Client umzustellen)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Port ID (wird später für FHEM benötigt)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Server Address (IP Adresse des FHEM Servers)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optional===&lt;br /&gt;
Im Router alle ausgehenden Verbindungen für G-Homa blockieren.&lt;br /&gt;
&lt;br /&gt;
===Allgemeines===&lt;br /&gt;
Die Dose erfordert eine dauerhafte Verbindung zum Server (fhem). Wenn die Verbindung wegen Timeouts, WLAN Ausfall, ... abbricht, beginnt die LED an der Steckdose zu blinken und Schaltvorgänge werden unterbunden. Erst wenn die Verbindung wieder steht, reagiert die Dose wieder wie gewohnt. Ist die Verbindung per WLAN zu schwach, kann das zu dauerhaften Reconnects führen.&lt;br /&gt;
&lt;br /&gt;
==Define==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Legt ein GHoma Server device an.&amp;lt;br&amp;gt;&lt;br /&gt;
Neue Zwischenstecker werden beim ersten verbinden automatisch angelegt.&amp;lt;br&amp;gt;&lt;br /&gt;
Diese können aber auch manuell angelegt werden:&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;Id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Die Id besteht aus den letzten 6 Stellen der MAC Adresse des Zwischensteckers.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispiel: MAC= AC:CF:23:A5:E2:3B -&amp;gt; Id= A5E23B&lt;br /&gt;
&lt;br /&gt;
==Set==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;set &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Gültige Werte für value:&lt;br /&gt;
:off&lt;br /&gt;
:on&lt;br /&gt;
Die [http://fhem.de/commandref#setExtensions set extensions] werden auch unterstützt.&lt;br /&gt;
&lt;br /&gt;
==Attribute==&lt;br /&gt;
&lt;br /&gt;
Für Zwischenstecker devices:&lt;br /&gt;
:restoreOnStartup&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:restoreOnReinit&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:blocklocal&lt;br /&gt;
Wert im Reading State sofort nach Änderung über lokale Taste wiederherstellen&lt;br /&gt;
Standard: no, gültige Werte: no, yes&lt;br /&gt;
&lt;br /&gt;
Für Server devices:&lt;br /&gt;
:allowfrom&lt;br /&gt;
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut gesetzt wurde, werden ausschließlich Verbindungen von diesen Adressen akzeptiert.&lt;br /&gt;
&lt;br /&gt;
==Specs==&lt;br /&gt;
* Herstellerseite: [http://www.g-homa.com http://www.g-homa.com]&lt;br /&gt;
* [https://files.elv.com/Assets/Produkte/12/1218/121893/Downloads/121893_wifi_funkschaltsteckdose_um.pdf Bedienungsanleitung WiFi Smart Steckdose IP44]&lt;br /&gt;
* Typ: EMW302WFO&lt;br /&gt;
* Spannung: 230V&lt;br /&gt;
* Stecker/Dose: Schuko Typ-F&lt;br /&gt;
* Strom: max 16A&lt;br /&gt;
* Leistung: max 3680W&lt;br /&gt;
* Schutzklasse (nur Outdoor): IP44&lt;br /&gt;
* WiFi: 802.11 b/g/n&lt;br /&gt;
* Von EverFlourish Europe GmbH, Robert-Koch-Str. 4, D-66299 Friedrichsthal&lt;br /&gt;
* Das Gerät wird mit einem [http://www.iotworkshop.com/hf-lpt100f HF-LPT100F] realisiert, dass durch eine Spannungsaufbereitung, ein Relais nebst Treiber, einen Taster und einer LED auf zwei weiteren PCBs erweitert wurde.&lt;br /&gt;
:* Darauf ist als SoC ein [https://www.generationrobots.com/media/MediaTek_MT5931_Wi-Fi_Data_Sheet_v1_0.pdf MT5931] verbaut, weshalb das Gerät eine MAC von &#039;&#039;Hi-flying electronics technology Co.,Ltd&#039;&#039; an der WLAN-Schnittstelle verwendet.&lt;br /&gt;
:* Für technisch interessierte, lässt sich das Modul HF-LPT100F über eine UART-Schnittstelle (unbelegte Pins 5 und 6) am Pfostenstecker neu programmieren. Die Funktionen des Geräts sind realisiert durch:&lt;br /&gt;
::# einem Taster gegen Masse mit Pull-Up-Widerstand an GPIO 18&lt;br /&gt;
::# eine LED mit Vorwiderstand an GPIO 11&lt;br /&gt;
::# ein Relais mit Treiber an GPIO 12&lt;br /&gt;
:* Die UART und damit bei Bedarf auch GPIO 5 und 6 sind unbelegt.&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:IP Components]]&lt;br /&gt;
[[Kategorie:Schalter (Empfänger)]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=22076</id>
		<title>G-Homa</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=22076"/>
		<updated>2017-08-09T10:09:10Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* WLAN konfigurieren */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=GHoma&lt;br /&gt;
|ModPurpose=Anbindung der WIFI Steckdose G-Homa&lt;br /&gt;
|ModCmdRef=GHoma&lt;br /&gt;
|ModType=d&lt;br /&gt;
|ModForumArea=Sonstige Systeme&lt;br /&gt;
|ModTechName=53_GHoma.pm&lt;br /&gt;
|ModOwner=klausw&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Die G-Homa oder GHoma Steckdose ist eine per WLAN schaltbare Steckdose. Diese Steckdose wird in vielen Baumärkten und im Internet vertrieben. Das Modul unterstützt die &amp;quot;set extensions&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Es gibt sowohl eine Indoor, als auch eine Outdoor Variante.&lt;br /&gt;
&lt;br /&gt;
==Vorbereitung der Steckdose==&lt;br /&gt;
Standardmäßig verbindet sich die Dose zu einem Server in der Cloud. Damit sie mit FHEM funktoiniert, muss diese Konfiguration angepasst werden.&lt;br /&gt;
===WLAN konfigurieren===&lt;br /&gt;
* Gerät in den AP Modus bringen (Knopf für mehr als 3s drücken, diesen Schritt wiederholen bis die LED permanent leuchtet)&lt;br /&gt;
* Nun einen Computer mit der SSID &amp;lt;code&amp;gt;G-Homa&amp;lt;/code&amp;gt; verbinden.&lt;br /&gt;
* Im Browser zu http://10.10.100.254 (username:passwort = admin:admin)&lt;br /&gt;
* In STA Setting WLAN Einstellungen eintragen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hinweis:&#039;&#039;&#039; Ab der Firmware &amp;gt;1.0.06 wird in diesen Geräten die Konfiguration über HTTP nicht mehr unterstützt. In diesem Fall muss die Konfiguration über die G-Homa App erfolgen.&lt;br /&gt;
&lt;br /&gt;
===Network Parameters settings===&lt;br /&gt;
Other Setting -&amp;gt; Protocol auf TCP-Server (bei 1.0.06 kann es notwendig sein auf TCP-Client umzustellen)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Port ID (wird später für FHEM benötigt)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Server Address (IP Adresse des FHEM Servers)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optional===&lt;br /&gt;
Im Router alle ausgehenden Verbindungen für G-Homa blockieren.&lt;br /&gt;
&lt;br /&gt;
===Allgemeines===&lt;br /&gt;
Die Dose erfordert eine dauerhafte Verbindung zum Server (fhem). Wenn die Verbindung wegen Timeouts, WLAN Ausfall, ... abbricht, beginnt die LED an der Steckdose zu blinken und Schaltvorgänge werden unterbunden. Erst wenn die Verbindung wieder steht, reagiert die Dose wieder wie gewohnt. Ist die Verbindung per WLAN zu schwach, kann das zu dauerhaften Reconnects führen.&lt;br /&gt;
&lt;br /&gt;
==Define==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Legt ein GHoma Server device an.&amp;lt;br&amp;gt;&lt;br /&gt;
Neue Zwischenstecker werden beim ersten verbinden automatisch angelegt.&amp;lt;br&amp;gt;&lt;br /&gt;
Diese können aber auch manuell angelegt werden:&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;Id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Die Id besteht aus den letzten 6 Stellen der MAC Adresse des Zwischensteckers.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispiel: MAC= AC:CF:23:A5:E2:3B -&amp;gt; Id= A5E23B&lt;br /&gt;
&lt;br /&gt;
==Set==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;set &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Gültige Werte für value:&lt;br /&gt;
:off&lt;br /&gt;
:on&lt;br /&gt;
Die [http://fhem.de/commandref#setExtensions set extensions] werden auch unterstützt.&lt;br /&gt;
&lt;br /&gt;
==Attribute==&lt;br /&gt;
&lt;br /&gt;
Für Zwischenstecker devices:&lt;br /&gt;
:restoreOnStartup&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:restoreOnReinit&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:blocklocal&lt;br /&gt;
Wert im Reading State sofort nach Änderung über lokale Taste wiederherstellen&lt;br /&gt;
Standard: no, gültige Werte: no, yes&lt;br /&gt;
&lt;br /&gt;
Für Server devices:&lt;br /&gt;
:allowfrom&lt;br /&gt;
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut gesetzt wurde, werden ausschließlich Verbindungen von diesen Adressen akzeptiert.&lt;br /&gt;
&lt;br /&gt;
==Specs==&lt;br /&gt;
* Herstellerseite: [http://www.g-homa.com http://www.g-homa.com]&lt;br /&gt;
* [https://files.elv.com/Assets/Produkte/12/1218/121893/Downloads/121893_wifi_funkschaltsteckdose_um.pdf Bedienungsanleitung WiFi Smart Steckdose IP44]&lt;br /&gt;
* Typ: EMW302WFO&lt;br /&gt;
* Spannung: 230V&lt;br /&gt;
* Stecker/Dose: Schuko Typ-F&lt;br /&gt;
* Strom: max 16A&lt;br /&gt;
* Leistung: max 3680W&lt;br /&gt;
* Schutzklasse (nur Outdoor): IP44&lt;br /&gt;
* WiFi: 802.11 b/g/n&lt;br /&gt;
* Von EverFlourish Europe GmbH, Robert-Koch-Str. 4, D-66299 Friedrichsthal&lt;br /&gt;
* Das Gerät wird mit einem [http://www.iotworkshop.com/hf-lpt100f HF-LPT100F] realisiert, dass durch eine Spannungsaufbereitung, ein Relais nebst Treiber, einen Taster und einer LED auf zwei weiteren PCBs erweitert wurde.&lt;br /&gt;
:* Darauf ist als SoC ein [https://www.generationrobots.com/media/MediaTek_MT5931_Wi-Fi_Data_Sheet_v1_0.pdf MT5931] verbaut, weshalb das Gerät eine MAC von &#039;&#039;Hi-flying electronics technology Co.,Ltd&#039;&#039; an der WLAN-Schnittstelle verwendet.&lt;br /&gt;
:* Für technisch interessierte, lässt sich das Modul HF-LPT100F über eine UART-Schnittstelle (unbelegte Pins 5 und 6) am Pfostenstecker neu programmieren. Die Funktionen des Geräts sind realisiert durch:&lt;br /&gt;
::# einem Taster gegen Masse mit Pull-Up-Widerstand an GPIO 18&lt;br /&gt;
::# eine LED mit Vorwiderstand an GPIO 11&lt;br /&gt;
::# ein Relais mit Treiber an GPIO 12&lt;br /&gt;
:* Die UART und damit bei Bedarf auch GPIO 5 und 6 sind unbelegt.&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:IP Components]]&lt;br /&gt;
[[Kategorie:Schalter (Empfänger)]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=22075</id>
		<title>G-Homa</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=22075"/>
		<updated>2017-08-09T10:08:39Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Network Parameters settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=GHoma&lt;br /&gt;
|ModPurpose=Anbindung der WIFI Steckdose G-Homa&lt;br /&gt;
|ModCmdRef=GHoma&lt;br /&gt;
|ModType=d&lt;br /&gt;
|ModForumArea=Sonstige Systeme&lt;br /&gt;
|ModTechName=53_GHoma.pm&lt;br /&gt;
|ModOwner=klausw&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Die G-Homa oder GHoma Steckdose ist eine per WLAN schaltbare Steckdose. Diese Steckdose wird in vielen Baumärkten und im Internet vertrieben. Das Modul unterstützt die &amp;quot;set extensions&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Es gibt sowohl eine Indoor, als auch eine Outdoor Variante.&lt;br /&gt;
&lt;br /&gt;
==Vorbereitung der Steckdose==&lt;br /&gt;
Standardmäßig verbindet sich die Dose zu einem Server in der Cloud. Damit sie mit FHEM funktoiniert, muss diese Konfiguration angepasst werden.&lt;br /&gt;
===WLAN konfigurieren===&lt;br /&gt;
* Gerät in den AP Modus bringen (Knopf für mehr als 3s drücken, diesen Schritt wiederholen bis die LED permanent leuchtet)&lt;br /&gt;
* Nun einen Computer mit der SSID &amp;lt;code&amp;gt;G-Homa&amp;lt;/code&amp;gt; verbinden.&lt;br /&gt;
* Im Browser zu http://10.10.100.254 (username:passwort = admin:admin)&lt;br /&gt;
* In STA Setting WLAN Einstellungen eintragen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hinweis:&#039;&#039;&#039; Ab der Firmware 1.0.06 wird in diesen Geräten die Konfiguration über HTTP nicht mehr unterstützt. In diesem Fall muss die Konfiguration über die G-Homa App erfolgen.&lt;br /&gt;
&lt;br /&gt;
===Network Parameters settings===&lt;br /&gt;
Other Setting -&amp;gt; Protocol auf TCP-Server (bei 1.0.06 kann es notwendig sein auf TCP-Client umzustellen)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Port ID (wird später für FHEM benötigt)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Server Address (IP Adresse des FHEM Servers)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optional===&lt;br /&gt;
Im Router alle ausgehenden Verbindungen für G-Homa blockieren.&lt;br /&gt;
&lt;br /&gt;
===Allgemeines===&lt;br /&gt;
Die Dose erfordert eine dauerhafte Verbindung zum Server (fhem). Wenn die Verbindung wegen Timeouts, WLAN Ausfall, ... abbricht, beginnt die LED an der Steckdose zu blinken und Schaltvorgänge werden unterbunden. Erst wenn die Verbindung wieder steht, reagiert die Dose wieder wie gewohnt. Ist die Verbindung per WLAN zu schwach, kann das zu dauerhaften Reconnects führen.&lt;br /&gt;
&lt;br /&gt;
==Define==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Legt ein GHoma Server device an.&amp;lt;br&amp;gt;&lt;br /&gt;
Neue Zwischenstecker werden beim ersten verbinden automatisch angelegt.&amp;lt;br&amp;gt;&lt;br /&gt;
Diese können aber auch manuell angelegt werden:&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;Id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Die Id besteht aus den letzten 6 Stellen der MAC Adresse des Zwischensteckers.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispiel: MAC= AC:CF:23:A5:E2:3B -&amp;gt; Id= A5E23B&lt;br /&gt;
&lt;br /&gt;
==Set==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;set &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Gültige Werte für value:&lt;br /&gt;
:off&lt;br /&gt;
:on&lt;br /&gt;
Die [http://fhem.de/commandref#setExtensions set extensions] werden auch unterstützt.&lt;br /&gt;
&lt;br /&gt;
==Attribute==&lt;br /&gt;
&lt;br /&gt;
Für Zwischenstecker devices:&lt;br /&gt;
:restoreOnStartup&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:restoreOnReinit&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:blocklocal&lt;br /&gt;
Wert im Reading State sofort nach Änderung über lokale Taste wiederherstellen&lt;br /&gt;
Standard: no, gültige Werte: no, yes&lt;br /&gt;
&lt;br /&gt;
Für Server devices:&lt;br /&gt;
:allowfrom&lt;br /&gt;
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut gesetzt wurde, werden ausschließlich Verbindungen von diesen Adressen akzeptiert.&lt;br /&gt;
&lt;br /&gt;
==Specs==&lt;br /&gt;
* Herstellerseite: [http://www.g-homa.com http://www.g-homa.com]&lt;br /&gt;
* [https://files.elv.com/Assets/Produkte/12/1218/121893/Downloads/121893_wifi_funkschaltsteckdose_um.pdf Bedienungsanleitung WiFi Smart Steckdose IP44]&lt;br /&gt;
* Typ: EMW302WFO&lt;br /&gt;
* Spannung: 230V&lt;br /&gt;
* Stecker/Dose: Schuko Typ-F&lt;br /&gt;
* Strom: max 16A&lt;br /&gt;
* Leistung: max 3680W&lt;br /&gt;
* Schutzklasse (nur Outdoor): IP44&lt;br /&gt;
* WiFi: 802.11 b/g/n&lt;br /&gt;
* Von EverFlourish Europe GmbH, Robert-Koch-Str. 4, D-66299 Friedrichsthal&lt;br /&gt;
* Das Gerät wird mit einem [http://www.iotworkshop.com/hf-lpt100f HF-LPT100F] realisiert, dass durch eine Spannungsaufbereitung, ein Relais nebst Treiber, einen Taster und einer LED auf zwei weiteren PCBs erweitert wurde.&lt;br /&gt;
:* Darauf ist als SoC ein [https://www.generationrobots.com/media/MediaTek_MT5931_Wi-Fi_Data_Sheet_v1_0.pdf MT5931] verbaut, weshalb das Gerät eine MAC von &#039;&#039;Hi-flying electronics technology Co.,Ltd&#039;&#039; an der WLAN-Schnittstelle verwendet.&lt;br /&gt;
:* Für technisch interessierte, lässt sich das Modul HF-LPT100F über eine UART-Schnittstelle (unbelegte Pins 5 und 6) am Pfostenstecker neu programmieren. Die Funktionen des Geräts sind realisiert durch:&lt;br /&gt;
::# einem Taster gegen Masse mit Pull-Up-Widerstand an GPIO 18&lt;br /&gt;
::# eine LED mit Vorwiderstand an GPIO 11&lt;br /&gt;
::# ein Relais mit Treiber an GPIO 12&lt;br /&gt;
:* Die UART und damit bei Bedarf auch GPIO 5 und 6 sind unbelegt.&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:IP Components]]&lt;br /&gt;
[[Kategorie:Schalter (Empfänger)]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13712</id>
		<title>G-Homa</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13712"/>
		<updated>2016-01-20T18:51:54Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=GHoma&lt;br /&gt;
|ModPurpose=Anbindung der WIFI Steckdose G-Homa&lt;br /&gt;
|ModCmdRef=GHoma&lt;br /&gt;
|ModType=d&lt;br /&gt;
|ModForumArea=Sonstige Systeme&lt;br /&gt;
|ModTechName=53_GHoma.pm&lt;br /&gt;
|ModOwner=klausw&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Die G-Homa oder GHoma Steckdose ist eine per WLAN schaltbare Steckdose. Diese Steckdose wird in vielen Baumärkten und im Internet vertrieben. Das Modul unterstützt die &amp;quot;set extensions&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Es gibt sowohl eine Indoor, als auch eine Outdoor Variante.&lt;br /&gt;
&lt;br /&gt;
=Vorbereitung der Steckdose=&lt;br /&gt;
Standardmäßig verbindet sich die Dose zu einem Server in der Cloud. Damit sie mit FHEM funktoiniert, muss diese Konfiguration angepasst werden.&lt;br /&gt;
==WLAN konfigurieren==&lt;br /&gt;
Gerät in den AP modus bringen (Knopf für mehr als 3s drücken, diesen Schritt wiederholen bis die LED permanent leuchtet)&lt;br /&gt;
Nun einen Computer mit der SSID G-Home verbinden.&amp;lt;br&amp;gt;&lt;br /&gt;
Im Browser zu 10.10.100.254 (username:passwort = admin:admin)&amp;lt;br&amp;gt;&lt;br /&gt;
In STA Setting WLAN Einstellungen eintragen&lt;br /&gt;
==Network Parameters settings==&lt;br /&gt;
Other Setting -&amp;gt; Protocol auf TCP-Server&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Port ID (wird später für FHEM benötigt)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Server Address (IP Adresse des FHEM Servers)&amp;lt;br&amp;gt;&lt;br /&gt;
==Optional==&lt;br /&gt;
Im Router alle ausgehenden Verbindungen für G-Homa blockieren.&lt;br /&gt;
&lt;br /&gt;
==Allgemeines==&lt;br /&gt;
Die Dose erfordert eine dauerhafte Verbindung zum Server (fhem). Wenn die Verbindung wegen Timeouts, WLAN Ausfall, ... abbricht, beginnt die LED an der Steckdose zu blinken und Schaltvorgänge werden unterbunden. Erst wenn die Verbindung wieder steht, reagiert die Dose wieder wie gewohnt. Ist die Verbindung per WLAN zu schwach, kann das zu dauerhaften Reconnects führen.&lt;br /&gt;
&lt;br /&gt;
=Define=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Legt ein GHoma Server device an.&amp;lt;br&amp;gt;&lt;br /&gt;
Neue Zwischenstecker werden beim ersten verbinden automatisch angelegt.&amp;lt;br&amp;gt;&lt;br /&gt;
Diese können aber auch manuell angelegt werden:&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;Id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Die Id besteht aus den letzten 6 Stellen der MAC Adresse des Zwischensteckers.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispiel: MAC= AC:CF:23:A5:E2:3B -&amp;gt; Id= A5E23B&lt;br /&gt;
&lt;br /&gt;
=Set=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;set &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Gültige Werte für value:&lt;br /&gt;
:off&lt;br /&gt;
:on&lt;br /&gt;
Die [http://fhem.de/commandref#setExtensions set extensions] werden auch unterstützt.&lt;br /&gt;
&lt;br /&gt;
=Attribute=&lt;br /&gt;
&lt;br /&gt;
Für Zwischenstecker devices:&lt;br /&gt;
:restoreOnStartup&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:restoreOnReinit&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:blocklocal&lt;br /&gt;
Wert im Reading State sofort nach Änderung über lokale Taste wiederherstellen&lt;br /&gt;
Standard: no, gültige Werte: no, yes&lt;br /&gt;
&lt;br /&gt;
Für Server devices:&lt;br /&gt;
:allowfrom&lt;br /&gt;
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut gesetzt wurde, werden ausschließlich Verbindungen von diesen Adressen akzeptiert.&lt;br /&gt;
&lt;br /&gt;
=Specs=&lt;br /&gt;
Herstellerseite: [http://www.g-homa.com http://www.g-homa.com]&amp;lt;br&amp;gt;&lt;br /&gt;
Spannung: 230V&amp;lt;br&amp;gt;&lt;br /&gt;
Stecker/Dose: Schuko Typ-F&amp;lt;br&amp;gt;&lt;br /&gt;
Strom: max 16A&amp;lt;br&amp;gt;&lt;br /&gt;
Leistung: max 3680W&amp;lt;br&amp;gt;&lt;br /&gt;
Schutzklasse (nur Outdoor): IP44&amp;lt;br&amp;gt;&lt;br /&gt;
WiFi: 802.11 b/g/n&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13711</id>
		<title>G-Homa</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13711"/>
		<updated>2016-01-20T18:49:16Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=GHoma&lt;br /&gt;
|ModPurpose=Anbindung der WIFI Steckdose G-Homa&lt;br /&gt;
|ModCmdRef=GHoma&lt;br /&gt;
|ModType=d&lt;br /&gt;
|ModForumArea=Sonstige Systeme&lt;br /&gt;
|ModTechName=53_GHoma.pm&lt;br /&gt;
|ModOwner=klausw&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Die G-Homa oder GHoma Steckdose ist eine per WLAN schaltbare Steckdose. Diese Steckdose wird in vielen Baumärkten und im Internet vertrieben. Das Modul unterstützt die &amp;quot;set extensions&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Es gibt sowohl eine Indoor, als auch eine Outdoor Variante.&lt;br /&gt;
&lt;br /&gt;
=Vorbereitung der Steckdose=&lt;br /&gt;
Standardmäßig verbindet sich die Dose zu einem Server in der Cloud. Damit sie mit FHEM funktoiniert, muss diese Konfiguration angepasst werden.&lt;br /&gt;
==WLAN konfigurieren==&lt;br /&gt;
Gerät in den AP modus bringen (Knopf für mehr als 3s drücken, diesen Schritt wiederholen bis die LED permanent leuchtet)&lt;br /&gt;
Nun einen Computer mit der SSID G-Home verbinden.&amp;lt;br&amp;gt;&lt;br /&gt;
Im Browser zu 10.10.100.254 (username:passwort = admin:admin)&amp;lt;br&amp;gt;&lt;br /&gt;
In STA Setting WLAN Einstellungen eintragen&lt;br /&gt;
==Network Parameters settings==&lt;br /&gt;
Other Setting -&amp;gt; Protocol auf TCP-Server&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Port ID (wird später für FHEM benötigt)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Server Address (IP Adresse des FHEM Servers)&amp;lt;br&amp;gt;&lt;br /&gt;
==Optional==&lt;br /&gt;
Im Router alle ausgehenden Verbindungen für G-Homa blockieren.&lt;br /&gt;
&lt;br /&gt;
==Allgemeines==&lt;br /&gt;
Die Dose erfordert eine dauerhafte Verbindung zum Server (fhem). Wenn die Verbindung wegen Timeouts, WLAN Ausfall, ... abbricht, beginnt die LED an der Steckdose zu blinken und Schaltvorgänge werden unterbunden. Erst wenn die Verbindung wieder steht, reagiert die Dose wieder wie gewohnt. Ist die Verbindung per WLAN zu schwach, kann das zu dauerhaften Reconnects führen.&lt;br /&gt;
&lt;br /&gt;
=Define=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Legt ein GHoma Server device an.&amp;lt;br&amp;gt;&lt;br /&gt;
Neue Zwischenstecker werden beim ersten verbinden automatisch angelegt.&amp;lt;br&amp;gt;&lt;br /&gt;
Diese können aber auch manuell angelegt werden:&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;Id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Die Id besteht aus den letzten 6 Stellen der MAC Adresse des Zwischensteckers.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispiel: MAC= AC:CF:23:A5:E2:3B -&amp;gt; Id= A5E23B&lt;br /&gt;
&lt;br /&gt;
=Set=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;set &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Gültige Werte für value:&lt;br /&gt;
:off&lt;br /&gt;
:on&lt;br /&gt;
Die [http://fhem.de/commandref#setExtensions set extensions] werden auch unterstützt.&lt;br /&gt;
&lt;br /&gt;
=Attribute=&lt;br /&gt;
&lt;br /&gt;
Für Zwischenstecker devices:&lt;br /&gt;
:restoreOnStartup&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:restoreOnReinit&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:blocklocal&lt;br /&gt;
Wert im Reading State sofort nach Änderung über lokale Taste wiederherstellen&lt;br /&gt;
Standard: no, gültige Werte: no, yes&lt;br /&gt;
&lt;br /&gt;
Für Server devices:&lt;br /&gt;
:allowfrom&lt;br /&gt;
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut gesetzt wurde, werden ausschließlich Verbindungen von diesen Adressen akzeptiert.&lt;br /&gt;
&lt;br /&gt;
=Specs=&lt;br /&gt;
Herstellerseite: [http://www.g-homa.com]&amp;lt;br&amp;gt;&lt;br /&gt;
Spannung: 230V&amp;lt;br&amp;gt;&lt;br /&gt;
Stecker/Dose: Schuko Typ-F&amp;lt;br&amp;gt;&lt;br /&gt;
Strom: max 16A&amp;lt;br&amp;gt;&lt;br /&gt;
Leistung: max 3680W&amp;lt;br&amp;gt;&lt;br /&gt;
Schutzklasse (nur Outdoor): IP44&amp;lt;br&amp;gt;&lt;br /&gt;
WiFi: 802.11 b/g/n&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13710</id>
		<title>G-Homa</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13710"/>
		<updated>2016-01-20T18:48:21Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=GHoma&lt;br /&gt;
|ModPurpose=Anbindung der WIFI Steckdose G-Homa&lt;br /&gt;
|ModCmdRef=GHoma&lt;br /&gt;
|ModForumArea=Sonstige Systeme&lt;br /&gt;
|ModTechName=53_GHoma.pm&lt;br /&gt;
|ModOwner=klausw&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Die G-Homa oder GHoma Steckdose ist eine per WLAN schaltbare Steckdose. Diese Steckdose wird in vielen Baumärkten und im Internet vertrieben. Das Modul unterstützt die &amp;quot;set extensions&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Es gibt sowohl eine Indoor, als auch eine Outdoor Variante.&lt;br /&gt;
&lt;br /&gt;
=Vorbereitung der Steckdose=&lt;br /&gt;
Standardmäßig verbindet sich die Dose zu einem Server in der Cloud. Damit sie mit FHEM funktoiniert, muss diese Konfiguration angepasst werden.&lt;br /&gt;
==WLAN konfigurieren==&lt;br /&gt;
Gerät in den AP modus bringen (Knopf für mehr als 3s drücken, diesen Schritt wiederholen bis die LED permanent leuchtet)&lt;br /&gt;
Nun einen Computer mit der SSID G-Home verbinden.&amp;lt;br&amp;gt;&lt;br /&gt;
Im Browser zu 10.10.100.254 (username:passwort = admin:admin)&amp;lt;br&amp;gt;&lt;br /&gt;
In STA Setting WLAN Einstellungen eintragen&lt;br /&gt;
==Network Parameters settings==&lt;br /&gt;
Other Setting -&amp;gt; Protocol auf TCP-Server&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Port ID (wird später für FHEM benötigt)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Server Address (IP Adresse des FHEM Servers)&amp;lt;br&amp;gt;&lt;br /&gt;
==Optional==&lt;br /&gt;
Im Router alle ausgehenden Verbindungen für G-Homa blockieren.&lt;br /&gt;
&lt;br /&gt;
==Allgemeines==&lt;br /&gt;
Die Dose erfordert eine dauerhafte Verbindung zum Server (fhem). Wenn die Verbindung wegen Timeouts, WLAN Ausfall, ... abbricht, beginnt die LED an der Steckdose zu blinken und Schaltvorgänge werden unterbunden. Erst wenn die Verbindung wieder steht, reagiert die Dose wieder wie gewohnt. Ist die Verbindung per WLAN zu schwach, kann das zu dauerhaften Reconnects führen.&lt;br /&gt;
&lt;br /&gt;
=Define=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Legt ein GHoma Server device an.&amp;lt;br&amp;gt;&lt;br /&gt;
Neue Zwischenstecker werden beim ersten verbinden automatisch angelegt.&amp;lt;br&amp;gt;&lt;br /&gt;
Diese können aber auch manuell angelegt werden:&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;Id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Die Id besteht aus den letzten 6 Stellen der MAC Adresse des Zwischensteckers.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispiel: MAC= AC:CF:23:A5:E2:3B -&amp;gt; Id= A5E23B&lt;br /&gt;
&lt;br /&gt;
=Set=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;set &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Gültige Werte für value:&lt;br /&gt;
:off&lt;br /&gt;
:on&lt;br /&gt;
Die [http://fhem.de/commandref#setExtensions set extensions] werden auch unterstützt.&lt;br /&gt;
&lt;br /&gt;
=Attribute=&lt;br /&gt;
&lt;br /&gt;
Für Zwischenstecker devices:&lt;br /&gt;
:restoreOnStartup&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:restoreOnReinit&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:blocklocal&lt;br /&gt;
Wert im Reading State sofort nach Änderung über lokale Taste wiederherstellen&lt;br /&gt;
Standard: no, gültige Werte: no, yes&lt;br /&gt;
&lt;br /&gt;
Für Server devices:&lt;br /&gt;
:allowfrom&lt;br /&gt;
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut gesetzt wurde, werden ausschließlich Verbindungen von diesen Adressen akzeptiert.&lt;br /&gt;
&lt;br /&gt;
=Specs=&lt;br /&gt;
Herstellerseite: [http://www.g-homa.com]&amp;lt;br&amp;gt;&lt;br /&gt;
Spannung: 230V&amp;lt;br&amp;gt;&lt;br /&gt;
Stecker/Dose: Schuko Typ-F&amp;lt;br&amp;gt;&lt;br /&gt;
Strom: max 16A&amp;lt;br&amp;gt;&lt;br /&gt;
Leistung: max 3680W&amp;lt;br&amp;gt;&lt;br /&gt;
Schutzklasse (nur Outdoor): IP44&amp;lt;br&amp;gt;&lt;br /&gt;
WiFi: 802.11 b/g/n&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13709</id>
		<title>G-Homa</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=G-Homa&amp;diff=13709"/>
		<updated>2016-01-20T18:46:37Z</updated>

		<summary type="html">&lt;p&gt;Micomat: Die Seite wurde neu angelegt: „{{Infobox Modul |Name=GHoma |ModPurpose=Anbindung der WIFI Steckdose G-Homa |ModCmdRef=GHoma |ModForumArea=Sonstige Systeme |ModTechName=53_THZ.pm |ModOwner=kl…“&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=GHoma&lt;br /&gt;
|ModPurpose=Anbindung der WIFI Steckdose G-Homa&lt;br /&gt;
|ModCmdRef=GHoma&lt;br /&gt;
|ModForumArea=Sonstige Systeme&lt;br /&gt;
|ModTechName=53_THZ.pm&lt;br /&gt;
|ModOwner=klausw&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Die G-Homa oder GHoma Steckdose ist eine per WLAN schaltbare Steckdose. Diese Steckdose wird in vielen Baumärkten und im Internet vertrieben. Das Modul unterstützt die &amp;quot;set extensions&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
Es gibt sowohl eine Indoor, als auch eine Outdoor Variante.&lt;br /&gt;
&lt;br /&gt;
=Vorbereitung der Steckdose=&lt;br /&gt;
Standardmäßig verbindet sich die Dose zu einem Server in der Cloud. Damit sie mit FHEM funktoiniert, muss diese Konfiguration angepasst werden.&lt;br /&gt;
==WLAN konfigurieren==&lt;br /&gt;
Gerät in den AP modus bringen (Knopf für mehr als 3s drücken, diesen Schritt wiederholen bis die LED permanent leuchtet)&lt;br /&gt;
Nun einen Computer mit der SSID G-Home verbinden.&amp;lt;br&amp;gt;&lt;br /&gt;
Im Browser zu 10.10.100.254 (username:passwort = admin:admin)&amp;lt;br&amp;gt;&lt;br /&gt;
In STA Setting WLAN Einstellungen eintragen&lt;br /&gt;
==Network Parameters settings==&lt;br /&gt;
Other Setting -&amp;gt; Protocol auf TCP-Server&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Port ID (wird später für FHEM benötigt)&amp;lt;br&amp;gt;&lt;br /&gt;
Other Setting -&amp;gt; Server Address (IP Adresse des FHEM Servers)&amp;lt;br&amp;gt;&lt;br /&gt;
==Optional==&lt;br /&gt;
Im Router alle ausgehenden Verbindungen für G-Homa blockieren.&lt;br /&gt;
&lt;br /&gt;
==Allgemeines==&lt;br /&gt;
Die Dose erfordert eine dauerhafte Verbindung zum Server (fhem). Wenn die Verbindung wegen Timeouts, WLAN Ausfall, ... abbricht, beginnt die LED an der Steckdose zu blinken und Schaltvorgänge werden unterbunden. Erst wenn die Verbindung wieder steht, reagiert die Dose wieder wie gewohnt. Ist die Verbindung per WLAN zu schwach, kann das zu dauerhaften Reconnects führen.&lt;br /&gt;
&lt;br /&gt;
=Define=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Legt ein GHoma Server device an.&amp;lt;br&amp;gt;&lt;br /&gt;
Neue Zwischenstecker werden beim ersten verbinden automatisch angelegt.&amp;lt;br&amp;gt;&lt;br /&gt;
Diese können aber auch manuell angelegt werden:&lt;br /&gt;
:&amp;lt;code&amp;gt;define &amp;lt;name&amp;gt; GHoma &amp;lt;Id&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Die Id besteht aus den letzten 6 Stellen der MAC Adresse des Zwischensteckers.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispiel: MAC= AC:CF:23:A5:E2:3B -&amp;gt; Id= A5E23B&lt;br /&gt;
&lt;br /&gt;
=Set=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;set &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Gültige Werte für value:&lt;br /&gt;
:off&lt;br /&gt;
:on&lt;br /&gt;
Die [http://fhem.de/commandref#setExtensions set extensions] werden auch unterstützt.&lt;br /&gt;
&lt;br /&gt;
=Attribute=&lt;br /&gt;
&lt;br /&gt;
Für Zwischenstecker devices:&lt;br /&gt;
:restoreOnStartup&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:restoreOnReinit&lt;br /&gt;
Wiederherstellen der Portzustände nach Neustart&lt;br /&gt;
Standard: last, gültige Werte: last, on, off&lt;br /&gt;
&lt;br /&gt;
:blocklocal&lt;br /&gt;
Wert im Reading State sofort nach Änderung über lokale Taste wiederherstellen&lt;br /&gt;
Standard: no, gültige Werte: no, yes&lt;br /&gt;
&lt;br /&gt;
Für Server devices:&lt;br /&gt;
:allowfrom&lt;br /&gt;
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut gesetzt wurde, werden ausschließlich Verbindungen von diesen Adressen akzeptiert.&lt;br /&gt;
&lt;br /&gt;
=Specs=&lt;br /&gt;
Herstellerseite: [http://www.g-homa.com]&amp;lt;br&amp;gt;&lt;br /&gt;
Spannung: 230V&amp;lt;br&amp;gt;&lt;br /&gt;
Stecker/Dose: Schuko Typ-F&amp;lt;br&amp;gt;&lt;br /&gt;
Strom: max 16A&amp;lt;br&amp;gt;&lt;br /&gt;
Leistung: max 3680W&amp;lt;br&amp;gt;&lt;br /&gt;
Schutzklasse (nur Outdoor): IP44&amp;lt;br&amp;gt;&lt;br /&gt;
WiFi: 802.11 b/g/n&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=10435</id>
		<title>Tecalor THZ Wärmepumpe</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=10435"/>
		<updated>2015-03-04T12:26:50Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=THZ&lt;br /&gt;
|ModPurpose=Anbindung Heizungssteuerung Tecalor&lt;br /&gt;
|ModType=d&lt;br /&gt;
&amp;lt;!-- |ModCategory= (noch?) nicht verwendet --&amp;gt;&lt;br /&gt;
|ModCmdRef=THZ&lt;br /&gt;
|ModForumArea=Sonstiges&lt;br /&gt;
|ModTechName=00_THZ.pm&lt;br /&gt;
|ModOwner=immiimmi&lt;br /&gt;
}}&lt;br /&gt;
Englisch version [[Tecalor THZ Heatpump]]&lt;br /&gt;
&lt;br /&gt;
Hier wird beschrieben wie man mit FHEM eine Tecalor THZ / Stieben Eltron LWZ 303/403/403/404/SOL Wärmepumpe auslesen/steuern kann. Die 504 ist bislang nicht getestet, könnte aber ebenfalls funktionieren.&lt;br /&gt;
&lt;br /&gt;
Zum besseren Verständnis: Tecalor ist die Privatkundenmarke von Stieben Eltron. Die Geräte sind absolut baugleich.&lt;br /&gt;
&lt;br /&gt;
Nachfolgend wird von der &amp;quot;THZ&amp;quot; gesprochen.&lt;br /&gt;
&lt;br /&gt;
Getestet sind die Versionen 2.06, 4.09, 4.19, 4.39 und 5.39. &lt;br /&gt;
Andere Versionen können funktionieren, das ist jedoch nicht garantiert.&lt;br /&gt;
HINWEIS: Diese Anleitung ist für Personen gedacht, die sich mit Elektronik auskennen.&lt;br /&gt;
Der Autor und der Entwickler haften nicht für Schäden und geben keine Funktionsgarantie.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Seit Version 0.087 wurden die Parameternamen geändert!&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Dies dient der Vereinheitlichung der Parameternamen. Werte mit &amp;quot;s&amp;quot; sind Statuswerte, solche mit &amp;quot;p&amp;quot; sind Parameter die in der Heizung eingestellt sind.&lt;br /&gt;
Weitere Infos bei den ausgelesenen Parametern. Nach einem Updaten müssen ggf. Sachen wie readingsGroups, Dashboards, etc. angepasst werden.&lt;br /&gt;
&lt;br /&gt;
=Verbindungsmöglichkeiten=&lt;br /&gt;
==Lokal per RS232 oder USB==&lt;br /&gt;
Die THZ hat zwei Anschlüsse die zur Verbindung genutzt werden können.&lt;br /&gt;
* Einen Seriellen Anschluss der mit einem MNL-SG3 Stecker genutzt werden kann.&lt;br /&gt;
* Einen USB Anschluss der auf der Platine zu finden ist un mit einem TYP-B Kabel funktioniert.&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Der USB Anschluss befindet sich rückseitig auf der Platine die sich hinter der Abdeckung hinter der rechten Türe. Darf nur stromlos verbunden werden. Dazu die Wärmepumpe komplett vom Strom trennen!!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die Baudraten variieren je nach Hardware- und Softwareversion zwischen 9600 und 115200 bei Seriell. Bei USB liegt diese bei 115200 oder 57600.&lt;br /&gt;
Eine Verbindungsanleitung zum Seriellen Port findet sich hier: [http://robert.penz.name/heat-pump-lwz/ Robert Penz Homepage]&lt;br /&gt;
&lt;br /&gt;
==Entfernte Verbindung mit Ser2Net==&lt;br /&gt;
Wenn die FHEM Zentrale nicht direkt in der Nähe der Heizung steht kann mir Ser2Net gearbeitet werden. Dieses stellt auf einem TCP-Port einen virtuellen seriellen Anschluss zur Verfügung.&lt;br /&gt;
&lt;br /&gt;
===Installation Ser2Net auf Linux===&lt;br /&gt;
Um den Serial-Port-Server Ser2Net zu installieren ist auf Linux folgendes zu tun:&lt;br /&gt;
:&amp;lt;code&amp;gt;sudo apt-get install ser2net&amp;lt;/code&amp;gt;&lt;br /&gt;
in der /etc/ser2net.conf (/dev/ttyXXX)&lt;br /&gt;
:&amp;lt;code&amp;gt;2003:raw:500:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS  &amp;lt;/code&amp;gt;&lt;br /&gt;
Der Port kann frei gewählt werden, solange er nicht bereits genutzt wird.&lt;br /&gt;
&lt;br /&gt;
==Getestete Host-Systeme==&lt;br /&gt;
Getestet ist dieses Modul auf FritzBox, nas-qnap, Raspberry Pi und MacOS.&lt;br /&gt;
&lt;br /&gt;
=Definition in FHEM=&lt;br /&gt;
==Mit direkter serieller oder USB Verbindung==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wenn die Attribute interval_sGlobal und interval_sHistory nicht definiert sind (oder 0), ist das interne Polling deaktiviert. Natürlich kann das Polling auch mit dem &amp;quot;at&amp;quot; Befehl ausserhalb des Moduls definiert werden.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzGlobal at +*00:05:00 {fhem &amp;quot;get Mythz sGlobal&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzHistory at +*08:00:00 {fhem &amp;quot;get Mythz sHistory&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Via Netzwerk mit Ser2Net==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ 192.168.0.244:2003&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Ausgelesene Werte=&lt;br /&gt;
Wenn die Verbindung und das Auslesen erfolgreich waren, sollten Werte wie sGlobal, sFirmware, sHistory und diverse Einstellungen wie die Urlaubszeiten sowie einige PXX Werte angezeigt werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sGlobal (vormals allFB)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beinhaltet alle aktuellen Werte wie Temperaturen von Wasser und Gas, Lüfterstatus, Drücke, usw.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sFirmware&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Zeigt die Firmware Version der Wärmepumpe.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHistory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Angaben zur Betriebsdauer. Beispielsweise die Anzahl der Betriebsstunden der Kompressoren.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pHoliday-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier werden die aktuellen Einstellungen der Urlaubsfunktion der THZ angezeigt. Diese bewirken, dass keine Tagabsenkung (sofern programmiert) gemacht wird. &lt;br /&gt;
Die holiday-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sLast10errors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Liest die letzten 10 Fehlercodes aus und stellt diese dar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pXX-Werte &amp;amp; program-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die pXX-Werte und program-Werte stellen Einstellungen wie Heizkreistemperaturen und Lüfterstufen sowie Heizungs- und Warmwasserprogramme der THZ dar. Alle pXX-Werte und program-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
Es sind auch Lüfterdurchsatzmengen und Passivkühlung konfigurierbar.&amp;lt;br&amp;gt;&lt;br /&gt;
pOpMode zeigt den Betriebszustand. Automatik, Handbetrieb, etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;party-time&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier wird die Uhrzeit der Party programmiert.&lt;br /&gt;
Party-Time regelt die Lüfterstufe (p99FanStageParty) im Party-Modus. Diese kann auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sDHW (ex Status_DHW_F3)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Warmwasserbereitung&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC1 (ex Status_HC1_F4)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Informationen zum Heizkreis 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC2 (ex Status_HC2_F5)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Heizkreis 2 Informationen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sSol (ex Status_Sol_16)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Solaranlage&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pOpMode (ex OperatingMode)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Betriebsart: Bereitschaft, Automatik, Tagbetrieb, Absenkbetrieb, WW-Betrieb, Manueller Betrieb, Notbetrieb&lt;br /&gt;
&lt;br /&gt;
Wenn die Betriebsart via FHEM geändert werden soll dann muss als set-Wert die entsprechende englische Bezeichnung gesendet werden (Standby, Automatic, DAYmode, SetBack, DHWmode, Manual, Emergency)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sXXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Es gibt noch einige weitere &amp;quot;s&amp;quot;tatus Werte die unter anderen die Wärmerückgewinnungswerte beinhalten.&lt;br /&gt;
&lt;br /&gt;
= Plots - Grafische Darstellung =&lt;br /&gt;
Nachfolgend wird gezeigt wie man aus den Readings wie sGlobal grafische Plots erstellen kann.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Beispiel&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Angenommen wir wollen aus sGlobal die outside_temp und die dhw_temp (dhw=domestic hot water = Warmwasser) grafisch darstellen:&lt;br /&gt;
&lt;br /&gt;
In der fhem.cfg legen wir das Plot an:&lt;br /&gt;
:&amp;lt;code&amp;gt;define Plot_Temp SVG FileLog_Mythz:thz:CURRENT&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Plot_Temp room Heizung&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Daraufhin wird das Plot erzeugt, noch ohne Daten und evtl. mit einer Fehlermeldung.&lt;br /&gt;
Hier klicken wir dann auf den Plot-Namen um in das Plot-Konfigurationsfenster zu kommen.&lt;br /&gt;
Hier tragen wir die entsprechenden Daten ein.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wichtig sind nun die Input-Felder&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Unterhalb der Eingabemaske befinden sich die zu Mythz gehörenden Readings die verwendet werden können. Darunter auch sGlobal.&lt;br /&gt;
&lt;br /&gt;
Das sGlobal wird in etwa so aussehen:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014-03-02_13:07:49 Mythz sGlobal: outside_temp: 3.8 flow_temp: 26.5 return_temp: 27.2 hot_gas_temp: 32.1 dhw_temp: 43.4 flow_temp_HC2: -60 evaporator_temp: 5.3 condenser_temp: 27.4 Mixer_open: 0 Mixer_closed: 0 HeatPipeValve: 0 DiverterValve: 0 DHW_Pump: 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Thzplot.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
Um den richtigen Input zu finden, zählen wir die durch Leerzeichen getrennten Daten ab. Somit ist der Wert der outside_temp an Stelle 5, die dhw_temp an Stelle 13.&lt;br /&gt;
Diese Zahl tragen wir dann im Input-Feld ein und schon haben wir einen Plot der Daten erzeugt.&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu [http://www.fhemwiki.de/wiki/Plots_erzeugen Plots]&lt;br /&gt;
&lt;br /&gt;
= einzelne Werte aus den Readings=&lt;br /&gt;
Um einzelne Werte aus den großen Readings wie sGlobal oder history zu bekommen, kann man ein &lt;br /&gt;
&lt;br /&gt;
userReading verwenden.&lt;br /&gt;
Beispiel:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz userReadings AussenTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, &lt;br /&gt;
&lt;br /&gt;
VorlaufTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu userReadings in der [http://fhem.de/commandref_DE.html CommandRef]&lt;br /&gt;
&lt;br /&gt;
= Hinweise =&lt;br /&gt;
* Ein kompletter Refresh aller Werte wird nur beim Systemstart von FHEM gemacht. Dies geschieht sehr langsam um die Performance nicht zu beeinträchtigen. Erst nachdem dieser Refresh (dauert ca. 3-4 Minuten) gelaufen ist, wird das interne Polling gestartet.&lt;br /&gt;
*Wenn das Refresh Intervall kürzer oder gleich ist wie der initiale Refresh kann es zu einer Überschneidung kommen was allerdings kein Problem sein sollte.&lt;br /&gt;
*Im Wintermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1 und p02RoomTempNightHC1   &lt;br /&gt;
*Im Sommermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1SummerMode und p02RoomTempNightHC1SummerMode&lt;br /&gt;
&lt;br /&gt;
= Bekannte Probleme =&lt;br /&gt;
Im FHEM Log tauchen bei Ser2Net Verbindung häufig folgende Meldungen auf:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014.03.02 09:41:09 1: 192.168.178.50:2003 disconnected, waiting to reappear&lt;br /&gt;
2014.03.02 09:41:09 1: 192.168.178.50:2003 reappeared (Mythz)&amp;lt;/code&amp;gt;&lt;br /&gt;
Dieses Problem ist aktuell nicht gelöst.&lt;br /&gt;
&lt;br /&gt;
= Release History =&lt;br /&gt;
&#039;&#039;&#039;v0.067&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Erstmalige Implementierung in FHEM&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.068&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neuer Befehl f. Party implementiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.069&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Deutsche CommandRef hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.070&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix in Status Bits&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.071&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfix, undefFn verbessert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.072&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Alle programHC1*, programHC2*, programFan* und programDHW* sind nun mit &amp;quot;get&amp;quot; und &amp;quot;set&amp;quot; implementiert&lt;br /&gt;
* inside_temp  wurde am Ende von allFB hinzugefügt&lt;br /&gt;
* der Ser2Net connect/disconnet Bug wurde eingedämmt auf max 1 Logeintrag pro Sekunde&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.074&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Jetzt sind auch die Lüfterdurchsatzmengen und die Passivkühlung ausgelesen und änderbar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.075&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
interval_last10errors implementiert. Intervall, in dem der Fehlerspeicher ausgelesen werden soll&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.076&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes und neuer Parameter Status_HC1_F4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.078&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neue Parameter Status_Sol_16 und Status_DHW_F3&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.080&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* neue Parameter p49SummerModeTemp und p50SummerModeHysteresis&lt;br /&gt;
* Status_HC1_F4 und Status_HC2_F5 zeigen nun &amp;quot;mode: Summer&amp;quot; (oder Winter)&lt;br /&gt;
Die Berechnung des Modus ist wie folgt:&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;gt; p49SummerModeTemp + p50SummerModeHysteresis ---&amp;gt; Summermode&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;lt; p49SummerModeTemp - p50SummerModeHysteresis ---&amp;gt; Wintermode&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.081&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix für Sommer/Wintermodus-Anzeige&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.084&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* OperatingMode wird nun ausgelesen (read-only)&lt;br /&gt;
* p33BoosterTimeoutDHW (read/write)&lt;br /&gt;
* p79BoosterTimeoutHC (read/write)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.085&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode kann jetzt auch geaendert werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.087&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Neue Readings&lt;br /&gt;
* Angepasste Readingnamen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.089&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Kommunikation wurde stabilisiert&lt;br /&gt;
* Bugfixes&lt;br /&gt;
* Neue Readings&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.091&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatRecoveredDay &amp;amp; sHeatRecoveredTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.094&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.095&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatDHWDay &amp;amp; sHeatDHWTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.096&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Weitere neue Readings: sEletrx... &amp;amp; sHeat...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.097&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.099&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Raumeinfluss wurde in die Heizkurvengrafik eingebaut&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.100&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Parameter: p54MinPumpCycles, p55MaxPumpCycles, p56OutTempMaxPumpCycles, p57OutTempMinPumpCycles&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.101&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* keine neuen Features&lt;br /&gt;
* Code clean up&lt;br /&gt;
* Logs in verbose 5 implementiert&lt;br /&gt;
* buffer overflow (Verursacht von sGlobal bei LWZ 303 Firmware 3.19) gefixt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.103&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Änderung der Kommunikation. Jetzt 10x schneller&lt;br /&gt;
* Versionsinformation hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.104&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Delay in der Kommunikation hinzugefügt (aber immer noch 5x schneller)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.105&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Schnelleres set und get Verhalten&lt;br /&gt;
* Dauer des Update beim Start halbiert&lt;br /&gt;
* THZ Attribute können ohne Neustart geändert werden&lt;br /&gt;
* BugFix&lt;br /&gt;
* P83 hinzugefügt (DHWSetSolarTemp)&lt;br /&gt;
* Suffix bei den Temp-Werten hinzugefügt. z.B. p04DHWsetDay jetzt p04DHWsetDayTemp&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.107&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p56 and p57 getauscht und repariert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.108&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Party-Time wurde entfernt da nicht funktionsfähig&lt;br /&gt;
* Grouping bei &amp;quot;set programFan_Mo-Fr_0  to  08:00--20:00&amp;quot; --&amp;gt; Einzelne Tage werden automatisch gesetzt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.109&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Fehlerbehebung bei langen Nachrichten via Seriellem Kabel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.110&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix (für seriellen Adapter) trunkating messages (forum 209294)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0111&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* P21,22,23,24,25,29 hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.112&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix für Fehler verursacht durch DevIo.pm 6980 status disconnected msg223569&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.113&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.114&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.115&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Implementierung von &amp;quot;Informationen aus dem Modul des HeatpumpMonitor von Robert Penz&amp;quot;. Alle nicht identifizierbaren Teile erhalten den Wert &amp;quot;n.a.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.116&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* weitere Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.118&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* faultcode implementiert&lt;br /&gt;
* Rechtschreibefehler korrigiert: evuRelease&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.119&#039;&#039;&#039;&lt;br /&gt;
* der Firmwareparameter 2.06 erhöht den Maximalcount der Wiederholung von DevIo_SimpleReadWithTimeout von 24 auf 50&lt;br /&gt;
* Reduktion des DevIo_SimpleReadWithTimeout von 0.06 auf 0.02&lt;br /&gt;
* Der Firmwareparameter 2.06 entfernt jetzt Register, die von älteren Wärmepumpen nicht unterstützt werden&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.120&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Verzögerung zwischen programXXX_YY zugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.121&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Register Interpretation von user godmorgon implementiert&lt;br /&gt;
* register 17 für ältere Firmwareversionen implementiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.122&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* pXX Register für ältere Firmwareversionen implementiert&lt;br /&gt;
* maximale Widerholungen jetzt limitiert auf 60, zuvor 50&lt;br /&gt;
* actualPower_Qc: gepatcht um Pufferüberlauf zu vermeiden &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.123&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* actualPower_Qc und actualPower_pEl korrigiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.124&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Verlaufsregister angelegt für Firmwareversion 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0125&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Anpassungen um die Firmware 2.06 zu unterstützen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0126&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Weitere Anpassungen um die Firmware 2.06 zu unterstützen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.127&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix:Unterschied in Parsingregel für FCtime&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.128&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Die meisten Paramter können jetzt von WP älterer Firmware gelesen werden&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.129&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* sDisplay (Aktivitätsparameter die im Display dargestellt werden)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.130&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* 2 Bugfixes &lt;br /&gt;
* Firmware-id  enthält neue Feature wie HW: 74 SW: 2.08 Date: MAR 9 2011&lt;br /&gt;
* neuer Parameter p99RoomThermCorrection implementiert&lt;br /&gt;
* THZ_PrintcurveSVG (Heizkurve) wird jetzt durch p99RoomThermCorrection beeinflusst &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.131&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p35PasteurisationInterval,p35PasteurisationTemp,  p34BoosterDHWTempAct, p99DHWmaxFlowTemp, p89DHWeco hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.132&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p99startUnschedVent hinzugefügt&lt;br /&gt;
* Aufteilung großer Register implementiert. Nötig für Firmware 2.06.&lt;br /&gt;
* Heizkurven jetzt auf 15...35°C begrenzt für bessere Darstellung des Kurvenverlaufs&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p12 FanStageManual hinzugefügt&lt;br /&gt;
* Autoskalierung der Heizkurvenskala&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133+&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* fixed: Laut Bedienungsanleitung ist p99RoomThermCorrection der Parameter P76&lt;br /&gt;
&lt;br /&gt;
= Beispielkonfiguration =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start Definition mit Ser2Net&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define Mythz THZ 192.168.111.5:2003&amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz room Sysintern&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;userReadings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:dash.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz userReadings AussenTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, VorlaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}, RuecklaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[5]}, WWTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[9]}, KollektorTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[79]}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;interval Definitionen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz interval_sGlobal 300 &amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz interval_sHistory 28800 &amp;lt;br&amp;gt; &lt;br /&gt;
attr Mythz interval_sLast10errors 120 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Definition von file-log und den SVG-Plots einiger Daten&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FileLog_Mythz FileLog ./log/Mythz-%Y-%m.log Mythz&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_0 SVG FileLog_Mythz:thz:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_0 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_1 SVG FileLog_Mythz:thz1:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_1 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_2 SVG FileLog_Mythz:thz2:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_2 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_3 SVG FileLog_Mythz:thz3:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_3 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_4 SVG FileLog_Mythz:thz4:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_4 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;readingsGroup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define rg_thz readingsGroup Mythz:&amp;lt;%temp_outside&amp;gt;,&amp;lt;Aussen&amp;gt;,AussenTemp Mythz:&amp;lt;%sani_supply_temp@red&amp;gt;,&amp;lt;Vorlauf&amp;gt;,VorlaufTemp Mythz:&amp;lt;%sani_return_temp@blue&amp;gt;,&amp;lt;Rücklauf&amp;gt;,RuecklaufTemp Mythz:&amp;lt;%sani_boiler_temp@BD7800&amp;gt;,&amp;lt;Wasser&amp;gt;,WWTemp Mythz:&amp;lt;%sani_solar_temp&amp;gt;,&amp;lt;Kollektor&amp;gt;,KollektorTemp&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz alias Heizung Temperaturen&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz room Sysintern&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz valueFormat { AussenTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, VorlaufTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, AussenTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, RuecklaufTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, WWTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, KollektorTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039; }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Dashboard&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define MyDashboard Dashboard&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_lockstate unlock&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_row top-center&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showhelper 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showtooglebuttons 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1groups THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1name micofhem&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1sorting t0c100,THZ,true,170,253&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tabcount 1&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_webfrontendfilter WEB&amp;lt;br&amp;gt;&lt;br /&gt;
define MyDashboard_weblink weblink htmlCode {DashboardAsHtml(&amp;quot;MyDashboard&amp;quot;)}&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard_weblink room DashboardRoom&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FanSelector für die Lüftungssteuerung&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FanSelectorDay dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorDay webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p07FanStageDay notify FanSelectorDay  IF ([FanSelectorDay] eq &amp;quot;offFor60min&amp;quot;) (define at_D_offFor60min at +00:59:00 set Mythz p07FanStageDay [Mythz:p07FanStageDay],set Mythz p07FanStageDay 0, setstate FanSelectorDay offFor60min) ELSE (set Mythz p07FanStageDay $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorDay notify (Mythz.p07FanStageDay.*) setstate FanSelectorDay $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay room heatpump&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:fanselectorv2.png|thumb]]&lt;br /&gt;
define FanSelectorNight dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorNight webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p08FanStageNight notify FanSelectorNight IF ([FanSelectorNight] eq &amp;quot;offFor60min&amp;quot;) (define at_N_offFor60min at +00:59:00 set Mythz p08FanStageNight [Mythz:p08FanStageNight],set Mythz p08FanStageNight 0, setstate FanSelectorNight offFor60min) ELSE (set Mythz p08FanStageNight $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorNight notify (Mythz.p08FanStageNight.*) setstate FanSelectorNight $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight room heatpump&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
[https://launchpad.net/heatpumpmonitor Launchpad Heatpumpmonitor]&lt;br /&gt;
&lt;br /&gt;
[http://forum.fhem.de/index.php/topic,13132.0.html Forenthread im FHEM-Forum]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Other Components]]&lt;br /&gt;
[[Kategorie:Heizungssteuerung]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=10434</id>
		<title>Tecalor THZ Wärmepumpe</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=10434"/>
		<updated>2015-03-04T12:26:18Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=THZ&lt;br /&gt;
|ModPurpose=Anbindung Heizungssteuerung Tecalor&lt;br /&gt;
|ModType=d&lt;br /&gt;
&amp;lt;!-- |ModCategory= (noch?) nicht verwendet --&amp;gt;&lt;br /&gt;
|ModCmdRef=THZ&lt;br /&gt;
|ModForumArea=Sonstiges&lt;br /&gt;
|ModTechName=00_THZ.pm&lt;br /&gt;
|ModOwner=immiimmi&lt;br /&gt;
}}&lt;br /&gt;
Englisch version [[Tecalor THZ Heatpump]]&lt;br /&gt;
&lt;br /&gt;
Hier wird beschrieben wie man mit FHEM eine Tecalor THZ / Stieben Eltron LWZ 303/403/403/404/SOL Wärmepumpe auslesen/steuern kann.&lt;br /&gt;
&lt;br /&gt;
Zum besseren Verständnis: Tecalor ist die Privatkundenmarke von Stieben Eltron. Die Geräte sind absolut baugleich.&lt;br /&gt;
&lt;br /&gt;
Nachfolgend wird von der &amp;quot;THZ&amp;quot; gesprochen.&lt;br /&gt;
&lt;br /&gt;
Getestet sind die Versionen 2.06, 4.09, 4.19, 4.39 und 5.39. &lt;br /&gt;
Andere Versionen können funktionieren, das ist jedoch nicht garantiert.&lt;br /&gt;
HINWEIS: Diese Anleitung ist für Personen gedacht, die sich mit Elektronik auskennen.&lt;br /&gt;
Der Autor und der Entwickler haften nicht für Schäden und geben keine Funktionsgarantie.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Seit Version 0.087 wurden die Parameternamen geändert!&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Dies dient der Vereinheitlichung der Parameternamen. Werte mit &amp;quot;s&amp;quot; sind Statuswerte, solche mit &amp;quot;p&amp;quot; sind Parameter die in der Heizung eingestellt sind.&lt;br /&gt;
Weitere Infos bei den ausgelesenen Parametern. Nach einem Updaten müssen ggf. Sachen wie readingsGroups, Dashboards, etc. angepasst werden.&lt;br /&gt;
&lt;br /&gt;
=Verbindungsmöglichkeiten=&lt;br /&gt;
==Lokal per RS232 oder USB==&lt;br /&gt;
Die THZ hat zwei Anschlüsse die zur Verbindung genutzt werden können.&lt;br /&gt;
* Einen Seriellen Anschluss der mit einem MNL-SG3 Stecker genutzt werden kann.&lt;br /&gt;
* Einen USB Anschluss der auf der Platine zu finden ist un mit einem TYP-B Kabel funktioniert.&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Der USB Anschluss befindet sich rückseitig auf der Platine die sich hinter der Abdeckung hinter der rechten Türe. Darf nur stromlos verbunden werden. Dazu die Wärmepumpe komplett vom Strom trennen!!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die Baudraten variieren je nach Hardware- und Softwareversion zwischen 9600 und 115200 bei Seriell. Bei USB liegt diese bei 115200 oder 57600.&lt;br /&gt;
Eine Verbindungsanleitung zum Seriellen Port findet sich hier: [http://robert.penz.name/heat-pump-lwz/ Robert Penz Homepage]&lt;br /&gt;
&lt;br /&gt;
==Entfernte Verbindung mit Ser2Net==&lt;br /&gt;
Wenn die FHEM Zentrale nicht direkt in der Nähe der Heizung steht kann mir Ser2Net gearbeitet werden. Dieses stellt auf einem TCP-Port einen virtuellen seriellen Anschluss zur Verfügung.&lt;br /&gt;
&lt;br /&gt;
===Installation Ser2Net auf Linux===&lt;br /&gt;
Um den Serial-Port-Server Ser2Net zu installieren ist auf Linux folgendes zu tun:&lt;br /&gt;
:&amp;lt;code&amp;gt;sudo apt-get install ser2net&amp;lt;/code&amp;gt;&lt;br /&gt;
in der /etc/ser2net.conf (/dev/ttyXXX)&lt;br /&gt;
:&amp;lt;code&amp;gt;2003:raw:500:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS  &amp;lt;/code&amp;gt;&lt;br /&gt;
Der Port kann frei gewählt werden, solange er nicht bereits genutzt wird.&lt;br /&gt;
&lt;br /&gt;
==Getestete Host-Systeme==&lt;br /&gt;
Getestet ist dieses Modul auf FritzBox, nas-qnap, Raspberry Pi und MacOS.&lt;br /&gt;
&lt;br /&gt;
=Definition in FHEM=&lt;br /&gt;
==Mit direkter serieller oder USB Verbindung==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wenn die Attribute interval_sGlobal und interval_sHistory nicht definiert sind (oder 0), ist das interne Polling deaktiviert. Natürlich kann das Polling auch mit dem &amp;quot;at&amp;quot; Befehl ausserhalb des Moduls definiert werden.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzGlobal at +*00:05:00 {fhem &amp;quot;get Mythz sGlobal&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzHistory at +*08:00:00 {fhem &amp;quot;get Mythz sHistory&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Via Netzwerk mit Ser2Net==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ 192.168.0.244:2003&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Ausgelesene Werte=&lt;br /&gt;
Wenn die Verbindung und das Auslesen erfolgreich waren, sollten Werte wie sGlobal, sFirmware, sHistory und diverse Einstellungen wie die Urlaubszeiten sowie einige PXX Werte angezeigt werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sGlobal (vormals allFB)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beinhaltet alle aktuellen Werte wie Temperaturen von Wasser und Gas, Lüfterstatus, Drücke, usw.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sFirmware&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Zeigt die Firmware Version der Wärmepumpe.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHistory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Angaben zur Betriebsdauer. Beispielsweise die Anzahl der Betriebsstunden der Kompressoren.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pHoliday-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier werden die aktuellen Einstellungen der Urlaubsfunktion der THZ angezeigt. Diese bewirken, dass keine Tagabsenkung (sofern programmiert) gemacht wird. &lt;br /&gt;
Die holiday-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sLast10errors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Liest die letzten 10 Fehlercodes aus und stellt diese dar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pXX-Werte &amp;amp; program-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die pXX-Werte und program-Werte stellen Einstellungen wie Heizkreistemperaturen und Lüfterstufen sowie Heizungs- und Warmwasserprogramme der THZ dar. Alle pXX-Werte und program-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
Es sind auch Lüfterdurchsatzmengen und Passivkühlung konfigurierbar.&amp;lt;br&amp;gt;&lt;br /&gt;
pOpMode zeigt den Betriebszustand. Automatik, Handbetrieb, etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;party-time&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier wird die Uhrzeit der Party programmiert.&lt;br /&gt;
Party-Time regelt die Lüfterstufe (p99FanStageParty) im Party-Modus. Diese kann auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sDHW (ex Status_DHW_F3)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Warmwasserbereitung&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC1 (ex Status_HC1_F4)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Informationen zum Heizkreis 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC2 (ex Status_HC2_F5)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Heizkreis 2 Informationen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sSol (ex Status_Sol_16)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Solaranlage&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pOpMode (ex OperatingMode)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Betriebsart: Bereitschaft, Automatik, Tagbetrieb, Absenkbetrieb, WW-Betrieb, Manueller Betrieb, Notbetrieb&lt;br /&gt;
&lt;br /&gt;
Wenn die Betriebsart via FHEM geändert werden soll dann muss als set-Wert die entsprechende englische Bezeichnung gesendet werden (Standby, Automatic, DAYmode, SetBack, DHWmode, Manual, Emergency)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sXXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Es gibt noch einige weitere &amp;quot;s&amp;quot;tatus Werte die unter anderen die Wärmerückgewinnungswerte beinhalten.&lt;br /&gt;
&lt;br /&gt;
= Plots - Grafische Darstellung =&lt;br /&gt;
Nachfolgend wird gezeigt wie man aus den Readings wie sGlobal grafische Plots erstellen kann.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Beispiel&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Angenommen wir wollen aus sGlobal die outside_temp und die dhw_temp (dhw=domestic hot water = Warmwasser) grafisch darstellen:&lt;br /&gt;
&lt;br /&gt;
In der fhem.cfg legen wir das Plot an:&lt;br /&gt;
:&amp;lt;code&amp;gt;define Plot_Temp SVG FileLog_Mythz:thz:CURRENT&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Plot_Temp room Heizung&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Daraufhin wird das Plot erzeugt, noch ohne Daten und evtl. mit einer Fehlermeldung.&lt;br /&gt;
Hier klicken wir dann auf den Plot-Namen um in das Plot-Konfigurationsfenster zu kommen.&lt;br /&gt;
Hier tragen wir die entsprechenden Daten ein.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wichtig sind nun die Input-Felder&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Unterhalb der Eingabemaske befinden sich die zu Mythz gehörenden Readings die verwendet werden können. Darunter auch sGlobal.&lt;br /&gt;
&lt;br /&gt;
Das sGlobal wird in etwa so aussehen:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014-03-02_13:07:49 Mythz sGlobal: outside_temp: 3.8 flow_temp: 26.5 return_temp: 27.2 hot_gas_temp: 32.1 dhw_temp: 43.4 flow_temp_HC2: -60 evaporator_temp: 5.3 condenser_temp: 27.4 Mixer_open: 0 Mixer_closed: 0 HeatPipeValve: 0 DiverterValve: 0 DHW_Pump: 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Thzplot.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
Um den richtigen Input zu finden, zählen wir die durch Leerzeichen getrennten Daten ab. Somit ist der Wert der outside_temp an Stelle 5, die dhw_temp an Stelle 13.&lt;br /&gt;
Diese Zahl tragen wir dann im Input-Feld ein und schon haben wir einen Plot der Daten erzeugt.&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu [http://www.fhemwiki.de/wiki/Plots_erzeugen Plots]&lt;br /&gt;
&lt;br /&gt;
= einzelne Werte aus den Readings=&lt;br /&gt;
Um einzelne Werte aus den großen Readings wie sGlobal oder history zu bekommen, kann man ein &lt;br /&gt;
&lt;br /&gt;
userReading verwenden.&lt;br /&gt;
Beispiel:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz userReadings AussenTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, &lt;br /&gt;
&lt;br /&gt;
VorlaufTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu userReadings in der [http://fhem.de/commandref_DE.html CommandRef]&lt;br /&gt;
&lt;br /&gt;
= Hinweise =&lt;br /&gt;
* Ein kompletter Refresh aller Werte wird nur beim Systemstart von FHEM gemacht. Dies geschieht sehr langsam um die Performance nicht zu beeinträchtigen. Erst nachdem dieser Refresh (dauert ca. 3-4 Minuten) gelaufen ist, wird das interne Polling gestartet.&lt;br /&gt;
*Wenn das Refresh Intervall kürzer oder gleich ist wie der initiale Refresh kann es zu einer Überschneidung kommen was allerdings kein Problem sein sollte.&lt;br /&gt;
*Im Wintermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1 und p02RoomTempNightHC1   &lt;br /&gt;
*Im Sommermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1SummerMode und p02RoomTempNightHC1SummerMode&lt;br /&gt;
&lt;br /&gt;
= Bekannte Probleme =&lt;br /&gt;
Im FHEM Log tauchen bei Ser2Net Verbindung häufig folgende Meldungen auf:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014.03.02 09:41:09 1: 192.168.178.50:2003 disconnected, waiting to reappear&lt;br /&gt;
2014.03.02 09:41:09 1: 192.168.178.50:2003 reappeared (Mythz)&amp;lt;/code&amp;gt;&lt;br /&gt;
Dieses Problem ist aktuell nicht gelöst.&lt;br /&gt;
&lt;br /&gt;
= Release History =&lt;br /&gt;
&#039;&#039;&#039;v0.067&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Erstmalige Implementierung in FHEM&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.068&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neuer Befehl f. Party implementiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.069&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Deutsche CommandRef hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.070&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix in Status Bits&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.071&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfix, undefFn verbessert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.072&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Alle programHC1*, programHC2*, programFan* und programDHW* sind nun mit &amp;quot;get&amp;quot; und &amp;quot;set&amp;quot; implementiert&lt;br /&gt;
* inside_temp  wurde am Ende von allFB hinzugefügt&lt;br /&gt;
* der Ser2Net connect/disconnet Bug wurde eingedämmt auf max 1 Logeintrag pro Sekunde&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.074&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Jetzt sind auch die Lüfterdurchsatzmengen und die Passivkühlung ausgelesen und änderbar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.075&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
interval_last10errors implementiert. Intervall, in dem der Fehlerspeicher ausgelesen werden soll&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.076&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes und neuer Parameter Status_HC1_F4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.078&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neue Parameter Status_Sol_16 und Status_DHW_F3&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.080&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* neue Parameter p49SummerModeTemp und p50SummerModeHysteresis&lt;br /&gt;
* Status_HC1_F4 und Status_HC2_F5 zeigen nun &amp;quot;mode: Summer&amp;quot; (oder Winter)&lt;br /&gt;
Die Berechnung des Modus ist wie folgt:&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;gt; p49SummerModeTemp + p50SummerModeHysteresis ---&amp;gt; Summermode&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;lt; p49SummerModeTemp - p50SummerModeHysteresis ---&amp;gt; Wintermode&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.081&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix für Sommer/Wintermodus-Anzeige&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.084&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* OperatingMode wird nun ausgelesen (read-only)&lt;br /&gt;
* p33BoosterTimeoutDHW (read/write)&lt;br /&gt;
* p79BoosterTimeoutHC (read/write)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.085&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode kann jetzt auch geaendert werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.087&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Neue Readings&lt;br /&gt;
* Angepasste Readingnamen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.089&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Kommunikation wurde stabilisiert&lt;br /&gt;
* Bugfixes&lt;br /&gt;
* Neue Readings&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.091&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatRecoveredDay &amp;amp; sHeatRecoveredTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.094&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.095&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatDHWDay &amp;amp; sHeatDHWTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.096&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Weitere neue Readings: sEletrx... &amp;amp; sHeat...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.097&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.099&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Raumeinfluss wurde in die Heizkurvengrafik eingebaut&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.100&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Parameter: p54MinPumpCycles, p55MaxPumpCycles, p56OutTempMaxPumpCycles, p57OutTempMinPumpCycles&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.101&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* keine neuen Features&lt;br /&gt;
* Code clean up&lt;br /&gt;
* Logs in verbose 5 implementiert&lt;br /&gt;
* buffer overflow (Verursacht von sGlobal bei LWZ 303 Firmware 3.19) gefixt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.103&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Änderung der Kommunikation. Jetzt 10x schneller&lt;br /&gt;
* Versionsinformation hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.104&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Delay in der Kommunikation hinzugefügt (aber immer noch 5x schneller)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.105&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Schnelleres set und get Verhalten&lt;br /&gt;
* Dauer des Update beim Start halbiert&lt;br /&gt;
* THZ Attribute können ohne Neustart geändert werden&lt;br /&gt;
* BugFix&lt;br /&gt;
* P83 hinzugefügt (DHWSetSolarTemp)&lt;br /&gt;
* Suffix bei den Temp-Werten hinzugefügt. z.B. p04DHWsetDay jetzt p04DHWsetDayTemp&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.107&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p56 and p57 getauscht und repariert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.108&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Party-Time wurde entfernt da nicht funktionsfähig&lt;br /&gt;
* Grouping bei &amp;quot;set programFan_Mo-Fr_0  to  08:00--20:00&amp;quot; --&amp;gt; Einzelne Tage werden automatisch gesetzt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.109&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Fehlerbehebung bei langen Nachrichten via Seriellem Kabel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.110&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix (für seriellen Adapter) trunkating messages (forum 209294)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0111&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* P21,22,23,24,25,29 hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.112&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix für Fehler verursacht durch DevIo.pm 6980 status disconnected msg223569&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.113&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.114&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.115&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Implementierung von &amp;quot;Informationen aus dem Modul des HeatpumpMonitor von Robert Penz&amp;quot;. Alle nicht identifizierbaren Teile erhalten den Wert &amp;quot;n.a.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.116&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* weitere Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.118&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* faultcode implementiert&lt;br /&gt;
* Rechtschreibefehler korrigiert: evuRelease&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.119&#039;&#039;&#039;&lt;br /&gt;
* der Firmwareparameter 2.06 erhöht den Maximalcount der Wiederholung von DevIo_SimpleReadWithTimeout von 24 auf 50&lt;br /&gt;
* Reduktion des DevIo_SimpleReadWithTimeout von 0.06 auf 0.02&lt;br /&gt;
* Der Firmwareparameter 2.06 entfernt jetzt Register, die von älteren Wärmepumpen nicht unterstützt werden&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.120&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Verzögerung zwischen programXXX_YY zugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.121&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Register Interpretation von user godmorgon implementiert&lt;br /&gt;
* register 17 für ältere Firmwareversionen implementiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.122&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* pXX Register für ältere Firmwareversionen implementiert&lt;br /&gt;
* maximale Widerholungen jetzt limitiert auf 60, zuvor 50&lt;br /&gt;
* actualPower_Qc: gepatcht um Pufferüberlauf zu vermeiden &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.123&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* actualPower_Qc und actualPower_pEl korrigiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.124&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Verlaufsregister angelegt für Firmwareversion 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0125&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Anpassungen um die Firmware 2.06 zu unterstützen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0126&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Weitere Anpassungen um die Firmware 2.06 zu unterstützen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.127&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix:Unterschied in Parsingregel für FCtime&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.128&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Die meisten Paramter können jetzt von WP älterer Firmware gelesen werden&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.129&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* sDisplay (Aktivitätsparameter die im Display dargestellt werden)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.130&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* 2 Bugfixes &lt;br /&gt;
* Firmware-id  enthält neue Feature wie HW: 74 SW: 2.08 Date: MAR 9 2011&lt;br /&gt;
* neuer Parameter p99RoomThermCorrection implementiert&lt;br /&gt;
* THZ_PrintcurveSVG (Heizkurve) wird jetzt durch p99RoomThermCorrection beeinflusst &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.131&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p35PasteurisationInterval,p35PasteurisationTemp,  p34BoosterDHWTempAct, p99DHWmaxFlowTemp, p89DHWeco hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.132&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p99startUnschedVent hinzugefügt&lt;br /&gt;
* Aufteilung großer Register implementiert. Nötig für Firmware 2.06.&lt;br /&gt;
* Heizkurven jetzt auf 15...35°C begrenzt für bessere Darstellung des Kurvenverlaufs&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p12 FanStageManual hinzugefügt&lt;br /&gt;
* Autoskalierung der Heizkurvenskala&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133+&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* fixed: Laut Bedienungsanleitung ist p99RoomThermCorrection der Parameter P76&lt;br /&gt;
&lt;br /&gt;
= Beispielkonfiguration =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start Definition mit Ser2Net&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define Mythz THZ 192.168.111.5:2003&amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz room Sysintern&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;userReadings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:dash.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz userReadings AussenTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, VorlaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}, RuecklaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[5]}, WWTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[9]}, KollektorTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[79]}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;interval Definitionen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz interval_sGlobal 300 &amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz interval_sHistory 28800 &amp;lt;br&amp;gt; &lt;br /&gt;
attr Mythz interval_sLast10errors 120 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Definition von file-log und den SVG-Plots einiger Daten&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FileLog_Mythz FileLog ./log/Mythz-%Y-%m.log Mythz&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_0 SVG FileLog_Mythz:thz:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_0 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_1 SVG FileLog_Mythz:thz1:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_1 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_2 SVG FileLog_Mythz:thz2:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_2 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_3 SVG FileLog_Mythz:thz3:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_3 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_4 SVG FileLog_Mythz:thz4:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_4 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;readingsGroup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define rg_thz readingsGroup Mythz:&amp;lt;%temp_outside&amp;gt;,&amp;lt;Aussen&amp;gt;,AussenTemp Mythz:&amp;lt;%sani_supply_temp@red&amp;gt;,&amp;lt;Vorlauf&amp;gt;,VorlaufTemp Mythz:&amp;lt;%sani_return_temp@blue&amp;gt;,&amp;lt;Rücklauf&amp;gt;,RuecklaufTemp Mythz:&amp;lt;%sani_boiler_temp@BD7800&amp;gt;,&amp;lt;Wasser&amp;gt;,WWTemp Mythz:&amp;lt;%sani_solar_temp&amp;gt;,&amp;lt;Kollektor&amp;gt;,KollektorTemp&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz alias Heizung Temperaturen&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz room Sysintern&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz valueFormat { AussenTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, VorlaufTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, AussenTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, RuecklaufTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, WWTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, KollektorTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039; }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Dashboard&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define MyDashboard Dashboard&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_lockstate unlock&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_row top-center&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showhelper 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showtooglebuttons 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1groups THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1name micofhem&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1sorting t0c100,THZ,true,170,253&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tabcount 1&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_webfrontendfilter WEB&amp;lt;br&amp;gt;&lt;br /&gt;
define MyDashboard_weblink weblink htmlCode {DashboardAsHtml(&amp;quot;MyDashboard&amp;quot;)}&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard_weblink room DashboardRoom&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FanSelector für die Lüftungssteuerung&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FanSelectorDay dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorDay webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p07FanStageDay notify FanSelectorDay  IF ([FanSelectorDay] eq &amp;quot;offFor60min&amp;quot;) (define at_D_offFor60min at +00:59:00 set Mythz p07FanStageDay [Mythz:p07FanStageDay],set Mythz p07FanStageDay 0, setstate FanSelectorDay offFor60min) ELSE (set Mythz p07FanStageDay $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorDay notify (Mythz.p07FanStageDay.*) setstate FanSelectorDay $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay room heatpump&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:fanselectorv2.png|thumb]]&lt;br /&gt;
define FanSelectorNight dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorNight webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p08FanStageNight notify FanSelectorNight IF ([FanSelectorNight] eq &amp;quot;offFor60min&amp;quot;) (define at_N_offFor60min at +00:59:00 set Mythz p08FanStageNight [Mythz:p08FanStageNight],set Mythz p08FanStageNight 0, setstate FanSelectorNight offFor60min) ELSE (set Mythz p08FanStageNight $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorNight notify (Mythz.p08FanStageNight.*) setstate FanSelectorNight $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight room heatpump&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
[https://launchpad.net/heatpumpmonitor Launchpad Heatpumpmonitor]&lt;br /&gt;
&lt;br /&gt;
[http://forum.fhem.de/index.php/topic,13132.0.html Forenthread im FHEM-Forum]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Other Components]]&lt;br /&gt;
[[Kategorie:Heizungssteuerung]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_Heatpump&amp;diff=10433</id>
		<title>Tecalor THZ Heatpump</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_Heatpump&amp;diff=10433"/>
		<updated>2015-03-04T12:25:20Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=THZ&lt;br /&gt;
|ModPurpose=Connect to Tecalor heatpump&lt;br /&gt;
|ModType=d&lt;br /&gt;
&amp;lt;!-- |ModCategory= (noch?) nicht verwendet --&amp;gt;&lt;br /&gt;
|ModCmdRef=THZ&lt;br /&gt;
|ModForumArea=Sonstiges&lt;br /&gt;
|ModTechName=00_THZ.pm&lt;br /&gt;
|ModOwner=immiimmi&lt;br /&gt;
}}German version: [[Tecalor THZ Wärmepumpe]]&lt;br /&gt;
&lt;br /&gt;
This article describes how to connect to a Stiebel Eltron / Tecalor THZ/LWZ 303/304/403/404 heatpump and to read and write settings from and to the heating. 504 not tested yet but may also work.&lt;br /&gt;
&lt;br /&gt;
For better understanding: Tecalor is the end customer brand of Stiebel Eltron. In the following the system will be called &amp;quot;THZ&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Tested are Software Versions 2.06, 4.09, 4.19, 4.39 and 5.39.&lt;br /&gt;
Older versions may work but there&#039;s no guarantee for.&lt;br /&gt;
NOTE: This manual is for persons who are familiar with electronics.&lt;br /&gt;
The author and the developer are not liable for any damage and there&#039;s no warranty.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ATTENTION!! Since v0.087 the reading names have changed.&#039;&#039;&#039; To have intuitive and consistent reading names the readings names changed to sXXX and pXXXX for status values and parameters in the heating. See readings section for more information.&amp;lt;br&amp;gt;&lt;br /&gt;
If you update you sure have to reconfigure readingsGroups, dashboards, and so...&lt;br /&gt;
&lt;br /&gt;
=Connection to the heatpump=&lt;br /&gt;
==Local via RS232 or USB==&lt;br /&gt;
The THZ has two interface which can be used for a connection.&lt;br /&gt;
* One serial interface behind the right door which can be used with a MNL-SG3 Plug&lt;br /&gt;
* One USB interface on the electronics board which can be used with a TYPE-B USB cable.&lt;br /&gt;
&#039;&#039;&#039;Warning!!! The USB interface is on the back side of the electronics board behind the coverage wich is behind the right door. Do not connect the USB while the system is powered on! Before removing the coverage you have to power off the complete heatpump!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The baud rates may vary based on hard- and software release between 9600 and 115200 for RS232. For USB it&#039;s 57600 or 115200 baud.&lt;br /&gt;
More information how to connect to the heatpump with RS232 can be found here: [http://robert.penz.name/heat-pump-lwz/ Robert Penz Homepage]&lt;br /&gt;
&lt;br /&gt;
==Remote connection with Ser2Net==&lt;br /&gt;
If the FHEM server is not near the heatpump you can connect with Ser2Net. This will provide a virtual serial interface on a TCP-Port&lt;br /&gt;
&lt;br /&gt;
===Installation Ser2Net on Linux===&lt;br /&gt;
To install Serial-Port-Server Ser2Net just follow these steps:&lt;br /&gt;
:&amp;lt;code&amp;gt;sudo apt-get install ser2net&amp;lt;/code&amp;gt;&lt;br /&gt;
in /etc/ser2net.conf (/dev/ttyXXX)&lt;br /&gt;
:&amp;lt;code&amp;gt;2003:raw:500:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS  &amp;lt;/code&amp;gt;&lt;br /&gt;
The port can be chosen on your own as long as it&#039;s still unused.&lt;br /&gt;
&lt;br /&gt;
==Tested Host-Systems==&lt;br /&gt;
This module was tested on FritzBox, nas-qnap, Raspberry Pi and MacOS.&lt;br /&gt;
&lt;br /&gt;
=Definition in FHEM=&lt;br /&gt;
==Direct RS232 serial or USB==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # or (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internal Polling Interval 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internal Polling Interval 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internal Polling Fault Memory&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t define the attributes interval_sGlobal and interval_history (or they are 0), the internal polling is disabled. Sure you can also poll with the &amp;quot;at&amp;quot; command outside the module:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # or (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzFB at +*00:05:00 {fhem &amp;quot;get Mythz sGlobal&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythz09 at +*08:00:00 {fhem &amp;quot;get Mythz sHistory&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Over network with Ser2Net==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ 192.168.0.244:2003&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internal Polling Interval 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internal Polling Interval 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internal Polling Interval Fault Memory&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Readings=&lt;br /&gt;
If the connection to the heatpump was successful you should see readings like sGlobal, sFirmware, sHistory and some settings like holiday and pXX parameters.einige PXX Werte angezeigt werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sGlobal (ex allFB)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains all actual values like water and gas temperatures, fan states, pressures, ...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sFirmware&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Shows the firmware release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHistory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains information to operating hours, e.g. the compressors operating hours.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pHoliday-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here you can see the settings of the holiday configuration of the THZ. These are used to override the day setback for the give time.&lt;br /&gt;
You can change the holiday settings with &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sLast10errors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Reads the last 10 errors and shows it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pXX-values &amp;amp; program-values&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The pXX &amp;amp; program values are settings like the heating circle, fan states, dhw programs and so on. All pXX and program valueas can be changed with the &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; command. NEW: Now the fanstage-inlet and outlet volumes are read- and writeable.&amp;lt;br&amp;gt;&lt;br /&gt;
pOpMode shows the Operating Mode of the THZ. Like Automatic, Setback, ...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;party-time&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This parameter sets the party time.&lt;br /&gt;
While this time range the fan state will change to the in p99FanStageParty stage.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sDHW (ex Status_DHW_F3)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains information about the Domestic Hot Water system&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC1 (ex Status_HC1_F4)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains information about the Heatinc Circle 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC2 (ex Status_HC2_F5)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Information of HC2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sSol (ex Status_Sol_16)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Solar Heating System informations&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pOpMode (ex OperatingMode)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode of the heating. One of: Standby, Automatic, DAYmode, SetBack, DHWmode, Manual, Emergency&lt;br /&gt;
&lt;br /&gt;
If the operating mode should be changed via FHEM, the set command must send the depending mode code like shown above.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sXXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are some more &amp;quot;s&amp;quot;tatus readings with show you values like the heat recovery&lt;br /&gt;
&lt;br /&gt;
= Plots - graphical views =&lt;br /&gt;
This shows you how to create plots from the heatpump readings.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Assuming we want to read and plot the outside_temp and the dhw_temp from the sGlobal reading:&lt;br /&gt;
&lt;br /&gt;
Creating the plot in fhem.cfg:&lt;br /&gt;
:&amp;lt;code&amp;gt;define Plot_Temp SVG FileLog_Mythz:thz:CURRENT&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Plot_Temp room Heizung&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will setup the plot without any data and maybe with an error message.&lt;br /&gt;
Klick on the plot-name to open the plot config windows.&lt;br /&gt;
Here you enter the details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Most important are now the input fields&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Below the input mask you find the according readings to Mythz, including sGlobal.&lt;br /&gt;
&lt;br /&gt;
sGlobal will like like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014-03-02_13:07:49 Mythz sGlobal: outside_temp: 3.8 flow_temp: 26.5 return_temp: 27.2 hot_gas_temp: 32.1 dhw_temp: 43.4 flow_temp_HC2: -60 evaporator_temp: 5.3 condenser_temp: 27.4 Mixer_open: 0 Mixer_closed: 0 HeatPipeValve: 0 DiverterValve: 0 DHW_Pump: 0 .................output omitted&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Thzplot.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
To find the right input value just count the space seperated data. So the value for outside_temp is 5 and dhw_temp is 13 as these are the positions they are on.&lt;br /&gt;
This number will be entered into the input field to create the plot with the chosen data.&lt;br /&gt;
&lt;br /&gt;
More information to [[Creating Plots]]&lt;br /&gt;
&lt;br /&gt;
=extract single values from readings=&lt;br /&gt;
To separate values to from the &amp;quot;big readings&amp;quot; like sGlobal or history you can use a userReading.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz userReadings OutsideTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, &lt;br /&gt;
&lt;br /&gt;
FlowTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More information to userReadings can be found in the [http://fhem.de/commandref_DE.html CommandRef]&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
* A full refresh (of all parameters) is done only at systemstart, very very slowly (not to decrease performance of FHEM), and takes ca 3 or 4 minutes. After that the intervall polling of sGlobal and sHistory register should start. &lt;br /&gt;
* If the FB-intervall or History-Intervall attributes are lower than 3 minutes, there clould be a concurrency. But that shouldn&#039;t cause any problems.&lt;br /&gt;
* in wintermode roomSetTemp (from  sHC1) is given from p01RoomTempDayHC1  and  p02RoomTempNightHC1   &lt;br /&gt;
* in summermode roomSetTemp (from  sHC1) is given from  p01RoomTempDayHC1SummerMode and  p02RoomTempNightHC1SummerMode&lt;br /&gt;
&lt;br /&gt;
= known Problems =&lt;br /&gt;
In the FHEM Log you will find messages like this when using Ser2Net:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014.03.02 09:41:09 1: 192.168.178.50:2003 disconnected, waiting to reappear&lt;br /&gt;
2014.03.02 09:41:09 1: 192.168.178.50:2003 reappeared (Mythz)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This problem is not solved until now.&lt;br /&gt;
&lt;br /&gt;
= Release History =&lt;br /&gt;
&#039;&#039;&#039;v0.067&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Module first implemented in  FHEM&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.068&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
new command for party&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.069&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
added German CommandRef &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.070&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix in status bits&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.071&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfix, undefFn improved&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.072&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* all programHC1*, programHC2*, programFan* and programDHW* have been implemented with get and set&lt;br /&gt;
* inside_temp  has been added to the end of allFB&lt;br /&gt;
* connect/disconnet bug related to ser2net has been extremely improved: max one retry per second&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.074&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
now the parameters air inlet- outlet-volumes and passive cooling are read and writeable&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.075&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
implemented interval_last10errors. Interval for polling the internal fault memory of the heatpump.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.076&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes and new parameter Status_HC1_F4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.078&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
new parameters Status_Sol_16 and Status_DHW_F3&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.080&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* new Parameters p49SummerModeTemp and p50SummerModeHysteresis&lt;br /&gt;
* Status_HC1_F4 and Status_HC2_F5 now showing &amp;quot;mode: Summer&amp;quot; (or Winter)&lt;br /&gt;
Calculation of the mode is:&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;gt; p49SummerModeTemp + p50SummerModeHysteresis ---&amp;gt; Summermode&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;lt; p49SummerModeTemp - p50SummerModeHysteresis ---&amp;gt; Wintermode&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.081&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix for Sommer/Wintermodus-Anzeige&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.084&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* OperatingMode now displayed (read-only)&lt;br /&gt;
* p33BoosterTimeoutDHW (read/write)&lt;br /&gt;
* p79BoosterTimeoutHC (read/write)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.085&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode is now read/write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.087&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Neue Readings&lt;br /&gt;
* Angepasste Readingnamen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.089&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Improvements on communication&lt;br /&gt;
* Bugfixes&lt;br /&gt;
* New readings&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.091&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New Readings: sHeatRecoveredDay &amp;amp; sHeatRecoveredTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.094&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.095&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New Readings: sHeatDHWDay &amp;amp; sHeatDHWTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.096&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
More new Readings: sEletrx... &amp;amp; sHeat...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.097&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.099&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
room-influence has been included in the simulation curve plot&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.100&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
new parameters: p54MinPumpCycles, p55MaxPumpCycles, p56OutTempMaxPumpCycles, p57OutTempMinPumpCycles&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.101&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* no new features&lt;br /&gt;
* lots of clean up&lt;br /&gt;
* logs in verbose 5 implemented.&lt;br /&gt;
* buffer overflow (caused by sGlobal for LWZ 303 firmware 3.19). has been fixed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.103&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Major change in communications (10x faster)&lt;br /&gt;
* Added version information&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.104&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Added some delay in communications but still 5x faster&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.105&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* faster getting and setting of variables&lt;br /&gt;
* update after the start two times faster&lt;br /&gt;
* THZ attributes can be changed without restarting&lt;br /&gt;
* BugFixes&lt;br /&gt;
* P83 added (DHWSetSolarTemp)&lt;br /&gt;
* added suffix temp to the  names of parameters. e.g. p04DHWsetDay now p04DHWsetDayTemp&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.107&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p56 and p57 exchanged and fixed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.108&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Party-Time set removed as it has never worked&lt;br /&gt;
* set programFan_Mo-Fr_0 to 08:00--20:00 --&amp;gt; will now change the according day-program-sets also&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.109&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* bug fix for long messages in combination with serial cable connection&lt;br /&gt;
&#039;&#039;&#039;v0.110&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* bugfix for interface (with serial cable) trunkating messages (forum 209294)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0111&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* P21,22,23,24,25,29 added&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.112&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* bugfix for error caused by DevIo.pm 6980 status disconnected msg223569&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.113&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* support for older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.114&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* support for older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.115&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* implemented the &amp;quot;Informationen aus dem Modul des HeatpumpMonitors von Robert Penz&amp;quot;. All non identified parts will receive value &amp;quot;n.a.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.116&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* support for older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.118&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* faultcode implemented.&lt;br /&gt;
* Typo fix: evuRelease&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.119&#039;&#039;&#039;&lt;br /&gt;
* the firmware parameter 2.06 increases the countmax of the repetition of DevIo_SimpleReadWithTimeout from 24 to 50&lt;br /&gt;
* decrease of the DevIo_SimpleReadWithTimeout from 0.06 to 0.02&lt;br /&gt;
* the firmware parameter 2.06 removes registers not supported from older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.120&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* delays between the programming of  programXXX_YY.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.121&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* register interpretation from user godmorgon implemented&lt;br /&gt;
* register 17 for old firmwares implemented&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.122&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* pXX register for old firmware implemented &lt;br /&gt;
* max repeat increased limited to 60, before was 50&lt;br /&gt;
* actualPower_Qc: patched to avoid buffer overflow&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.123&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* actualPower_Qc and actualPower_pEl fixed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.124&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* history register pathed for firmware version 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0125&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Adjustments to support Firmware 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0126&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Further Adjustments to support Firmware 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.127&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix:difference in the parsing rule for FCtime&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.128&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* now most of parameters can be read from old firmwares&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.129&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* sDisplay (Activity parameters symbolized in Display)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.130&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* 2 bugfixes &lt;br /&gt;
* firmware-id  contains new features e.g. HW: 74 SW: 2.08 Date: MAR 9 2011&lt;br /&gt;
* new parameter p99RoomThermCorrection implemented&lt;br /&gt;
* THZ_PrintcurveSVG is now influenced by p99RoomThermCorrection&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.131&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* added p35PasteurisationInterval,p35PasteurisationTemp,  p34BoosterDHWTempAct, p99DHWmaxFlowTemp, p89DHWeco&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.132&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* added p99startUnschedVent&lt;br /&gt;
* splitting of big register implemented; this is needed for writing in old 2.06 firmware. &lt;br /&gt;
* vertical range in the heating curve changed to 15..35°C &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p12 FanStageManual&lt;br /&gt;
* autoscale of heating curve&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133+&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* fixed: According the manual our p99RoomThermCorrection is actually P76&lt;br /&gt;
&lt;br /&gt;
= Beispielkonfiguration =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start Definition mit Ser2Net&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define Mythz THZ 192.168.111.5:2003&amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz room Sysintern&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;userReadings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:dash.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz userReadings AussenTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, VorlaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}, RuecklaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[5]}, WWTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[9]}, KollektorTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[79]}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;interval Defintionen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz interval_sGlobal 300 &amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz interval_sHistory 28800 &amp;lt;br&amp;gt; &lt;br /&gt;
attr Mythz interval_sLast10errors 120 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Definition von file-log und den SVG-Plots einiger Daten&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FileLog_Mythz FileLog ./log/Mythz-%Y-%m.log Mythz&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_0 SVG FileLog_Mythz:thz:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_0 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_1 SVG FileLog_Mythz:thz1:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_1 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_2 SVG FileLog_Mythz:thz2:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_2 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_3 SVG FileLog_Mythz:thz3:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_3 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_4 SVG FileLog_Mythz:thz4:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_4 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;readingsGroup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define rg_thz readingsGroup Mythz:&amp;lt;%temp_outside&amp;gt;,&amp;lt;Aussen&amp;gt;,AussenTemp Mythz:&amp;lt;%sani_supply_temp@red&amp;gt;,&amp;lt;Vorlauf&amp;gt;,VorlaufTemp Mythz:&amp;lt;%sani_return_temp@blue&amp;gt;,&amp;lt;Rücklauf&amp;gt;,RuecklaufTemp Mythz:&amp;lt;%sani_boiler_temp@BD7800&amp;gt;,&amp;lt;Wasser&amp;gt;,WWTemp Mythz:&amp;lt;%sani_solar_temp&amp;gt;,&amp;lt;Kollektor&amp;gt;,KollektorTemp&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz alias Heizung Temperaturen&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz room Sysintern&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz valueFormat { AussenTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, VorlaufTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, AussenTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, RuecklaufTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, WWTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, KollektorTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039; }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Dashboard&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define MyDashboard Dashboard&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_lockstate unlock&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_row top-center&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showhelper 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showtooglebuttons 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1groups THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1name micofhem&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1sorting t0c100,THZ,true,170,253&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tabcount 1&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_webfrontendfilter WEB&amp;lt;br&amp;gt;&lt;br /&gt;
define MyDashboard_weblink weblink htmlCode {DashboardAsHtml(&amp;quot;MyDashboard&amp;quot;)}&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard_weblink room DashboardRoom&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FanSelector für die Lüftungssteuerung&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FanSelectorDay dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorDay webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p07FanStageDay notify FanSelectorDay  IF ([FanSelectorDay] eq &amp;quot;offFor60min&amp;quot;) (define at_D_offFor60min at +00:59:00 set Mythz p07FanStageDay [Mythz:p07FanStageDay],set Mythz p07FanStageDay 0, setstate FanSelectorDay offFor60min) ELSE (set Mythz p07FanStageDay $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorDay notify (Mythz.p07FanStageDay.*) setstate FanSelectorDay $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay room heatpump&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:fanselectorv2.png|thumb]]&lt;br /&gt;
define FanSelectorNight dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorNight webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p08FanStageNight notify FanSelectorNight IF ([FanSelectorNight] eq &amp;quot;offFor60min&amp;quot;) (define at_N_offFor60min at +00:59:00 set Mythz p08FanStageNight [Mythz:p08FanStageNight],set Mythz p08FanStageNight 0, setstate FanSelectorNight offFor60min) ELSE (set Mythz p08FanStageNight $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorNight notify (Mythz.p08FanStageNight.*) setstate FanSelectorNight $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight room heatpump&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
[https://launchpad.net/heatpumpmonitor Launchpad Heatpumpmonitor]&lt;br /&gt;
&lt;br /&gt;
[http://forum.fhem.de/index.php/topic,13132.0.html Thread in the FHEM-Forum]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Other Components]]&lt;br /&gt;
[[Kategorie:Heizungssteuerung]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_Heatpump&amp;diff=10432</id>
		<title>Tecalor THZ Heatpump</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_Heatpump&amp;diff=10432"/>
		<updated>2015-03-04T12:23:54Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Release History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=THZ&lt;br /&gt;
|ModPurpose=Connect to Tecalor heatpump&lt;br /&gt;
|ModType=d&lt;br /&gt;
&amp;lt;!-- |ModCategory= (noch?) nicht verwendet --&amp;gt;&lt;br /&gt;
|ModCmdRef=THZ&lt;br /&gt;
|ModForumArea=Sonstiges&lt;br /&gt;
|ModTechName=00_THZ.pm&lt;br /&gt;
|ModOwner=immiimmi&lt;br /&gt;
}}German version: [[Tecalor THZ Wärmepumpe]]&lt;br /&gt;
&lt;br /&gt;
This article describes how to connect to a Stiebel Eltron / Tecalor THZ/LWZ 303/304/404 heatpump and to read and write settings from and to the heating.&lt;br /&gt;
&lt;br /&gt;
For better understanding: Tecalor is the end customer brand of Stiebel Eltron. In the following the system will be called &amp;quot;THZ&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Tested are Software Versions 4.09, 4.19, 4.39 and 5.39.&lt;br /&gt;
Older versions may work but there&#039;s no guarantee for.&lt;br /&gt;
NOTE: This manual is for persons who are familiar with electronics.&lt;br /&gt;
The author and the developer are not liable for any damage and there&#039;s no warranty.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ATTENTION!! Since v0.087 the reading names have changed.&#039;&#039;&#039; To have intuitive and consistent reading names the readings names changed to sXXX and pXXXX for status values and parameters in the heating. See readings section for more information.&amp;lt;br&amp;gt;&lt;br /&gt;
If you update you sure have to reconfigure readingsGroups, dashboards, and so...&lt;br /&gt;
&lt;br /&gt;
=Connection to the heatpump=&lt;br /&gt;
==Local via RS232 or USB==&lt;br /&gt;
The THZ has two interface which can be used for a connection.&lt;br /&gt;
* One serial interface behind the right door which can be used with a MNL-SG3 Plug&lt;br /&gt;
* One USB interface on the electronics board which can be used with a TYPE-B USB cable.&lt;br /&gt;
&#039;&#039;&#039;Warning!!! The USB interface is on the back side of the electronics board behind the coverage wich is behind the right door. Do not connect the USB while the system is powered on! Before removing the coverage you have to power off the complete heatpump!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The baud rates may vary based on hard- and software release between 9600 and 115200 for RS232. For USB it&#039;s 57600 or 115200 baud.&lt;br /&gt;
More information how to connect to the heatpump with RS232 can be found here: [http://robert.penz.name/heat-pump-lwz/ Robert Penz Homepage]&lt;br /&gt;
&lt;br /&gt;
==Remote connection with Ser2Net==&lt;br /&gt;
If the FHEM server is not near the heatpump you can connect with Ser2Net. This will provide a virtual serial interface on a TCP-Port&lt;br /&gt;
&lt;br /&gt;
===Installation Ser2Net on Linux===&lt;br /&gt;
To install Serial-Port-Server Ser2Net just follow these steps:&lt;br /&gt;
:&amp;lt;code&amp;gt;sudo apt-get install ser2net&amp;lt;/code&amp;gt;&lt;br /&gt;
in /etc/ser2net.conf (/dev/ttyXXX)&lt;br /&gt;
:&amp;lt;code&amp;gt;2003:raw:500:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS  &amp;lt;/code&amp;gt;&lt;br /&gt;
The port can be chosen on your own as long as it&#039;s still unused.&lt;br /&gt;
&lt;br /&gt;
==Tested Host-Systems==&lt;br /&gt;
This module was tested on FritzBox, nas-qnap, Raspberry Pi and MacOS.&lt;br /&gt;
&lt;br /&gt;
=Definition in FHEM=&lt;br /&gt;
==Direct RS232 serial or USB==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # or (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internal Polling Interval 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internal Polling Interval 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internal Polling Fault Memory&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t define the attributes interval_sGlobal and interval_history (or they are 0), the internal polling is disabled. Sure you can also poll with the &amp;quot;at&amp;quot; command outside the module:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # or (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzFB at +*00:05:00 {fhem &amp;quot;get Mythz sGlobal&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythz09 at +*08:00:00 {fhem &amp;quot;get Mythz sHistory&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Over network with Ser2Net==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ 192.168.0.244:2003&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internal Polling Interval 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internal Polling Interval 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internal Polling Interval Fault Memory&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Readings=&lt;br /&gt;
If the connection to the heatpump was successful you should see readings like sGlobal, sFirmware, sHistory and some settings like holiday and pXX parameters.einige PXX Werte angezeigt werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sGlobal (ex allFB)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains all actual values like water and gas temperatures, fan states, pressures, ...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sFirmware&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Shows the firmware release.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHistory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains information to operating hours, e.g. the compressors operating hours.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pHoliday-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here you can see the settings of the holiday configuration of the THZ. These are used to override the day setback for the give time.&lt;br /&gt;
You can change the holiday settings with &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sLast10errors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Reads the last 10 errors and shows it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pXX-values &amp;amp; program-values&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The pXX &amp;amp; program values are settings like the heating circle, fan states, dhw programs and so on. All pXX and program valueas can be changed with the &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; command. NEW: Now the fanstage-inlet and outlet volumes are read- and writeable.&amp;lt;br&amp;gt;&lt;br /&gt;
pOpMode shows the Operating Mode of the THZ. Like Automatic, Setback, ...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;party-time&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This parameter sets the party time.&lt;br /&gt;
While this time range the fan state will change to the in p99FanStageParty stage.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sDHW (ex Status_DHW_F3)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains information about the Domestic Hot Water system&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC1 (ex Status_HC1_F4)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Contains information about the Heatinc Circle 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC2 (ex Status_HC2_F5)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Information of HC2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sSol (ex Status_Sol_16)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Solar Heating System informations&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pOpMode (ex OperatingMode)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode of the heating. One of: Standby, Automatic, DAYmode, SetBack, DHWmode, Manual, Emergency&lt;br /&gt;
&lt;br /&gt;
If the operating mode should be changed via FHEM, the set command must send the depending mode code like shown above.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sXXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are some more &amp;quot;s&amp;quot;tatus readings with show you values like the heat recovery&lt;br /&gt;
&lt;br /&gt;
= Plots - graphical views =&lt;br /&gt;
This shows you how to create plots from the heatpump readings.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Assuming we want to read and plot the outside_temp and the dhw_temp from the sGlobal reading:&lt;br /&gt;
&lt;br /&gt;
Creating the plot in fhem.cfg:&lt;br /&gt;
:&amp;lt;code&amp;gt;define Plot_Temp SVG FileLog_Mythz:thz:CURRENT&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Plot_Temp room Heizung&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will setup the plot without any data and maybe with an error message.&lt;br /&gt;
Klick on the plot-name to open the plot config windows.&lt;br /&gt;
Here you enter the details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Most important are now the input fields&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Below the input mask you find the according readings to Mythz, including sGlobal.&lt;br /&gt;
&lt;br /&gt;
sGlobal will like like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014-03-02_13:07:49 Mythz sGlobal: outside_temp: 3.8 flow_temp: 26.5 return_temp: 27.2 hot_gas_temp: 32.1 dhw_temp: 43.4 flow_temp_HC2: -60 evaporator_temp: 5.3 condenser_temp: 27.4 Mixer_open: 0 Mixer_closed: 0 HeatPipeValve: 0 DiverterValve: 0 DHW_Pump: 0 .................output omitted&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Thzplot.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
To find the right input value just count the space seperated data. So the value for outside_temp is 5 and dhw_temp is 13 as these are the positions they are on.&lt;br /&gt;
This number will be entered into the input field to create the plot with the chosen data.&lt;br /&gt;
&lt;br /&gt;
More information to [[Creating Plots]]&lt;br /&gt;
&lt;br /&gt;
=extract single values from readings=&lt;br /&gt;
To separate values to from the &amp;quot;big readings&amp;quot; like sGlobal or history you can use a userReading.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz userReadings OutsideTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, &lt;br /&gt;
&lt;br /&gt;
FlowTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More information to userReadings can be found in the [http://fhem.de/commandref_DE.html CommandRef]&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
* A full refresh (of all parameters) is done only at systemstart, very very slowly (not to decrease performance of FHEM), and takes ca 3 or 4 minutes. After that the intervall polling of sGlobal and sHistory register should start. &lt;br /&gt;
* If the FB-intervall or History-Intervall attributes are lower than 3 minutes, there clould be a concurrency. But that shouldn&#039;t cause any problems.&lt;br /&gt;
* in wintermode roomSetTemp (from  sHC1) is given from p01RoomTempDayHC1  and  p02RoomTempNightHC1   &lt;br /&gt;
* in summermode roomSetTemp (from  sHC1) is given from  p01RoomTempDayHC1SummerMode and  p02RoomTempNightHC1SummerMode&lt;br /&gt;
&lt;br /&gt;
= known Problems =&lt;br /&gt;
In the FHEM Log you will find messages like this when using Ser2Net:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014.03.02 09:41:09 1: 192.168.178.50:2003 disconnected, waiting to reappear&lt;br /&gt;
2014.03.02 09:41:09 1: 192.168.178.50:2003 reappeared (Mythz)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This problem is not solved until now.&lt;br /&gt;
&lt;br /&gt;
= Release History =&lt;br /&gt;
&#039;&#039;&#039;v0.067&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Module first implemented in  FHEM&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.068&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
new command for party&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.069&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
added German CommandRef &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.070&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix in status bits&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.071&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfix, undefFn improved&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.072&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* all programHC1*, programHC2*, programFan* and programDHW* have been implemented with get and set&lt;br /&gt;
* inside_temp  has been added to the end of allFB&lt;br /&gt;
* connect/disconnet bug related to ser2net has been extremely improved: max one retry per second&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.074&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
now the parameters air inlet- outlet-volumes and passive cooling are read and writeable&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.075&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
implemented interval_last10errors. Interval for polling the internal fault memory of the heatpump.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.076&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes and new parameter Status_HC1_F4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.078&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
new parameters Status_Sol_16 and Status_DHW_F3&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.080&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* new Parameters p49SummerModeTemp and p50SummerModeHysteresis&lt;br /&gt;
* Status_HC1_F4 and Status_HC2_F5 now showing &amp;quot;mode: Summer&amp;quot; (or Winter)&lt;br /&gt;
Calculation of the mode is:&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;gt; p49SummerModeTemp + p50SummerModeHysteresis ---&amp;gt; Summermode&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;lt; p49SummerModeTemp - p50SummerModeHysteresis ---&amp;gt; Wintermode&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.081&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix for Sommer/Wintermodus-Anzeige&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.084&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* OperatingMode now displayed (read-only)&lt;br /&gt;
* p33BoosterTimeoutDHW (read/write)&lt;br /&gt;
* p79BoosterTimeoutHC (read/write)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.085&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode is now read/write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.087&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Neue Readings&lt;br /&gt;
* Angepasste Readingnamen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.089&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Improvements on communication&lt;br /&gt;
* Bugfixes&lt;br /&gt;
* New readings&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.091&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New Readings: sHeatRecoveredDay &amp;amp; sHeatRecoveredTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.094&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.095&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
New Readings: sHeatDHWDay &amp;amp; sHeatDHWTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.096&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
More new Readings: sEletrx... &amp;amp; sHeat...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.097&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.099&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
room-influence has been included in the simulation curve plot&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.100&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
new parameters: p54MinPumpCycles, p55MaxPumpCycles, p56OutTempMaxPumpCycles, p57OutTempMinPumpCycles&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.101&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* no new features&lt;br /&gt;
* lots of clean up&lt;br /&gt;
* logs in verbose 5 implemented.&lt;br /&gt;
* buffer overflow (caused by sGlobal for LWZ 303 firmware 3.19). has been fixed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.103&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Major change in communications (10x faster)&lt;br /&gt;
* Added version information&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.104&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Added some delay in communications but still 5x faster&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.105&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* faster getting and setting of variables&lt;br /&gt;
* update after the start two times faster&lt;br /&gt;
* THZ attributes can be changed without restarting&lt;br /&gt;
* BugFixes&lt;br /&gt;
* P83 added (DHWSetSolarTemp)&lt;br /&gt;
* added suffix temp to the  names of parameters. e.g. p04DHWsetDay now p04DHWsetDayTemp&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.107&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p56 and p57 exchanged and fixed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.108&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Party-Time set removed as it has never worked&lt;br /&gt;
* set programFan_Mo-Fr_0 to 08:00--20:00 --&amp;gt; will now change the according day-program-sets also&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.109&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* bug fix for long messages in combination with serial cable connection&lt;br /&gt;
&#039;&#039;&#039;v0.110&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* bugfix for interface (with serial cable) trunkating messages (forum 209294)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0111&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* P21,22,23,24,25,29 added&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.112&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* bugfix for error caused by DevIo.pm 6980 status disconnected msg223569&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.113&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* support for older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.114&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* support for older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.115&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* implemented the &amp;quot;Informationen aus dem Modul des HeatpumpMonitors von Robert Penz&amp;quot;. All non identified parts will receive value &amp;quot;n.a.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.116&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* support for older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.118&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* faultcode implemented.&lt;br /&gt;
* Typo fix: evuRelease&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.119&#039;&#039;&#039;&lt;br /&gt;
* the firmware parameter 2.06 increases the countmax of the repetition of DevIo_SimpleReadWithTimeout from 24 to 50&lt;br /&gt;
* decrease of the DevIo_SimpleReadWithTimeout from 0.06 to 0.02&lt;br /&gt;
* the firmware parameter 2.06 removes registers not supported from older heatpumps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.120&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* delays between the programming of  programXXX_YY.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.121&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* register interpretation from user godmorgon implemented&lt;br /&gt;
* register 17 for old firmwares implemented&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.122&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* pXX register for old firmware implemented &lt;br /&gt;
* max repeat increased limited to 60, before was 50&lt;br /&gt;
* actualPower_Qc: patched to avoid buffer overflow&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.123&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* actualPower_Qc and actualPower_pEl fixed&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.124&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* history register pathed for firmware version 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0125&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Adjustments to support Firmware 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0126&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Further Adjustments to support Firmware 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.127&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix:difference in the parsing rule for FCtime&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.128&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* now most of parameters can be read from old firmwares&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.129&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* sDisplay (Activity parameters symbolized in Display)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.130&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* 2 bugfixes &lt;br /&gt;
* firmware-id  contains new features e.g. HW: 74 SW: 2.08 Date: MAR 9 2011&lt;br /&gt;
* new parameter p99RoomThermCorrection implemented&lt;br /&gt;
* THZ_PrintcurveSVG is now influenced by p99RoomThermCorrection&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.131&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* added p35PasteurisationInterval,p35PasteurisationTemp,  p34BoosterDHWTempAct, p99DHWmaxFlowTemp, p89DHWeco&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.132&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* added p99startUnschedVent&lt;br /&gt;
* splitting of big register implemented; this is needed for writing in old 2.06 firmware. &lt;br /&gt;
* vertical range in the heating curve changed to 15..35°C &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p12 FanStageManual&lt;br /&gt;
* autoscale of heating curve&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133+&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* fixed: According the manual our p99RoomThermCorrection is actually P76&lt;br /&gt;
&lt;br /&gt;
= Beispielkonfiguration =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start Definition mit Ser2Net&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define Mythz THZ 192.168.111.5:2003&amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz room Sysintern&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;userReadings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:dash.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz userReadings AussenTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, VorlaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}, RuecklaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[5]}, WWTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[9]}, KollektorTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[79]}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;interval Defintionen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz interval_sGlobal 300 &amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz interval_sHistory 28800 &amp;lt;br&amp;gt; &lt;br /&gt;
attr Mythz interval_sLast10errors 120 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Definition von file-log und den SVG-Plots einiger Daten&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FileLog_Mythz FileLog ./log/Mythz-%Y-%m.log Mythz&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_0 SVG FileLog_Mythz:thz:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_0 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_1 SVG FileLog_Mythz:thz1:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_1 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_2 SVG FileLog_Mythz:thz2:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_2 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_3 SVG FileLog_Mythz:thz3:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_3 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_4 SVG FileLog_Mythz:thz4:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_4 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;readingsGroup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define rg_thz readingsGroup Mythz:&amp;lt;%temp_outside&amp;gt;,&amp;lt;Aussen&amp;gt;,AussenTemp Mythz:&amp;lt;%sani_supply_temp@red&amp;gt;,&amp;lt;Vorlauf&amp;gt;,VorlaufTemp Mythz:&amp;lt;%sani_return_temp@blue&amp;gt;,&amp;lt;Rücklauf&amp;gt;,RuecklaufTemp Mythz:&amp;lt;%sani_boiler_temp@BD7800&amp;gt;,&amp;lt;Wasser&amp;gt;,WWTemp Mythz:&amp;lt;%sani_solar_temp&amp;gt;,&amp;lt;Kollektor&amp;gt;,KollektorTemp&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz alias Heizung Temperaturen&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz room Sysintern&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz valueFormat { AussenTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, VorlaufTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, AussenTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, RuecklaufTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, WWTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, KollektorTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039; }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Dashboard&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define MyDashboard Dashboard&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_lockstate unlock&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_row top-center&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showhelper 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showtooglebuttons 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1groups THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1name micofhem&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1sorting t0c100,THZ,true,170,253&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tabcount 1&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_webfrontendfilter WEB&amp;lt;br&amp;gt;&lt;br /&gt;
define MyDashboard_weblink weblink htmlCode {DashboardAsHtml(&amp;quot;MyDashboard&amp;quot;)}&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard_weblink room DashboardRoom&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FanSelector für die Lüftungssteuerung&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FanSelectorDay dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorDay webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p07FanStageDay notify FanSelectorDay  IF ([FanSelectorDay] eq &amp;quot;offFor60min&amp;quot;) (define at_D_offFor60min at +00:59:00 set Mythz p07FanStageDay [Mythz:p07FanStageDay],set Mythz p07FanStageDay 0, setstate FanSelectorDay offFor60min) ELSE (set Mythz p07FanStageDay $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorDay notify (Mythz.p07FanStageDay.*) setstate FanSelectorDay $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay room heatpump&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:fanselectorv2.png|thumb]]&lt;br /&gt;
define FanSelectorNight dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorNight webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p08FanStageNight notify FanSelectorNight IF ([FanSelectorNight] eq &amp;quot;offFor60min&amp;quot;) (define at_N_offFor60min at +00:59:00 set Mythz p08FanStageNight [Mythz:p08FanStageNight],set Mythz p08FanStageNight 0, setstate FanSelectorNight offFor60min) ELSE (set Mythz p08FanStageNight $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorNight notify (Mythz.p08FanStageNight.*) setstate FanSelectorNight $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight room heatpump&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
[https://launchpad.net/heatpumpmonitor Launchpad Heatpumpmonitor]&lt;br /&gt;
&lt;br /&gt;
[http://forum.fhem.de/index.php/topic,13132.0.html Thread in the FHEM-Forum]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Other Components]]&lt;br /&gt;
[[Kategorie:Heizungssteuerung]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=10431</id>
		<title>Tecalor THZ Wärmepumpe</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=10431"/>
		<updated>2015-03-04T12:23:12Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Release History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox Modul&lt;br /&gt;
|Name=THZ&lt;br /&gt;
|ModPurpose=Anbindung Heizungssteuerung Tecalor&lt;br /&gt;
|ModType=d&lt;br /&gt;
&amp;lt;!-- |ModCategory= (noch?) nicht verwendet --&amp;gt;&lt;br /&gt;
|ModCmdRef=THZ&lt;br /&gt;
|ModForumArea=Sonstiges&lt;br /&gt;
|ModTechName=00_THZ.pm&lt;br /&gt;
|ModOwner=immiimmi&lt;br /&gt;
}}&lt;br /&gt;
Englisch version [[Tecalor THZ Heatpump]]&lt;br /&gt;
&lt;br /&gt;
Hier wird beschrieben wie man mit FHEM eine Tecalor THZ / Stieben Eltron LWZ 303/403/404 &lt;br /&gt;
/SOL Wärmepumpe auslesen/steuern kann.&lt;br /&gt;
&lt;br /&gt;
Zum besseren Verständnis: Tecalor ist die Privatkundenmarke von Stieben Eltron. Die Geräte sind absolut baugleich.&lt;br /&gt;
&lt;br /&gt;
Nachfolgend wird von der &amp;quot;THZ&amp;quot; gesprochen.&lt;br /&gt;
&lt;br /&gt;
Getestet sind die Versionen 4.09, 4.19, 4.39 und 5.39. &lt;br /&gt;
Ältere Versionen können funktionieren, das ist jedoch nicht garantiert.&lt;br /&gt;
HINWEIS: Diese Anleitung ist für Personen gedacht, die sich mit Elektronik auskennen.&lt;br /&gt;
Der Autor und der Entwickler haften nicht für Schäden und geben keine Funktionsgarantie.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Seit Version 0.087 wurden die Parameternamen geändert!&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Dies dient der Vereinheitlichung der Parameternamen. Werte mit &amp;quot;s&amp;quot; sind Statuswerte, solche mit &amp;quot;p&amp;quot; sind Parameter die in der Heizung eingestellt sind.&lt;br /&gt;
Weitere Infos bei den ausgelesenen Parametern. Nach einem Updaten müssen ggf. Sachen wie readingsGroups, Dashboards, etc. angepasst werden.&lt;br /&gt;
&lt;br /&gt;
=Verbindungsmöglichkeiten=&lt;br /&gt;
==Lokal per RS232 oder USB==&lt;br /&gt;
Die THZ hat zwei Anschlüsse die zur Verbindung genutzt werden können.&lt;br /&gt;
* Einen Seriellen Anschluss der mit einem MNL-SG3 Stecker genutzt werden kann.&lt;br /&gt;
* Einen USB Anschluss der auf der Platine zu finden ist un mit einem TYP-B Kabel funktioniert.&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Der USB Anschluss befindet sich rückseitig auf der Platine die sich hinter der Abdeckung hinter der rechten Türe. Darf nur stromlos verbunden werden. Dazu die Wärmepumpe komplett vom Strom trennen!!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die Baudraten variieren je nach Hardware- und Softwareversion zwischen 9600 und 115200 bei Seriell. Bei USB liegt diese bei 115200 oder 57600.&lt;br /&gt;
Eine Verbindungsanleitung zum Seriellen Port findet sich hier: [http://robert.penz.name/heat-pump-lwz/ Robert Penz Homepage]&lt;br /&gt;
&lt;br /&gt;
==Entfernte Verbindung mit Ser2Net==&lt;br /&gt;
Wenn die FHEM Zentrale nicht direkt in der Nähe der Heizung steht kann mir Ser2Net gearbeitet werden. Dieses stellt auf einem TCP-Port einen virtuellen seriellen Anschluss zur Verfügung.&lt;br /&gt;
&lt;br /&gt;
===Installation Ser2Net auf Linux===&lt;br /&gt;
Um den Serial-Port-Server Ser2Net zu installieren ist auf Linux folgendes zu tun:&lt;br /&gt;
:&amp;lt;code&amp;gt;sudo apt-get install ser2net&amp;lt;/code&amp;gt;&lt;br /&gt;
in der /etc/ser2net.conf (/dev/ttyXXX)&lt;br /&gt;
:&amp;lt;code&amp;gt;2003:raw:500:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS  &amp;lt;/code&amp;gt;&lt;br /&gt;
Der Port kann frei gewählt werden, solange er nicht bereits genutzt wird.&lt;br /&gt;
&lt;br /&gt;
==Getestete Host-Systeme==&lt;br /&gt;
Getestet ist dieses Modul auf FritzBox, nas-qnap, Raspberry Pi und MacOS.&lt;br /&gt;
&lt;br /&gt;
=Definition in FHEM=&lt;br /&gt;
==Mit direkter serieller oder USB Verbindung==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wenn die Attribute interval_sGlobal und interval_sHistory nicht definiert sind (oder 0), ist das interne Polling deaktiviert. Natürlich kann das Polling auch mit dem &amp;quot;at&amp;quot; Befehl ausserhalb des Moduls definiert werden.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzGlobal at +*00:05:00 {fhem &amp;quot;get Mythz sGlobal&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzHistory at +*08:00:00 {fhem &amp;quot;get Mythz sHistory&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Via Netzwerk mit Ser2Net==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ 192.168.0.244:2003&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Ausgelesene Werte=&lt;br /&gt;
Wenn die Verbindung und das Auslesen erfolgreich waren, sollten Werte wie sGlobal, sFirmware, sHistory und diverse Einstellungen wie die Urlaubszeiten sowie einige PXX Werte angezeigt werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sGlobal (vormals allFB)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beinhaltet alle aktuellen Werte wie Temperaturen von Wasser und Gas, Lüfterstatus, Drücke, usw.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sFirmware&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Zeigt die Firmware Version der Wärmepumpe.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHistory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Angaben zur Betriebsdauer. Beispielsweise die Anzahl der Betriebsstunden der Kompressoren.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pHoliday-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier werden die aktuellen Einstellungen der Urlaubsfunktion der THZ angezeigt. Diese bewirken, dass keine Tagabsenkung (sofern programmiert) gemacht wird. &lt;br /&gt;
Die holiday-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sLast10errors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Liest die letzten 10 Fehlercodes aus und stellt diese dar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pXX-Werte &amp;amp; program-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die pXX-Werte und program-Werte stellen Einstellungen wie Heizkreistemperaturen und Lüfterstufen sowie Heizungs- und Warmwasserprogramme der THZ dar. Alle pXX-Werte und program-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
Es sind auch Lüfterdurchsatzmengen und Passivkühlung konfigurierbar.&amp;lt;br&amp;gt;&lt;br /&gt;
pOpMode zeigt den Betriebszustand. Automatik, Handbetrieb, etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;party-time&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier wird die Uhrzeit der Party programmiert.&lt;br /&gt;
Party-Time regelt die Lüfterstufe (p99FanStageParty) im Party-Modus. Diese kann auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sDHW (ex Status_DHW_F3)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Warmwasserbereitung&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC1 (ex Status_HC1_F4)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Informationen zum Heizkreis 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC2 (ex Status_HC2_F5)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Heizkreis 2 Informationen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sSol (ex Status_Sol_16)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Solaranlage&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pOpMode (ex OperatingMode)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Betriebsart: Bereitschaft, Automatik, Tagbetrieb, Absenkbetrieb, WW-Betrieb, Manueller Betrieb, Notbetrieb&lt;br /&gt;
&lt;br /&gt;
Wenn die Betriebsart via FHEM geändert werden soll dann muss als set-Wert die entsprechende englische Bezeichnung gesendet werden (Standby, Automatic, DAYmode, SetBack, DHWmode, Manual, Emergency)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sXXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Es gibt noch einige weitere &amp;quot;s&amp;quot;tatus Werte die unter anderen die Wärmerückgewinnungswerte beinhalten.&lt;br /&gt;
&lt;br /&gt;
= Plots - Grafische Darstellung =&lt;br /&gt;
Nachfolgend wird gezeigt wie man aus den Readings wie sGlobal grafische Plots erstellen kann.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Beispiel&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Angenommen wir wollen aus sGlobal die outside_temp und die dhw_temp (dhw=domestic hot water = Warmwasser) grafisch darstellen:&lt;br /&gt;
&lt;br /&gt;
In der fhem.cfg legen wir das Plot an:&lt;br /&gt;
:&amp;lt;code&amp;gt;define Plot_Temp SVG FileLog_Mythz:thz:CURRENT&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Plot_Temp room Heizung&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Daraufhin wird das Plot erzeugt, noch ohne Daten und evtl. mit einer Fehlermeldung.&lt;br /&gt;
Hier klicken wir dann auf den Plot-Namen um in das Plot-Konfigurationsfenster zu kommen.&lt;br /&gt;
Hier tragen wir die entsprechenden Daten ein.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wichtig sind nun die Input-Felder&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Unterhalb der Eingabemaske befinden sich die zu Mythz gehörenden Readings die verwendet werden können. Darunter auch sGlobal.&lt;br /&gt;
&lt;br /&gt;
Das sGlobal wird in etwa so aussehen:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014-03-02_13:07:49 Mythz sGlobal: outside_temp: 3.8 flow_temp: 26.5 return_temp: 27.2 hot_gas_temp: 32.1 dhw_temp: 43.4 flow_temp_HC2: -60 evaporator_temp: 5.3 condenser_temp: 27.4 Mixer_open: 0 Mixer_closed: 0 HeatPipeValve: 0 DiverterValve: 0 DHW_Pump: 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Thzplot.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
Um den richtigen Input zu finden, zählen wir die durch Leerzeichen getrennten Daten ab. Somit ist der Wert der outside_temp an Stelle 5, die dhw_temp an Stelle 13.&lt;br /&gt;
Diese Zahl tragen wir dann im Input-Feld ein und schon haben wir einen Plot der Daten erzeugt.&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu [http://www.fhemwiki.de/wiki/Plots_erzeugen Plots]&lt;br /&gt;
&lt;br /&gt;
= einzelne Werte aus den Readings=&lt;br /&gt;
Um einzelne Werte aus den großen Readings wie sGlobal oder history zu bekommen, kann man ein &lt;br /&gt;
&lt;br /&gt;
userReading verwenden.&lt;br /&gt;
Beispiel:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz userReadings AussenTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, &lt;br /&gt;
&lt;br /&gt;
VorlaufTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu userReadings in der [http://fhem.de/commandref_DE.html CommandRef]&lt;br /&gt;
&lt;br /&gt;
= Hinweise =&lt;br /&gt;
* Ein kompletter Refresh aller Werte wird nur beim Systemstart von FHEM gemacht. Dies geschieht sehr langsam um die Performance nicht zu beeinträchtigen. Erst nachdem dieser Refresh (dauert ca. 3-4 Minuten) gelaufen ist, wird das interne Polling gestartet.&lt;br /&gt;
*Wenn das Refresh Intervall kürzer oder gleich ist wie der initiale Refresh kann es zu einer Überschneidung kommen was allerdings kein Problem sein sollte.&lt;br /&gt;
*Im Wintermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1 und p02RoomTempNightHC1   &lt;br /&gt;
*Im Sommermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1SummerMode und p02RoomTempNightHC1SummerMode&lt;br /&gt;
&lt;br /&gt;
= Bekannte Probleme =&lt;br /&gt;
Im FHEM Log tauchen bei Ser2Net Verbindung häufig folgende Meldungen auf:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014.03.02 09:41:09 1: 192.168.178.50:2003 disconnected, waiting to reappear&lt;br /&gt;
2014.03.02 09:41:09 1: 192.168.178.50:2003 reappeared (Mythz)&amp;lt;/code&amp;gt;&lt;br /&gt;
Dieses Problem ist aktuell nicht gelöst.&lt;br /&gt;
&lt;br /&gt;
= Release History =&lt;br /&gt;
&#039;&#039;&#039;v0.067&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Erstmalige Implementierung in FHEM&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.068&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neuer Befehl f. Party implementiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.069&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Deutsche CommandRef hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.070&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix in Status Bits&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.071&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfix, undefFn verbessert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.072&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Alle programHC1*, programHC2*, programFan* und programDHW* sind nun mit &amp;quot;get&amp;quot; und &amp;quot;set&amp;quot; implementiert&lt;br /&gt;
* inside_temp  wurde am Ende von allFB hinzugefügt&lt;br /&gt;
* der Ser2Net connect/disconnet Bug wurde eingedämmt auf max 1 Logeintrag pro Sekunde&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.074&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Jetzt sind auch die Lüfterdurchsatzmengen und die Passivkühlung ausgelesen und änderbar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.075&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
interval_last10errors implementiert. Intervall, in dem der Fehlerspeicher ausgelesen werden soll&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.076&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes und neuer Parameter Status_HC1_F4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.078&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neue Parameter Status_Sol_16 und Status_DHW_F3&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.080&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* neue Parameter p49SummerModeTemp und p50SummerModeHysteresis&lt;br /&gt;
* Status_HC1_F4 und Status_HC2_F5 zeigen nun &amp;quot;mode: Summer&amp;quot; (oder Winter)&lt;br /&gt;
Die Berechnung des Modus ist wie folgt:&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;gt; p49SummerModeTemp + p50SummerModeHysteresis ---&amp;gt; Summermode&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;lt; p49SummerModeTemp - p50SummerModeHysteresis ---&amp;gt; Wintermode&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.081&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix für Sommer/Wintermodus-Anzeige&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.084&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* OperatingMode wird nun ausgelesen (read-only)&lt;br /&gt;
* p33BoosterTimeoutDHW (read/write)&lt;br /&gt;
* p79BoosterTimeoutHC (read/write)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.085&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode kann jetzt auch geaendert werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.087&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Neue Readings&lt;br /&gt;
* Angepasste Readingnamen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.089&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Kommunikation wurde stabilisiert&lt;br /&gt;
* Bugfixes&lt;br /&gt;
* Neue Readings&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.091&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatRecoveredDay &amp;amp; sHeatRecoveredTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.094&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.095&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatDHWDay &amp;amp; sHeatDHWTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.096&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Weitere neue Readings: sEletrx... &amp;amp; sHeat...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.097&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.099&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Raumeinfluss wurde in die Heizkurvengrafik eingebaut&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.100&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Parameter: p54MinPumpCycles, p55MaxPumpCycles, p56OutTempMaxPumpCycles, p57OutTempMinPumpCycles&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.101&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* keine neuen Features&lt;br /&gt;
* Code clean up&lt;br /&gt;
* Logs in verbose 5 implementiert&lt;br /&gt;
* buffer overflow (Verursacht von sGlobal bei LWZ 303 Firmware 3.19) gefixt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.103&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Änderung der Kommunikation. Jetzt 10x schneller&lt;br /&gt;
* Versionsinformation hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.104&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Delay in der Kommunikation hinzugefügt (aber immer noch 5x schneller)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.105&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Schnelleres set und get Verhalten&lt;br /&gt;
* Dauer des Update beim Start halbiert&lt;br /&gt;
* THZ Attribute können ohne Neustart geändert werden&lt;br /&gt;
* BugFix&lt;br /&gt;
* P83 hinzugefügt (DHWSetSolarTemp)&lt;br /&gt;
* Suffix bei den Temp-Werten hinzugefügt. z.B. p04DHWsetDay jetzt p04DHWsetDayTemp&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.107&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p56 and p57 getauscht und repariert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.108&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Party-Time wurde entfernt da nicht funktionsfähig&lt;br /&gt;
* Grouping bei &amp;quot;set programFan_Mo-Fr_0  to  08:00--20:00&amp;quot; --&amp;gt; Einzelne Tage werden automatisch gesetzt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.109&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Fehlerbehebung bei langen Nachrichten via Seriellem Kabel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.110&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix (für seriellen Adapter) trunkating messages (forum 209294)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0111&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* P21,22,23,24,25,29 hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.112&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix für Fehler verursacht durch DevIo.pm 6980 status disconnected msg223569&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.113&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.114&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.115&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Implementierung von &amp;quot;Informationen aus dem Modul des HeatpumpMonitor von Robert Penz&amp;quot;. Alle nicht identifizierbaren Teile erhalten den Wert &amp;quot;n.a.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.116&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* weitere Unterstützung für ältere Firmewareversionen hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.118&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* faultcode implementiert&lt;br /&gt;
* Rechtschreibefehler korrigiert: evuRelease&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.119&#039;&#039;&#039;&lt;br /&gt;
* der Firmwareparameter 2.06 erhöht den Maximalcount der Wiederholung von DevIo_SimpleReadWithTimeout von 24 auf 50&lt;br /&gt;
* Reduktion des DevIo_SimpleReadWithTimeout von 0.06 auf 0.02&lt;br /&gt;
* Der Firmwareparameter 2.06 entfernt jetzt Register, die von älteren Wärmepumpen nicht unterstützt werden&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.120&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Verzögerung zwischen programXXX_YY zugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.121&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Register Interpretation von user godmorgon implementiert&lt;br /&gt;
* register 17 für ältere Firmwareversionen implementiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.122&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* pXX Register für ältere Firmwareversionen implementiert&lt;br /&gt;
* maximale Widerholungen jetzt limitiert auf 60, zuvor 50&lt;br /&gt;
* actualPower_Qc: gepatcht um Pufferüberlauf zu vermeiden &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.123&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* actualPower_Qc und actualPower_pEl korrigiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.124&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Verlaufsregister angelegt für Firmwareversion 2.06&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0125&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Anpassungen um die Firmware 2.06 zu unterstützen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v.0126&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Weitere Anpassungen um die Firmware 2.06 zu unterstützen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.127&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Bugfix:Unterschied in Parsingregel für FCtime&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.128&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Die meisten Paramter können jetzt von WP älterer Firmware gelesen werden&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.129&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* sDisplay (Aktivitätsparameter die im Display dargestellt werden)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.130&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* 2 Bugfixes &lt;br /&gt;
* Firmware-id  enthält neue Feature wie HW: 74 SW: 2.08 Date: MAR 9 2011&lt;br /&gt;
* neuer Parameter p99RoomThermCorrection implementiert&lt;br /&gt;
* THZ_PrintcurveSVG (Heizkurve) wird jetzt durch p99RoomThermCorrection beeinflusst &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.131&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p35PasteurisationInterval,p35PasteurisationTemp,  p34BoosterDHWTempAct, p99DHWmaxFlowTemp, p89DHWeco hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.132&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p99startUnschedVent hinzugefügt&lt;br /&gt;
* Aufteilung großer Register implementiert. Nötig für Firmware 2.06.&lt;br /&gt;
* Heizkurven jetzt auf 15...35°C begrenzt für bessere Darstellung des Kurvenverlaufs&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p12 FanStageManual hinzugefügt&lt;br /&gt;
* Autoskalierung der Heizkurvenskala&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.133+&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* fixed: Laut Bedienungsanleitung ist p99RoomThermCorrection der Parameter P76&lt;br /&gt;
&lt;br /&gt;
= Beispielkonfiguration =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start Definition mit Ser2Net&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define Mythz THZ 192.168.111.5:2003&amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz room Sysintern&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;userReadings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:dash.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz userReadings AussenTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, VorlaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}, RuecklaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[5]}, WWTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[9]}, KollektorTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[79]}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;interval Definitionen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz interval_sGlobal 300 &amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz interval_sHistory 28800 &amp;lt;br&amp;gt; &lt;br /&gt;
attr Mythz interval_sLast10errors 120 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Definition von file-log und den SVG-Plots einiger Daten&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FileLog_Mythz FileLog ./log/Mythz-%Y-%m.log Mythz&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_0 SVG FileLog_Mythz:thz:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_0 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_1 SVG FileLog_Mythz:thz1:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_1 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_2 SVG FileLog_Mythz:thz2:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_2 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_3 SVG FileLog_Mythz:thz3:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_3 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_4 SVG FileLog_Mythz:thz4:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_4 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;readingsGroup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define rg_thz readingsGroup Mythz:&amp;lt;%temp_outside&amp;gt;,&amp;lt;Aussen&amp;gt;,AussenTemp Mythz:&amp;lt;%sani_supply_temp@red&amp;gt;,&amp;lt;Vorlauf&amp;gt;,VorlaufTemp Mythz:&amp;lt;%sani_return_temp@blue&amp;gt;,&amp;lt;Rücklauf&amp;gt;,RuecklaufTemp Mythz:&amp;lt;%sani_boiler_temp@BD7800&amp;gt;,&amp;lt;Wasser&amp;gt;,WWTemp Mythz:&amp;lt;%sani_solar_temp&amp;gt;,&amp;lt;Kollektor&amp;gt;,KollektorTemp&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz alias Heizung Temperaturen&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz room Sysintern&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz valueFormat { AussenTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, VorlaufTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, AussenTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, RuecklaufTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, WWTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, KollektorTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039; }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Dashboard&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define MyDashboard Dashboard&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_lockstate unlock&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_row top-center&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showhelper 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showtooglebuttons 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1groups THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1name micofhem&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1sorting t0c100,THZ,true,170,253&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tabcount 1&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_webfrontendfilter WEB&amp;lt;br&amp;gt;&lt;br /&gt;
define MyDashboard_weblink weblink htmlCode {DashboardAsHtml(&amp;quot;MyDashboard&amp;quot;)}&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard_weblink room DashboardRoom&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FanSelector für die Lüftungssteuerung&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FanSelectorDay dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorDay webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p07FanStageDay notify FanSelectorDay  IF ([FanSelectorDay] eq &amp;quot;offFor60min&amp;quot;) (define at_D_offFor60min at +00:59:00 set Mythz p07FanStageDay [Mythz:p07FanStageDay],set Mythz p07FanStageDay 0, setstate FanSelectorDay offFor60min) ELSE (set Mythz p07FanStageDay $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorDay notify (Mythz.p07FanStageDay.*) setstate FanSelectorDay $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay room heatpump&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:fanselectorv2.png|thumb]]&lt;br /&gt;
define FanSelectorNight dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorNight webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p08FanStageNight notify FanSelectorNight IF ([FanSelectorNight] eq &amp;quot;offFor60min&amp;quot;) (define at_N_offFor60min at +00:59:00 set Mythz p08FanStageNight [Mythz:p08FanStageNight],set Mythz p08FanStageNight 0, setstate FanSelectorNight offFor60min) ELSE (set Mythz p08FanStageNight $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorNight notify (Mythz.p08FanStageNight.*) setstate FanSelectorNight $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight room heatpump&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
[https://launchpad.net/heatpumpmonitor Launchpad Heatpumpmonitor]&lt;br /&gt;
&lt;br /&gt;
[http://forum.fhem.de/index.php/topic,13132.0.html Forenthread im FHEM-Forum]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Other Components]]&lt;br /&gt;
[[Kategorie:Heizungssteuerung]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8129</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8129"/>
		<updated>2014-10-12T08:14:49Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to add a &amp;quot;last modified&amp;quot; timestamp to the dispaly, create a placeholder for it in your SVG template (like &amp;quot;last modified lmtime123&amp;quot;) and then define a Regex / Expr attribute pair to replace it with the Reading &amp;quot;LastUpdate&amp;quot; from your FileReplacer device:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex14 lmtime123&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr14 ReadingsVal(&amp;quot;kindledisplay&amp;quot;, &amp;quot;LastUpdate&amp;quot;, &amp;quot;never&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
A Kindle 4 differs in a few ways from the later models. It doesn&#039;t use upstart but old start up scripts so the online screensaver scripts will not start automatically after a reboot of your kindle. You can either manually start the patched /mnt/base-us/extensions/onlinescreensaver/bin/enable.sh which starts /mnt/base-us/extensions/onlinescreensaver/bin/scheduler.sh as a background process or you can create your own startup script in /etc/init.d or you can create a cron job to periodically update the screen.&lt;br /&gt;
&lt;br /&gt;
Another difference is the power management. The original online screensave was created for a kindle paperwhite which has a real time clock with alarm functions that can be controlled through the sysfs. Utils.sh in the online screensavers bin directory puts the next wake up time in /sys/class/rtc/rtc$RTC/wakealarm to achieve this. So the Paperwhite can sleep most of the time and only wake up to retrieve the latest PNG, display it and go back to sleep. On a Kindle 4 this does not work so the Kindle can not go to sleep and wake up but is has to keep running. Therefore it needs a lot more power than a paperwhite. While the paperwhite might run for two weeks or longer before it needs a recharge (depending on your update frequency) the Kindle 4 will need a recharge after 2 days or a power connection / docking station.&lt;br /&gt;
&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to change some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; to keep the Kindle awake ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout (time before the secreensaver gets displayed) with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line to keep the Kindle awake for at least 2 days. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;vi /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
Setting back filesystem in read-only mode&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot ro&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8119</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8119"/>
		<updated>2014-10-09T20:53:30Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* fhem configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to add a &amp;quot;last modified&amp;quot; timestamp to the dispaly, create a placeholder for it in your SVG template (like &amp;quot;last modified lmtime123&amp;quot;) and then define a Regex / Expr attribute pair to replace it with the Reading &amp;quot;LastUpdate&amp;quot; from your FileReplacer device:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex14 lmtime123&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr14 ReadingsVal(&amp;quot;kindledisplay&amp;quot;, &amp;quot;LastUpdate&amp;quot;, &amp;quot;never&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
A Kindle 4 differs in a few ways from the later models. It doesn&#039;t use upstart but old start up scripts so the online screensaver scripts will not start automatically after a reboot of your kindle. You can either manually start the patched /mnt/base-us/extensions/onlinescreensaver/bin/enable.sh which starts /mnt/base-us/extensions/onlinescreensaver/bin/scheduler.sh as a background process or you can create your own startup script in /etc/init.d or you can create a cron job to periodically update the screen.&lt;br /&gt;
&lt;br /&gt;
Another difference is the power management. The original online screensave was created for a kindle paperwhite which has a real time clock with alarm functions that can be controlled through the sysfs. Utils.sh in the online screensavers bin directory puts the next wake up time in /sys/class/rtc/rtc$RTC/wakealarm to achieve this. So the Paperwhite can sleep most of the time and only wake up to retrieve the latest PNG, display it and go back to sleep. On a Kindle 4 this does not work so the Kindle can not go to sleep and wake up but is has to keep running. Therefore it needs a lot more power than a paperwhite. While the paperwhite might run for two weeks or longer before it needs a recharge (depending on your update frequency) the Kindle 4 will need a recharge after 2 days or a power connection / docking station.&lt;br /&gt;
&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to change some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; to keep the Kindle awake ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout (time before the secreensaver gets displayed) with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line to keep the Kindle awake for at least 2 days. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;vi /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
Setting back filesystem in read-only mode&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot ro&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8118</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8118"/>
		<updated>2014-10-09T20:53:04Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Kindle 4 additional tasks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to add a &amp;quot;last modified&amp;quot; timestamp to the dispaly, create a placeholder for it in your SVG template (like &amp;quot;last modified lmtime123&amp;quot;) and then define a Regex / Expr attribute pair to replace it with the Reading &amp;quot;LastUpdate&amp;quot; from your FileReplacer device:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex14 lmtime123&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr14 ReadingsVal(&amp;quot;kindledispay&amp;quot;, &amp;quot;LastUpdate&amp;quot;, &amp;quot;never&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
A Kindle 4 differs in a few ways from the later models. It doesn&#039;t use upstart but old start up scripts so the online screensaver scripts will not start automatically after a reboot of your kindle. You can either manually start the patched /mnt/base-us/extensions/onlinescreensaver/bin/enable.sh which starts /mnt/base-us/extensions/onlinescreensaver/bin/scheduler.sh as a background process or you can create your own startup script in /etc/init.d or you can create a cron job to periodically update the screen.&lt;br /&gt;
&lt;br /&gt;
Another difference is the power management. The original online screensave was created for a kindle paperwhite which has a real time clock with alarm functions that can be controlled through the sysfs. Utils.sh in the online screensavers bin directory puts the next wake up time in /sys/class/rtc/rtc$RTC/wakealarm to achieve this. So the Paperwhite can sleep most of the time and only wake up to retrieve the latest PNG, display it and go back to sleep. On a Kindle 4 this does not work so the Kindle can not go to sleep and wake up but is has to keep running. Therefore it needs a lot more power than a paperwhite. While the paperwhite might run for two weeks or longer before it needs a recharge (depending on your update frequency) the Kindle 4 will need a recharge after 2 days or a power connection / docking station.&lt;br /&gt;
&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to change some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; to keep the Kindle awake ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout (time before the secreensaver gets displayed) with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line to keep the Kindle awake for at least 2 days. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;vi /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
Setting back filesystem in read-only mode&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot ro&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8117</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8117"/>
		<updated>2014-10-09T20:52:14Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* fhem configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to add a &amp;quot;last modified&amp;quot; timestamp to the dispaly, create a placeholder for it in your SVG template (like &amp;quot;last modified lmtime123&amp;quot;) and then define a Regex / Expr attribute pair to replace it with the Reading &amp;quot;LastUpdate&amp;quot; from your FileReplacer device:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex14 lmtime123&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr14 ReadingsVal(&amp;quot;kindledispay&amp;quot;, &amp;quot;LastUpdate&amp;quot;, &amp;quot;never&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
A Kindle 4 differs in a few ways from the later models. It doesn&#039;t use upstart but old start up scripts so the online screensaver scripts will not start automatically after a reboot of your kindle. You can either manually start the patched /mnt/base-us/extensions/onlinescreensaver/bin/enable.sh which starts /mnt/base-us/extensions/onlinescreensaver/bin/scheduler.sh as a background process or you can create your own startup script in /etc/init.d or you can create a cron job to periodically update the screen.&lt;br /&gt;
&lt;br /&gt;
Another difference is the power management. The original online screensave was created for a kindle paperwhite which has a real time clock with alarm functions that can be controlled through the sysfs. Utils.sh in the online screensavers bin directory puts the next wake up time in /sys/class/rtc/rtc$RTC/wakealarm to achieve this. So the Paperwhite can sleep most of the time and only wake up to retrieve the latest PNG, display it and go back to sleep. On a Kindle 4 this does not work so the Kinde can not go to sleep and wake up but is has to keep running. Therefore it needs a lot more power than a paperwhite. While the paperwhite might run for two weeks or longer before it needs a recharge (depending on your update frequency) the Kindle 4 will need a recharge after 2 days or a power connection / docking station.&lt;br /&gt;
&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to change some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; to keep the Kindle awake ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout (time before the secreensaver gets displayed) with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line to keep the Kindle awake for at least 2 days. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;vi /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
Setting back filesystem in read-only mode&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot ro&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8055</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8055"/>
		<updated>2014-09-26T16:44:58Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Changing the &amp;quot;sleep settings&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to change some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
Setting back filesystem in read-only mode&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot to&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8053</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8053"/>
		<updated>2014-09-25T04:27:10Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* USB Network Hack */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to change some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;motroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
Setting back filesystem in read-only mode&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot to&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8052</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8052"/>
		<updated>2014-09-25T04:26:39Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Cron setting (optional) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;motroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
Setting back filesystem in read-only mode&lt;br /&gt;
:&amp;lt;code&amp;gt;mntroot to&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8051</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8051"/>
		<updated>2014-09-25T04:26:03Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Changing the &amp;quot;sleep settings&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;motroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the root password:&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
Changing the timeouts:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8050</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8050"/>
		<updated>2014-09-25T04:24:55Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Cron setting (optional) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
Add the following line at the bottom. */5 means every 5 minutes.&lt;br /&gt;
:&amp;lt;code&amp;gt;*/5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8049</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8049"/>
		<updated>2014-09-25T04:24:10Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Cron setting (optional) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8029</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8029"/>
		<updated>2014-09-24T09:02:18Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8028</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8028"/>
		<updated>2014-09-24T09:01:18Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* fhem and server configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
=== Templates ===&lt;br /&gt;
You can find my templates here: [http://forum.fhem.de/index.php?topic=21821.msg202396#msg202396 fhem Forum]. Feel free to use and modify.&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8027</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8027"/>
		<updated>2014-09-24T09:00:13Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Examples and Pictures */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
[[Datei:KindleDisplay.jpg|200px]] Kindle Display Example on Kindle 4&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Datei:KindleDisplay.jpg&amp;diff=8026</id>
		<title>Datei:KindleDisplay.jpg</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Datei:KindleDisplay.jpg&amp;diff=8026"/>
		<updated>2014-09-24T08:56:32Z</updated>

		<summary type="html">&lt;p&gt;Micomat: KindleDisplay&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;KindleDisplay&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8025</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8025"/>
		<updated>2014-09-24T08:55:46Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
=Examples and Pictures=&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8024</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8024"/>
		<updated>2014-09-24T08:50:30Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HOWTOS]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8023</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8023"/>
		<updated>2014-09-24T08:48:28Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* fhem configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to change readingVals to something in your language you can try using it like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr11 (ReadingsVal(&amp;quot;XY&amp;quot;, &amp;quot;Reading&amp;quot;, &amp;quot;off&amp;quot;) eq &amp;quot;on&amp;quot; ? &amp;quot;An&amp;quot; : &amp;quot;Aus&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8022</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8022"/>
		<updated>2014-09-24T08:46:02Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Modifying the Kindle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
=Modifying the Kindle=&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
=== Kindle Touch/Paperwhite ===&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
=== Kindle 4 / Universal method ===&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
==Installing additional software==&lt;br /&gt;
&lt;br /&gt;
=== MKK ===&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== KUAL ===&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Backdoorlock ===&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
=== ScreenSavers Hack ===&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
=== Online ScreeSaver ===&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
==== Online Screen Saver - Kindle 4 Special Tasks ====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8021</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8021"/>
		<updated>2014-09-24T08:41:56Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Kindle 4 additional tasks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
===== Online Screen Saver - Kindle 4 Special Tasks =====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
As your Kindle 4 needs some more attention to get it done, please find the steps here:&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system.&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the kindle-usbnetwork file from here: [http://www.mobileread.com/forums/showthread.php?t=88004 USBNETWORK]&amp;lt;br&amp;gt;&lt;br /&gt;
I&#039;m sure you know what to do in the meantime ;-)&amp;lt;br&amp;gt;&lt;br /&gt;
After that, activate the USBNetwork via KUAL and connect the Kindle via USB.&lt;br /&gt;
=== Connecting to the Kindle ===&lt;br /&gt;
Before you can connect you need to install the RNDIS driver. [https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking Here you can find] a very good &amp;quot;HowTo&amp;quot; to do this. Note that the IP-Addresses you need to configure are different then addresses used in the example. Your RNDIS Interface needs to have 192.168.15.201 configured, the Kindle uses 192.168.15.244 on this interface.&amp;lt;br&amp;gt;&lt;br /&gt;
Don&#039;t wonder you cannot ping the Kindle!&amp;lt;br&amp;gt;&lt;br /&gt;
Now you can use a ssh-client like putty to connect to the Kindle. Telnet is also an option but only when WiFI mode is disabled. So better forget about it. Success? Great job!&lt;br /&gt;
=== Changing the &amp;quot;sleep settings&amp;quot; ===&lt;br /&gt;
After you connected to the Kindle you will be asked for a password. Login with root and blank password. Should work.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we need to make the filesystem writeable:&lt;br /&gt;
:&amp;lt;code&amp;gt;mountroot rw&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/kdb.src/yoshi/system/daemon/powerd/&amp;lt;/code&amp;gt;&lt;br /&gt;
Edit the t1_timeout with the editor &amp;quot;vi&amp;quot; and change the last line to 200.&amp;lt;br&amp;gt;&lt;br /&gt;
Same for the t2_timeout but here we enter 200000 in the last line. &amp;lt;br&amp;gt;&lt;br /&gt;
These values are setting the &amp;quot;sleep&amp;quot; counters on the Kindle. Unfortunately this will lower the battery faster then normal so I recommend to have the display in a docking station.&amp;lt;br&amp;gt;&lt;br /&gt;
=== Cron setting (optional) ===&lt;br /&gt;
In my case that all didn&#039;t really work for me so i decided to run the onlinescreensaver update script via cron:&lt;br /&gt;
:&amp;lt;code&amp;gt;cd /etc/crontab/root&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;--&amp;gt; */5 * * * * /mnt/us/extensions/onlinescreensaver/bin/update.sh&lt;br /&gt;
:&amp;lt;code&amp;gt;/etc/init.d/cron restart&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it for me. Not working? Ask and look here for help: [http://forum.fhem.de/index.php/topic,21821.0.html FHEM Forum]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8020</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8020"/>
		<updated>2014-09-24T08:08:39Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Kindle 4 Special */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
===== Online Screen Saver - Kindle 4 Special Tasks =====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8019</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8019"/>
		<updated>2014-09-24T08:07:44Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Kindle 4 additional tasks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
===== Kindle 4 Special =====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
==Kindle 4 additional tasks==&lt;br /&gt;
&lt;br /&gt;
=== USB Network Hack ===&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8018</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8018"/>
		<updated>2014-09-24T08:07:12Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Online ScreeSaver */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
Just download the application from [http://www.mobileread.com/forums/showthread.php?t=236104 here], extract the file and copy the folder into the extensions directory. &amp;lt;br&amp;gt;&lt;br /&gt;
Now you have to edit the config.sh file up to your need.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; Use a linux/unix compatible editor (like notepad++) only!&amp;lt;br&amp;gt;&lt;br /&gt;
You need to enter the image URL, the update interval and the schedule for the updates. That&#039;s all.&lt;br /&gt;
&lt;br /&gt;
===== Kindle 4 Special =====&lt;br /&gt;
To get it running on a Kindle 4 you need to change some lines in the OnlineScreenSaver files.&amp;lt;br&amp;gt;&lt;br /&gt;
You can find a .diff file for the changes here: [http://forum.fhem.de/index.php/topic,21821.msg190911.html#msg190911 fhem forum]&amp;lt;br&amp;gt;&lt;br /&gt;
No idea what to do with this file? It just shows you in which lines changes were made and what was changed. I recommend to edit all the files shown in the diff-file locally and then copy the whole package to the kindle first.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8017</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8017"/>
		<updated>2014-09-24T07:58:29Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* ScreenSavers Hack */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the file: [http://www.mobileread.com/forums/showthread.php?t=88004 ScreenSaver Hack]&amp;lt;br&amp;gt;&lt;br /&gt;
Install the corresponding .bin file as the others before and use the &amp;quot;update your kindle&amp;quot; function to install it.&amp;lt;br&amp;gt;&lt;br /&gt;
After the installation you will find a directory called &amp;quot;linkss&amp;quot; in the Kindle root. Here open the screensavers dir and delete all images.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8016</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8016"/>
		<updated>2014-09-24T07:56:00Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* KUAL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8015</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8015"/>
		<updated>2014-09-24T07:55:42Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* MKK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8014</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8014"/>
		<updated>2014-09-24T07:55:25Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Backdoorlock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update is installed you can proceed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&amp;lt;br&amp;gt;&lt;br /&gt;
Download from here: [http://www.mobileread.com/forums/showthread.php?t=205666 Backdoorlock]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&lt;br /&gt;
After the update it is installed.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8013</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8013"/>
		<updated>2014-09-24T07:52:11Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* KUAL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update is installed you can proceed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download it from here: [http://www.mobileread.com/forums/showthread.php?t=203326 KUAL]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the matching .azw2 file to the documents directory of your kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(K2, DX, K3, K4)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-1.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking new kindlet (book) document in your list.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
(Touch, PaperWhite)&amp;lt;br&amp;gt;&lt;br /&gt;
Put KUAL-KDK-2.0.azw2 in documents folder.&amp;lt;br&amp;gt;&lt;br /&gt;
Run it by clicking icon.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8012</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8012"/>
		<updated>2014-09-24T07:26:22Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* MKK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Download the software from here: [http://www.mobileread.com/forums/showthread.php?t=233932 MKK]&amp;lt;br&amp;gt;&lt;br /&gt;
Unzip the folder and copy the .bin file to the root directory of your kindle. Please note that you need to install the Kindle matching version (e.g. K4 = Kindle 4 with 5-way-button).&amp;lt;br&amp;gt;&lt;br /&gt;
On the Kindle goto Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Update your Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
After the update is installed you can proceed.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8011</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8011"/>
		<updated>2014-09-24T07:17:13Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Kindle 4 additional tasks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
==== USB Network Hack ====&lt;br /&gt;
This hack is used to get SSH/Telnet Access to your Kindle. We need this on Kindle 4 to chage some settings on the system later.&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8010</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8010"/>
		<updated>2014-09-24T07:14:45Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Installing additional software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
==== MKK ====&lt;br /&gt;
The Mobileread Kindlet Kit (MKK) is used to execute custom Kindlets (programs) on the Kindle.&lt;br /&gt;
&lt;br /&gt;
==== KUAL ====&lt;br /&gt;
The Kindle Unified Application Launcher (KUAL) running applications on the Kindle.&lt;br /&gt;
&lt;br /&gt;
==== Backdoorlock ====&lt;br /&gt;
This is used to prevent from getting automated updates which could remove the JailBreak.&lt;br /&gt;
&lt;br /&gt;
==== ScreenSavers Hack ====&lt;br /&gt;
The ScreenSavers Hack let you show custom screen savers on the kindle.&lt;br /&gt;
&lt;br /&gt;
==== Online ScreeSaver ====&lt;br /&gt;
This application copies the fhem-PNG from your fhem-server to the ScreenSavers hack.&lt;br /&gt;
&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8009</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8009"/>
		<updated>2014-09-24T07:09:19Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&amp;lt;br&amp;gt;&lt;br /&gt;
I will show how to configure it with the FileReplacer.pm from Stefan. The &amp;quot;old&amp;quot; method with the special function in MyUtils is not part of this article.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8008</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8008"/>
		<updated>2014-09-24T06:19:11Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Jailbreaking the Kindle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
==== Kindle Touch/Paperwhite ====&lt;br /&gt;
* Download the kindle-jailbreak-0.12.N.zip file, and unpack it. In there, you&#039;ll find some .bin files, and a src directory.Leave the directory alone, and upload the correct Update_*_install.bin file for your kindle &amp;amp; FW version to the root directory of your Kindle.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* Now, eject &amp;amp; unplug your Kindle, and go to [HOME] -&amp;gt; [MENU] &amp;gt; Settings -&amp;gt; [MENU] &amp;gt; Update Your Kindle. It should be quick.&amp;lt;br&amp;gt; (And, on FW 2.x only, it should FAIL (With a U006 error, in the bottom left corner of the screen). It&#039;s completely normal, intended, and harmless).&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
And that&#039;s it, your Kindle is now ready to install custom hacks!&amp;lt;br&amp;gt;&lt;br /&gt;
(Quoted from http://www.mobileread.com/forums/showthread.php?t=88004)&lt;br /&gt;
&lt;br /&gt;
==== Kindle 4 / Universal method ====&lt;br /&gt;
&lt;br /&gt;
* Download and unzip the jailbreak. &lt;br /&gt;
* Plug in the Kindle and copy the data.tar.gz &amp;amp; ENABLE_DIAGS files plus the diagnostic_logs folder to the Kindle&#039;s USB drive&#039;s root&lt;br /&gt;
* Safely remove the USB cable and restart the Kindle (Menu -&amp;gt; Settings -&amp;gt; Menu -&amp;gt; Restart)&lt;br /&gt;
* Once the device restarts into diagnostics mode, select &amp;quot;D) Exit, Reboot or Disable Diags&amp;quot; (using the 5-way keypad)&lt;br /&gt;
* Select &amp;quot;R) Reboot System&amp;quot; and &amp;quot;Q) To continue&amp;quot; (following on-screen instructions, when it tells you to use &#039;FW Left&#039; to select an option, it means left on the 5-way keypad)&lt;br /&gt;
* Wait about 20 seconds: you should see the Jailbreak screen for a while, and the device should then restart normally&lt;br /&gt;
* After the Kindle restarts, you should see a new book titled &amp;quot;You are Jailbroken&amp;quot;, if you see this, the jailbreak has been successful.&lt;br /&gt;
&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8007</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8007"/>
		<updated>2014-09-24T05:39:02Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* fhem and server configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Download and install the [http://forum.fhem.de/index.php/topic,21821.msg200310.html#msg200310 FileReplacer.pm from fhem Forums], save it to /opt/fhem/FHEM and load the module. You can also restart fhem instead.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
All we&#039;re doing now is to using the FileReplacer module to read the SVG template, replace a search pattern with our data and saving it.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define kindledisplay FileReplacer /opt/fhem/www/images/template1.svg /opt/fhem/www/images/status1.svg 60&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay DoPNG 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay UTF8-Encode 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay room Display&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DoPNG enabled the generation from SVG to PNG. UTF8-Encode is needed to support special characters.&amp;lt;br&amp;gt;&lt;br /&gt;
Now just create your mappings:&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex1 XYZ &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr1 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Temp1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Regex2 ABC &amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr kindledisplay Expr2 sprintf(&amp;quot;%.1f&amp;quot;, ReadingsVal(&amp;quot;Sensor1&amp;quot;, &amp;quot;Hum1&amp;quot;, 0)) &amp;lt;/code&amp;gt;&lt;br /&gt;
And so on... :) The FileReplacer will replace the pattern XYZ with the ReadingsVal from Sensor1.&amp;lt;br&amp;gt;&lt;br /&gt;
Now check if the PNG is created [http://your-fhem-ip:8083/fhem/www/images/status1.png http://your-fhem-ip:8083/fhem/www/images/KindleDisplay.png]. If so, be happy, the first part is done!&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8006</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8006"/>
		<updated>2014-09-24T05:26:29Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Modifying the Kindle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
To prevent from error messages like &amp;quot;your Kindle is no longer registered as a test Kindle...&amp;quot; please make sure your Kindle is connected to a valid Amazon Account. &amp;lt;br&amp;gt;&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8005</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8005"/>
		<updated>2014-09-24T05:23:31Z</updated>

		<summary type="html">&lt;p&gt;Micomat: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
You need to download:&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
===Kindle 4 additional tasks===&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8004</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8004"/>
		<updated>2014-09-24T05:23:05Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Jailbreaking the Kindle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Modifying the Kindle==&lt;br /&gt;
We need to download some software to install it on the Kindle.&amp;lt;br&amp;gt;&lt;br /&gt;
Please download it from [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&amp;lt;br&amp;gt;&lt;br /&gt;
You need to download:&lt;br /&gt;
* Kindle Jailbreak [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* MKK Mobileread Kindlet Kit [http://www.mobileread.com/forums/showthread.php?t=233932 Mobileread Forums]&lt;br /&gt;
* KUAL [http://www.mobileread.com/forums/showthread.php?t=203326 Mobileread Forums]&lt;br /&gt;
* Screensavers Hack [http://www.mobileread.com/forums/showthread.php?t=88004 Mobileread Forums]&lt;br /&gt;
* OnlineScreenSaver [http://www.mobileread.com/forums/showthread.php?t=236104 Mobileread Forums]&lt;br /&gt;
&lt;br /&gt;
* for Kindle 4 only: USBNETWORK [http://www.mobileread.com/forums/showthread.php?t=88004 also Mobileread Forums]&lt;br /&gt;
&amp;lt;br&amp;gt; Always use the newest version and look for one who fits to your Kindle (e.G. K4).&lt;br /&gt;
&lt;br /&gt;
===Jailbreaking the Kindle===&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8003</id>
		<title>Kindle Display</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Kindle_Display&amp;diff=8003"/>
		<updated>2014-09-23T17:01:09Z</updated>

		<summary type="html">&lt;p&gt;Micomat: Die Seite wurde neu angelegt: „&amp;#039;&amp;#039;&amp;#039;NOTE: This Article is not yet finished! This note will be removed once i think it&amp;#039;s okay ;)&amp;lt;br&amp;gt; As long as I&amp;#039;m working on it, this information will be shown…“&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;NOTE: This Article is not yet finished! This note will be removed once i think it&#039;s okay ;)&amp;lt;br&amp;gt;&lt;br /&gt;
As long as I&#039;m working on it, this information will be shown.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This article shows how to configure a Amazon Kindle eBook-Reader as a information display for fhem. Use this manual at your own risk. Jailbreaking a Kindle is quite easy but there is no guarantee for breaking the system.&lt;br /&gt;
&lt;br /&gt;
All of the information shown below is collected from the fhem-forum [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum]. Many thanks to everybody who participated on the development of this information to get it done.Special thanks to &amp;quot;alex&amp;quot; and &amp;quot;stefan&amp;quot; from the board. Further information is from the [http://www.mobileread.com mobileread board].&lt;br /&gt;
&lt;br /&gt;
=Hardware requirements=&lt;br /&gt;
==Kindle Touch / Paperwhite / Paperwhite 2==&lt;br /&gt;
You can use Kindle Touch / Paperwhite / Paperwhite 2 without any limitations. &lt;br /&gt;
==Kindle 4==&lt;br /&gt;
For setting this up on the Kindle 4 (with the 5-way button) you need some more configuration work but it&#039;s also working. Addidional tasks for this version are shown down below.&lt;br /&gt;
&lt;br /&gt;
=Prerequisites=&lt;br /&gt;
==fhem and server configuration==&lt;br /&gt;
===Server configuration===&lt;br /&gt;
Not sure if still needed, but just for in case it is, install imagemagick on your linux system.&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;apt-get install imagemagick&amp;lt;/code&amp;gt;&lt;br /&gt;
That&#039;s it :)&lt;br /&gt;
===fhem configuration===&lt;br /&gt;
First you need a svg-template. You can find one in the first posting on the [http://forum.fhem.de/index.php/topic,21821.0.html fhem-Forum] thread. In the template just replace the data with some placeholder you like. Later this placeholder is found via a regular expression and replaced by your data.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you can set XYZ at the place where the first temperature should be shown and ABC for the first humidity value.&amp;lt;br&amp;gt;&lt;br /&gt;
If you want to edit the template you can use the free software [www.inkscape.org/de/ Inkscape]. For more information about generating SVGs for fhem please refer to this article [http://www.fhemwiki.de/wiki/Icons Icons]. Most important information is to save the SVG as a &amp;quot;normal SVG&amp;quot; and not as an inkscape SVG.&amp;lt;br&amp;gt;&lt;br /&gt;
For the Kindle Paperwhite the resolution of the SVG must be 758 x 1024 for the Kindle 4 version use 600x800. This is mandatory. Wrong scaled images won&#039;t be displayed on the Kindle.&amp;lt;br&amp;gt; Copy the Kindle_Template.svg to &amp;lt;nowiki&amp;gt;/opt/fhem/www/images/&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Jailbreaking the Kindle==&lt;br /&gt;
Don&#039;t worry. This sounds more hard and dangerous than it is in fact. It&#039;s just a few steps to have full access to your Kindle.&lt;br /&gt;
===Installing additional software===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
coming soon :)&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=7155</id>
		<title>Tecalor THZ Wärmepumpe</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Tecalor_THZ_W%C3%A4rmepumpe&amp;diff=7155"/>
		<updated>2014-08-07T03:24:31Z</updated>

		<summary type="html">&lt;p&gt;Micomat: /* Release History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Englisch version [[Tecalor THZ Heatpump]]&lt;br /&gt;
&lt;br /&gt;
Hier wird beschrieben wie man mit FHEM eine Tecalor THZ / Stieben Eltron LWZ 303/403/404 &lt;br /&gt;
/SOL Wärmepumpe auslesen steuern kann.&lt;br /&gt;
&lt;br /&gt;
Zum besseren Verständnis: Tecalor ist die Privatkundenmarke von Stieben Eltron. Die Geräte sind absolut baugleich.&lt;br /&gt;
&lt;br /&gt;
Nachfolgend wird von der &amp;quot;THZ&amp;quot; gesprochen.&lt;br /&gt;
&lt;br /&gt;
Getestet sind die Versionen 4.09, 4.19, 4.39 und 5.39. &lt;br /&gt;
Ältere Versionen können funktionieren, das ist jedoch nicht garantiert.&lt;br /&gt;
HINWEIS: Diese Anleitung ist für Personen gedacht, die sich mit Elektronik auskennen.&lt;br /&gt;
Der Autor und der Entwickler haften nicht für Schäden und geben keine Funktionsgarantie.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Seit Version 0.087 wurden die Parameternamen geaendert!&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Dies dient der Vereinheitlichung der Parameternamen. Werte mit &amp;quot;s&amp;quot; sind Statuswerte, solche mit &amp;quot;p&amp;quot; sind Parameter die in der Heizung eingestellt sind.&lt;br /&gt;
Weitere Infos bei den ausgelesenen Parametern. Nach einem Updaten muessen ggf. Sachen wie readingsGroups, Dashboards, etc. angepasst werden.&lt;br /&gt;
&lt;br /&gt;
=Verbindungsmöglichkeiten=&lt;br /&gt;
==Lokal per RS232 oder USB==&lt;br /&gt;
Die THZ hat zwei Anschlüsse die zur Verbindung genutzt werden können.&lt;br /&gt;
* Einen Seriellen Anschluss der mit einem MNL-SG3 Stecker genutzt werden kann.&lt;br /&gt;
* Einen USB Anschluss der auf der Platine zu finden ist un mit einem TYP-B Kabel funktioniert.&lt;br /&gt;
&#039;&#039;&#039;ACHTUNG! Der USB Anschluss befindet sich rückseitig auf der Platine die sich hinter der Abdeckung hinter der rechten Türe. Darf nur stromlos verbunden werden. Dazu die Wärmepumpe komplett vom Strom trennen!!!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die Baudarten variieren je nach Hardware- und Softwareversion zwischen 9600 und 115200 bei Seriell. Bei USB liegt diese bei 115200 oder 57600.&lt;br /&gt;
Eine Verbindnugsanleitung zum Seriellen Port findet sich hier: [http://robert.penz.name/heat-pump-lwz/ Robert Penz Homepage]&lt;br /&gt;
&lt;br /&gt;
==Entfernte Verbindung mit Ser2Net==&lt;br /&gt;
Wenn die FHEM Zentrale nicht direkt in der Nähe der Heizung steht kann mir Ser2Net gearbeitet werden. Dieses stellt auf einem TCP-Port einen virtuellen seriellen Anschluss zur Verfügung.&lt;br /&gt;
&lt;br /&gt;
===Installation Ser2Net auf Linux===&lt;br /&gt;
Um den Serial-Port-Server Ser2Net zu installieren ist auf Linux folgendes zu tun:&lt;br /&gt;
:&amp;lt;code&amp;gt;sudo apt-get install ser2net&amp;lt;/code&amp;gt;&lt;br /&gt;
in der /etc/ser2net.conf (/dev/ttyXXX)&lt;br /&gt;
:&amp;lt;code&amp;gt;2003:raw:500:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS  &amp;lt;/code&amp;gt;&lt;br /&gt;
Der Port kann frei gewählt werden solange er nicht bereits genutzt wird.&lt;br /&gt;
&lt;br /&gt;
==Getestete Host-Systeme==&lt;br /&gt;
Getestet ist dieses Modul auf FritzBox, nas-qnap, Raspberry Pi und MacOS.&lt;br /&gt;
&lt;br /&gt;
=Definition in FHEM=&lt;br /&gt;
==Mit direkter serieller oder USB Verbindung==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wenn die Attribute interval_sGlobal und interval_sHistory nicht definiert sind (oder 0), ist das interne Polling deaktiviert. Natürlich kann das Polling auch mit dem &amp;quot;at&amp;quot; Befehl ausserhalb des Moduls definiert werden.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ /dev/ttyUSB0@115200 # oder (/dev/ttyXXX)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzGlobal at +*00:05:00 {fhem &amp;quot;get Mythz sGlobal&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define atMythzHistory at +*08:00:00 {fhem &amp;quot;get Mythz sHistory&amp;quot;,&amp;quot;1&amp;quot;;;return()}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Via Netzwerk mit Ser2Net==&lt;br /&gt;
:&amp;lt;code&amp;gt;define Mythz THZ 192.168.0.244:2003&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sGlobal 300 # Internes Polling Intervall 5min&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sHistory 28800 # Internes Polling Intervall 8h&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz interval_sLast10errors 120 # Internes Polling Fehlerspeicher&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Ausgelesene Werte=&lt;br /&gt;
Wenn die Verbindung und das Auslesen erfolgreich waren, sollten Werte wie sGlobal, sFirmware, sHistory und diverse Einstellungen wie die Urlaubszeiten sowie einige PXX Werte angezeigt werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sGlobal (vormals allFB)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beinhaltet alle aktuellen Werte wie Temperaturen von Wasser und Gas, Lüfterstatus, Drücke, usw&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sFirmware&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Zeigt die Firmware Version der Wärmepumpe.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHistory&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Angaben zur Betriebsdauer. Beispielsweise die Anzahl der Betriebsstunden der Kompressoren.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pHoliday-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier werden die aktuellen Einstellungen der Urlaubsfunktion der THZ angezeigt. Diese bewirken, dass keine Tagabsenkund (sofern programmiert) gemacht wird. &lt;br /&gt;
Die holiday-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sLast10errors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Liest die letzten 10 Fehlercodes aus und stellt diese dar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pXX-Werte &amp;amp; program-Werte&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Die pXX-Werte und program-Werte stellen Einstellungen wie Heizkreistemperaturen und Lüfterstufen sowie Heizungs- und Warmwasserprogramme der THZ dar. Alle pXX-Werte und program-Werte können mittels &amp;lt;code&amp;gt;set&amp;lt;/code&amp;gt; auch angepasst werden.&lt;br /&gt;
Es sind auch Lüfterdurchsatzmengen und Pssivkühlung konfiguriertbar.&amp;lt;br&amp;gt;&lt;br /&gt;
pOpMode zeigt den Betriebszustand. Automatik, Handbetrieb, etc...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;party-time&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Hier wird die Uhrzeit der Party programmiert.&lt;br /&gt;
Party-Time regelt die Lüfterstufe (p99FanStageParty) im Party-Modus. Diese kann auch angepasst werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sDHW (ex Status_DHW_F3)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Warmwasserbereitung&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC1 (ex Status_HC1_F4)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enthält Informationen zum Heizkreis 1&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sHC2 (ex Status_HC2_F5)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Heizkreis 2 Informationen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sSol (ex Status_Sol_16)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Informationen zur Solaranlage&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pOpMode (ex OperatingMode)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Betriebsart: Bereitschaft, Automatik, Tagbetrieb, Absenkbetrieb, WW-Betrieb, Manueller Betrieb, Notbetrieb&lt;br /&gt;
&lt;br /&gt;
Wenn die Betriebsart via FHEM geaendert werden soll dann muss als set-Wert die entsprechende englische Bezeichnung gesendet werden (Standby, Automatic, DAYmode, SetBack, DHWmode, Manual, Emergency)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;sXXX&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Es gibt noch einige weitere &amp;quot;s&amp;quot;tatus Werte die unter anderen die Wärmerückgewinnungswerte beinhalten.&lt;br /&gt;
&lt;br /&gt;
= Plots - Grafische Darstellung =&lt;br /&gt;
Nachfolgend wird gezeigt wie man aus den Readings wie sGlobal grafische Plots erstellen kann.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Beispiel&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Angenommen wir wollen aus sGlobal die outside_temp und die dhw_temp (dhw=domestic hot water = Warmwasser) grafisch darstellen:&lt;br /&gt;
&lt;br /&gt;
In der fhem.cfg legen wir das Plot an:&lt;br /&gt;
:&amp;lt;code&amp;gt;define Plot_Temp SVG FileLog_Mythz:thz:CURRENT&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Plot_Temp room Heizung&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Daraufhin wird das Plot erzeugt, noch ohne Daten und evtl mit einer Fehlermeldung.&lt;br /&gt;
Hier klicken wir dann auf den Plot-Namen um in das Plot-Konfigurationsfenster zu kommen.&lt;br /&gt;
Hier tragen wir die entsprechenden Daten ein.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wichtig sind nun die Input-Felder&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Unterhalb der Eingabemaske befinden sich die zu Mythz gehörenden Readings die verwendet werden können. Darunter auch sGlobal.&lt;br /&gt;
&lt;br /&gt;
Das sGlobal wird in etwa so aussehen:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014-03-02_13:07:49 Mythz sGlobal: outside_temp: 3.8 flow_temp: 26.5 return_temp: 27.2 hot_gas_temp: 32.1 dhw_temp: 43.4 flow_temp_HC2: -60 evaporator_temp: 5.3 condenser_temp: 27.4 Mixer_open: 0 Mixer_closed: 0 HeatPipeValve: 0 DiverterValve: 0 DHW_Pump: 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Thzplot.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
Um den richtigen Input zu finden zählen wir die durch Leerzeichen getrennten Daten ab. Somit ist der Wert der outside_temp an Stelle 5, die dhw_temp an Stelle 13.&lt;br /&gt;
Diese Zahl tragen wir dann im Input-Feld ein und schon haben wir einen Plot der Daten erzeugt.&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu [http://www.fhemwiki.de/wiki/Plots_erzeugen Plots]&lt;br /&gt;
&lt;br /&gt;
= einzelne Werte aus den Readings=&lt;br /&gt;
Um einzelne Werte aus den großen Readings wie sGlobal oder history zu bekommen kann man ein &lt;br /&gt;
&lt;br /&gt;
userReading verwenden.&lt;br /&gt;
Beispiel:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;attr Mythz userReadings AussenTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, &lt;br /&gt;
&lt;br /&gt;
VorlaufTemp {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Weitere Infos zu userReadings in der [http://fhem.de/commandref_DE.html CommandRef]&lt;br /&gt;
&lt;br /&gt;
= Hinweise =&lt;br /&gt;
* Ein kompletter Refresh aller Werte wird nur beim Systemstart von FHEM gemacht. Dies geschieht sehr langsam um die Performance nicht zu beeinträchtigen. Erst nachdem dieser Refresh (dauert ca. 3-4 Minuten) gelaufen ist wird das interne Polling gestartet.&lt;br /&gt;
*Wenn das Refresh Inervall kürzer oder gleich ist wie der initiale Refresh kann es zu einer Überschneidung kommen was allerdings kein Problem sein sollte.&lt;br /&gt;
*Im Wintermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1 und p02RoomTempNightHC1   &lt;br /&gt;
*Im Sommermodus kommt roomSetTemp (sHC1) von p01RoomTempDayHC1SummerMode und p02RoomTempNightHC1SummerMode&lt;br /&gt;
&lt;br /&gt;
= Bekannte Probleme =&lt;br /&gt;
Im FHEM Log tauchen bei Ser2Net Verbindung häufig folgende Meldungen auf:&lt;br /&gt;
:&amp;lt;code&amp;gt;2014.03.02 09:41:09 1: 192.168.178.50:2003 disconnected, waiting to reappear&lt;br /&gt;
2014.03.02 09:41:09 1: 192.168.178.50:2003 reappeared (Mythz)&amp;lt;/code&amp;gt;&lt;br /&gt;
Dieses Problem ist aktuell nicht gelöst.&lt;br /&gt;
&lt;br /&gt;
= Release History =&lt;br /&gt;
&#039;&#039;&#039;v0.067&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Erstmalige Implementierung in FHEM&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.068&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neuer Befehl f. Party implementiert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.069&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Deutsche CommandRef hinzugefügt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.070&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix in Status Bits&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.071&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfix, undefFn verbessert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.072&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Alle programHC1*, programHC2*, programFan* und programDHW* sind nun mit &amp;quot;get&amp;quot; und &amp;quot;set&amp;quot; implementiert&lt;br /&gt;
* inside_temp  wurde am Ende von allFB hinzugefügt&lt;br /&gt;
* der Ser2Net connect/disconnet Bug wurde eingedeämmt auf max 1 Logeintrag pro Sekunde&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.074&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Jetzt sind auch die Lüfterdurchsatzmengen und die Passivkühlung ausgelesen und änderbar.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.075&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
interval_last10errors implementiert. Intervall in dem der Fehlerspeicher ausgelesen werden soll&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.076&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes und neuer Parameter Status_HC1_F4&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.078&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
neue Parameter Status_Sol_16 und Status_DHW_F3&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.080&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* neue Parameter p49SummerModeTemp und p50SummerModeHysteresis&lt;br /&gt;
* Status_HC1_F4 und Status_HC2_F5 zeigen nun &amp;quot;mode: Summer&amp;quot; (oder Winter)&lt;br /&gt;
Die Berechnung des Modus ist wie folgt:&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;gt; p49SummerModeTemp + p50SummerModeHysteresis ---&amp;gt; Summermode&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; if outsidetemp &amp;lt; p49SummerModeTemp - p50SummerModeHysteresis ---&amp;gt; Wintermode&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.081&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
BugFix für Sommer/Wintermodus-Anzeige&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.084&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* OperatingMode wird nun ausgelesen (read-only)&lt;br /&gt;
* p33BoosterTimeoutDHW (read/write)&lt;br /&gt;
* p79BoosterTimeoutHC (read/write)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.085&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OperatingMode kann jetzt auch geaendert werden.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.087&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Neue Readings&lt;br /&gt;
* Angepasste Readingnamen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.089&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Kommunikation wurde stabilisiert&lt;br /&gt;
* Bugfixes&lt;br /&gt;
* Neue Readings&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.091&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatRecoveredDay &amp;amp; sHeatRecoveredTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.094&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.095&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Readings: sHeatDHWDay &amp;amp; sHeatDHWTotal&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.096&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Weitere neue Readings: sEletrx... &amp;amp; sHeat...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.097&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bugfixes&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.099&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Raumeinfluss wurde in die Heizkurvengrafik eingebaut&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.100&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Neue Parameter: p54MinPumpCycles, p55MaxPumpCycles, p56OutTempMaxPumpCycles, p57OutTempMinPumpCycles&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.101&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* keine neuen Features&lt;br /&gt;
* Code clean up&lt;br /&gt;
* Logs in verbose 5 implementiert&lt;br /&gt;
* buffer overflow (Verursacht von sGlobal bei LWZ 303 Firmware 3.19) gefixt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.103&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Aenderung der Kommunikation. Jetzt 10x schneller&lt;br /&gt;
* Versionsinformation hinzugefuegt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.104&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Delay in der Kommunikation hinzugefuegt (aber immer noch 5x schneller)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.105&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Schnelleres set und get Verhalten&lt;br /&gt;
* Dauer des Update beim Start halbiert&lt;br /&gt;
* THZ Attribute koennen ohne Neustart geaendert werden&lt;br /&gt;
* BugFix&lt;br /&gt;
* P83 hinzugefuegt (DHWSetSolarTemp)&lt;br /&gt;
* Suffix bei den Temp-Werten hinzugefuegt. z.B. p04DHWsetDay jetzt p04DHWsetDayTemp&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.107&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* p56 and p57 getauscht und repariert&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.108&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Party-Time wurde entfernt da nicht funktionsfaehig&lt;br /&gt;
* Grouping bei &amp;quot;set programFan_Mo-Fr_0  to  08:00--20:00&amp;quot; --&amp;gt; Einzelne Tage werden automatisch gesetzt&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;v0.109&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Fehlerbehebung bei langen Nachrichten via Seriellem Kabel&lt;br /&gt;
&lt;br /&gt;
= Beispielkonfiguration =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start Definition mit Ser2Net&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define Mythz THZ 192.168.111.5:2003&amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz room Sysintern&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;userReadings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:dash.jpg|thumb]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz userReadings AussenTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[1]}, VorlaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[3]}, RuecklaufTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[5]}, WWTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[9]}, KollektorTemp:sGlobal {(split &#039; &#039;,ReadingsVal(&amp;quot;Mythz&amp;quot;,&amp;quot;sGlobal&amp;quot;,0))[79]}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;interval Defintionen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
attr Mythz interval_sGlobal 300 &amp;lt;br&amp;gt;&lt;br /&gt;
attr Mythz interval_sHistory 28800 &amp;lt;br&amp;gt; &lt;br /&gt;
attr Mythz interval_sLast10errors 120 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Definition von file-log und den SVG-Plots einiger Daten&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FileLog_Mythz FileLog ./log/Mythz-%Y-%m.log Mythz&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_0 SVG FileLog_Mythz:thz:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_0 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_1 SVG FileLog_Mythz:thz1:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_1 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_2 SVG FileLog_Mythz:thz2:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_2 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_3 SVG FileLog_Mythz:thz3:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_3 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
define wal_4 SVG FileLog_Mythz:thz4:CURRENT&amp;lt;br&amp;gt;&lt;br /&gt;
attr wal_4 room Heizung&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;readingsGroup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define rg_thz readingsGroup Mythz:&amp;lt;%temp_outside&amp;gt;,&amp;lt;Aussen&amp;gt;,AussenTemp Mythz:&amp;lt;%sani_supply_temp@red&amp;gt;,&amp;lt;Vorlauf&amp;gt;,VorlaufTemp Mythz:&amp;lt;%sani_return_temp@blue&amp;gt;,&amp;lt;Rücklauf&amp;gt;,RuecklaufTemp Mythz:&amp;lt;%sani_boiler_temp@BD7800&amp;gt;,&amp;lt;Wasser&amp;gt;,WWTemp Mythz:&amp;lt;%sani_solar_temp&amp;gt;,&amp;lt;Kollektor&amp;gt;,KollektorTemp&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz alias Heizung Temperaturen&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz room Sysintern&amp;lt;br&amp;gt;&lt;br /&gt;
attr rg_thz valueFormat { AussenTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, VorlaufTemp =&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, AussenTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, RuecklaufTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, WWTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039;, KollektorTemp=&amp;gt; &#039;%1.f &amp;amp;deg;C&#039; }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Dashboard&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define MyDashboard Dashboard&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_lockstate unlock&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_row top-center&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showhelper 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_showtooglebuttons 0&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1groups THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1name micofhem&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tab1sorting t0c100,THZ,true,170,253&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_tabcount 1&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard dashboard_webfrontendfilter WEB&amp;lt;br&amp;gt;&lt;br /&gt;
define MyDashboard_weblink weblink htmlCode {DashboardAsHtml(&amp;quot;MyDashboard&amp;quot;)}&amp;lt;br&amp;gt;&lt;br /&gt;
attr MyDashboard_weblink room DashboardRoom&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FanSelector für die Lüftungssteuerung&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
define FanSelectorDay dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorDay webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p07FanStageDay notify FanSelectorDay  IF ([FanSelectorDay] eq &amp;quot;offFor60min&amp;quot;) (define at_D_offFor60min at +00:59:00 set Mythz p07FanStageDay [Mythz:p07FanStageDay],set Mythz p07FanStageDay 0, setstate FanSelectorDay offFor60min) ELSE (set Mythz p07FanStageDay $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorDay notify (Mythz.p07FanStageDay.*) setstate FanSelectorDay $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorDay room heatpump&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:fanselectorv2.png|thumb]]&lt;br /&gt;
define FanSelectorNight dummy&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight group THZ&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight setList 0 1 2 3 offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr  FanSelectorNight webCmd 0:1:2:3:offFor60min&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_p08FanStageNight notify FanSelectorNight IF ([FanSelectorNight] eq &amp;quot;offFor60min&amp;quot;) (define at_N_offFor60min at +00:59:00 set Mythz p08FanStageNight [Mythz:p08FanStageNight],set Mythz p08FanStageNight 0, setstate FanSelectorNight offFor60min) ELSE (set Mythz p08FanStageNight $EVENT)&amp;lt;br&amp;gt;&lt;br /&gt;
define Notify_FanselectorNight notify (Mythz.p08FanStageNight.*) setstate FanSelectorNight $EVTPART1&amp;lt;br&amp;gt;&lt;br /&gt;
attr FanSelectorNight room heatpump&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Links =&lt;br /&gt;
[https://launchpad.net/heatpumpmonitor Launchpad Heatpumpmonitor]&lt;br /&gt;
&lt;br /&gt;
[http://forum.fhem.de/index.php/topic,13132.0.html Forenthread im FHEM-Forum]&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Other Components]]&lt;br /&gt;
[[Kategorie:Heizungssteuerung]]&lt;/div&gt;</summary>
		<author><name>Micomat</name></author>
	</entry>
</feed>