3 type reportedControl struct {
4 Settings controlSettings `json:"settings"`
5 CurrentTemperature float64 `json:"current_temperature"`
6 FloorTemperature float64 `json:"floor_temperature"`
7 Action string `json:"action"`
8 Locked bool `json:"locked"`
11 func newReportedControl(state State) reportedControl {
23 return reportedControl{
24 Settings: controlSettings{
26 TargetTemperature: state.TargetTemperature,
28 CurrentTemperature: state.CurrentTemperature,
29 FloorTemperature: state.FloorTemperature,