Hi,
I would like to set a couple of control variables and also update (get current state of..) some nest thermostats (current temps, humidity, AWAY status) so that values are displayed accurately when the page opens, and button states to switch between control pages can be set. Kinda like an object in Xcode, which has a callback to initialize values, and another callback to execute a little cleanup on exit.
Is there any way to execute a little house cleaning when a page opens?