Raspberry Pi as HomeAutomation server

Finally my Raspberry Pi has arrived and I want to use it as the server for the perl based HomeAutomation server fhem http://fhem.de/fhem.html.

Therefore my Pi has been upgraded with a micro USB WLAN stick and a CUL device from Busware http://busware.de/tiki-index.php?page=CUL running culfw http://culfw.de/culfw.html

Raspberry Pi overview

For the fhem set-up I followed the installation instruction as described under http://www.fhemwiki.de/wiki/Raspberry_Pi and this worked like a charm

The installation of the culfw firmware was a bit more tricky, but with the following steps I was able to flash the CUL to the latest version.

Download the firmware
sudo wget http://culfw.de/culfw-1.46.tar.gz
and unpack it
sudo tar -zxvf culfw-1.46.tar.gz

Change into your device directory (e.g. Devices/CUL)
cd /home/pi/CUL_VER_146/culfw/Devices/CUL
Install the package dfu-programmer
sudo apt-get install dfu-programmer
Insert the device into the USB slot while pressing the micro-switch
Finally execute
sudo make usbprogram_v3 V3 to be used for CUL V3.
After flashing the CUL, a new USB device should appear: “03eb:204b Atmel Corp.”. If not re-insert the device without pressing the micro-switch.

The server is now up and running since several days.  For the time being the server is just listening to the FS20 traffic in the air and logs it.

T4F4C00B600F7
T430D00362601
K51913145FC
T52396702FE
T52396782FD
K7114323738
T52396782FD

I’m using the S300TH temperature/humidity sensor in the working room for test purposes and got myself a FHT80TF-2 door/window sensor and a FHT8v electric valve controller as test devices.

Breadboard and test devices

I want to control the FHT8v directly from this server without the need to use the FHT80b device which is originally intended to steer the valve controller. Normally this should be straight forward but a first test was not successful. I will publish the results once I have it running.

Leave a Reply

Your email address will not be published. Required fields are marked *