Documentation ¶
Index ¶
- type Gw
- func (g *Gw) Start()
- func (g *Gw) StartAvailabilityPublishing(ctx context.Context)
- func (g *Gw) StartDataUpdate(ctx context.Context)
- func (g *Gw) StartDiscoveryPublishing(ctx context.Context)
- func (g *Gw) StartGateway(ctx context.Context, healthboxClient *healthbox.Client, ...)
- func (g *Gw) StartHaRestartHandler(client *homeassistant.Client)
- func (g *Gw) Stop()
- func (g *Gw) String() string
- func (g *Gw) UpdateCurrentData(currentData *healthbox.CurrentData)
- func (g *Gw) UpdateRoomsBoostStatus()
- type HaDevice
- func (d *HaDevice) GetCommandTopic() string
- func (d *HaDevice) GetSensorAvailabilityTopic() string
- func (d *HaDevice) GetSensorStateTopic() string
- func (d *HaDevice) GetSwitchAvailabilityTopic() string
- func (d *HaDevice) GetSwitchStateTopic() string
- func (d *HaDevice) PublishAvailability()
- func (d *HaDevice) PublishBoostSwitchDiscovery()
- func (d *HaDevice) PublishFlowSensorDiscovery()
- func (d *HaDevice) PublishSensorState()
- func (d *HaDevice) PublishState()
- func (d *HaDevice) PublishSwitchState()
- func (d *HaDevice) SetBoost(newBoostState bool)
- func (d *HaDevice) SetState(newState string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gw ¶
type Gw struct {
// contains filtered or unexported fields
}
func (*Gw) StartAvailabilityPublishing ¶
func (*Gw) StartDataUpdate ¶
func (*Gw) StartDiscoveryPublishing ¶
func (*Gw) StartGateway ¶
func (*Gw) StartHaRestartHandler ¶
func (g *Gw) StartHaRestartHandler(client *homeassistant.Client)
func (*Gw) UpdateCurrentData ¶
func (g *Gw) UpdateCurrentData(currentData *healthbox.CurrentData)
func (*Gw) UpdateRoomsBoostStatus ¶
func (g *Gw) UpdateRoomsBoostStatus()
type HaDevice ¶
type HaDevice struct { HealthboxRoomId int Name string SensorUniqueId string SwitchUniqueId string Identifiers string State string Unit string Boost healthbox.BoostInfo // contains filtered or unexported fields }
func (*HaDevice) GetCommandTopic ¶
func (*HaDevice) GetSensorAvailabilityTopic ¶
func (*HaDevice) GetSensorStateTopic ¶
func (*HaDevice) GetSwitchAvailabilityTopic ¶
func (*HaDevice) GetSwitchStateTopic ¶
func (*HaDevice) PublishAvailability ¶
func (d *HaDevice) PublishAvailability()
func (*HaDevice) PublishBoostSwitchDiscovery ¶
func (d *HaDevice) PublishBoostSwitchDiscovery()
func (*HaDevice) PublishFlowSensorDiscovery ¶
func (d *HaDevice) PublishFlowSensorDiscovery()
func (*HaDevice) PublishSensorState ¶
func (d *HaDevice) PublishSensorState()
func (*HaDevice) PublishState ¶
func (d *HaDevice) PublishState()
func (*HaDevice) PublishSwitchState ¶
func (d *HaDevice) PublishSwitchState()
Click to show internal directories.
Click to hide internal directories.