Tellstick

From ago control wiki
Jump to: navigation, search
TellstickDuo.jpeg

Contents

Overview

There are currently four models of Tellstick:

All versions support 433 MHz trancievers, ZNet Lite also support ZWave.

Agocontrol support is tested for the first three versions.

Contact JoakimL on freenode for more info

Installation

Install the basic software

Add the following lines to your /etc/apt/sources.list:

 echo "deb http://download.telldus.com/debian/ stable main" >> /etc/apt/sources.list


Get keys:

 wget -q http://download.telldus.se/debian/telldus-public.key -O- | sudo apt-key add - 

The key fingerprint is 70C4 10C9 D73D 53E8 38B3 1C58 5A94 9181 E501 EA76 Telldus Technologies AB <info.tech@telldus.se>

To install telldus-core, do

sudo apt-get update
sudo apt-get install telldus-core

Install on Raspberry Pi A/B/B+

There's no binary distribution for the armht CPU architecture, but it's quite simple to install from source.Raspberry Pi Tellstick instruction

For the Raspberry Pi 2 (armhf), you can go ahead with the "normal" installation as decribed above, no compilation from source needed.

Install package, enable and start daemon

sudo apt-get install agocontrol-tellstick

Then enable and start the daemon

sudo systemctl enable agotellstick.service
sudo systemctl start agotellstick.service

Configure

Tellstick device configuration

All configuration is stored in /etc/tellstick.conf. Example:

user = "nobody"
group = "plugdev"
deviceNode = "/dev/tellstick"
ignoreControllerConfirmation = "false"
controller {
  id = 1
  # name = ""
  type = 1
  serial = "xxxxxxxx"
}
device {
  id = 1
  name = "WallWart1"
  controller = 0
  protocol = "arctech"
  model = "selflearning-switch"
  parameters {
    # devices = ""
    house = "12345678"
    unit = "1"
    # code = ""
    # system = ""
    # units = ""
    # fade = ""
  }
}

Devices are picked up by the software and will be visible in http://127.0.0.1:8008/?deviceConfig

Agocontrol Tellstick service configuration

Configuration for the agocontrol service goes into /etc/opt/agocontrol/conf.d/tellstick.conf. Example:

[tellstick]
# Any value but "Net" will use Tellstick (Duo) code
# Net will use Tellstick NET code
StickVersion = Duo

# Sensor poll interval, in seconds
# (only used with StickVersion Net)
SensorPollInterval = 300

log_level = INFO
debug = false

####################################################################
[EventDevices]
# Ignore repeated events from the same device
# witih this many milliseconds
Delay = 500
IgnoreModels = codeswitchX, testX
IgnoreDevices = S1,S3


[501]
Type=Motion sensor
Desc = Motion sensor
Delay = 950

[502]
Type=Wall switch
Desc = Wall switch media room, left of window


###################################################################
[Sensors]
#How long to wait for a sensor event before asking for a value (seconds)
MaxWait=300

[S2-temp]
Desc=Outdoor sensor garage (temp + hum)
Offset=-0.8

[S101-temp]
Desc=Outdoor sensor entrance (temp + hum) Oregon

SensorPollInterval = 300 # Sensor poll interval, in seconds

Delay = 500 # Many remotes send its command twice, use this to cancel any echoes IgnoreModels = codeswitch # If you add an external antenny, you'll likely receive info from you neighboughs IgnoreDevices = S1,S3 # Use either or both of the Ignore options to block out these devices

Delay = 950 # Override the echo cancellation period

MaxWait=300 # How long to wait for a sensor event before asking for a value (seconds)

Offset=-0.8 # Used to calibrate you sensor. For temp sensor, it's degrees in C of F

More info

Device handler is executed as a service, agotellstick
logging goes to /var/log/syslog

Personal tools