{"id":1755,"date":"2015-01-27T00:30:47","date_gmt":"2015-01-26T23:30:47","guid":{"rendered":"http:\/\/www.haeussler.name\/blogs\/hobby\/?p=1755"},"modified":"2022-08-20T14:04:36","modified_gmt":"2022-08-20T12:04:36","slug":"openhab-auf-dem-raspberry-pi-installieren","status":"publish","type":"post","link":"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/openhab-auf-dem-raspberry-pi-installieren\/","title":{"rendered":"openHAB auf dem Raspberry Pi installieren"},"content":{"rendered":"<p>openHAB ist eine in Java geschriebene Software f\u00fcr die Integration verschiedener Home-Automation-Systeme und Technologien in einer einzigen L\u00f6sung. openHAB bietet \u00fcbergreifende Automatisierungsregeln und eine einheitliche Benutzerschnittstelle. Das Projekt ist, da <a href=\"http:\/\/www.openhab.org\" target=\"_blank\" rel=\"noopener\">openHAB<\/a> urspr\u00fcnglich nicht f\u00fcr den Raspberry Pi entwickelt wurde, schon sehr umfangreich und bietet eine breite Unterst\u00fctzung f\u00fcr Ger\u00e4te und Technologien. Durch sogenannte Bindings wie zum Beispiel f\u00fcr KNX, Homematic, MAX!Cube, DMX, Z-Wave, EnOcean, AVM Fritzbox, SAMSUNG TV oder Onkyo A\/V Reciver.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1761\" data-permalink=\"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/openhab-auf-dem-raspberry-pi-installieren\/attachment\/openhabraspberrypi\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openHAB-RaspberryPi.jpg?fit=260%2C260&amp;ssl=1\" data-orig-size=\"260,260\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"openHAB+RaspberryPi\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openHAB-RaspberryPi.jpg?fit=260%2C260&amp;ssl=1\" class=\"alignnone size-full wp-image-1761\" src=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openHAB-RaspberryPi.jpg?resize=260%2C260\" alt=\"openHAB+RaspberryPi\" width=\"260\" height=\"260\" srcset=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openHAB-RaspberryPi.jpg?w=260&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openHAB-RaspberryPi.jpg?resize=150%2C150&amp;ssl=1 150w\" sizes=\"auto, (max-width: 260px) 100vw, 260px\" \/><\/p>\n<p>Vorausgesetzt wird ein Raspberry Pi Model B mit mindestens einer 8 GB SD-Karte und dem aktuellsten&nbsp;Raspbian (Debian Wheezy) als Betriebssystem.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1759\" data-permalink=\"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/openhab-auf-dem-raspberry-pi-installieren\/attachment\/raspian_sd-150x150\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/Raspian_SD-150x150.png?fit=150%2C150&amp;ssl=1\" data-orig-size=\"150,150\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Raspian_SD-150&amp;#215;150\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/Raspian_SD-150x150.png?fit=150%2C150&amp;ssl=1\" class=\"alignnone wp-image-1759 size-full\" src=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/Raspian_SD-150x150.png?resize=150%2C150\" alt=\"Raspian\" width=\"150\" height=\"150\"><\/p>\n<p>Wie man das einrichtet erfahrt Ihr hier in meinem Blog-Beitrag: <a href=\"http:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/raspberry-pi-einrichten\/\">Raspberry Pi einrichten<\/a>.<\/p>\n<p><!--more--><\/p>\n<p>Als aller erstes muss die ben\u00f6tige Java Umgebung installiert werden, dazu \u00f6ffnet man eine Konsole zum Rasbperry Pi, meldet sich an und gibt folgende Befehler zu Installation ein:<\/p>\n<pre>$ sudo apt-get install oracle-java7-jdk<\/pre>\n<p>F\u00fcr die openHAB Installation gibt es mittlerweile entsprechende Aptitude (Debian) Pakete, die muss man sich allerdings noch hinzuf\u00fcgen zum Paket-Manager mit:<\/p>\n<pre>$ sudo nano \/etc\/apt\/sources.list.d\/openhab.list<\/pre>\n<p>Im Editor muss dann folgende Zeile hinzugef\u00fcgt werden:<\/p>\n<pre>$ deb http:\/\/dl.bintray.com\/openhab\/apt-repo stable main<\/pre>\n<p>Anschliessend den Editor mit Strg C und J (speichern) verlassen.<\/p>\n<p>Dann k\u00f6nnen die Pakete installiert werden, zun\u00e4chst das Basis-Paket mit:<\/p>\n<pre>$ sudo apt-get update\n$ sudo apt-get install openhab-runtime<\/pre>\n<p>Und anschliessend k\u00f6nnen die AddOns (Bindings, Persistence, u.s.w.) installiert werden. Eine Suche nach den Paketen mit &#8222;apt-cache search openhab&#8220; ist ist dabei recht hilfreich.<\/p>\n<pre>$ sudo apt-cache search openhab<\/pre>\n<p>Installation mit:<\/p>\n<pre>$ sudo apt-get install openhab-addon-binding-xy<\/pre>\n<p>Somit w\u00e4re die Installation abgeschlossen.<\/p>\n<p>F\u00fcr den ersten Start reicht zun\u00e4chst die Demo-Konfiguration, dazu einfach die openhab_default.cfg Datei kopieren in openhab.cfg:<\/p>\n<pre>$ cp configurations\/openhab_default.cfg configurations\/openhab.cfg<\/pre>\n<p>Dann OpenHAB starten mit:<\/p>\n<pre>$ sudo \/etc\/init.d\/openhab start<\/pre>\n<p>Zum Schluss einfach im Browser die URL:<\/p>\n<pre>http:\/\/ip-des-raspberry-pi:8080\/openhab.app?sitemap=demo<\/pre>\n<p>aufrufen, wenn die Demo-Seite erscheint, wurde alles richtig gemacht.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1764\" data-permalink=\"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/openhab-auf-dem-raspberry-pi-installieren\/attachment\/openhub-demo\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openhub-demo.jpg?fit=507%2C673&amp;ssl=1\" data-orig-size=\"507,673\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Christian H\\u00e4ussler&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"openhub-demo\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openhub-demo.jpg?fit=507%2C673&amp;ssl=1\" class=\"alignnone wp-image-1764 size-medium\" src=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openhub-demo-226x300.jpg?resize=226%2C300\" alt=\"openhub-demo\" width=\"226\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openhub-demo.jpg?resize=226%2C300&amp;ssl=1 226w, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/openhub-demo.jpg?w=507&amp;ssl=1 507w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/p>\n<p>Nun viel Spa\u00df mit Eurem Rasbperry Pi und openHAB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>openHAB ist eine in Java geschriebene Software f\u00fcr die Integration verschiedener Home-Automation-Systeme und Technologien in einer einzigen L\u00f6sung. openHAB bietet \u00fcbergreifende Automatisierungsregeln und eine einheitliche Benutzerschnittstelle. Das Projekt ist, da openHAB urspr\u00fcnglich nicht f\u00fcr den Raspberry Pi entwickelt wurde, schon sehr umfangreich und bietet eine breite Unterst\u00fctzung f\u00fcr Ger\u00e4te und Technologien. Durch sogenannte Bindings wie zum Beispiel f\u00fcr KNX, Homematic, MAX!Cube, DMX, Z-Wave, EnOcean, AVM Fritzbox, SAMSUNG TV oder Onkyo A\/V Reciver. Vorausgesetzt wird ein Raspberry Pi Model B mit mindestens einer 8 GB SD-Karte und dem aktuellsten&nbsp;Raspbian (Debian Wheezy) als Betriebssystem. Wie man das einrichtet erfahrt Ihr hier in meinem Blog-Beitrag: Raspberry Pi einrichten.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[108,89],"tags":[90,86,87],"class_list":["post-1755","post","type-post","status-publish","format-standard","hentry","category-openhab","category-raspberry-pi","tag-iot","tag-openhab","tag-raspberry-pi"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p76vFd-sj","jetpack-related-posts":[{"id":1766,"url":"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/raspberry-pi-einrichten\/","url_meta":{"origin":1755,"position":0},"title":"Raspberry Pi einrichten","author":"Christian H\u00e4ussler","date":"26. Januar 2015","format":false,"excerpt":"Der Raspberry Pi Model B ist einer der mittlerweile weit verbreitesten Einplatinen-Computer der Welt. Zeit sich auch einmal so einen Einplatinen-Computer zuzulegen. Zu den technische Daten des Raspberry Pi muss ich denke ich nicht viel erz\u00e4hlen, das solltet man entweder bereits wissen oder man schaut hier nach: http:\/\/www.raspberrypi.org Zum Betrieb\u2026","rel":"","context":"In &quot;RaspberryPi&quot;","block_context":{"text":"RaspberryPi","link":"https:\/\/www.haeussler.name\/blogs\/hobby\/category\/raspberry-pi\/"},"img":{"alt_text":"pi-model-b","src":"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/pi-model-b-300x151.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2376,"url":"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/balena-cloud-mit-einem-raspberry-pi-4\/","url_meta":{"origin":1755,"position":1},"title":"Balena Cloud mit einem Raspberry Pi 4","author":"Christian H\u00e4ussler","date":"15. Mai 2024","format":false,"excerpt":"Verwalte und bereite IoT-Anwendungen m\u00fchelos mit Balena Cloud auf deinem Raspberry Pi 4 vor. Entdecke die Vorteile und folge unserer Anleitung! #BalenaCloud #IoT","rel":"","context":"In &quot;RaspberryPi&quot;","block_context":{"text":"RaspberryPi","link":"https:\/\/www.haeussler.name\/blogs\/hobby\/category\/raspberry-pi\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2459,"url":"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/deepseek-lokal-auf-dem-raspberry-pi-5-nutzen\/","url_meta":{"origin":1755,"position":2},"title":"DeepSeek lokal auf dem Raspberry Pi 5 nutzen","author":"Christian H\u00e4ussler","date":"31. Januar 2025","format":false,"excerpt":"Heute zeige ich Euch, wie ihr DeepSeek R1 \u2013 ein leistungsstarkes KI-Sprachmodell \u2013 direkt auf eurem Raspberry Pi 5 installieren und nutzen k\u00f6nnt. Raspberry Pi Warum KI lokal auf dem Raspberry Pi nutzen?Bevor es losgeht, m\u00f6chte ich Euch die Vorteile einer lokalen Installation erkl\u00e4ren: Datenschutz: Alle Anfragen bleiben auf eurem\u2026","rel":"","context":"In &quot;RaspberryPi&quot;","block_context":{"text":"RaspberryPi","link":"https:\/\/www.haeussler.name\/blogs\/hobby\/category\/raspberry-pi\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/image.png?fit=1024%2C768&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/image.png?fit=1024%2C768&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/image.png?fit=1024%2C768&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/image.png?fit=1024%2C768&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1788,"url":"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/samba-auf-dem-raspberry-pi\/","url_meta":{"origin":1755,"position":3},"title":"Samba auf dem Raspberry Pi","author":"Christian H\u00e4ussler","date":"29. Januar 2015","format":false,"excerpt":"Es ist sehr hilfreich, einen Sambaserver auf dem Raspberry Pi einzurichten. Damit l\u00e4sst sich bequem im lokalen Netzwerk auf den Raspberry Pi per Netzwerkfreigabe zugreifen, um Dateien auszutauschen. Als erstes sollte man die Linux Pakete und die Firmware des Raspberry Pi updaten, siehe dazu meinen Blog-Beitrag Raspberry Pi einrichten. Dann\u2026","rel":"","context":"In &quot;RaspberryPi&quot;","block_context":{"text":"RaspberryPi","link":"https:\/\/www.haeussler.name\/blogs\/hobby\/category\/raspberry-pi\/"},"img":{"alt_text":"RaspberryPi_Samba","src":"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/RaspberryPi_Samba-300x130.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1827,"url":"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/dpf-ax206-raspberry-pi\/","url_meta":{"origin":1755,"position":4},"title":"Digitaler Bilderrahmen (AX206) am Raspberry Pi","author":"Christian H\u00e4ussler","date":"19. Juni 2015","format":false,"excerpt":"Auf der Suche nach einer \"sehr\" g\u00fcnstigen Variante f\u00fcr ein Displays am Raspberry Pi bin ich auf einen Digitalen Bilderrahmen mit AX206 Chip gesto\u00dfen. H\u00e4ufig wird auf diversen Interntseiten der von Pearl verwendet. Der war mir aber zu gro\u00df und ich wollte aber etwas kleineres zur reinen Status-Anzeige \u00fcber lcd4linux.\u2026","rel":"","context":"In &quot;RaspberryPi&quot;","block_context":{"text":"RaspberryPi","link":"https:\/\/www.haeussler.name\/blogs\/hobby\/category\/raspberry-pi\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/IMG_20150618_202528_358.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/IMG_20150618_202528_358.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/IMG_20150618_202528_358.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/IMG_20150618_202528_358.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/IMG_20150618_202528_358.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/IMG_20150618_202528_358.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":1794,"url":"https:\/\/www.haeussler.name\/blogs\/hobby\/raspberry-pi\/raspberry-pi-spricht\/","url_meta":{"origin":1755,"position":5},"title":"Raspberry Pi spricht","author":"Christian H\u00e4ussler","date":"8. Februar 2015","format":false,"excerpt":"Um dem Raspberry Pi das sprechen bei zu bringen, ben\u00f6tigt man zun\u00e4chst einen kleinen Lautsprecher. Alternativ geht die Audio-Ausgabe auch \u00fcber HDMI. Ich habe dazu einen kleinen Bluetooth Aktiv Lautsprecher von beats audio benutzt: Als erstes sollte man den Raspberry Pi auf den neuesten Stand bringen, wie das geht, erf\u00e4hrt\u2026","rel":"","context":"In &quot;RaspberryPi&quot;","block_context":{"text":"RaspberryPi","link":"https:\/\/www.haeussler.name\/blogs\/hobby\/category\/raspberry-pi\/"},"img":{"alt_text":"beats audio & Raspberry Pi","src":"https:\/\/i0.wp.com\/www.haeussler.name\/blogs\/hobby\/wp-content\/uploads\/IMG_20150208_201252_277-300x225.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/posts\/1755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/comments?post=1755"}],"version-history":[{"count":14,"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/posts\/1755\/revisions"}],"predecessor-version":[{"id":2105,"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/posts\/1755\/revisions\/2105"}],"wp:attachment":[{"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/media?parent=1755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/categories?post=1755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.haeussler.name\/blogs\/hobby\/wp-json\/wp\/v2\/tags?post=1755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}