News for hackers. Stuff that matters.
Re:I Built a Smart Thermostat by tW4r on Wednesday December 16, 2020 @02:43AM (#25440064)
Do you perhaps have recommendations on how to control:

1x central heater with:

.. state: on or off

.. actions on or off

Nx Temperature regulator valves

.. state: current temp, target temp, percentage open

.. actions: set target temp only

What control loop do I use to control the central heater on|off based on the state of the TRVs? To maintain distinct temperatures in different zones’ TRVs

Re:I Built a Smart Thermostat by nom on Wednesday December 16, 2020 @03:53AM (#25440377)
If your regulator valves close completely when target temp is reached, this should work:

- Set target temp for each room.

- Implement 2-step control using min(current_temps[]) and max(current_temps[])

So basically:

- if any room is below set_temp - X degrees, turn on

- if any room is above set_temp + Y degrees, turn off

Log and plot the temperatures, you should see some kind of sawtooth wave that flattens at the peaks due to the valves closing. Adjust the X/Y values to start/stop heating earlier or later to reduce the temperature variance.

Re:I Built a Smart Thermostat by tW4r on Wednesday December 16, 2020 @07:50AM (#25441910)
Thanks a ton! I'll try it out, maybe even do a write up if I succeed