Skip to content

Avoid turning heater on/off often due to temperature oscillation  #2

@quicklywilliam

Description

@quicklywilliam

If I am reading the code correctly the heater is turned on the moment the temperature goes below the target and turns back off the moment it goes above. I'm concerned that this will lead to turning the heater on and off very often, which seems inefficient and possibly bad for the heater.

Suggest implementing a minimum deviation from target temperature before toggling the heater on/off and/or a minimum time period between toggles. A more complicated solution would be to use a PID controller such as https://www.npmjs.com/package/node-pid-controller.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions