Skip to content

'f.lux'-like app for Ikea Tradfri white spectrum smart bulbs and gateway.

Notifications You must be signed in to change notification settings

evan-burke/tradfri-lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

39431f6 · Feb 27, 2020

History

67 Commits
Dec 2, 2018
Jul 22, 2018
Jan 16, 2019
Jan 11, 2018
Mar 25, 2018
Dec 16, 2017
Jan 11, 2018
Sep 18, 2018
Dec 2, 2018
Jul 22, 2018
Feb 27, 2020
Dec 3, 2018
Jan 16, 2019

Repository files navigation

tradfri-lights

'f.lux'-like app for Ikea Tradfri white spectrum smart bulbs and gateway.

Files:

tradfri.py is the main package handling light control & transition logic.

light-schedule.py is a wrapper for tradfri.py which provides command line argument parsing, and defines a mapping of friendly device names to HomeAssistant IDs. Cronjobs will call this script to initiate state transitions.

lights-auto.py is a utility run on your primary Windows machine in the office where lights are located. During daytime, it will transition lights to 'daytime' state based on mouse/keyboard activity. This is required because lights can't transition state when there's no power to them, so turning power on to the lights won't automatically set them in a state which was sent to the hub while they were off.

automations.yaml is an example HomeAssistant automation triggered by lights-auto.py.

monitor.py is a debugging script to show details of state transitions as they happen.

About

'f.lux'-like app for Ikea Tradfri white spectrum smart bulbs and gateway.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published