Skip to content

Tellstick Binding ​

This is an openHAB binding for Tellstick devices produced by Telldus, a Swedish company based in Lund.

The original Tellstick focused on controlling 433 MHz devices like switches, dimmers and reading sensors from different brands. Many of the supported devices are cheaper and "low-end" and support has been made by reverse engineering the transmission protocols. All of these 433 MHz devices are one-way, so some versions of the Tellstick monitor the air to keep the state of all devices.

The latest versions have also implemented Z-Wave as a transmission protocol which opens up for more robust transmission due to two-way communication.

Tellstick Duo device

Tellstick ZNet device

Supported Things ​

This binding supports the following Thing types:

  • Dimmable Device - Usually for controlling lamps. dimmer
  • Switchable Device - On/Off only could be lamps or other electronic equipment. switch
  • Sensors - Temperature- and humidity-sensors. sensor

Additionally the binding have two types of bridge things which correspond to available API types:

  • Telldus Core Bridge - Oldest API, used by USB devices. telldus-core
  • Telldus Live Bridge - Telldus Cloud service, all devices with online access. telldus-live
  • Telldus Local Bridge - Telldus Local API, Tellstick Net v2/Tellstick ZNet Lite v1/v2. telldus-local

Switchbased sensors workaround ​

  • Some 433MHz magnetic & PIR sensors, for example, magnetic door sensors, are detected as regular switch Things instead of type contact. There is technically no way to distinguish them apart from regular switch Things. For using them as sensors only (not paired to a lamp) please consult the workaround in the channel section.

Discovery ​

Devices which are added to Telldus Core, Telldus Live and Telldus Local can be discovered by openHAB.

When you add this binding it will try to discover the Telldus Core Bridge. If it is installed correctly its devices will show up.

If you want to use the Telldus Live or Telldus Local, their bridges, Telldus Live bridge or Tellstick Local, needs to be added manually.

Binding Configuration ​

The binding itself requires no configuration.

Thing Configuration ​

Only the bridges require manual configuration. It is preferable that devices and sensors are discovered automatically; let the discovery initially configure them.

Dimmers & switches ​

There is an option to override the resend count of the commands. Use the option repeat for that. Default resend count is 2.

Bridges ​

Depending on your Tellstick device type there is different ways of using this binding. The binding implements three different APIs: 1) Telldus Core which is a local only interface supported by USB based device.
2) Telldus Live which is a REST based cloud service maintained by Telldus. 3) Telldus Local which is a REST based local service maintained by Telldus.

Depending on your Tellstick model, different bridge-types are available:

ModelTelldus CoreTelldus LiveLocal REST APIVerified working with openHAB
Tellstick BasicXXX
Tellstick DuoXXX
Tellstick Net v.1XX
Tellstick Net v.2XX
Tellstick ZNet Lite v.1XXX
Tellstick ZNet Lite v.2XX

Telldus Core Bridge ​

To enable communication between openHAB and tellstick-core service (Telldus center) they must use same architecture, eg. 32-bit or 64-bit. The supplied version from Telldus is compiled against 32-bit architecture. Therefore, it is better to use 32-bit java for openHAB. To check which version of Java is currently in use, run: java -d32 -version

For changing architecture in Linux check out: dpkg --add-architecture

The telldus-core bridge uses a library on the local computer which is a .dll file for Windows and a .so file for Linux. The default one is usually correct.

dsl
Bridge tellstick:telldus-core:1 "Tellstick Duo" [resendInterval=200,libraryPath="C:/Program Files/Telldus/;C:/Program Files (x86)/Telldus/"]

Optional:

  • libraryPath: The path to tellduscore.dll/so semicolon separated list of folders.
  • resendInterval: The interval between each transmission of command in ms, default 100ms.

Telldus Live Bridge ​

To configure Telldus Live you have request OAuth tokens from Telldus. Goto this page https://pa-api.telldus.com/keys/index and request your keys and update the config.

dsl
Bridge tellstick:telldus-live:2 "Tellstick ZWave" [publicKey="XXX", privateKey="YYYY", token= "ZZZZ", tokenSecret="UUUU"]

Required:

  • privateKey: Private key
  • publicKey: Public key
  • token: Token
  • tokenSecret: Token secret

Optional:

  • refreshInterval: How often we should contact Telldus Live to check for updates (in ms)

Telldus Local Bridge ​

To configure Telldus Local you need to know the local IP address of your Tellstick device and also request an access token.

Goto this page: https://tellstick-server.readthedocs.io/en/latest/api/authentication.html and follow steps 1), 2) and 3) to generate an access token.

In step 2) when you authenticate the application in your favorite browser, choose the options '1 year' and 'Auto renew access'.

Copy the 'token' returned in Step 3) and use that as accessToken in the local bridge config.

text
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImF1ZCI6IkV4YW1wbGUgYXBwIiwiZXhwIjoxNDUyOTUxNTYyfQ.eyJyZW5ldyI6dHJ1ZSwidHRsIjo4NjQwMH0.HeqoFM6-K5IuQa08Zr9HM9V2TKGRI9VxXlgdsutP7sg"
dsl
Bridge tellstick:telldus-local:3 "Tellstick Local ZWave" [ipAddress="x.y.z.w" , accesToken= "XYZ...W"]

NOTE: This binding does not automatically update the the token, even if 'Auto renew access' is chosen in step 2) above. This has to be done manually at least once a year, as described in the 'Refreshing a token' section in the above page.

Required:

  • ipAddress: Local IP address of your Tellstick device
  • accessToken: Access Token

Optional:

  • refreshInterval: How often we should contact Telldus Local to check for updates (in ms)

Channels ​

Actuators (dimmer/switch) support the following channels:

Channel Type IDItem TypeDescription
dimmerNumberThis channel indicates the current dim level
stateSwitchThis channel indicates whether a device is turned on or off.
timestampDateTimeThis channel reports the last time this device state changed.

Sensors (sensor) support the following channels:

Channel Type IDItem TypeDescription
humidityNumber:DimensionlessThis channel reports the current humidity in percentage.
temperatureNumber:TemperatureThis channel reports the current temperature.
timestampDateTimeThis channel reports the last time this sensor was updated.

PowerSensors ([powersensor]) support the following channels:

Channel Type IDItem TypeDescription
wattNumber:PowerThis channel reports the current watt.
ampereNumber:ElectricCurrentThis channel reports the current ampere.
timestampDateTimeThis channel reports the last time this sensor was updated.

WindSensors ([windsensor]) support the following channels:

Channel Type IDItem TypeDescription
windgustNumber:SpeedThe current peak wind gust.
winddirectionNumber:AngleThe current wind direction.
windaverageNumber:SpeedThe current wind average.

RainSensors ([rainsensor]) support the following channels:

Channel Type IDItem TypeDescription
rainrateNumber:LengthThe current rate of rain.
raintotalNumber:LengthThe total rain.

Switchbased sensor workaround ​

All switchbased sensors are binary and the goal is to represent them as a contact item in openHAB. Eg. a door is open or closed and can't be altered by sending a radio signal. To achieve that we will create a proxy item which is updated by a rule.

First create another proxy item for every sensor:

dsl
Switch front_door_sensor    "Front door"  <door>  {channel="tellstick:switch:1:7:state"}
Contact front_door_proxy    "Front door"  <door>

Then create a rule which updates the proxy item:

rules
rule "proxy_front_door_on"
when
    Item front_door_sensor changed to ON
then
    front_door_proxy.postUpdate(OPEN);
end

rule "proxy_front_door_off"
when
    Item front_door_sensor changed to OFF
then
    front_door_proxy.postUpdate(CLOSED);
end

Full Example ​

tellstick.things ​

dsl
Bridge tellstick:telldus-core:1 "Tellstick Duo" [resendInterval=200] {
    dimmer BedroomCeilingLamp1 [protocol="arctech",model="selflearning-dimmer",name="BedroomCeilingLamp1",deviceId="8"]
    switch LivingTV [protocol="arctech",name="LivingTV",deviceId="5"]
    sensor OutsideSensor1 [protocol="fineoffset",model="temperaturehumidity",name="temperaturehumidity:125",deviceId="125_temperaturehumidity_fineoffset"]
}
Bridge tellstick:telldus-live:2 "Tellstick ZWave" [refreshInterval=10000, publicKey="XXXXXXXX", privateKey="YYYYYY", token= "ZZZZZZZZ", tokenSecret="UUUUUUUUUU"] {
    sensor OutsideSensor2 [protocol="fineoffset",model="temperaturehumidity",name="temperaturehumidity:120",deviceId="120_temperaturehumidity_fineoffset"]
}
Bridge tellstick:telldus-local:3 "Tellstick Local ZWave" [ipAddress="192.168.50.17" , accesToken= "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImF1ZCI6IkV4YW1wbGUgYXBwIiwiZXhwIjoxNDUyOTUxNTYyfQ.eyJyZW5ldyI6dHJ1ZSwidHRsIjo4NjQwMH0.HeqoFM6-K5IuQa08Zr9HM9V2TKGRI9VxXlgdsutP7sg"] {
    sensor OutsideSensor3 [protocol="fineoffset",model="temperaturehumidity",name="temperaturehumidity:120",deviceId="120_temperaturehumidity_fineoffset"]
}

tellstick.items ​

dsl
Number OutsideSensor1_Temperture <temperature> { channel="tellstick:sensor:tellstickgateway:OutsideSensor1:temperature"}
Number OutsideSensor1_Humidity <humidity> { channel="tellstick:sensor:tellstickgateway:OutsideSensor1:humidity"}

Switch LivingTV_Power <screen> { channel="tellstick:switch:tellstickgateway:LivingTV:switch"}
Dimmer BedroomCeilingLamp1_Brightness <lightbulb> { channel="tellstick:dimmer:tellstickgateway:BedroomCeilingLamp1:dimmer"}