Hello! Last month, I set up an openHab test system, and am loving it. However my desktop is 10 years old, and so is too clunky and power hunger for it to be of any practical use. I’m about ready pull the trigger on a Raspberry Pi, but I thought I’d get some feedback first. There’s a lot of how-to articles on how to set it up, but not a lot of reviews of whether it’s up to the task. One of the reviews I did find said it’s too slow to respond to commands and status changes. What’s your guy’s experience? Is it up to the task?
Currently I have three switches, with the likelihood of adding another switch, and a thermostat in the near future.
I’ll let others chime in as I run on an old laptop but from reading the forum I would say that a good majority of the users have openHAB running on a Raspberry Pi so it can’t be all bad.
I have a very small system (3 devices) running on a Raspberry Pi 2 at the moment. It’s been working relatively fine even with a Hue bridge emulator and MQTT host running on it.
However, I’m upgrading to a full blown home media server to consolidate things around the house onto one machine. I’m sure the Raspberry Pi would handle adding a few more devices, but I just don’t have a large amount of faith in a $35 combo motherboard
I use Raspberry Pi 2 Model B’s with openHAB and mosquitto, and one runs off an external USB hard disk and also has a MySQL server for persistence, and I think it all runs fast enough. I run them “headless” which I’m sure frees up a lot of resources. The performance is dramatically better than the previous generation – I found openHAB just a bit too painfully slow on Raspberry Pi 1’s. The Achille’s heel, though, are applications that do frequent disk writes, as the microSD card can wear out quickly as a consequence.
About 10 z-wave devices (sockets and sensors) + weather + network health + LG TV, all on a pi 2, which is also running as OSMC media center. No performance issues what so ever demo.
I also run openhab on a Pi2B without major issues but as state from others use an external hdd for heavy read writes. I learnt my lesson a few days back where my database or motion destroyed my sd card.
If you also want to run motion on it it will suffer a bit of performance but it workes on my setup with one 720p webcam stream quite ok.
Does anyone have a guide they followed or better yet an image for a raspberry Pi2? About to play with this in the next week, if none exists I can put one together. Any tips from those who have done it before?
To Joshua_Gilman:
I would like to encourage you not to ‘put all your eggs in the same basket’ as I have been running a mythtv and kodi media setup for a long time and would never recommend putting multiple things in the same computer. If 1 update for one software package breaks something, then you loose the whole lot. A $35 pi2 or an odroid c1+ is excellent because you can image the SD card and keep a backup image and a second PI2 ready to swap out should something break. I guess it depends on how much you rely on a working openhab setup.
Also my media backend computer uses 30 watts of power when idle, a PI2 uses 2 watts from the wall when idle and using a wired network.
If you like kodi for your media player, then you can use the spare PI2 for kodi that you can grab should the openHAB pi2 go down. Check out ‘OSMC’ project.
[quote=“matt1, post:14, topic:4781, full:true”]
Does anyone have a guide they followed or better yet an image for a raspberry Pi2? About to play with this in the next week, if none exists I can put one together. Any tips from those who have done it before?[/quote]
I have a huge openHAB environment running on a Raspi PI 2 as well. No performance issue here at all.
There is just one thing that should be considered when it comes to devices with limit memory (1GB in case of the Pi2) and the usage of a Java application like openHAB… Garbage collection.
It seems the Java runtime normally gives each running java process a limit of maximum memory used and a much lower threshold on how small it can/should become in the memory. This means every information allocated in the memory will sooner or later be removed (to freeup space for new information).
In our use case, openHAB is the only Java process running and the most information allocated in memory should not been dropped because it will be reused sooner or later.
I ended up with the following two parameters in the start.sh to set both, the minimum and the maximum memory limit to 650MB…
-Xms650m
-Xmx650m
This is making a real difference. i have a quit complex voice rule to control nearly everything by natural spoken commands. Without those parameters, the first command could take up to 20 seconds until it was processed (far from any acceptable delay). The second command was very fast. Often less than a second.
But after some time (a hour or something) it took 20 second once again… I guess because the garbage collector did get rid of some stuff.
After adding the two parameters. It is all the time fast, except the very first time after starting openHAB (what just happens every few weeks when I do some maintenance) .
There have been some people who have reported problems upgrading their RasPis from wheezy to jessie. But if you are starting from scratch I would think that going with jessie from the start shouldn’t be a problem. Just realize that one of the changes in jessie is a move to systemd which means how one configures and controls startup services will be different from the majority of the tutorials you will find out there.
[quote=“rlkoshak, post:18, topic:4781, full:true”]
There have been some people who have reported problems upgrading their RasPis from wheezy to jessie.[/quote]
I can confirm that. Caused a bunch of problems in my case …
[quote=“rlkoshak, post:18, topic:4781, full:true”]
But if you are starting from scratch I would think that going with jessie from the start shouldn’t be a problem.[/quote]
I can confirm that too. No problems when starting from scratch, Jessie and OH 1.7.1 are running stable.
# free -m
total used free shared buff/cache available
Mem: 925 291 100 57 533 554
Swap: 0 0 0
# uptime
18:55:40 up 50 days, 22:01, 2 users, load average: 0,01, 0,11, 0,14
So the raspberry pi is not really busy with this setup, it is actually quiet bored
Side note
One Micro-SD card wear out lately, which resulted in a read only microsd - data could be read but nothing written on it. This was replaced by the MicroSD + USB-stick setup. The MicroSD card was formatted with ext4.