Tellstick

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
m (Agocontrol Tellstick service configuration)
(New config file)
Line 86: Line 86:
 
# (only used with StickVersion Net)
 
# (only used with StickVersion Net)
 
SensorPollInterval = 300
 
SensorPollInterval = 300
 +
 +
log_level = INFO
 +
debug = false
  
 
# The rest of this file concern devices that can generate events (like ON/OFF, temperature change, humidity change)
 
# 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.
 
# These devices typically generate an echo.
# To ignore repeated events from the same device witin this many milliseconds:
+
# Ignore repeated events from the same device within this many milliseconds
 
Delay = 500
 
Delay = 500
  
 
# It's not uncommon to pick up sensors from your neighbourhood, these can be ignored with
 
# It's not uncommon to pick up sensors from your neighbourhood, these can be ignored with
IgnoreModels = codeswitch
+
IgnoreModels = codeswitchX
IgnoreDevices = S135,S7,S167
+
IgnoreDevices = 4,33,263
 +
 
 +
[51]
 +
Type=Motion sensor
 +
Desc=Motion sensor in patio
 +
Delay=950
 +
 
 +
[52]
 +
Type=Wall switch
 +
Desc=Wall switch media room, left of window
  
# Per-device override, using Tellstick device ID as section name
+
###################################################################
[201]
+
[Sensors]
Desc=Wall switch in bedroom
+
#How long to wait for a sensor event before asking for a value (seconds)
# Override echo cancellation period
+
MaxWait=300
Delay = 950
+
  
[161]
+
# Section of sensor devices. Device id is prepended with an "S" to make it unique
Ignore = Yes
+
[S331]
 +
Desc=Sensor garage (temp + hum)
  
[7]
+
[S11]
Desc=Temp sensor outdoors
+
Desc=Sensor entrance (temp)
  
 
</pre>
 
</pre>

Revision as of 11:29, 18 January 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

# The rest of this file concern devices that can generate events (like ON/OFF, temperature change, humidity change)

####################################################################
[EventDevices]
# These devices typically generate an echo.
# Ignore repeated events from the same device within this many milliseconds
Delay = 500

# It's not uncommon to pick up sensors from your neighbourhood, these can be ignored with
IgnoreModels = codeswitchX
IgnoreDevices = 4,33,263

[51]
Type=Motion sensor
Desc=Motion sensor in patio
Delay=950

[52]
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

# Section of sensor devices. Device id is prepended with an "S" to make it unique
[S331]
Desc=Sensor garage (temp + hum)

[S11]
Desc=Sensor entrance (temp)

More info

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

Personal tools