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

Set battery_max_charge_current based on a template value #209

Open
kamransaleem opened this issue Nov 22, 2023 · 2 comments
Open

Set battery_max_charge_current based on a template value #209

kamransaleem opened this issue Nov 22, 2023 · 2 comments

Comments

@kamransaleem
Copy link

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 kamransaleem changed the title Settery battery_max_charge_current based on a template value Set battery_max_charge_current based on a template value Nov 23, 2023
@kamransaleem
Copy link
Author

any thoughts on this issue?

@kellerza
Copy link
Owner

kellerza commented Dec 9, 2023

You can do this with an automation

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants