-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: Add engine dimmer with bypass #71
Conversation
78b9b07
to
449a86e
Compare
@ghisch I did update the behavior of your engine, but it should still work the same. Can you let me know that I didn't introduce regression and tell me if from your point of view the code is ready to be merged in main? What changed ?
To do before merge
engine:
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
file: solar_router/engine_progressive_with_bypass.yaml
ref: feat/engine_progressive_with_bypass
refresh: 1d
|
Hey 👋 Sorry but I'm able to see 3 regressions so far
I see you moved all the engine logic to the
Much more cleaner indeed 👍
I don't feel it's necessary because this is the kind of things you "set and forget", I don't know how much overhead it adds but I feel it's negligable so nice to have
Having sensors by default in HA is cleaner indeed 👍
I would sill let something to be able to expose the controls of the different regulators for advanced users or to debug. |
…te bypass if 100% is requested
I just push some update and I think I fixed the issue you found while you were testing them... Regression 1 is fixed : moving the router level, when the router is deactivated, is now allowed.
Yes because I feel that it is easier for debugging to have the logic in only one location. And I think that with this architecture, it could be possible to move the
In theory, everything is exposed now...
Good point, I'll do it.
Definitively... I had a look long time ago but didn't find an obvious solution (and I gave up to concentrate on other features) |
Regression 1 is still present on last commit. My dimmer opening stays at 0 if I set router_level to 50 with Solar Routing disabled. (see Regression 5)
Regression 3 is fixed. My relay activates when router_level is set to 100 with Solar Routing disabled New bug detected:
In the one hand, I agree and like the fact that all logic is defined in the script. It's cleaner, easier to understand if everything is at the same place. IMO it's better to apply new logic when a state changes, not every second. Otherwise you would have to trigger you script on some value change, but your script is in mode
Values are exposed through the sensors, but the raw controls of regulators are not. For my use-case, I'd like to be able to switch on bypass relay outside of router logic, so there's no safety_limit, no energy counting, no LED feedback etc.
I don't know if it will change anything but I see there's a |
Do you see regulator opening changing? In fact, I don't have the hardware to fully tests it... so I did consider that is
In this case, is the triac conduct when level is less than 100%? Or do we face regression 5?
I would say, no, it is not more complex since you can follow what happen sequentially. So yes, there is more code here, I think it will be easier to maintain. I would like also to migrate the LED management in common, like this, we don't have to manage it in engine itself. But this will come later.
OK, I understand. It makes sense to have such an option. So let's keep it. (and, later, add where it could be missing)
|
The physical TRIAC always stays disabled (at 0). The sensor
Same answer as before. Physical TRIAC opening is never (ever) changed, it is always at 0. In the screenshot you can see the regulator_opening is at 0 too in this case.
Yes yes 👍 |
@ghisch OK, I think I fix the behavior of the engine. Can you, please, confirm I didn't miss something? |
Did some quick tests and everything seems fixed indeed 👍 |
b6e298a
to
192c6c1
Compare
192c6c1
to
0830f23
Compare
No description provided.