This is the page where you can find all the functions for the Python module.

If you encounter any error, please create an Issue on GitHub and I’ll look into it!

What is a “<…Instance>”?

A <…Instance> is an instance of the ...() Class.

To create a <…Instance>: (For example here both a <BridgeInstance> and a <LightInstance>)

# First you need to import the PyHue modules
from pyhue import Bridge, Lights

# Then you need to create a <BridgeInstance>!
# Create one like this:
bridge = Bridge()

# alternative with a fixed IP:
bridge = Bridge(ip="<Hue Bridge IP>")

# The variable "bridge" is now a <BridgeInstance>!

# Now you can create a <LightInstance>!
# Create one like this:
light = Lights(bridge, <lightId>)

# The variable "light" is now a <LightInstance>!

# Now you can use commands from the Lights API / Bridge API docs!
# If there is for example a <GroupInstance> you can use the same schema for it as well!
# The same goes for any other <...Instance>!

Important Notices:

Do not expect to get any returns from setters. Python3 Syntax does not allow that! Please do not do something like this:

example = <LightInstance>.power = True
print(example)

# I repeat, do **NOT** do this!

Bridge API

Lights API