Difference between revisions of "HomeAutomation and Tellstick"

From BubbaWiki
Jump to navigation Jump to search
Line 110: Line 110:
2. Import your receiver units from the earlier edited tellstick config file.  
2. Import your receiver units from the earlier edited tellstick config file.  


2.1 Click the menu "Konfiguration" - "Enheter".<br>
2.1 Click the menu "Konfiguration" - "Enheter".<br>  


2.2 Click the text "Uppdatera från Tellstick".  
2.2 Click the text "Uppdatera från Tellstick".  


3. Inlärning av Nexa-enheter från web-UIt&nbsp;:  
3. Sync your NEXA units from the web UI:  


3.1. Tryck på learn-knappen på NEXA
3.1. In the UI, click the menu "Enheter".<br>


3.2. Slå på din enhet under menyn Enheter.  
3.2. Press the learn-button on one NEXA unit.  


3.3. Se till att din enhet blir syncad med Tellsticken.. dvs blinkar.  
3.3. Click the lamp on in the web UI.  
 
3.4. Make sure that the unit gets synched, the connected lamp will blink.  


<br>  
<br>  


<br>
<br>

Revision as of 11:04, 29 August 2011

This guide will help you to install the fantastic software HomeAutomation and the very neat piece of hardware Telldus Tellstick on a B3. The information here is collected from various threads on http://forum.excito.net/.

More about HomeAutomation is found here: karpero.mine.nu/ha/

More about Tellstick is found here: www.telldus.se/

Install Tellstick

Conditions

  • Tellstick not connected to B3
  • Logged in as root on B3


1. Install packet for compiling on B3

apt-get install cmake
apt-get install build-essential


2. Install packet needed by Telldus

apt-get install libconfuse-dev libqt4-dev help2man


3. Download the latest software for Tellstick and extract. Use the latest tellstick core found at: http://download.telldus.se/TellStick/Software/telldus-core/.

wget http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.0.4.tar.gz
tar xvfz telldus-core-2.0.4.tar.gz
cd telldus-core


4. Build tdtool and rfcmd.

cmake -DBUILD_LIBTELLDUS-CORE=1 -DBUILD_TDTOOL=1 -DBUILD_RFCMD_WITH_LIBFTDI=0 -DGENERATE_MAN=1
make
make install


5. Edit the file /etc/ld.so.conf.d/local.conf (if not excisting, add the file):

nano /etc/ld.so.conf.d/local.conf

Add the following line:

/usr/local/lib 


6. Then run:

ldconfig
rm -f /var/state/telldus-core.conf


7. Insert the Tellstick into B3

8. To add receiver units, edit the file /etc/tellstick.conf

nano /etc/tellstick.conf

Adjust the config file to your receiver units. In this case: 1pcs NEXA NEYCR-1000 and 1pcs NEXA LWMR-210.

deviceNode = "/dev/tellstick"
device {
id = 1
name = "Office"
protocol = "arctech"
model = "codeswitch"
parameters {
house = "112233"
unit = "1"
}
}

device {
id = 2
name = "Outside"
protocol = "arctech"
model = "selflearning-dimmer"
parameters {
house = "445566"
unit = "1"
}
} 

Change the parameter "house" to a randomly choosen number. The uniqe numbers will make sure your units do not interfear with other units.

Install HomeAutomation


1. First of all install AT for scheduling on B3.

apt-get install at

2. Remove the user www-data from the files: /etc/cron.deny, /etc/at.deny, /etc/cron.allow and /etc/at.allow files (if they exist).

nano /etc/at.deny

3. Download the latest version of the HomeAutomation software to your PC, karpero.mine.nu/ha/index.php

4. Unzip and place the files into /home/web/HA on your B3.

5. Edit the configuration file /home/web/HA/config_sample_linux.php. Change the search path in the configuration file to:

/home/web/HA 

6. Rename the configuration file config_sample_linux.php to config.ph.

7. HomeAutomation needs the timezone to be set in Appache2. Edit the file php.ini:

nano /etc/php5/apache2/php.ini

Change the "date.timezone" to match your location (in example Europe/Stockholm).

”date.timezone = Europe/Stockholm”

8. Restart B3.

9. Install myPhPAdmin on B3.

apt-get install phpMyAdmin

10. Add a database for HomeAutomation.

mysqladmin create HADatabase

11. Open a web browser to configure HomeAutomation. Brows to http://b3/HA/ and follow the instructions.

Regarding the database information, use the following information:

Database name:"HADatabase" 

Usr: root

Psw: ”” (empty)

Configuring your receiver units in HomeAutomation

1. Open a web browser. Browse to http://b3/HA

2. Import your receiver units from the earlier edited tellstick config file.

2.1 Click the menu "Konfiguration" - "Enheter".

2.2 Click the text "Uppdatera från Tellstick".

3. Sync your NEXA units from the web UI:

3.1. In the UI, click the menu "Enheter".

3.2. Press the learn-button on one NEXA unit.

3.3. Click the lamp on in the web UI.

3.4. Make sure that the unit gets synched, the connected lamp will blink.