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

Clarification on Manual Override energy_limit and time_limit #272

Closed
drobtravels opened this issue Nov 14, 2021 · 4 comments
Closed

Clarification on Manual Override energy_limit and time_limit #272

drobtravels opened this issue Nov 14, 2021 · 4 comments

Comments

@drobtravels
Copy link

With the HTTP API, I see manual override supports energy_limit and time_limit properties

I did a few experiments and am unclear how to use this.

  1. What unit is energy_limit in?
  2. What unit is time_limit in?
  3. Can you set both together? It doesn't error if you do this, but I'm unclear on the expected behavior
  4. If a session is already in progress, does this limit apply from now or from session start
  5. I was planning on using this Manual Override API from Home Assistant as the main way to start charging. IE I want Home Assistant when to start charging, and for how long. Is that the intention, or is there a different option I should use?

Thanks!

@drobtravels
Copy link
Author

Oh also, what's the difference between charge_current and max_current?

@jeremypoulter
Copy link
Collaborator

  1. What unit is energy_limit in?
  2. What unit is time_limit in?

Unfortunately, these are not implemented yet, but probably will be seconds. Will probably implement at the same time as #225

  1. Can you set both together? It doesn't error if you do this, but I'm unclear on the expected behavior

TBD, but probably yes and the first limit reached will be the winner and stop the charge

  1. If a session is already in progress, does this limit apply from now or from session start

Will be from the start of the session

  1. I was planning on using this Manual Override API from Home Assistant as the main way to start charging. IE I want Home Assistant when to start charging, and for how long. Is that the intention, or is there a different option I should use?

It kind of depends on your use case, but I would recommend the /claims endpoint, essentially the same, but runs at a lower priority so you can still use the manual override from the GUI/Button to override the Home Assistant behaviour

Oh also, what's the difference between charge_current and max_current?

I am not totally sure that both needed, but charge_current is generally what you should use, max_current is there to dynamically alter the max current in load sharing situations while still allowing things like PV divert to work so the charge current is the minimum of charge_current <= max_current <= configured current (TBD) <= hard coded limit

@drobtravels
Copy link
Author

Thanks for the detailed reply!

Unfortunately, these are not implemented yet, but probably will be seconds.

Ah, that explains the strange results I'm seeing. I thought I had the wrong units. I assume this is also not yet implemented for /claims? So right now charge with time limit can only be done via RAPI?

@jeremypoulter
Copy link
Collaborator

Correct, these can only be set via RAPI, but be warned this will break in a later 4.x release

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

3 participants