2012-11-24

Install Tellstick on Fedora

Tellstick is a USB device that makes it possible for you to control different electrical devices in your house. It is very useful when you would like to control lamps wireless.

I did this to install Tellstick on my Fedora server:

UDEV configuration
Create the file /etc/udev/rules.d/99-tellstick.ruleswith the following content:

KERNEL=="ttyUSB*", BUS=="usb", SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c30", NAME="tellstick", GROUP="niklas"
"niklas" in the GROUP part shall of course be changed to something useful in your case. Specify a group where the user, who will use the tellstick, are included.

Install telldus software
Download source code by reading installation instructions. Patch it via the information found here.
Build and install the software according to instructions.
Create the file /etc/ld.so.conf.d/tellduscore.conf with the following content:
 /usr/local/lib
 If the lib is installed somewhere else you have to change the row above.

Install tellstickController
TellstickController is a simple and, in my opinion, useful tool which you can use to program your lamps relative sunrise and sunset.
Download src-rpm for perl-datetime-event-sunrise from RepoForge. Create an RPM for your Fedora version by reading instructions and install the RPM.
Download and install tellstickController by reading instructions.

Start tellstickd
To start the daemon, add the following rows in /etc/rc.d/rc.local:


#!/bin/sh
# Start telldusd
telldusd
sleep 3
/home/niklas/SW/tellstick/tellstickControllerTdtool -d
I found good info around adding things in rc.local here.

No comments:

Post a Comment