From 064044008a73a3f51147c792d6f878e8d0330571 Mon Sep 17 00:00:00 2001 From: DomAtHome Date: Tue, 22 Nov 2022 20:16:37 +0100 Subject: [PATCH] Update input unit for total energy for Sharky 774 The meter is sending the total energy in MJ. --- src/driver_sharky774.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver_sharky774.cc b/src/driver_sharky774.cc index c177430..6a0c94f 100644 --- a/src/driver_sharky774.cc +++ b/src/driver_sharky774.cc @@ -59,7 +59,7 @@ MeterSharky774::MeterSharky774(MeterInfo &mi, DriverInfo &di) : MeterCommonImpl PrintProperty::JSON | PrintProperty::FIELD | PrintProperty::IMPORTANT, "The total energy consumption recorded by this meter.", SET_FUNC(total_energy_consumption_kwh_, Unit::KWH), - GET_FUNC(total_energy_consumption_kwh_, Unit::KWH)); + GET_FUNC(total_energy_consumption_kwh_, Unit::MJ)); addNumericFieldWithExtractor( "total_volume",