Ok, I'm publishing a new version and fixed the menu issues. I also made the dimmer optional - although I highly recommend to use this option since this is the only way to reliably have the app set new values without them being considered as user inputs. When the app "decides" to, for example, lower your cooling setpoint because it's very humid (the whole point of this app), then this will trigger a thermostat event. This event, in return, will NOT be considered as a user input (otherwise you'd have an infinite feedback loop). The issue is, however, that when you are yourself going to want to change your cooling setpoint, the app might override this request, thinking it's coming from its own adjustments functions and so you would have to do it several times until the app catches it as a new user inputs (it all depends on the step at which your input took place, on what the app was doing at that precise instant). The virtual dimmer, on the other hand, allows for certainty on the fact that this can only be a user input (although the app is still capable to adjust the dimmer from new inputs on the thermostat, but that's another long, long story and I'll spare you the details... )
Thanks again for your awesome feedback. I stopped coding for now and there will probably be some more issues but fortunately it'll be functional this time. Sorry for the mess I have left you with yesterday !
The vera app you referred me to is quite interesting and powerful for it does some limited machine learning. I have a similar app that can work in parallel with my current thermostat manager, but it is quite more ambitious and, however, required too much computing power to be used at the moment.
Instead, I have implemented some more complex math functions to compensate for the difficulty I had to implement some more serious machine learning. Machine learning requires layers of dynamic multidimensional arrays and matrixes that can lock a hub, even when only this app would be running on it. I did succeed in improving the efficiency of the database management but, for now, the algebra based algorithms do a better job ressource wise. However, you'll have to adjust your inputs on a regular basis, unlike what my A.I. thermostat manager allows / will allow at some point.