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.

Trait Implementations

impl Debug for Bridge
[src]

Formats the value using the given formatter.