Versions in this module Expand all Collapse all v1 v1.0.0 Apr 4, 2018 Changes in this version + type APIError struct + Address string + Description string + Type int + func (a *APIError) Error() string + func (a *APIError) UnmarshalJSON(data []byte) error + type APIResponse struct + Error *APIError + Success map[string]interface{} + type AutoInstall struct + On bool + UpdateTime string + type Backup struct + ErrorCode int + Status string + type Bridge struct + Host string + ID string + User string + func Discover() (*Bridge, error) + func DiscoverAll() ([]Bridge, error) + func New(h, u string) *Bridge + func (b *Bridge) CreateGroup(g Group) (*Response, error) + func (b *Bridge) CreateResourcelink(s *Resourcelink) (*Response, error) + func (b *Bridge) CreateRule(s *Rule) (*Response, error) + func (b *Bridge) CreateScene(s *Scene) (*Response, error) + func (b *Bridge) CreateSchedule(s *Schedule) (*Response, error) + func (b *Bridge) CreateSensor(s *Sensor) (*Response, error) + func (b *Bridge) CreateUser(n string) (string, error) + func (b *Bridge) DeleteGroup(i int) error + func (b *Bridge) DeleteLight(i int) error + func (b *Bridge) DeleteResourcelink(i int) error + func (b *Bridge) DeleteRule(i int) error + func (b *Bridge) DeleteScene(id string) error + func (b *Bridge) DeleteSchedule(i int) error + func (b *Bridge) DeleteSensor(i int) error + func (b *Bridge) DeleteUser(n string) error + func (b *Bridge) FindLights() (*Response, error) + func (b *Bridge) FindSensors() (*Response, error) + func (b *Bridge) GetCapabilities() (*Capabilities, error) + func (b *Bridge) GetConfig() (*Config, error) + func (b *Bridge) GetFullState() (*Datastore, error) + func (b *Bridge) GetGroup(i int) (*Group, error) + func (b *Bridge) GetGroups() ([]Group, error) + func (b *Bridge) GetLight(i int) (*Light, error) + func (b *Bridge) GetLights() ([]Light, error) + func (b *Bridge) GetNewLights() (*NewLight, error) + func (b *Bridge) GetNewSensors() (*NewSensor, error) + func (b *Bridge) GetResourcelink(i int) (*Resourcelink, error) + func (b *Bridge) GetResourcelinks() ([]*Resourcelink, error) + func (b *Bridge) GetRule(i int) (*Rule, error) + func (b *Bridge) GetRules() ([]*Rule, error) + func (b *Bridge) GetScene(i string) (*Scene, error) + func (b *Bridge) GetScenes() ([]Scene, error) + func (b *Bridge) GetSchedule(i int) (*Schedule, error) + func (b *Bridge) GetSchedules() ([]*Schedule, error) + func (b *Bridge) GetSensor(i int) (*Sensor, error) + func (b *Bridge) GetSensors() ([]Sensor, error) + func (b *Bridge) GetUsers() ([]Whitelist, error) + func (b *Bridge) Login(u string) *Bridge + func (b *Bridge) RecallScene(id string, gid int) (*Response, error) + func (b *Bridge) SetGroupState(i int, l State) (*Response, error) + func (b *Bridge) SetLightState(i int, l State) (*Response, error) + func (b *Bridge) SetSceneLightState(id string, iid int, l *State) (*Response, error) + func (b *Bridge) UpdateConfig(c *Config) (*Response, error) + func (b *Bridge) UpdateGroup(i int, l Group) (*Response, error) + func (b *Bridge) UpdateLight(i int, light Light) (*Response, error) + func (b *Bridge) UpdateResourcelink(i int, resourcelink *Resourcelink) (*Response, error) + func (b *Bridge) UpdateRule(i int, rule *Rule) (*Response, error) + func (b *Bridge) UpdateScene(id string, s *Scene) (*Response, error) + func (b *Bridge) UpdateSchedule(i int, schedule *Schedule) (*Response, error) + func (b *Bridge) UpdateSensor(i int, sensor *Sensor) (*Response, error) + func (b *Bridge) UpdateSensorConfig(i int, c interface{}) (*Response, error) + type BridgeConfig struct + LastInstall string + State string + type Capabilities struct + Groups *Capability + Lights *Capability + Resourcelinks *Capability + Rules *Capability + Scenes *Capability + Schedules *Capability + Sensors *Capability + Streaming *Capability + type Capability struct + Available int + type Command struct + Address string + Body interface{} + Method string + type Condition struct + Address string + Operator string + Value string + type Config struct + APIVersion string + BridgeID string + DatastoreVersion string + Dhcp bool + FactoryNew bool + Gateway string + IPAddress string + InternetService *InternetService + LinkButton bool + LocalTime string + Mac string + ModelID string + Name string + NetMask string + PortalServices bool + PortalState *PortalState + ProxyAddress string + ProxyPort uint16 + ReplacesBridgeID string + StarterKitID string + SwUpdate *SwUpdate + SwUpdate2 *SwUpdate2 + SwVersion string + TimeZone string + UTC string + Whitelist []Whitelist + WhitelistMap map[string]Whitelist + ZigbeeChannel uint8 + type Datastore struct + Config *Config + Groups []Group + Lights []Light + Rules []Rule + Scenes []Scene + Schedules []Schedule + Sensors []Sensor + type DeviceTypes struct + Bridge bool + Lights []Light + Sensors []Sensor + type Group struct + Class string + GroupState *GroupState + ID int + Lights []string + Name string + Recycle bool + State *State + Type string + func (g *Group) Alert(new string) error + func (g *Group) Bri(new uint8) error + func (g *Group) Ct(new uint16) error + func (g *Group) Effect(new string) error + func (g *Group) Hue(new uint16) error + func (g *Group) IsOn() bool + func (g *Group) Off() error + func (g *Group) On() error + func (g *Group) Rename(new string) error + func (g *Group) Sat(new uint8) error + func (g *Group) Scene(scene string) error + func (g *Group) SetState(s State) error + func (g *Group) TransitionTime(new uint16) error + func (g *Group) Xy(new []float32) error + type GroupState struct + AllOn bool + AnyOn bool + type InternetService struct + Internet string + RemoteAccess string + SwUpdate string + Time string + type Light struct + ID int + ManufacturerName string + ModelID string + Name string + ProductID string + State *State + SwConfigID string + SwVersion string + Type string + UniqueID string + func (l *Light) Alert(new string) error + func (l *Light) Bri(new uint8) error + func (l *Light) Ct(new uint16) error + func (l *Light) Effect(new string) error + func (l *Light) Hue(new uint16) error + func (l *Light) IsOn() bool + func (l *Light) Off() error + func (l *Light) On() error + func (l *Light) Rename(new string) error + func (l *Light) Sat(new uint8) error + func (l *Light) SetState(s State) error + func (l *Light) TransitionTime(new uint16) error + func (l *Light) Xy(new []float32) error + type NewLight struct + LastScan string + Lights []string + type NewSensor struct + LastScan string + Sensors []*Sensor + type PortalState struct + Communication string + Incoming bool + Outgoing bool + SignedOn bool + type Resourcelink struct + ClassID uint16 + Description string + ID int + Links []string + Name string + Owner string + Type string + type Response struct + Success map[string]interface{} + type Rule struct + Actions []*RuleAction + Conditions []*Condition + CreationTime string + ID int + LastTriggered string + Name string + Owner string + Status string + TimesTriggered int + type RuleAction struct + Address string + Body interface{} + Method string + type Scene struct + AppData interface{} + ID string + LastUpdated string + LightStates map[int]State + Lights []string + Locked bool + Name string + Owner string + Picture string + Recycle bool + StoreSceneState bool + Version int + func (s *Scene) Recall(id int) error + type Schedule struct + AutoDelete bool + Command *Command + Description string + ID int + LocalTime string + Name string + StartTime string + Status string + Time string + type Sensor struct + Config interface{} + ID int + ManufacturerName string + ModelID string + Name string + State interface{} + SwVersion string + Type string + type State struct + Alert string + Bri uint8 + BriInc int + ColorMode string + Ct uint16 + CtInc int + Effect string + Hue uint16 + HueInc int + On bool + Reachable bool + Sat uint8 + SatInc int + Scene string + TransitionTime uint16 + Xy []float32 + XyInc int + type SwUpdate struct + CheckForUpdate bool + DeviceTypes *DeviceTypes + Notify bool + Text string + URL string + UpdateState uint8 + type SwUpdate2 struct + AutoInstall *AutoInstall + Bridge *BridgeConfig + CheckForUpdate bool + Install bool + LastChange string + LastInstall string + State string + type Whitelist struct + CreateDate string + LastUseDate string + Name string + Username string