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

PopupService


Question

Posted

Will the popup only show if you have the Fibaro app open in a smartphone?

If i have the app open in background it will not show any popup until i open the app again, is the design so?

8 answers to this question

Recommended Posts

  • 0
Posted

Seems so, that's why I always first send a push and then the popup. Another disadvantage is that it can only trigger a scene rather then a single VD push button.

  • 0
  • Inquirer
  • Posted

    In a scene like this:

    Please login or register to see this code.

    • 0
    Posted

    It works for me, i got this when arriving home.

     

    HomeCenter.PopupService.publish({

        title = 'Welcome Home',
        subtitle = 'Radio',
        contentTitle = 'Music',
        contentBody = 'Would you like some music?',
        img = '

    Please login or register to see this link.

        type = 'Info',
        buttons = {
            { caption = 'No', sceneId = 0 },
            { caption = 'Yes', sceneId = 3229 }
        }
    })
    • 0
    Posted

    Is it possible to give the contentBody a formatted layout?

    ie:  'Todays weather will be clear sky!'

     

    I've tried html markup code, but that does not work )-:

     

    Not that I have been able to work out ..

     

    Parameters

        title - string containing text to be displayed as a pop-up window title (parameter required)

        subtitle - string containing text to be displayed as a pop-up window subtitle

        contentTitle - string containing text to be displayed as a pop-up content title

        contentBody - string containing text to be displayed as a pop-up content (parameter required)

        img - string containing path of an image to be displayed in the pop-up window (supported extensions: .jpg, .bmp, .png, .gif)

        type - notification type indicated with a colour, available types:

            'Info' - blue (default)

            'Success' - green

            'Warning' - yellow

            'Critical' - red

        buttons - array containing definitions of buttons to be displayed in the pop-up, single button definition must be an array containing:

            'caption' - text displayed on the button

            'sceneId' - scene id triggered after pushing the button

    At most 3 buttons may be defined. There is no need to create any button - ‘ok’ button will be created by default.

     

    Please login or register to see this link.

     

    Cheers,

    al.

    • 0
    Posted

    It seriously lacks an audible indicator like the alarm system... for example i want to popup a notification if my garage detects motion and a specific variable is set to monitor as its daytime and i do not wish to arm the entire property!

     

    BEEP BEEP Crtical Warning!

    Notification:

    Motion detected in Garage

    are you aware of this?

    [YES] ignore [ NO] deafen the criminal with your klaxon siren 127db

     

    Please add some audio to this as it opens up SO many more options for use

    • 0
    Posted

     

    It works for me, i got this when arriving home.

     

    HomeCenter.PopupService.publish({

        title = 'Welcome Home',
        subtitle = 'Radio',
        contentTitle = 'Music',
        contentBody = 'Would you like some music?',
        img = '

    Please login or register to see this link.

        type = 'Info',
        buttons = {
            { caption = 'No', sceneId = 0 },
            { caption = 'Yes', sceneId = 3229 }
        }
    })

     

    So are you saying this popup is coming outside the app? i have only managed to get the message if i open the app. I really do not understand this function at all. What is the point if you have to have the app open?

     

    I have instead used pushover notification as it allows you to set priority of the notification and different sounds. I then use tasker to give me a popup notification which is then displayed both on my Watch and on my phone with a prompt. That is in my mind the way it should work.

     

    For iOS you can get simillar functionality by using the home control app.

    • 0
    Posted

    Where did you get this funcion? Is there any doc for the HomeCenter functions?

    Thanks

    • 0
    Posted

    Hi, is it possible to delete the notification on mobile with an other user than admin? thx

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