Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Wh units as integer #538

Open
1 task done
roumano opened this issue Oct 27, 2024 · 0 comments
Open
1 task done

Show Wh units as integer #538

roumano opened this issue Oct 27, 2024 · 0 comments
Labels
type/bug Something isn't working

Comments

@roumano
Copy link

roumano commented Oct 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When i'm autonomous, i'm consumming very little from the grid (and inject on the grid) very little and early on the morning, the load of the hours is less than 1 kWh.

It's "cosmetic" bug i would like to see integer instead of float value when it's show in Wh units ( So 620 Wh instead of 620.0 Wh actually )

Screenshot_20241027_085431_Home Assistant

Steps To Reproduce

No response

Expected behaviour

Print Wh units as integer will result in same precision of kWh with round(1)

Card Version

V5.3.0

Home Assistant Version

2024.10.3

Configuration

type: custom:sunsynk-power-flow-card
cardstyle: compact
show_solar: true
battery:
  shutdown_soc: number.victron_multiplus_min_soc
  show_daily: true
  invert_power: true
  dynamic_colour: true
  show_remaining_energy: true
  animate: true
  linear_gradient: true
  show_absolute: false
  auto_scale: true
  energy: 15000
  max_power: 5000
solar:
  show_daily: true
  mppts: 1
  pv1_max_power: 5600
  auto_scale: true
  max_power: 5600
  dynamic_colour: true
  efficiency: 1
  pv1_name: " "
load:
  show_daily: true
  load1_icon: ""
  dynamic_icon: false
  invert_load: false
  max_power: 7000
  dynamic_colour: true
grid:
  show_daily_buy: true
  show_daily_sell: true
  show_nonessential: false
  load1_icon: ""
  load2_icon: ""
  load3_icon: ""
  import_icon: mdi:transmission-tower
  export_icon: mdi:transmission-tower
  auto_scale: true
entities:
  battery_power_190: sensor.victron_battery_power
  battery_current_191: sensor.victron_battery_current
  day_pv_energy_108: sensor.victron_pv_yeld_today
  pv1_power_186: sensor.victron_pv_power
  pv2_current_112: sensor.sunsynk_pv2_current
  pv1_current_110: sensor.victron_pv_battery_current
  pv1_voltage_109: sensor.victron_pv_voltage
  remaining_solar: sensor.solcast_pv_forecast_forecast_remaining_today
  environment_temp: sensor.detecteur_porte_d_entree_temperature
  battery_temp_182: sensor.victron_battery_temperature
  battery_voltage_183: sensor.victron_battery_voltage
  battery_soc_184: sensor.victron_battery_soc
  battery_rated_capacity: sensor.victron_battery_full_capacity
  inverter_status_59: sensor.victron_inverter_state
  inverter_voltage_154: sensor.ac_grid_voltage
  load_frequency_192: sensor.victron_ac_grid_frequency
  inverter_power_175: null
  grid_power_169: sensor.victron_multiplus_power_from_grid
  prog1_charge: switch.victron_system_schedule_charge_hc
  prog2_time: input_datetime.cerbo_schedule_2_heure_de_demarrage
  prog1_capacity: number.victron_multiplus_battery_schedule_soc_limit
  prog2_capacity: number.victron_multiplus_battery_schedule_2_soc_limit
  prog2_charge: switch.victron_system_schedule_2_activer
  grid_voltage: sensor.zlinky_urms1
  grid_ct_power_172: sensor.victron_multiplus_power
  use_timer_248: switch.victron_system_schedule_charge_hc
  day_grid_import_76: sensor.energy_from_grid_daily
  day_grid_export_77: sensor.energy_to_grid_daily
  day_battery_charge_70: sensor.energy_to_battery_daily
  day_battery_discharge_71: sensor.energy_from_battery_daily
  day_load_energy_84: sensor.energy_to_home_daily
  load_power_L1: null
  essential_power: sensor.victron_ac_consumption
show_grid: true
inverter:
  model: victron
  autarky: power
  modern: false
show_battery: true
large_font: true
panel_mode: true
decimal_places: 1
dynamic_line_width: true

Relevant log output

No response

@roumano roumano added the type/bug Something isn't working label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant