<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Homebridge &#8211; datort.de</title>
	<atom:link href="https://datort.de/tag/homebridge/feed/" rel="self" type="application/rss+xml" />
	<link>https://datort.de</link>
	<description>Retro, Gaming, Tech: Videos und Berichte</description>
	<lastBuildDate>Mon, 12 Feb 2024 08:29:08 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://datort.de/wp-content/uploads/2024/10/cropped-datort_computer_isolated-32x32.png</url>
	<title>Homebridge &#8211; datort.de</title>
	<link>https://datort.de</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Homebridge-Erweiterung: (Licht-)Schalter im Eigenbau</title>
		<link>https://datort.de/raspberry-arduino/544/homebridge-erweiterung-licht-schalter-im-eigenbau/</link>
					<comments>https://datort.de/raspberry-arduino/544/homebridge-erweiterung-licht-schalter-im-eigenbau/#respond</comments>
		
		<dc:creator><![CDATA[datort]]></dc:creator>
		<pubDate>Wed, 03 Jan 2024 15:50:04 +0000</pubDate>
				<category><![CDATA[Raspberry & Arduino]]></category>
		<category><![CDATA[Youtube]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[Homebridge]]></category>
		<category><![CDATA[Homekit]]></category>
		<category><![CDATA[Smarthome]]></category>
		<guid isPermaLink="false">https://datort.de/?p=544</guid>

					<description><![CDATA[Es ist ein bisschen verrückt: Ich kann in meinem Zuhause alle relevanten Leuchten über Wifi-Steckdosen mittels meines iPhones&#8230;]]></description>
										<content:encoded><![CDATA[
<p>Es ist ein bisschen verrückt: Ich kann in meinem Zuhause alle relevanten Leuchten über Wifi-Steckdosen mittels meines iPhones über die Home-App steuern. Vorbei die Zeiten des manuellen Tastendrückens. Doch genau das fehlte mir kürzlich sehr, als ich mein Telefon unten habe liegen lassen. Und daraus wuchs die Idee: Hey, ich brauche wieder einen Schalter! </p>


<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><a href="https://datort.de/raspberry-arduino/544/homebridge-erweiterung-licht-schalter-im-eigenbau/"><img decoding="async" src="https://datort.de/wp-content/plugins/wp-youtube-lyte/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2Fp1ukkSZFIrY%2Fmaxresdefault.jpg" alt="YouTube Video"></a><br /><br /><figcaption></figcaption></figure>


<p>Herausgekommen ist dabei ein &#8222;Command Control Center&#8220;. Der Name ist völlig übertrieben, ich weiss. Das Gehäuse ist eigens von mir skizziert und mittels 3D-Drucker selbst gedruckt. Wichtig war mir, dass es gut an meinen Schreibtisch (ein weit verbreitetes Modell eines schwedischen Möbelherstellers) passt und drei Taster beherbergen kann. Zusätzlich, um der Mächtigkeit des Begriffs &#8222;Command Control Center&#8220; näher zu kommen, befindet sich im Gehäuse Platz für einen Schlüsselschalter, der die Spannungszufuhr für das verbaute D1 Mini ESP-Board steuert. Man hätte das mit Sicherheit auch anders lösen können, aber: Et soll ja auch Spaß machen!</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="591" src="https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-1024x591.png" alt="" class="wp-image-549" srcset="https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-1024x591.png 1024w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-300x173.png 300w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-768x443.png 768w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-1536x886.png 1536w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-380x219.png 380w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-800x462.png 800w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18-1160x669.png 1160w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.18.png 1776w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Die Taster bieten neben ihrer eigentlichen Aufgabe des als Taster fungieren noch die Möglichkeit, einen LED-Ring leuchten zu lassen. Der symbolisiert ob die entsprechende Lampe ein- oder ausgeschaltet ist. In meinem Beispiel sind zwei Taster mit weißer und einer mit blauer LED verbaut. Die Taster sind mir im Nachgang etwas zu klein zum Drücken, dennoch mag ich sie und mit rund 4,- Euro waren sie recht günstig. Außerdem sind sie mit einer Eingangsspannung von 3 bis 9 Volt für die LED recht flexibel einsetzbar. </p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="566" src="https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-1024x566.png" alt="" class="wp-image-550" srcset="https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-1024x566.png 1024w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-300x166.png 300w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-768x424.png 768w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-1536x849.png 1536w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-380x210.png 380w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-800x442.png 800w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30-1160x641.png 1160w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.30.png 1868w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Im Inneren arbeitet ein D1 Mini Clone-Board, also ein ESP8266 der direkt Wifi onboard hat. Das ist wichtig, da die Homebridge, die bei mir als zusätzliche Ebene zu Apples Homekit im Einsatz ist, über API-Aufrufe über das lokale Netzwerk gesteuert wird. Von dem D1 Mini-Board brauch es 6 Pins: 3 für die Statusanzeige, also die jeweilige LED. Und eben 3 weitere für die Erkennung der Tastendrücke. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="886" height="776" src="https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.43.png" alt="" class="wp-image-551" srcset="https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.43.png 886w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.43-300x263.png 300w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.43-768x673.png 768w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.43-380x333.png 380w, https://datort.de/wp-content/uploads/2023/12/Bildschirmfoto-2023-12-28-um-18.48.43-800x701.png 800w" sizes="(max-width: 886px) 100vw, 886px" /></figure>



<p>Das ist es im Wesentlichen dann auch schon. Natürlich muss die Software noch angepasst werden. So müssen sogenannte &#8222;uniqueId&#8220; hinterlegt werden. Dabei handelt es sich um eine eindeutige Identifikation eines jeden Geräts, welches über Homebridge geschaltet werden kann. Tastendrücke lösen dann entsprechende API-Anfragen aus, welche diese &#8222;uniqueId&#8220; übermitteln, bzw. sie verwenden um in regelmäßigen Abständen nach dem Status (Licht an oder aus) bei der Homebridge nachfrage. Denn es könnte ja auch sein, dass eine Lampe oder Steckdose auf anderem Weg geschaltet wird. </p>



<p>Meinen Code stelle ich euch natürlich frei und als Open Source auf Github zur Verfügung. Die Datei für den 3D-Druck des Gehäuse findet ihr hier:</p>



<div class="wp-block-file"><a id="wp-block-file--media-501b5372-72c9-4523-bc3f-6bebb631311d" href="https://datort.de/wp-content/uploads/2023/12/Command-Control-v12.stl_.zip">Command-Control-v12.stl_</a><a href="https://datort.de/wp-content/uploads/2023/12/Command-Control-v12.stl_.zip" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-501b5372-72c9-4523-bc3f-6bebb631311d">Herunterladen</a></div>



<p>Den Code habe ich auf mein <a href="https://github.com/datort/homebridge-remote-switchboard" target="_blank" rel="noreferrer noopener">Github-Profil</a> gepackt. Von dort könnt ihr alles einfach herunterladen oder via Git auschecken.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://datort.de/raspberry-arduino/544/homebridge-erweiterung-licht-schalter-im-eigenbau/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
