Tellstick

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(New config file)
(Added new config options to file example)
Line 89: Line 89:
 
log_level = INFO
 
log_level = INFO
 
debug = false
 
debug = false
 
# The rest of this file concern devices that can generate events (like ON/OFF, temperature change, humidity change)
 
  
 
####################################################################
 
####################################################################
 
[EventDevices]
 
[EventDevices]
# These devices typically generate an echo.
+
# Ignore repeated events from the same device
# Ignore repeated events from the same device within this many milliseconds
+
# witih this many milliseconds
 
Delay = 500
 
Delay = 500
 +
IgnoreModels = codeswitchX, testX
 +
IgnoreDevices = S1,S3
  
# It's not uncommon to pick up sensors from your neighbourhood, these can be ignored with
 
IgnoreModels = codeswitchX
 
IgnoreDevices = 4,33,263
 
  
[51]
+
[501]
 
Type=Motion sensor
 
Type=Motion sensor
Desc=Motion sensor in patio
+
Desc = Motion sensor
Delay=950
+
Delay = 950
  
[52]
+
[502]
 
Type=Wall switch
 
Type=Wall switch
Desc=Wall switch media room, left of window
+
Desc = Wall switch media room, left of window
 +
 
  
 
###################################################################
 
###################################################################
Line 116: Line 114:
 
MaxWait=300
 
MaxWait=300
  
# Section of sensor devices. Device id is prepended with an "S" to make it unique
+
[S2-temp]
[S331]
+
Desc=Outdoor sensor garage (temp + hum)
Desc=Sensor garage (temp + hum)
+
Offset=-0.8
 
+
[S11]
+
Desc=Sensor entrance (temp)
+
  
 +
[S101-temp]
 +
Desc=Outdoor sensor entrance (temp + hum) Oregon
 
</pre>
 
</pre>
  

Revision as of 16:58, 4 February 2016

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:

 deb http://download.telldus.com/debian/ stable main

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

More info

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

Personal tools