sunsynk icon indicating copy to clipboard operation
sunsynk copied to clipboard

Set battery_max_charge_current based on a template value

Open kamransaleem opened this issue 2 years ago • 2 comments

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)/6*1000/48) | round }}

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

Logs (if applicable)


paste logs in 3x backticks...

kamransaleem avatar Nov 22 '23 18:11 kamransaleem

any thoughts on this issue?

kamransaleem avatar Nov 30 '23 10:11 kamransaleem

You can do this with an automation

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

kellerza avatar Dec 09 '23 06:12 kellerza