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
Guest David86vm
While trying to use the Popup message box i first made an easy script which won't work :->
I set up a scene to turn on a light in de Bedroom, this works fine when pressing run light goes on.
Now I tried to make an Popup notification when selecting yes I should turn on the light trough scene 126 which does not happen.
Also I got 3 notification in the message box of the Fibaro App, who can not be removed and stay's the first 3 tries.
running on 4.049 and Iphone 5S ios 8.3 APP VERSION 2.5
below my code what's going wrong.
Code of popup scene:
--[[
%% properties
126
%% globals
--]]
-- variable containing path of Motion Sensor’s icon
local imgUrl =
'
Please login or register to see this link.
-- pop-up call
HomeCenter.PopupService.publish({
-- title (required)
title = 'test',
-- subtitle(optional), e.g. time and date of the pop-up call
subtitle = os.date("%I:%M:%S %p | %B %d, %Y"),
-- content header (optional)
contentTitle = 'Light on?',
-- content (required)
contentBody = 'Turn on bedroom light"?',
-- notification image (assigned from the variable)
img = imgUrl,
-- type of the pop-up
type = 'Succes',
-- buttons definition
buttons = {
{ caption = 'Yes', sceneId = 126 },
{ caption = 'No', sceneId = 0 }
}
})
code light scene (ID 126):
--[[
%% properties
66
%% globals
--]]
local a = 1
local startSource = fibaro:getSourceTrigger();
fibaro:call(66, "turnOn");
fibaro:debug("light on")
Who got those popup's working?
9 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.