Save sensor values to persistent-state.json
This commit is contained in:
parent
42483df78c
commit
44143c0c2d
2 changed files with 41 additions and 4 deletions
|
@ -54,4 +54,12 @@ type PersistentStateV14 struct {
|
|||
Open bool `json:"open"`
|
||||
LastChange int64 `json:"lastchange"`
|
||||
} `json:"state"`
|
||||
Sensors map[string][]PersistentEnvironmentSensor `json:"sensors"`
|
||||
}
|
||||
|
||||
type PersistentEnvironmentSensor struct {
|
||||
Value float64 `json:"value"`
|
||||
Location string `json:"location"`
|
||||
Name string `json:"name"`
|
||||
LastChange int64 `json:"lastchange"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue