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
Bad33nd 1
Hi Everyone,
Since a couple of weeks im trying to learn a bit about Lua programming. At the moment im struggling to find an answer to my problem.
To switch floor heating pump i used a power plug on my central heating boiler to measure the power usage to turn on the power of the floor heating pump (also a power plug). First i made a simple block scene which worked fine at first but now i found out that also when im using tap water the central heating boiler is using a significant amount of power. so the idea is to use the living room temp. sensor and the power measurement of the central heating boiler to switch the floor heating pump. Since the margin is very small im trying to do a double check so check if the conditions match, sleep for 3 minutes and check the conditions again before powering off.
This is a bit of the code i used but get a error.
if (PowerCV <'1') and (PompStatus >'1') then
fibaro:debug('wacht 3 min voor uitschakelen')
fibaro:sleep(10000)
fibaro:debug(' 3 min later')
and (PowerCV <'1') and (PompStatus >'1') then
fibaro:call(191, "turnOff")
fibaro:debug('Pomp staat nu uit')
end
it seems like im not able to check another set of conditions after the "sleep". is there a way to do this? all help is appreciated. thank!
Edited by Bad33nd16 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.