Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'calculate value'.
Hi all, I need help for a (tricky) thing: I added 2 underwater temperature sensors on my Fibaro smart implant. Now i need to calculate the middle value of both sensors over a.e. two days. Example: -Sensor 1: 8 degree on day 1 and day 2 -Sensor 2: 10 degree on day 1 and day 2 - middle value: 9 degree This value should trigger a global variable like "summer" - for middle value >8 degree and "winter" for middle value <8 degree. I need this to know when i have to feed winter pellets for my kois and to trigger a scene that switches my pond pumps. I´m not really good into lua. I thought about to adapt other scripts that calculate time or to build a table that stores the values and triggers a global variable or maybe to use a virtual device but... What should I say? - I´m a noob Also searched different keywords in this forum and searched with google but i didn´t found a scipt that does this. It would be so nice if anyone can help me with this. I feel really sad that I don´t get it. Benjamin