- 
                Notifications
    You must be signed in to change notification settings 
- Fork 20
Some EV charger pool cleanup and fixes #919
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
Conversation
Signed-off-by: Sahas Subramanian <[email protected]>
Signed-off-by: Sahas Subramanian <[email protected]>
Signed-off-by: Sahas Subramanian <[email protected]>
The EV charger manager has its own task that tracks the status of the EV chargers and redistributes power to them as EVs are connected and disconnected. This approach is specific to the EV charger pool, because the status of the components is dynamic, unlike the BatteryPool and the PVPool. This task needs to run only in locations where there are EV chargers, because it expects that there be at least one EV charger in a location and runs into issues if that's not the case. Signed-off-by: Sahas Subramanian <[email protected]>
The API would reset power back to 0 after an interval only for batteries. For EV chargers and PV inverters, it will not have a reset mechanism. Signed-off-by: Sahas Subramanian <[email protected]>
| Skip release notes because these are internal changes and bugfixes to unreleased features. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the only question is why instantiating a EVChargerManager at all if there are no EV chargers, but I assume you thought about it and have a good reason for it, so I will give the approval anyway, but I'm curious about it.
| 
 It is just that this is where we already have the list of available component IDs.  Otherwise, we'd have to get the component IDs for all component types in the  Also, they are lazily started, so an EVChargerManager or even a PowerDistributor instance is only started when a corresponding call is made to  | 
No description provided.