0.1.22 • Published 4 years ago

pimatic-tradfri v0.1.22

Weekly downloads
82
License
GPL-2.0
Repository
github
Last release
4 years ago

pimatic-tradfri

build status version downloads license

This plugin provides a tradfri interface for pimatic.

IMPORTANT: This plugin needs at least gateway version 1.2.42 !

Features

  • Discover devices, groups, and scenes
  • Tradfri Hub as presence device available
  • Control lights
  • Control groups
  • Observe changes
  • Scenes/moods per Group
  • Action providers for all features
  • All bulbs are supported (RGB / color temperature)

Installation

Just activate the plugin in your pimatic config. The plugin manager automatically installs the package with his dependencies.

Software dependencies

This plugin depends on tradfri-coapdtls.

Configuration

You can load the plugin by adding following in the "plugins" section in config.json from your pimatic server:

You only need the security id which is backside of the gateway (i.e. Security Code) and the gateway's IP address. At startup the plugin discovers the gateway.

{
  "plugin": "tradfri",
  "secID": "GATEWAY KEY",
  "hubIP": "GATEWAY IP"
}

Configuration after discovery.

{
  "plugin": "tradfri",
  "secID": "GATEWAY KEY",
  "hubIP": "GATEWAY IP",
  "identity": "",
  "psk": "",
  "debug": true
}

Usages

Install the tradfri gateway in your network and make an normal initialization over the trafri smartphone app. If wanted with groups.

After the lights are paired with the gateway, go to the pimatic screen and make an autodiscover.

Actions

set color temp \ to \ (0-100)
set color rgb \ to \<#0011ff> (rgb value in hex with leading hash )

Note that you can also use the standard pimatic actions for dimmers, sensors and switches.
See https://pimatic.org/guide/usage/rules/ for examples.

Example: dim \ to \

NOTES

The first connection to the gateway creates a session key. This key with a uniq identifier is automatically stored in the configuration file. If you have problems with your connection, remove the psk from the config.

Sometimes the Tradfri Gatway doesn't inform the observers about new devices states. I think that the stability of the gateway in newer firmware versions is improved.

If you press the power button of the 5-button remote, the remote toggles the group. So if the lights are not syncron, the lights will change the state not in same way.

ToDoList

  • firmware updates

ChangeLog

-> see CHANGELOG


Credits

0.1.23

4 years ago

0.1.22

5 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago