Zaptec: add rfid (#20010)

This commit is contained in:
premultiply 2025-03-23 11:40:41 +01:00 • committed by GitHub
parent 6e8761ebba
commit db910804d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -3,6 +3,7 @@ products:
- brand: Zaptec
description:
generic: Go, Pro
capabilities: ["rfid"]
requirements:
evcc: ["sponsorship"]
params: