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


fibaro.homeCenter.notificationService() still not working! Whaaat?


Recommended Posts

Posted

Hi @m.roszak,

 

Just tested this function and found that is useless.

I wanted to send "MobilePopupNotification" with following code:

Please login or register to see this code.

 

Above code does not work in quick app.

When executed I get following error:

 

[09.10.2025] [18:43:00] [ERROR] [QUICKAPP37]: QuickApp crashed[09.10.2025] [18:43:00] [ERROR] [QUICKAPP37]: main.lua:30: attempt to index a nil value (field 'homeCenter')

 

When run from scene, then it seems it works and debug is:

 

[09.10.2025] [18:47:45] [DEBUG] [SCENE5]: response: {"wasRead":false,"recipient":2,"priority":"info","id":3,"created":1760028465,"canBeDeleted":true,"data":{"text":"sampleText","buttons":[],"title":"sampleTitle"},"type":"MobilePopupNotification"} code: 200

 

but I get only this in GUI:

Please login or register to see this attachment.

 

and there is nothing received in Yubii Home mobile app latest update.

 

So @m.roszak, any comments on this one?

 

Am I doing it wrong, or this part is still not finished since 2020?

Posted (edited)

fibaro.homeCenter hasn't been implemented for QAs (don't ask why they have 2 different sdks...)

fibaro.homeCenter is there for scenes but has it ever worked on the HC3?


What has worked for me in QAs in the past is using api.post("/mobile/push", ...)

I tested now and the message appears on the mobile but then when pressing "YES" I get an 'Info: Sending action "..." failed' response on the mobile.

Either it's temporary or something broke.

 

 

Edited by jgab
Posted
15 hours ago, Sankotronic said:

but I get only this in GUI:

Please login or register to see this attachment.

 

and there is nothing received in Yubii Home mobile app latest update.


Hello,

This is actually easy to explain but I don't think you will be super happy with the answer, it is not finished becasue it is not supported and was not planned to be supported in new platforms - this should never been listed in the supported notification types in Lua scenes documentation.

Those mobile popup notifications was designed to work with the oldest Fibaro App and HC2/HCL hubs, Yubii Home Center / Yubii Home apps does not handle those the same as webUI does not support those.
Keeping this function in Lua scenes (handling) is another topic, it should be removed.
 

10 minutes ago, jgab said:

Either it's temporary or something broke.


We will check it out.

  • Like 1
  • Thanks 1
Posted (edited)
6 minutes ago, m.roszak said:

We will check it out.

So the interactive push with YES_NO, made a callback when pressing YES. (iOS)

However, when pressing NO there was no callback.

Used to solve it with a timeout waiting for the callback, but it would be nice it it called the actionName with false.

Edited by jgab
  • Like 1
  • Topic Author
  • Posted

    Hi @m.roszak,

     

    Thank you for swift answer. I'm now busy with making Advanced Notification center QA so I'm just checking what can be used to send them. It is not that I'm missing popup notifications :-D 

     

    BTW - maybe it is time to update developer information?

    • Like 2

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