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


Recommended Posts

Hi everybody, 

 

I seem to be stuck in my search how to implement a (large) mobile popup, triggered in a LUA scene in HC3. I found this example for HC2

Please login or register to see this link.

This is actually what I want to create, a large popup with buttons and actions connected to it. But the example (obviously) does not work in HC3.

 

I am using the following code and the fibaro.homeCenter.notificationService.publish function with type set to MobilePopupNotification as described in 

Please login or register to see this link.

 

Please login or register to see this code.

 
The debug responses are: 
for response: {"data":{"title":"Door(s) Open","buttons":[],"text":"Alarm in kelder en begane grond armed"},"created":1586512755,"type":"MobilePopupNotification","id":208,"priority":"warning","wasRead":false,"canBeDeleted":true}
for code: 200
 
My Notification page in the web interface displays the warning as "Notification title" but no mobile notification is received. 
I also had this scene running with fibaro.alert() but that did not give me the desired large popup, only a smal one with limited text and not button options.
 
BTW: I couldn't get the button functionality to work in any way. Tried arrays, objects, array of objects, object of objects etc but always got an error code 400 or simply a load error code ((load):34: unexpected symbol near '[')
 
So, can anybody point me in the right direction, or tell me if what I want is possible in HC3?
 
Thanks a lot
 
 

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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...