-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support miniumum and maxiumum run time #80
base: main
Are you sure you want to change the base?
Conversation
This is the first step in addressing InventoCasa#32 This patch adds support to monitor the total daily runtime of appliances and prints the information to the user. Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Alistair Francis <alistair@alistair23.me>
remove on_time_counter
This reverts commit a852602.
Fine with me |
@alistair23 I have been running this for a couple of days, and I notice an issue with your control algorithm that is using instant power consumption to estimate remaining power for the day ( introduced in 0220d25) : Basically this triggers the appliance to turn on as soon as there is a sudden consumption peak, that causes I might try using a better metric, maybe average daily power consumption, or average from the last x hours. Let me know if you see the same issue and if you have some ideas |
… runtine was not already met
This reverts commit 81c46e1.
Ah, good point. An average of the last x hours seems like the best bet |
push :) |
@nicorusti no progress? :) |
Unfortunately I won't have time to work on this in the next future. |
@nicorusti thanks for the update Do you want to mark this PR as Ready for Merge and note the open point somewhere in README? @InventoCasa I think it makes sense this 99% solution to merge into repo? |
FYI @InventoCasa I'm currently testing @nicorusti version with maximum runtime. |
Currently I'm not sure if my patch or your version breaks something but in some cases the automation doesn't switch the entities off, need to look into the logs. |
Code-Line: But as far as I'm currently not using minimum time this is not crucial for me. But But switch.tasmota_5 had the state on... |
@Kolbi Did you configure time of sunset? (likely this error happened because you had it not set). In 89cf98c I improved the logic to skip checks requireing time of sunset if minimum runtime enforcement is not set. Can you try again with the latest changes and let me know if this fixes the error? |
…0 (not configured)
…nimum daily runtime is set
@
Thanks for the fix, now minimum and maximum runtime is working without this issue. |
Great, I now also verified that after aa587fe runtine correctly resets to 0 at midnight (even if appliance turns off). @InventoCasa , From my side, this PR is now ready to merge. I moved some future improvement points to #89 |
Addresses #32 , based on work by @alistair23.
Some work done:
@alistair23 would it be ok to contribute your work to the main repository?
Pending issues:
Improvements: