Can i get max value of a (virtual) sensor today and last month?
Posted: Wednesday 05 October 2016 21:11
Hi Folks,
I am opening up my screens when sun position reaches a certain point.
I have set both Azimuth and Altitude limits, once one of these values are met, screens are triggered to open.
So far, so good!
Now, since sun gets lower in winter, some buildings in my surrounding create a shadow that allows to open up the screens at an earlier position.
I'm now thinking about creating some logic;
if max. Altitude today is lower than last month, open up at X altitude + difference (max last month - max today)
So i need to get values from my (virtual) device log max value last month and max value today (once we are past highest postion for today)
According to the graphics this data should be there, but is there a way to get it? (preferably in a LUA event)
Thanks in advance!
I am opening up my screens when sun position reaches a certain point.
I have set both Azimuth and Altitude limits, once one of these values are met, screens are triggered to open.
So far, so good!
Now, since sun gets lower in winter, some buildings in my surrounding create a shadow that allows to open up the screens at an earlier position.
I'm now thinking about creating some logic;
if max. Altitude today is lower than last month, open up at X altitude + difference (max last month - max today)
So i need to get values from my (virtual) device log max value last month and max value today (once we are past highest postion for today)
According to the graphics this data should be there, but is there a way to get it? (preferably in a LUA event)
Thanks in advance!