Domotiga on Raspberry Pi 2

I have been running Domotiga on the new Raspberry Pi 2 for a few weeks now after the initial months using the "old" Raspberry Pi. And I have to say the performance is very noticeable. I'm controlling Domotiga with the desktop client using VNC. I also control Domotiga with the web interface, but I find it faster to use VNC. Compared to the "old" Raspberry Pi, the response is almost instant, and the CPU usage is never over 25% compared to the the "old" one that used 100% every time Domotiga had work to do. That's the beauty of quad core CPU.

From scratch

I started from scratch with a class 10, 16GB SD card and installed Raspian, Gambas v3.7 (development branch) and Domotiga. I had already done much of this before, so it only took a couple of hours to set it up. I had to compile Gambas, due to the fact that I used the development branch. The reason for this is that I had some issues with running shell scripts in Gambas 3.6. When this is published, Gambas 3.7 is the latest one, so you don't have to compile Gambas yourself, if you decide to install Domotiga. I also startet with an empty database, without the example devices and events.

USB devices

I plugged in the RFXCOM  RFXtrx433E USB transceiver, my Moteino gateway and the bluetooth dongle. Everything worked perfect on first startup, and has worked since. It takes some time to set up sensors, devices, scripts and switches from scratch, as they have to be tested and tuned. The image below shows my device list. Some are physical devices and some are virtual devices that receives data from scripts.

One of the virtual devices is the "Occupancy" device. This device will detect if anyone is home, and who it is. To accomplish this I use a bluetooth dongle on the Raspberry Pi. Domotiga runs a script that determine our "Present" or "Away" status. This script is published here. The four PIR sensors are home made and the project is published here. The "Sensor: <name> (API)" devices are home made Moteino sensors that publish it's reading to an external database. You can check this project here. Finally, the switches are all Nexa wall switches. They can all be controlled by the RFXCOM RFXtrx433E and manually by Nexa compatible remote controls.