Skip to content

ethulhu/catbus-lifx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catbus Lifx

Control Lifx bulbs using Catbus, a home automation framework built around MQTT.

MQTT Topics

The control of each parameter of the bulb is split into its own topic:

  • power, either on or off.
  • hue, in degrees, from 0 to 359.
  • saturation, as a percentage, from 0 to 100.
  • brightness, as a percentage, from 0 to 100.
  • kelvin, the color temperature, from 2500 to 9000.

Configuration

The bridge is configured with a JSON file, containing:

  • the broker host & port.
  • one or more lights, where a light defines:
  • its Lifx bulb label.
  • its topics for each of power, hue, saturation, brightness, and kelvin.

For example,

{
	"broker_host": "home-server.local",
	"broker_port": 1883,
	"lights": [
		{
			"bulb_label":       "Bedside Lamp",

			"topic_power":      "home/bedroom/bedside/power",
			"topic_hue":        "home/bedroom/bedside/hue_degrees",
			"topic_saturation": "home/bedroom/bedside/saturation_percent",
			"topic_brightness": "home/bedroom/bedside/saturation_percent",
			"topic_kelvin":     "home/bedroom/bedside/kelvin"
		}
	]
}

About

Control Lifx bulbs using MQTT.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published