-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy paththermostat.go
40 lines (29 loc) · 1.1 KB
/
thermostat.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/brutella/hap/characteristic"
)
const TypeThermostat = "4A"
type Thermostat struct {
*S
CurrentHeatingCoolingState *characteristic.CurrentHeatingCoolingState
TargetHeatingCoolingState *characteristic.TargetHeatingCoolingState
CurrentTemperature *characteristic.CurrentTemperature
TargetTemperature *characteristic.TargetTemperature
TemperatureDisplayUnits *characteristic.TemperatureDisplayUnits
}
func NewThermostat() *Thermostat {
s := Thermostat{}
s.S = New(TypeThermostat)
s.CurrentHeatingCoolingState = characteristic.NewCurrentHeatingCoolingState()
s.AddC(s.CurrentHeatingCoolingState.C)
s.TargetHeatingCoolingState = characteristic.NewTargetHeatingCoolingState()
s.AddC(s.TargetHeatingCoolingState.C)
s.CurrentTemperature = characteristic.NewCurrentTemperature()
s.AddC(s.CurrentTemperature.C)
s.TargetTemperature = characteristic.NewTargetTemperature()
s.AddC(s.TargetTemperature.C)
s.TemperatureDisplayUnits = characteristic.NewTemperatureDisplayUnits()
s.AddC(s.TemperatureDisplayUnits.C)
return &s
}