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

Tankless water heater - Auto off after 20 minutes #1

Open
the-butterfry opened this issue Mar 24, 2018 · 0 comments
Open

Tankless water heater - Auto off after 20 minutes #1

the-butterfry opened this issue Mar 24, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@the-butterfry
Copy link
Owner

the-butterfry commented Mar 24, 2018

We need a PHP function that will account for tankless water heater cutoff:

Tankless water heaters by law have a 20 minute duty cycle. They’re required to cut off gas after 20 minutes, but the electronics are still on and won’t re-ignite unless you switch them off to reset. We need to build build a counter into the website/db so that after 18 minutes a tankless water heater will shut off for 1 cron_min cycle. Here’s my idea in the /cron_files/cron_min.php at the very end.

If heater = 0 (on) and type = tankless (I have already inserted a column in db, and chooser in the add/update relay section for this)
Then increment column time_on by 1
Read column time_on, if < 18 then set heater = 1 (off)
Set colum time_on back to 0

Here's what the table looks like

relays_table

@the-butterfry the-butterfry added enhancement New feature or request help wanted Extra attention is needed labels Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant