gateway

package
v0.0.0-...-26c62bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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) Start

func (g *Gw) Start()

func (*Gw) StartAvailabilityPublishing

func (g *Gw) StartAvailabilityPublishing(ctx context.Context)

func (*Gw) StartDataUpdate

func (g *Gw) StartDataUpdate(ctx context.Context)

func (*Gw) StartDiscoveryPublishing

func (g *Gw) StartDiscoveryPublishing(ctx context.Context)

func (*Gw) StartGateway

func (g *Gw) StartGateway(ctx context.Context, healthboxClient *healthbox.Client, mqttClient *homeassistant.Client)

func (*Gw) StartHaRestartHandler

func (g *Gw) StartHaRestartHandler(client *homeassistant.Client)

func (*Gw) Stop

func (g *Gw) Stop()

func (*Gw) String

func (g *Gw) String() string

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 (d *HaDevice) GetCommandTopic() string

func (*HaDevice) GetSensorAvailabilityTopic

func (d *HaDevice) GetSensorAvailabilityTopic() string

func (*HaDevice) GetSensorStateTopic

func (d *HaDevice) GetSensorStateTopic() string

func (*HaDevice) GetSwitchAvailabilityTopic

func (d *HaDevice) GetSwitchAvailabilityTopic() string

func (*HaDevice) GetSwitchStateTopic

func (d *HaDevice) GetSwitchStateTopic() string

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()

func (*HaDevice) SetBoost

func (d *HaDevice) SetBoost(newBoostState bool)

func (*HaDevice) SetState

func (d *HaDevice) SetState(newState string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL