Jump to content

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


  • 0

trying to push to multiply foons


Question

Posted

Hello

 

i have a script that i want to push to multiply foons

 

i thought this will work but it doesn't

 

local sourceTrigger = fibaro:getSourceTrigger();
function tempFunc()
 
local today = os.date("%d %B");
local timenow = os.date("%H:%M");
 
  fibaro:debug(today.." "..timenow)
 
local 
  phone = 537,538,539
  Time = "17:46"
  test = "19 April"
if   
  today == test and Time == timenow then
  fibaro:call(phone, "sendPush", "Test")
end
  setTimeout(tempFunc, 60*1000)
end
if (sourceTrigger["type"] == "autostart") then
   tempFunc()
 
end
  today == test and Time == timenow then
  fibaro:call(phone, "sendPush", "Test")
end
  setTimeout(tempFunc, 60*1000)
end
if (sourceTrigger["type"] == "autostart") then
   tempFunc()
end
 

 

only the first phone gets the message

if i change

phone = 537,538,539 to phone = {537,538,539}

then nobady gets something

1 answer to this question

Recommended Posts

  • 0
Posted

Have you tried breaking the push loop into 3 and removing the variable to see if that is the problem?

I've not tried pushing to multiples, just always have them in a separate loop.. this would be neater though !.

Anyway, it will help tell you if the other phones are able to receive push as a straight push should work.

 

cheers,

al.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...