Struct philipshue::bridge::Bridge [] [src]

pub struct Bridge { /* fields omitted */ }

The bridge connection

Methods

impl Bridge
[src]

Creates a Bridge on the given IP with the given username

Gets the IP of bridge

Gets the username this Bridge uses

Gets all lights that are connected to the bridge

Gets the light with the specific id

Gets all the light that were found last time a search for new lights was done

Makes the bridge search for new lights (and switches).

The found lights can be retrieved with get_new_lights()

Sets the state of a light by sending a LightCommand to the bridge for this light

Renames the light

Deletes a light from the bridge

Gets all groups of the bridge

Creates a group and returns the ID of the group

Gets extra information about a specific group

Set the name, light and class of a group

Sets the state of all lights in the group.

ID 0 is a sepcial group containing all lights known to the bridge

Deletes the specified group

It's not allowed to delete groups of type LightSource or Luminaire.

Returns detailed information about the configuration of the bridge.

Sets some configuration values.

Deletes the specified user removing them from the whitelist.

Fetches the entire datastore from the bridge.

This is a resource intensive command for the bridge, and should therefore be used sparingly.

Sets the state of lights in the group to the state in the scene

Note that this will affect that are both in the group and in the scene. Using group 0 will set all the lights in the scene, since group 0 is a special group that contains all lights

Gets all scenes of the bridge

Creates a scene on the bridge and returns the ID of the created scene.

Sets general things in the specified scene

Sets the light state of the specified ID that is stored in the scene

Deletes the specified scene

Gets the scene with the specified ID with its lightstates

Trait Implementations

impl Debug for Bridge
[src]

Formats the value using the given formatter.