Hello, instead of making a tutorial we have created and linux image (available for free in our shop) based on Raspbian with fhem that fits the UniPi. For more info see http://unipi.technology/wiki/Fhem_%26_UniPi