From f3270f3ff159a317356a8243b6c42b9ca16f932e Mon Sep 17 00:00:00 2001 From: ygelfand Date: Tue, 20 Feb 2024 18:05:14 -0500 Subject: [PATCH] change response name Signed-off-by: ygelfand --- internal/api/strings.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/api/strings.go b/internal/api/strings.go index 2e91eaf..45fda0b 100644 --- a/internal/api/strings.go +++ b/internal/api/strings.go @@ -24,10 +24,10 @@ func parseStrings(c *powerwall.DeviceControllerResponse) map[string]interface{} strings[fmt.Sprintf("B%s_Current", idx)] = inv.PVACLogging.PVACPVCurrentB strings[fmt.Sprintf("C%s_Current", idx)] = inv.PVACLogging.PVACPVCurrentC strings[fmt.Sprintf("D%s_Current", idx)] = inv.PVACLogging.PVACPVCurrentD - strings[fmt.Sprintf("A%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageA - strings[fmt.Sprintf("B%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageB - strings[fmt.Sprintf("C%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageC - strings[fmt.Sprintf("D%s_MeasuredVoltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageD + strings[fmt.Sprintf("A%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageA + strings[fmt.Sprintf("B%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageB + strings[fmt.Sprintf("C%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageC + strings[fmt.Sprintf("D%s_Voltage", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageD strings[fmt.Sprintf("A%s_Power", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageA * inv.PVACLogging.PVACPVCurrentA strings[fmt.Sprintf("B%s_Power", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageB * inv.PVACLogging.PVACPVCurrentB strings[fmt.Sprintf("C%s_Power", idx)] = inv.PVACLogging.PVACPVMeasuredVoltageC * inv.PVACLogging.PVACPVCurrentC