Refactor Heater class #615
The heater class is not generic enough to be re-used properly. This is probably because it was programmed specifically for FLP. There are some important points to make this class usable for EIVE specifically:
- There will not always be two switches, and the information that there is a second switch does not really belong in a generic
Heaterclass in my opinion
- Heaters are not always controlled by a Power Switcher. They can be controlled by
GPIO pins as well
- Sometimes, a power switcher and a GPIO is used
It would be good to define a generic HeaterBase class which provides adaptions points like
setHeater(... targetState) which allow to write custom code being able to handle any combination of GPIO pins or power switches.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?