feat(bitshake): track exported energy
All checks were successful
Build / build (push) Successful in 4m15s

This commit is contained in:
Daniel Kempkens 2024-08-04 13:05:43 +02:00
parent 7b2129c8de
commit b72605185b
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -64,11 +64,13 @@ defmodule WeewxProxy.Modbus.Deye do
timestamp = DateTime.utc_now() |> DateTime.to_unix()
day = get_in(meter_data, ["eBZ", "E_in"])
day_export = get_in(meter_data, ["eBZ", "E_out"])
active = get_in(meter_data, ["eBZ", "Power"])
mqtt_data = %{
dateTime: timestamp,
homeEnergyDay: day,
homeEnergyExportDay: day_export,
homeEnergyActive: active
}