forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
topics.go
61 lines (47 loc) · 1.38 KB
/
topics.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
package openwb
import "time"
// predefined openWB topic names
const (
Timeout = 15 * time.Second
HeartbeatInterval = 10 * time.Second // loadpoint only client heartbeat
// root topic
RootTopic = "openWB"
// alive
TimestampTopic = "Timestamp"
// status
PluggedTopic = "boolPlugStat"
ChargingTopic = "boolChargeStat"
ConfiguredTopic = "boolChargePointConfigured"
// getter/setter
EnabledTopic = "ChargePointEnabled"
MaxCurrentTopic = "AConfigured" // was DirectChargeAmps
PhasesTopic = "U1p3p"
RfidTopic = "rfid"
// charge power
ChargePowerTopic = "W"
ChargeTotalEnergyTopic = "kWhCounter"
// vehicle
VehicleSocTopic = "Soc"
// general measurements
PowerTopic = "W"
SocTopic = "%Soc"
CurrentTopic = "APhase" // 1..3
// configuration
PvConfigured = "boolPVConfigured"
BatteryConfigured = "boolHouseBatteryConfigured"
// loadpoint only topics
// TODO cleanup after https://github.com/snaptec/openWB/issues/1757
// openWB/set/isss/heartbeat
// openWB/set/isss/ClearRfid
// openWB/set/isss/Cpulp1
// openWB/set/isss/Current
// openWB/set/isss/Lp2Current
// openWB/set/isss/U1p3p
// openWB/set/isss/U1p3pLp2
SlaveSetter = "set/isss"
SlaveHeartbeatTopic = "heartbeat"
SlaveChargeCurrentTopic = "Current"
SlavePhasesTopic = "U1p3p"
SlaveClearRfidTopic = "ClearRfid"
SlaveCPInterruptTopic = "Cpulp1"
)