pihome-shc / pihome

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

Schedule and override not working #407

Closed sandreialexandru closed 3 years ago

sandreialexandru commented 3 years ago

Scenario: -latest image of PiHOME -update&upgrade OS -update PiHOME from Github -delete default zone and create new -add schedule

Schedule gets inserted into database but running /cron/boiler.php I get Zone: Home Stop Cause: No Schedule - Target C:0 Zone C:24.70 Schedule turns active on web UI but boiler does not turn on. Activating boost and running /cron/boiler.php triggers the relay to on.

Capture Capture2 Capture3

sandreialexandru commented 3 years ago

When editing a zone, values from Maximum Temperature and Hysteresis Time get updated into the database, but not on the web UI. Whatever value I input they remain 25 and 3

sandreialexandru commented 3 years ago

So I upgraded phpmyadmin to version 5.0.2 and this strangely resolved the issue of schedule not working, but the problem of values not getting updated from database when editing a zone still remains

twa127 commented 3 years ago

Hi,

If you change the value for max_c in the database using phpmyadmin then you will need to refresh the settings.php web page before the change is shown.

sandreialexandru commented 3 years ago

@twa127 I have even deleted browsing history, cache and cookies. If I edit a zone and change the value of maximum temperature then it gets updated into the database, but if I go back to re-edit the same zone the web UI shows 25 even if the value in the database is 30

twa127 commented 3 years ago

okay I'll investigate further

twa127 commented 3 years ago

Committed a fix

sandreialexandru commented 3 years ago

Thank you!