kellerza / sunsynk

Deye/Sunsynk Inverter Python library and Home Assistant OS Addon
https://kellerza.github.io/sunsynk/
MIT License
209 stars 88 forks source link

Set battery_max_charge_current based on a template value #209

Open kamransaleem opened 10 months ago

kamransaleem commented 10 months ago

Existing sensor definitions can be found here

Sunsynk

Details about your Inverter: 8 kw

Describe the issue/bug and what you expect

I'd like to set the based on the following template value battery_max_charge_current, so that during the 6 hour charge window the rate of charge is set based on the remaining battery level.

{{ (((100 - (states('sensor.sunsynk_battery_soc') | float))/100 9.2)/61000/48) | round }}

It looks like this is currently only set using a fixed number?

Logs (if applicable)


paste logs in 3x backticks...
kamransaleem commented 10 months ago

any thoughts on this issue?

kellerza commented 9 months ago

You can do this with an automation

make the automation to trigger every x minutes and then set the value based on the template