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

Add Notification directly from QuickApp


Question

Posted

Hi,

 

Is it possible to add Notifications directly from QuickApp? I don't mean push notifications, but those Notifications that could be accessed from topbar "Notifications". Screenshot attached.

Also, can these notifications (screenshot) be read from the mobile app (android/ios) ?

 

I really appreciate if someone could point me in the right direction.

Thank you.

 

Please login or register to see this attachment.

2 answers to this question

Recommended Posts

  • 0
Posted

You can find the notifications in this Fibaro manual: 

Please login or register to see this link.

  • 0
  • Inquirer
  • Posted (edited)
    39 minutes ago, SmartHomeEddy said:

    You can find the notifications in this Fibaro manual: 

    Please login or register to see this link.

    I don't know how I missed that.

     

        local body = {
        type = "GenericDeviceNotification",
        priority = "info",
        data = {
            deviceId = 269,
            title = "sampleTitle",
            text = "sampleText",
            icon =  {
               path = "fibaro/icons/com.fibaro.FGT001/com.fibaro.FGT001-off.png",
               source = "HC"
           }
        }
    }
    local response, code = fibaro.homeCenter.notificationService.publish(body)
     
    I get the following error:
    main.lua:89: attempt to index a nil value (field 'homeCenter')
     
    It's the example from documentation.
    Can somebody help me?
     
    Edited by fuser99

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