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
pocster 0
Hey all,
I'm still having fun.
Have a scene which works fine with I click 'Run'. But it doesn't work if just left alone i.e. to 'run' on it's own.
Triggers seem fine; Lua code is very simple.
I was thinking maybe it's something to do with the polling of scenes?; how is that defined?
--[[
%% autostart
%% properties
11 power
%% globals
--]]
local startSource = fibaro:getSourceTrigger();
local power = tonumber(fibaro:getValue(11, "power"));
fibaro:debug ("power:"..power);
if ( power > 1.0 ) then
-- fibaro:call(6, "sendDefinedEmailNotification", "1");
fibaro:debug ("Email sent"..power);
fibaro:call(6, "sendDefinedEmailNotification" ,"fghfhfg" ,"pump" ); -- doesn't work
fibaro:call(35 , "sendPush" ,"power"); -- does work but only on 'run'
end
Been around 10 minutes now and nothing; so assume scene isn't running???
thanks
2 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.