Can i get max value of a (virtual) sensor today and last month?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
marmachine
Posts: 133
Joined: Saturday 26 March 2016 10:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Can i get max value of a (virtual) sensor today and last month?

Post by marmachine »

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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest