Install FHEM with Arch Linux on Raspberry PI

Submitted by matthiaslink on Sun, 2015-09-27 - 09:21

It is necessary to have a compatible board for the Home Automation System. Due to the fact i'm using Homeatic I use Busware's SCC what is a great piece of perfect shield for such cases.

  1. 1. Edit /etc/cmdline.txt and remove all with
    You can disable it by editing the file /boot/cmdline.txt:
    dwc_otg.lpm_enable=0 >>>console=ttyAMA0,115200 kgdboc=ttyAMA0,115200<<< console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
    Important: just have a look on the addings in above mentioned line between ">>>" and "<<<".
     
  2. Activate the SCC
        
  3. Install Perl and make (incl. dependencies)
    pacman -S perl (this is in general used for FHEM)
    pacman -S make (this is used for FHEM final installation via make)
    pacman -S gcc (This is used for cpan)
     
  4. Install Perl-Module cpan Device::SerialPort
    cpan Device::SerialPort
    The question to configure as much as possible automatically accpet with "yes"
     
  5. Download FHEM
    wget http://fhem.de/fhem-5.6.tar.gz
     
  6. Extract FHEM in /opt (I use opt because i do not use pacman and thereof I want to clearly specify this for me when I use /opt directory)
    tar xvf ./fhem-5.6.tar.gz
     
  7. Final installation
    go to fhem directory and do
    make install
     
  8. Start Demo Environment and have a first surf
    perl /opt/fhem/fhem.pl /opt/fhem/fhem.cfg.demo
    User your Browser to connect via http://<ip to raspberry>:8083
     
  9. In console (white field on top) run the update module
    update
     
  10. Edit the fhem.cfg to support Busware's SCC module
    Add in fhem.cfg for a Rapberry Pi:
    define SCC CUL /dev/ttyAMA0@38400 1234
     
  11. Set attribute "rfmode" for SCC CUL to HomeMatic in FHEM interface for the CUL device (at the moment of writing this article i'm not sure if this is good practice and working for all the time).

Sources:
http://shop.busware.de/product_info.php/products_id/97?osCsid=290a5abf32755201e114119084386c24
http://www.hobbytronics.co.uk/raspberry-pi-serial-port
http://busware.de/tiki-index.php?page=SCC_Installation
http://fhem.de/fhem_DE.html#Download
https://demaya.de/fhem-unter-archlinux-installieren/
http://blog.philippklaus.de/2015/01/installing-fhem-on-arch-linux-arm-on-a-udoo-in-my-case/ (check for config. seems good)

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.