balazsgrill/wscgo

View on GitHub
devices/thermostat.go

Summary

Maintainability
A
0 mins
Test Coverage
package devices

type ThermostatRange struct {
    Min  float64
    Max  float64
    Step float64
}

type IThermostat interface {
    Device

    TemperatureRange() ThermostatRange
    SetTargetTemperature(float64)
    TargetTemperature() ISensor
    Temperature() ISensor
}