gurbyz / power-wheel-card

An intuitive way to represent the power and energy that your home is consuming or producing. (A custom card for the Lovelace UI of Home Assistant.)
Apache License 2.0
163 stars 22 forks source link

Off-Grid: Home shows as powering solar panels when values are equal #70

Open eode opened 3 years ago

eode commented 3 years ago

I have read the wiki about what to try first before creating a bug report.

I am running as an off-grid setup, with 'grid' actually showing battery (although it would be nice to have real battery with SOC).

Which version of HA do you use? 0.116.4

Which version of the card do you use? Latest (0.1.5)

Describe the bug Power sometimes shows as flowing from home to solar panels when consumption matches power put out by panels.

Configuration of the card Copy the complete configuration of the card, even if you think it isn't relevant.

type: 'custom:power-wheel-card'
title: Power Flows
solar_power_entity: sensor.classic_power
grid_power_entity: sensor.classic_whizbangbatpower
grid_icon: 'mdi:car-battery'
invert_grid_colors: true
battery_soc_entity: sensor.classic_soc
debug: false

Dev console debug output I'll need to wait until it's occurring again. Currently running off of batteries.

Expected behavior Power flows don't show as going either direction when flows are equal.

Screenshots n/a -- state changed while filing bug report.

Additional context My suspicion is that it occurred on page load, and that since the value didn't become negative or positive relative to home consumption, it just showed the way it was on page load. ..but that's just a guess.

eode commented 3 years ago

Screenshot

eode commented 3 years ago

Also, when the generator is running, this shows the house powering the solar (producing zero) and the solar powering the batteries.

I think the arrow logic should be: