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
Nadeem 2
i tried to execute belowcode but it shows Temperature below cut-off for 1 minute but thermostat mode is not Cool. No action taken but in actual thermostat is in cool mode
i think local mode = hub.getValue(sID, "ThermostatMode") is wrong.
can you help to find correct code ?pls
local function handleCutOff()
local mode = hub.getValue(sID, "ThermostatMode")
if mode == "Cool" then
print("Temperature below cut-off for 1 minute and thermostat mode is Cool. Turning off All Compressors.")
local success, err = pcall(function()
hub.call(sID, 'setThermostatMode', "Off")
end)
if not success then
print("Error turning off All Compressors: " .. (err or "unknown error"))
end
else
print("Temperature below cut-off for 1 minute but thermostat mode is not Cool. No action taken.")
end
end
27 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.