forked from brutella/hc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
humidifier_dehumidifier.go
36 lines (26 loc) · 1.21 KB
/
humidifier_dehumidifier.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
// THIS FILE IS AUTO-GENERATED
package service
import (
"github.com/brutella/hc/characteristic"
)
const TypeHumidifierDehumidifier = "BD"
type HumidifierDehumidifier struct {
*Service
CurrentRelativeHumidity *characteristic.CurrentRelativeHumidity
CurrentHumidifierDehumidifierState *characteristic.CurrentHumidifierDehumidifierState
TargetHumidifierDehumidifierState *characteristic.TargetHumidifierDehumidifierState
Active *characteristic.Active
}
func NewHumidifierDehumidifier() *HumidifierDehumidifier {
svc := HumidifierDehumidifier{}
svc.Service = New(TypeHumidifierDehumidifier)
svc.CurrentRelativeHumidity = characteristic.NewCurrentRelativeHumidity()
svc.AddCharacteristic(svc.CurrentRelativeHumidity.Characteristic)
svc.CurrentHumidifierDehumidifierState = characteristic.NewCurrentHumidifierDehumidifierState()
svc.AddCharacteristic(svc.CurrentHumidifierDehumidifierState.Characteristic)
svc.TargetHumidifierDehumidifierState = characteristic.NewTargetHumidifierDehumidifierState()
svc.AddCharacteristic(svc.TargetHumidifierDehumidifierState.Characteristic)
svc.Active = characteristic.NewActive()
svc.AddCharacteristic(svc.Active.Characteristic)
return &svc
}