feat(bitshake): track exported energy
All checks were successful
Build / build (push) Successful in 4m15s
All checks were successful
Build / build (push) Successful in 4m15s
This commit is contained in:
parent
7b2129c8de
commit
b72605185b
1 changed files with 2 additions and 0 deletions
|
@ -64,11 +64,13 @@ defmodule WeewxProxy.Modbus.Deye do
|
||||||
|
|
||||||
timestamp = DateTime.utc_now() |> DateTime.to_unix()
|
timestamp = DateTime.utc_now() |> DateTime.to_unix()
|
||||||
day = get_in(meter_data, ["eBZ", "E_in"])
|
day = get_in(meter_data, ["eBZ", "E_in"])
|
||||||
|
day_export = get_in(meter_data, ["eBZ", "E_out"])
|
||||||
active = get_in(meter_data, ["eBZ", "Power"])
|
active = get_in(meter_data, ["eBZ", "Power"])
|
||||||
|
|
||||||
mqtt_data = %{
|
mqtt_data = %{
|
||||||
dateTime: timestamp,
|
dateTime: timestamp,
|
||||||
homeEnergyDay: day,
|
homeEnergyDay: day,
|
||||||
|
homeEnergyExportDay: day_export,
|
||||||
homeEnergyActive: active
|
homeEnergyActive: active
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue