Page 1 of 1

Lost Grid Consumption - sensor?

Posted: Fri Mar 10, 2023 5:09 pm
by Ched
I'm a bit new to home assistant and have recently had solar pv and battery installed.
I am using a RPi3 and a RS485 to USB converter. I installed StealthChesnut/HA-FoxESS-Modbus and I am getting data no problems. I have also installed the Power Flow Card and it's great to show what's happening. I had it running for about a week then an HA update happened and it all went pear shaped. So I reinstalled from scratch as I hadn't saved a backup off the SD card! That will teach me...

The problem I have is that the 'sensor.grid_consumption' has stopped working - well sort off. It is showing import but not export. The 'grid_consumption_sum' is working correctly.

I am probably doing something wrong but on the Power Flow card I'm using the following code:

Code: Select all

type: custom:power-flow-card
watt_threshold: 999
w_decimals: 0
min_flow_rate: 1.5
max_flow_rate: 6
entities:
  grid: sensor.grid_consumption
  solar: sensor.pv_power_now
  battery:
    consumption: sensor.battery_discharge
    production: sensor.battery_charge
  battery_charge: sensor.battery_soc
title: Live Data
The box on the left on the Power Flow Card (Grid) seems to show import but not export.

Any idea what I have wrong?
Thanks for any help you can offer.

Re: Lost Grid Consumption - sensor?

Posted: Fri Mar 10, 2023 5:58 pm
by Ched
STUPID ME!!!!
I forgot that the Grid is a split entity:
All working now.

Code: Select all

type: custom:power-flow-card
title: Live
watt_threshold: 999
w_decimals: 0
min_flo_rate: 1.5
max_flow_rate: 6
entities:
  grid:
    consumption: sensor.grid_consumption
    production: sensor.feed_in_power
  solar: sensor.pv_power_now
  battery:
    comsumption: sensor.battery_discharge
    production: sensor.battery_charge
  battery_charge: sensor.battery_soc