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


hub.alert() crashes QuickApp with "Wrong parameter type, string required. Provided param 'false' is type of boolean"


Recommended Posts

Posted

I discovered a critical regression in the 5.192.6 beta firmware when using hub.alert("email", …) from QuickApps.
 

**Symptom

Calling

 

Please login or register to see this code.

(4 parameters – the most common syntax in many of my existing QuickApps) immediately crashes the QuickApp with:
 

Please login or register to see this code.

The QuickApp stops completely (polling stops, no more logs until manual restart).
Works perfectly on stable 5.190.39 and earlier.

Workaround is to add a string to parameter 4 instead of false.
Posted

Hi @pvandamcom,

 

Please check here for changes regarding sending e-mails:

As you can see from above quick app hub.alert function is changed and there is no boolean parameter. You need to correct all your code and replace boolean parameter with e-mail subject.

Posted

To be honest, it never was any bool arg there in QuickApps - it was just ignored in the past.

  • Topic Author
  • Posted

    Thanks for this reference, I missed that.

    This is quite a change, I typically use 6 (scenes) or 4 parameters based on documentation I could find.
    And concluded the following order:

    1.  type

    2. user

    3. messagebody

    4. messagetopic

    5. priority

    6. sound

     

    Last 2 could be ignored, but learned that 5 needed to be "" and 6 false.

     

    Seems that the formal way is now:

    scenes - 5 parameters, --> 3 is body, 4 is priority, 5 is Subject?

    QA's - 4 parameters, --> 3 is body, 4 is messagesubject

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