Skip to content

A library and command line tool to control the Ikea Tradfri smart home gateway and bulbs.

Notifications You must be signed in to change notification settings

barnybug/go-tradfri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-tradfri

A library and command line tool to control the Ikea Tradfri smart home gateway and bulbs.

Installation

$ go get github.com/barnybug/go-tradfri/cmd/tradfri

Usage

$ tradfri help

The first time you run you'll need to provide the gateway key (on the underside of the gateway):

$ tradfri --gateway 192.168.10.123 --key <KEY> info

After the first run, a shared key is generated, so --key is no longer required.

Search for devices:

$ tradfri --gateway 192.168.10.123 devices

Switch a bulb on 50% brightness:

$ tradfri --gateway 192.168.10.123 set --id 65536 --level 50

Search for groups:

$ tradfri --gateway 192.168.10.123 groups

Switch a group on 50% brightness:

$ tradfri --gateway 192.168.10.123 set --id 131072 --level 50

Credits

About

A library and command line tool to control the Ikea Tradfri smart home gateway and bulbs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages