odya / hass-ina219-ups-hat

Home Assistant UPS Hat integration. Waveshare and others based on INA219
MIT License
11 stars 2 forks source link

Battery capacity? #10

Closed rmtucker closed 2 months ago

rmtucker commented 4 months ago

Hi The battery capacity is unclear to me. If i am using 2 x 18650,With 3000mah rating each,what do i set in the config? sensor:

tiimsvk commented 4 months ago

simply 2x 3000mAh = 6000

rmtucker commented 4 months ago

simply 2x 3000mAh = 6000

That is the strange thing as the capacity is still 3000mah as the batteries are in series. Or is there something in the code dividing battery_capacity / batteries_count. This is what i don't understand?

tiimsvk commented 4 months ago

parallel connection 2x3000mAh if they are in series then 1x3000mAh the difference is voltage 3.6 or 7.2V

odya commented 2 months ago

Hi The battery capacity is unclear to me. If i am using 2 x 18650,With 3000mah rating each,what do i set in the config? sensor:

  • platform: ina219_ups_hat name: Hassio UPS # Optional unique_id: hassio_ups # Optional scan_interval: 60 # Optional batteries_count: 3 # Optional max_soc: 91 # Optional battery_capacity: 9000 # Optional sma_samples: 5 # Optional

Because i have seen that without setting battery_capacity that it will not run,even though it says optional.

batteries_count: 2
battery_capacity: 6000