Documentation
¶
Index ¶
Constants ¶
View Source
const (
Channel = "org.codeberg.clambin.proteus.tado"
)
View Source
const ZoneOverlayTerminationTypeNONE = tado.ZoneOverlayTerminationType("NONE")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MobileDevices ¶
type MobileDevices []tado.MobileDevice
func (MobileDevices) GeoTrackedDevices ¶
func (m MobileDevices) GeoTrackedDevices() iter.Seq[tado.MobileDevice]
func (MobileDevices) GetDeviceState ¶
func (m MobileDevices) GetDeviceState(ids ...tado.MobileDeviceId) ([]string, []string)
func (MobileDevices) GetMobileDevice ¶
func (m MobileDevices) GetMobileDevice(deviceName string) (tado.MobileDevice, bool)
func (MobileDevices) LogValue ¶
func (m MobileDevices) LogValue() slog.Value
type Poller ¶
type Poller struct {
Client TadoClient
Logger *slog.Logger
}
type TadoClient ¶
type TadoClient interface {
GetMeWithResponse(ctx context.Context, reqEditors ...tado.RequestEditorFn) (*tado.GetMeResponse, error)
GetZonesWithResponse(ctx context.Context, homeId tado.HomeId, reqEditors ...tado.RequestEditorFn) (*tado.GetZonesResponse, error)
GetZoneStateWithResponse(ctx context.Context, homeId tado.HomeId, zoneId tado.ZoneId, reqEditors ...tado.RequestEditorFn) (*tado.GetZoneStateResponse, error)
GetMobileDevicesWithResponse(ctx context.Context, homeId tado.HomeId, reqEditors ...tado.RequestEditorFn) (*tado.GetMobileDevicesResponse, error)
GetWeatherWithResponse(ctx context.Context, homeId tado.HomeId, reqEditors ...tado.RequestEditorFn) (*tado.GetWeatherResponse, error)
GetHomeStateWithResponse(ctx context.Context, homeId tado.HomeId, reqEditors ...tado.RequestEditorFn) (*tado.GetHomeStateResponse, error)
}
type Update ¶
type Zone ¶
func (Zone) GetTargetTemperature ¶
func (Zone) GetZoneOverlayTerminationType ¶
func (z Zone) GetZoneOverlayTerminationType() tado.ZoneOverlayTerminationType
Click to show internal directories.
Click to hide internal directories.