sunsynk-power-flow-card
sunsynk-power-flow-card copied to clipboard
Essential shows wrong value
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
My Grid sensor is opposite (negative for import / positive for export) so I setup "invert_grid: true" and this is now showing correctly in the Grid box, but the Essential calculation still consider the wrong value (negative) so it looks like my house is feeding power to inverter which is obviously impossible due to the wrong calculation as explained (see below picture); I think that when I select "invert_grid: true" the formula to calculate essential should consider the opposite value of the sensor so it looks to me like a bug
Steps To Reproduce
No response
Expected behaviour
Expect that when I use "invert_grid: true" the value in the Essential formula will be considered accordingly but it's not
Card Version
5.0.0
Home Assistant Version
2024.9.3
Configuration
type: custom:sunsynk-power-flow-card
cardstyle: full
panel_mode: false
large_font: false
title: Fotovoltaico
title_colour: grey
title_size: 24px
show_solar: true
show_battery: true
show_grid: true
decimal_places: 2
dynamic_line_width: true
min_line_width: 1
max_line_width: 4
inverter:
modern: true
solar:
mppts: 2
show_daily: true
max_power: 5900
battery:
energy: 20000
shutdown_soc: 10
show_daily: true
invert_power: false
colour: green
animation_speed: 6
max_power: 5000
show_absolute: false
auto_scale: true
hide_soc: false
dynamic_colour: true
linear_gradient: true
animate: true
path_threshold: 100
load:
show_daily: true
grid:
show_daily_buy: true
show_nonessential: false
invert_grid: true
entities:
inverter_voltage_154: sensor.ftv_r_phase_inverter_voltage
load_frequency_192: sensor.ftv_r_phase_inverter_frequency
inverter_current_164: sensor.ftv_r_phase_inverter_current
inverter_power_175: sensor.ftv_r_phase_inverter_power
grid_power_169: sensor.ftv_total_grid_power
battery_voltage_183: sensor.ftv_battery_voltage
battery_soc_184: sensor.ftv_battery_soc
battery_power_190: sensor.ftv_battery_power
battery_current_191: sensor.ftv_battery_current
grid_ct_power_172: sensor.ftv_r_phase_grid_power
inverter_status_59: sensor.ftv_inverter_status
pv1_power_186: sensor.ftv_pv1_power
pv2_power_187: sensor.ftv_pv2_power
pv1_voltage_109: sensor.ftv_pv1_voltage
pv1_current_110: sensor.ftv_pv1_current
pv2_voltage_111: sensor.ftv_pv2_voltage
pv2_current_112: sensor.ftv_pv2_current
day_pv_energy_108: sensor.ftv_daily_production
day_battery_charge_70: sensor.ftv_battery_daily_charge
day_battery_discharge_71: sensor.ftv_battery_daily_discharge
day_load_energy_84: sensor.ftv_daily_consumption
day_grid_import_76: sensor.ftv_daily_energy_purchased
Relevant log output
No response