Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MobileDevices ¶
type MobileDevices map[int]tado.MobileDevice
func (MobileDevices) LogValue ¶
func (m MobileDevices) LogValue() slog.Value
type TadoGetter ¶
type TadoGetter interface { GetWeatherInfo(context.Context) (tado.WeatherInfo, error) GetMobileDevices(context.Context) ([]tado.MobileDevice, error) GetZones(context.Context) (tado.Zones, error) GetZoneInfo(context.Context, int) (tado.ZoneInfo, error) GetHomeState(ctx context.Context) (homeState tado.HomeState, err error) }
type TadoPoller ¶
type TadoPoller struct { TadoClient TadoGetter *pubsub.Publisher[Update] // contains filtered or unexported fields }
func New ¶
func New(tadoClient TadoGetter, interval time.Duration, logger *slog.Logger) *TadoPoller
func (*TadoPoller) Refresh ¶
func (p *TadoPoller) Refresh()
type Update ¶
type Update struct { WeatherInfo tado.WeatherInfo Zones map[int]tado.Zone ZoneInfo map[int]tado.ZoneInfo UserInfo MobileDevices Home IsHome }
func (Update) GetDeviceStatus ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.