Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
benjamins 1
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
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.