forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
84 lines (80 loc) · 1.53 KB
/
types.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package salia
const (
HeartBeat = "salia/heartbeat"
ChargeMode = "salia/chargemode"
PauseCharging = "salia/pausecharging"
GridCurrentLimit = "grid_current_limit"
)
type Api struct {
Device struct {
ModelName string
SoftwareVersion string `json:"software_version"`
}
Secc Secc
}
type Secc struct {
Port0 Port
}
type Port struct {
Ci struct {
Evse struct {
Basic struct {
OfferedCurrentLimit float64 `json:"offered_current_limit,string"`
}
}
Charge struct {
Cp struct {
Status string
}
}
}
Salia struct {
ChargeMode string
PauseCharging int `json:"pausecharging,string"`
}
Metering struct {
Meter struct {
Type string
Available int `json:",string"`
}
Power struct {
ActiveTotal struct {
Actual float64 `json:",string"`
} `json:"active_total"`
Active struct {
AC struct {
L1 struct {
Actual float64 `json:",string"`
}
L2 struct {
Actual float64 `json:",string"`
}
L3 struct {
Actual float64 `json:",string"`
}
}
}
}
Energy struct {
ActiveImport struct {
Actual float64 `json:",string"`
} `json:"active_import"`
}
Current struct {
AC struct {
L1 struct {
Actual float64 `json:",string"`
}
L2 struct {
Actual float64 `json:",string"`
}
L3 struct {
Actual float64 `json:",string"`
}
}
}
}
EvPresent int `json:"ev_present,string"`
Charging int `json:",string"`
GridCurrentLimit int `json:"grid_current_limit,string"`
}