Zaptec: add rfid (#20010)
This commit is contained in:
parent
6e8761ebba
commit
db910804d9
2 changed files with 13 additions and 0 deletions
|
|
@ -300,6 +300,18 @@ func (c *Zaptec) Phases1p3p(phases int) error {
|
|||
return err
|
||||
}
|
||||
|
||||
var _ api.Identifier = (*Zaptec)(nil)
|
||||
|
||||
// Identify implements the api.Identifier interface
|
||||
func (c *Zaptec) Identify() (string, error) {
|
||||
res, err := c.statusG.Get()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return res.ObservationByID(zaptec.ChargerCurrentUserUuid).ValueAsString, nil
|
||||
}
|
||||
|
||||
var _ api.Diagnosis = (*Zaptec)(nil)
|
||||
|
||||
// Diagnosis implements the api.ChargePhases interface
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ products:
|
|||
- brand: Zaptec
|
||||
description:
|
||||
generic: Go, Pro
|
||||
capabilities: ["rfid"]
|
||||
requirements:
|
||||
evcc: ["sponsorship"]
|
||||
params:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue