HEMS: make Dimmed/Curtailed tri-state (once more) (#30712)
This commit is contained in:
parent
d859ae9c7c
commit
45cab34ce9
10 changed files with 32 additions and 31 deletions
|
|
@ -350,8 +350,8 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
Config: conf.HEMS.Redacted(),
|
||||
YamlSource: yamlSource.hems,
|
||||
Status: struct {
|
||||
Dimmed bool `json:"dimmed"`
|
||||
Curtailed bool `json:"curtailed"`
|
||||
Dimmed *bool `json:"dimmed,omitempty"`
|
||||
Curtailed *bool `json:"curtailed,omitempty"`
|
||||
MaxConsumptionPower float64 `json:"maxConsumptionPower,omitempty"`
|
||||
MaxProductionPower *float64 `json:"maxProductionPower,omitempty"`
|
||||
}{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue