Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadZoneRules ¶ added in v0.15.0
func LoadZoneRules(cfg configuration.ZoneConfiguration, update poller.Update, logger *slog.Logger) (rules.Rules, error)
Types ¶
type AutoAwayRule ¶
type AutoAwayRule struct {
// contains filtered or unexported fields
}
func LoadAutoAwayRule ¶ added in v0.15.0
func LoadAutoAwayRule(id int, name string, cfg configuration.AutoAwayConfiguration, update poller.Update, logger *slog.Logger) (AutoAwayRule, error)
type HomeAwayRule ¶ added in v0.15.0
type HomeAwayRule struct {
// contains filtered or unexported fields
}
func LoadHomeAwayRule ¶ added in v0.15.0
type LimitOverlayRule ¶
type LimitOverlayRule struct {
// contains filtered or unexported fields
}
func LoadLimitOverlay ¶ added in v0.15.0
func LoadLimitOverlay(id int, name string, cfg configuration.LimitOverlayConfiguration, _ poller.Update, logger *slog.Logger) (LimitOverlayRule, error)
type NightTimeRule ¶
type NightTimeRule struct { GetCurrentTime func() time.Time // contains filtered or unexported fields }
func LoadNightTime ¶ added in v0.15.0
func LoadNightTime(id int, name string, cfg configuration.NightTimeConfiguration, _ poller.Update, logger *slog.Logger) (NightTimeRule, error)
type State ¶ added in v0.15.0
type State struct {
// contains filtered or unexported fields
}
type TadoSetter ¶
type TadoSetter interface { }
Click to show internal directories.
Click to hide internal directories.