0.0.12 Include all coil values in homeassistant status output
This commit is contained in:
parent
0f081fe5fd
commit
193cfede8d
|
@ -22,7 +22,7 @@ import (
|
|||
var static embed.FS
|
||||
|
||||
var (
|
||||
version = "0.0.11"
|
||||
version = "0.0.12"
|
||||
pingvin pingvinKL.PingvinKL
|
||||
DEBUG *bool
|
||||
INTERVAL *int
|
||||
|
|
|
@ -70,6 +70,7 @@ type pingvinStatus struct {
|
|||
DaysUntilService int `json:"days_until_service"` // Days until next filter service
|
||||
Uptime string `json:"uptime"` // Unit uptime
|
||||
SystemTime string `json:"system_time"` // Time and date in unit
|
||||
Coils []pingvinCoil `json:"coils"`
|
||||
}
|
||||
|
||||
type PingvinLogger struct {
|
||||
|
@ -469,6 +470,7 @@ func (p *PingvinKL) populateStatus() {
|
|||
// TODO: Alarms, n of alarms
|
||||
p.Status.DaysUntilService = p.Registers[538].Value / p.Registers[538].Multiplier
|
||||
// TODO: Uptime & date in separate functions
|
||||
p.Status.Coils = p.Coils
|
||||
}
|
||||
|
||||
func parseStatus(value int) string {
|
||||
|
|
Loading…
Reference in New Issue