Closed roanvn closed 9 months ago
Please share your card config. Are you using three phase? Have you set invert_grid: true? Please share you sensor value grid_ct_power_172:
type: custom:sunsynk-power-flow-card cardstyle: full card_height: 450 panel_mode: false show_solar: true Large_font: false decimal_places: 2 solar: mppts: 2 show_daily: true max_power: 4100 pv1_name: North pv2_name: North auto_scale: true inverter: modern: true colour: black auto_scale: true model: sunsynk battery: energy: 15960 shutdown_soc: 20 show_daily: true battery_temp: true inverter_ac_temp: true inverter_dc_temp: true auto_scale: true load: show_daily: true show_aux: 'no' invert_aux: 'no' aux_name: Generator aux_type: gen grid: show_daily_buy: true show_nonessential: true invert_grid: 'no' nonessential_dual: 'no' nonessential_name: Non Essential nonessential_icon: oven nonessential_power: sensor.niewie_inverter_sunsynk_nonessential_power additional_loads: 0 load1_name: GeyserBo load2_name: GyeserFlat non_essential_load1: sensor.power non_essential_load2: sensor.power_2 max_power: 5000 auto_scale: true three_phase: false entities: inverter_voltage_154: sensor.niewie_inverter_sunsynk_inverter_voltage load_frequency_192: sensor.niewie_inverter_sunsynk_inverter_frequency inverter_current_164: sensor.niewie_inverter_sunsynk_inverter_current inverter_power_175: sensor.niewie_inverter_sunsynk_inverter_power grid_power_169: sensor.niewie_inverter_sunsynk_grid_ld_power_167 battery_voltage_183: sensor.niewie_inverter_sunsynk_battery_voltage battery_soc_184: sensor.niewie_inverter_sunsynk_battery_soc battery_power_190: sensor.niewie_inverter_sunsynk_battery_power battery_current_191: sensor.niewie_inverter_sunsynk_battery_current grid_ct_power_172: sensor.niewie_inverter_sunsynk_grid_ct_power grid_connected_status_194: binary_sensor.niewie_inverter_sunsynk_grid_connected_status inverter_status_59: sensor.niewie_inverter_sunsynk_overall_state pv1_power_186: sensor.niewie_inverter_sunsynk_pv1_power pv2_power_187: sensor.niewie_inverter_sunsynk_pv2_power pv1_voltage_109: sensor.niewie_inverter_sunsynk_pv1_voltage pv1_current_110: sensor.niewie_inverter_sunsynk_pv1_current pv2_voltage_111: sensor.niewie_inverter_sunsynk_pv2_voltage pv2_current_112: sensor.niewie_inverter_sunsynk_pv2_current day_pv_energy_108: sensor.niewie_inverter_sunsynk_day_pv_energy day_battery_charge_70: sensor.niewie_inverter_sunsynk_day_battery_charge day_battery_discharge_71: sensor.niewie_inverter_sunsynk_day_battery_discharge day_load_energy_84: sensor.niewie_inverter_sunsynk_day_load_energy day_grid_import_76: sensor.niewie_inverter_sunsynk_day_grid_import use_timer_248: sensor.current_use_timer_248 priority_load_243: sensor.energy_mode_243 essential_power: sensor.niewie_inverter_sunsynk_essential_power aux_power_166: none
I don't use three phase. the card do not accept the invert_grid: true configuration value.
Hi
You have some mistakes in your card configuration. For a full list of options please read the documentation https://slipx06.github.io/sunsynk-power-flow-card/configuration.html
Just quickly looking the following is wrong:
show_aux: 'no'
invert_aux: 'no'
invert_grid: 'no'
nonessential_dual: 'no'
Should be changed to:
show_aux: false
invert_aux: false
invert_grid: false
additional_loads: 0
Also three_phase: false
should be moved to the inverter section
A negative value is a withdrawal from the distribution network. If I set invert_grid: false , the value is displayed correctly, but the dot animation works in reverse.
grid: colour: '#00bfff' export_colour: '#fffacd' show_daily_buy: true show_daily_sell: true no_grid_colour: '#a40013' show_nonessential: true invert_grid: true auto_scale: true nonessential_name: null essential_name: null nonessential_icon: oven additional_loads: 3 load1_name: Myčka load2_name: Lednice load3_name: Pračka load1_icon: mdi:dishwasher load2_icon: mdi:fridge load3_icon: mdi:washing-machine animation_speed: 8 max_power: 8000 energy_cost_decimals: 1
No. By default a positive value is expected for grid import. If your sensor provides a negative value you need to set invert_grid: true
See below
invert_grid: | Optional | false | Set to true if your sensor provides a negative number for grid import and positive number for grid export
I have invert_grid: true set But the value on the card shows a positive value On the active_power_total sensor it shows a negative value
it's alright?
Yes that's by design and what the invert setting does. The card is working as expected.
Hi
You have some mistakes in your card configuration. For a full list of options please read the documentation https://slipx06.github.io/sunsynk-power-flow-card/configuration.html
Just quickly looking the following is wrong:
show_aux: 'no' invert_aux: 'no' invert_grid: 'no' nonessential_dual: 'no'
Should be changed to:
show_aux: false invert_aux: false invert_grid: false additional_loads: 0
Also
three_phase: false
should be moved to the inverter section
Thank you slipx06. It is now working nicely.
Thank you for your help.
Is there an existing issue for this?
Current Behavior
grid_ct_power_172: "The value on HA is positive (on DB), but it shows negative on the flow card. This happened after upgrading to the latest version
Steps To Reproduce
No response
Expected behaviour
the value need to be positive and show trickle feed value when not importing from the grid
Card Version
3.16.1
Home Assistant Version
2023.11.3
Configuration
No response
Relevant log output
No response