pihome-shc / pihome

PiHome - Smart Heating, Ventilation and Air Conditioning (HVAC)
http://www.pihome.eu
Other
52 stars 25 forks source link

Adding boost #426

Open sandreialexandru opened 3 years ago

sandreialexandru commented 3 years ago

When creating a zone with a maximum operation time greater than 127 minutes, boost does not get added and returns an error. I believe that this is caused by the type of "minute" column in boost table (tinyint). Also, I would suggest that when manually adding a boost we should use some limitation for the temperature and time like maximum boiler temperature and time instead of hard coded values.

sandreialexandru commented 3 years ago

Maybe using sliders instead of dropdown lists is easier to implement.

twa127 commented 3 years ago

I guess we have never seen this issue as max operation time have never been used up until now

sandreialexandru commented 3 years ago

Leaving out of discussion particular cases, I think that we should create some limitations on boost variables (time&temperature), for security concerns.

pihome-shc commented 3 years ago

i think for safety we should introduce zone running time limit as have temperature limit and use hysteresis_time from zone_sensor table, open for discussion on this one.

sandreialexandru commented 3 years ago

Having time and temperature limits for boost options is a way to set cut-off. Using hysteresis_time column from zone_sensor table as a maximum time limit for boost is a good idea, but it should be renamed. Doing it like this we won't have to modify the database structure.

pihome-shc commented 3 years ago

we already have boost max time in boost table why we need to save it twice? i agree on max zone temperature with slider would be good as zone will never go over its max zone temperature even if user define 400c for boost

sandreialexandru commented 3 years ago

It is like linking everything together. Why would someone be able to set a boost temperature to 400 if the max zone temperature is set at 25? The slider should go as up as the maximum temperature for that zone.

sandreialexandru commented 3 years ago

You are right that time should not be saved twice and maybe there should be just a text box where the user can input time manually, with just a simple html validation for numbers.

pihome-shc commented 3 years ago

but we already have time and temperature cutoff in boost table, i was talking about change from dropdown to slider and leave boost related data in boost table

sandreialexandru commented 3 years ago

I agree. The database would be more organized.