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
Stealth 10
Hi, Can someone help?
I have an HC2 and I have been several hours trying to figure out how to write some LUA code to check the temperature of my Solar Thermal panel and if its at least 10 degrees hotter than my water tank to then switch the pump on. I worked out how to do the comparison check between the two temp sensors but my issue is how do I do the the same but check its at least 10 degrees hotter. I also only need to run the pump between the hours of 8am to 10pm each week day.
Any help would be appreciated.
local SolarTemp = 735 -- ID number Solar temperature sensor
local TankTemp = 744 -- ID number Water Tank temperature
local SolarTemp = fibaro:getValue(735, "value") -- Temperature Solar
local TankTemp = fibaro:getValue(744, "value") -- Temperature Tank
if
SolarTemp more than 10 degrees higher than TankTemp
Then
Turn Solar Pump On
else
Turn Solar pump off
end
Edited by Stealth10 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.