Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPollInterval = 30 * time.Second
View Source
const DriverName = "shelly-trv"
Variables ¶
View Source
var Factory driver.Factory = factory{}
Functions ¶
func DataToAirTemperature ¶
func DataToAirTemperature(data ThermostatData) *traits.AirTemperature
Types ¶
type TRV ¶
type TRV struct {
Data *concurrent.Value[ThermostatData]
// contains filtered or unexported fields
}
func (*TRV) ClearTargetTemperature ¶
type ThermostatData ¶
type ThermostatData struct {
Position float64 `json:"pos"`
TargetTemperature struct {
Enabled bool `json:"enabled"`
Value float64 `json:"value"`
Units string `json:"units"`
} `json:"target_t"`
Temperature struct {
Value float64 `json:"value"`
Units string `json:"units"`
IsValid bool `json:"is_valid"`
} `json:"tmp"`
Schedule bool `json:"schedule"`
ScheduleProfile int `json:"schedule_profile"`
}
Click to show internal directories.
Click to hide internal directories.