Cfos: add wakeup (#12033)
This commit is contained in:
parent
5627f57ebb
commit
589da6fa57
1 changed files with 15 additions and 6 deletions
|
|
@ -11,12 +11,13 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
cfosRegRelaySelect = 8087 // Holding
|
||||
cfosRegStatus = 8092 // Holding
|
||||
cfosRegMaxCurrent = 8093 // Holding
|
||||
cfosRegEnable = 8094 // Holding
|
||||
cfosRegLastRfid = 8096 // Holding
|
||||
cfosRegSolarEnabled = 8113 // Holding
|
||||
cfosRegDisconnectCp = 8086
|
||||
cfosRegRelaySelect = 8087
|
||||
cfosRegStatus = 8092
|
||||
cfosRegMaxCurrent = 8093
|
||||
cfosRegEnable = 8094
|
||||
cfosRegLastRfid = 8096
|
||||
cfosRegSolarEnabled = 8113
|
||||
)
|
||||
|
||||
// CfosPowerBrain is an charger implementation for cFos PowerBrain wallboxes.
|
||||
|
|
@ -149,6 +150,14 @@ func (wb *CfosPowerBrain) phases1p3p(phases int) error {
|
|||
return err
|
||||
}
|
||||
|
||||
var _ api.Resurrector = (*CfosPowerBrain)(nil)
|
||||
|
||||
// WakeUp implements the api.Resurrector interface
|
||||
func (wb *CfosPowerBrain) WakeUp() error {
|
||||
_, err := wb.conn.WriteSingleRegister(cfosRegDisconnectCp, uint16(5))
|
||||
return err
|
||||
}
|
||||
|
||||
var _ api.Identifier = (*CfosPowerBrain)(nil)
|
||||
|
||||
// Identify implements the api.Identifier interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue