Homewizard p1: add phase measurements (#14822)

This commit is contained in:
Roeland Lutters 2024-07-14 14:07:35 +02:00 • committed by GitHub
parent 28b956eb42
commit 1f1fb1c079
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,3 +61,17 @@ var _ api.MeterEnergy = (*HomeWizard)(nil)
func (c *HomeWizard) TotalEnergy() (float64, error) {
return c.conn.TotalEnergy()
}
var _ api.PhaseCurrents = (*HomeWizard)(nil)
// Currents implements the api.PhaseCurrents interface
func (c *HomeWizard) Currents() (float64, float64, float64, error) {
return c.conn.Currents()
}
var _ api.PhaseVoltages = (*HomeWizard)(nil)
// Voltages implements the api.PhaseVoltages interface
func (c *HomeWizard) Voltages() (float64, float64, float64, error) {
return c.conn.Voltages()
}