power-flow-card-plus
power-flow-card-plus copied to clipboard
[BUG] line incorrect when charging battery from grid, no solar.
Describe the bug Charging the battery from the grid shows energy going from grid to load instead of grid to battery.
To Reproduce Steps to reproduce the behavior:
- Force charge battery
Expected behavior Line should go from grid to load AND grid to battery
Screenshots
Browser Console Errors No error
Desktop (please complete the following information): N/A
Smartphone (please complete the following information): N/A
Additional context I believe this was working fine in 1.7. Haven't gone back to retest that.
Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.
-
[X] I understand that this is a channel for reporting bugs, not a support forum (If you need help configuring the card, go to: Discussions).
-
[X] I have the latest version of the card installed.
-
[X] I have cleared my browser cache after installing, updating and configuring the card.
-
[X] The issue is not related to the UI-Editor not being rendered: "s.entries is not a function". This is a known bug, and is caused by Card Mod. Check the warning this readme section for more information on how to fix it.
type: custom:power-flow-card-plus
entities:
battery:
entity:
consumption: sensor.battery_discharge
production: sensor.battery_charge
state_of_charge: sensor.battery_soc
display_zero_tolerance: 15
grid:
entity:
consumption: sensor.grid_consumption
production: sensor.feed_in
display_zero_tolerance: 35
solar:
entity: sensor.pv_power
display_zero_state: true
display_zero_tolerance: 10
home:
entity: sensor.load_power
override_state: true
clickable_entities: true
display_zero_lines:
mode: hide
transparency: 50
grey_color:
- 189
- 189
- 189
use_new_flow_rate_model: true
w_decimals: 0
kw_decimals: 1
min_flow_rate: 0.75
max_flow_rate: 3
max_expected_power: 4500
min_expected_power: 0.01
watt_threshold: 1000
transparency_zero_lines: 0
title: Realtime Power
Hi,
I am also facing the same bug:
https://github.com/flixlix/power-flow-card-plus/assets/113230724/68a98536-fe00-402d-964a-53e64799855e
For me it never activates the line going to the battery when charging from solar. I'm not using the "Display zero tolerance"
I think that first you should have the sensor that represents the correct value of power coming from the grid going into the battery and vv. But how to distinguish which part of the total grid power that is? And at daytime when there is solar power going into the battery as well? Using solaredge-modbus-multi myself I don't see the sensors needed to make a correct calculation. Maybe someone else is able to shine a light on this subject?
I have a Tesla Powerwall and just noticed this exact scenario happening when using the default Tesla Powerwall sensors for this card. When the batteries charge from the grid, it's showing a line from the grid to the house, but not to the batteries. However, the bottom number indicates that the batteries are charging despite the missing line.
Here's a visual right now where the two entities are not connected.
Here's my configuration (UPDATE _ for some reason entering this as code is not maintaining the spacing...):
type: custom:power-flow-card-plus entities: battery: state_of_charge: sensor.powerwall_charge_actual entity: sensor.powerwall_battery_now display_state: one_way_no_zero display_zero_tolerance: 20 grid: entity: sensor.powerwall_site_now power_outage: entity: binary_sensor.grid_status state_alert: 'off' secondary_info: template: '{{ states(''sensor.site_energy_usage_daily'') | round(1) }} kWh' display_state: one_way_no_zero color_circle: true use_metadata: false display_zero_tolerance: 99 solar: entity: sensor.powerwall_solar_now display_zero_state: true use_metadata: false display_zero_tolerance: 10 secondary_info: template: '{{ states(''sensor.solar_production_daily'') | round(1) }} kWh' home: entity: sensor.powerwall_load_now secondary_info: template: '{{ states(''sensor.load_energy_import_daily'') | round(1) }} kWh' individual1: entity: sensor.emporiavue2_total_fcsp_power icon: mdi:car-pickup secondary_info: unit_of_measurement: '%' entity: sensor.bluey_battery_level name: Bluey calculate_flow_rate: true display_zero: true individual2: entity: sensor.direct_wire_indoor_outdoor_smart_switch_electric_production_w secondary_info: entity: sensor.dayman_battery_level unit_of_measurement: '%' icon: mdi:car-sports name: DayMan color_icon: false calculate_flow_rate: true show_direction: false inverted_animation: false color_value: false display_zero: true display_zero_state: false fossil_fuel_percentage: icon: mdi:home-export-outline display_zero_state: false display_zero: true name: Export state_type: power secondary_info: template: '{{ states(''sensor.solar_energy_exported_to_dte'') | round(1) }} kWh' display_zero_tolerance: 0 unit_white_space: true entity: sensor.powerwall_site_export clickable_entities: true display_zero_lines: mode: hide transparency: 50 grey_color: - 189 - 189 - 189 use_new_flow_rate_model: true w_decimals: 0 kw_decimals: 1 min_flow_rate: 0.75 max_flow_rate: 6 max_expected_power: 2000 min_expected_power: 0.01 watt_threshold: 1000 transparency_zero_lines: 0
Update 2 - however, it appears if there is solar generation at the same time, the line between the grid and battery appears when actively charging.
And if you let it go for a while?
The difference in the pictures above is the solar input. To test I set the inverter Power Limit to 0% to disable solar input and after a few seconds the flow line from grid to the battery disappears.
Anyone find a workaround?
I've started messing with creating new sensors to separate out the battery sensor from Powerwall into two, but I've only so far been able to show it sending power the wrong direction from the battery to the house, when in fact it's charging from the grid. I'm missing something here.
Odd,
I have a great line going from grid to battery when charging.
Screen recording 2023-11-28 18.43.56.webm
type: custom:power-flow-card-plus
entities:
battery:
entity: sensor.apf_battery_entity
state_of_charge: sensor.gateway_battery
invert_state: true
color_icon: true
color_circle: true
display_state: one_way
state_of_charge_unit_white_space: false
color_state_of_charge_value: true
display_zero_tolerance: 100
grid:
entity: sensor.apf_grid_entity
invert_state: true
display_zero_tolerance: 150
display_state: one_way
color_icon: true
color_circle: true
use_metadata: false
secondary_info:
entity: sensor.solaredge_imported_energy
unit_of_measurement: kWh
icon: ''
color_value: false
unit_white_space: true
display_zero: true
solar:
entity: sensor.apf_generation_entity
display_zero_state: false
color_value: true
color_icon: true
invert_state: false
use_metadata: false
secondary_info:
display_zero: true
entity: sensor.apf_generation_entity_energy_daily
unit_of_measurement: kWh
color_value: true
home:
entity: sensor.apf_real_house_load
color_icon: true
color_value: true
secondary_info:
entity: sensor.apf_house_entity_energy_daily
unit_of_measurement: kWh
color_value: true
display_zero: true
override_state: false
individual2:
entity: sensor.ev_charging
secondary_info:
entity: sensor.m3p_battery
unit_of_measurement: '%'
color_value: true
template: >-
{{states('sensor.m3p_battery') + '% ' + states('sensor.my_battery')
+'%'}}
display_zero: true
color_value: true
color_icon: true
display_zero_state: false
calculate_flow_rate: true
display_zero_tolerance: 50
show_direction: false
inverted_animation: false
name: EV x2
icon: mdi:car-2-plus
color:
- 79
- 158
- 79
individual1:
entity: sensor.hvac_power
name: HVAC
icon: mdi:hvac
secondary_info:
unit_of_measurement: kWh
template: ''
color_value: true
unit_white_space: true
decimals: 0
display_zero: true
display_zero_tolerance: 5
entity: sensor.heating_cooling_daily
color_icon: true
color_value: true
color:
- 64
- 121
- 255
display_zero: true
display_zero_state: false
calculate_flow_rate: false
inverted_animation: false
use_metadata: false
display_zero_tolerance: 200
fossil_fuel_percentage:
display_zero: false
color_icon: true
display_zero_state: false
display_zero_tolerance: 1
color_value: true
use_metadata: false
clickable_entities: true
display_zero_lines:
mode: hide
transparency: 50
grey_color:
- 189
- 189
- 189
use_new_flow_rate_model: true
w_decimals: 0
kw_decimals: 1
transparency_zero_lines: 0
min_expected_power: 1000
max_expected_power: 10000
max_flow_rate: 10
min_flow_rate: 1
Odd,
I have a great line going from grid to battery when charging.
Screen.recording.2023-11-28.18.43.56.webm
type: custom:power-flow-card-plus entities: battery: entity: sensor.apf_battery_entity state_of_charge: sensor.gateway_battery invert_state: true color_icon: true color_circle: true display_state: one_way state_of_charge_unit_white_space: false color_state_of_charge_value: true display_zero_tolerance: 100 grid: entity: sensor.apf_grid_entity invert_state: true display_zero_tolerance: 150 display_state: one_way color_icon: true color_circle: true use_metadata: false secondary_info: entity: sensor.solaredge_imported_energy unit_of_measurement: kWh icon: '' color_value: false unit_white_space: true display_zero: true solar: entity: sensor.apf_generation_entity display_zero_state: false color_value: true color_icon: true invert_state: false use_metadata: false secondary_info: display_zero: true entity: sensor.apf_generation_entity_energy_daily unit_of_measurement: kWh color_value: true home: entity: sensor.apf_real_house_load color_icon: true color_value: true secondary_info: entity: sensor.apf_house_entity_energy_daily unit_of_measurement: kWh color_value: true display_zero: true override_state: false individual2: entity: sensor.ev_charging secondary_info: entity: sensor.m3p_battery unit_of_measurement: '%' color_value: true template: >- {{states('sensor.m3p_battery') + '% ' + states('sensor.my_battery') +'%'}} display_zero: true color_value: true color_icon: true display_zero_state: false calculate_flow_rate: true display_zero_tolerance: 50 show_direction: false inverted_animation: false name: EV x2 icon: mdi:car-2-plus color: - 79 - 158 - 79 individual1: entity: sensor.hvac_power name: HVAC icon: mdi:hvac secondary_info: unit_of_measurement: kWh template: '' color_value: true unit_white_space: true decimals: 0 display_zero: true display_zero_tolerance: 5 entity: sensor.heating_cooling_daily color_icon: true color_value: true color: - 64 - 121 - 255 display_zero: true display_zero_state: false calculate_flow_rate: false inverted_animation: false use_metadata: false display_zero_tolerance: 200 fossil_fuel_percentage: display_zero: false color_icon: true display_zero_state: false display_zero_tolerance: 1 color_value: true use_metadata: false clickable_entities: true display_zero_lines: mode: hide transparency: 50 grey_color: - 189 - 189 - 189 use_new_flow_rate_model: true w_decimals: 0 kw_decimals: 1 transparency_zero_lines: 0 min_expected_power: 1000 max_expected_power: 10000 max_flow_rate: 10 min_flow_rate: 1
Could it be that my sensors are coming from a Tesla Powerwall and that's why I'm only seeing Grid to Battery WHEN there's solar production?