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

Posted

Please login or register to see this code.

 
can someone check it?
Posted (edited)

Create a block scene with the push message. Then convert this one to LUA. Now you have a correct working code.

 

In my HC 3 I get somthing like this.

 

hub.alert('push', {[1] = 846, }, ' Here goes your text', false, '').

 

The "hub" is the new syntax after an update

Edited by Flash
  • Thanks 1
Posted

If you open you need to close too!

so add  

)

 

//Sjakie

  • Thanks 1
  • Topic Author
  • Posted
    12 minut temu, Sjakie napisał:

    If you open you need to close too!

    so add  

    )

     

    //Sjakie

    typo ;) on forum,

    hub.alert('push', {[1] = 846, }, ' Here goes your text', false, '') -work

    hub.alert("push",{20},"text") - doesn't work

    Posted

    @marczu@Sjakie

     

    I think there is something wrong with the push message's

    The messages that used befaore don't work anymore.

     

    Error

    (load):8: Assertion failed: Expected string

     

    If you convert a block scene to push it works.

    If you type in LUA hub.alert then enter to see syntax ist doesn't work.

     

    Startet after update to beta 5.102

    Posted

    We are working on it :)

     

    thanks for the report.

    • Thanks 2
    Posted

    Hi,

     

    same with email.

    Posted
    38 minutes ago, K1_check said:

    same with email.

     

    sure, because it is the same function responsible for. The syntax has changed, it is now:

     

    Please login or register to see this code.

     

    • Thanks 1
    Posted

    Hi @tinman ,

     

    From where do you get this new syntax information? Can you please enlighten me since Fibaro is so f*ing bad in updating manuals.

    I'm just looking at the

    Please login or register to see this link.

    and there is still this:

    Please login or register to see this code.

     

    Or I'm just looking at the wrong place?

    Posted
    4 hours ago, Sankotronic said:

    From where do you get this new syntax information?

     

    each Fibaro firmware contains list of changes to the SDK / API, that list is readable from ssh level, which i have to my HC3, that's why i know it.
    Normally (it was list that last year), each time Fibaro changed something, the manuals page got updated

     

    4 hours ago, Sankotronic said:

    Can you please enlighten me

     

    no, you are too old :P 

     

    4 hours ago, Sankotronic said:

    Or I'm just looking at the wrong place?

     

    it is proper place, Fibaro just not updated yet the docs

     

    • Thanks 1
    Posted
    1 hour ago, tinman said:

    no, you are too old :P 

     

    True! :-D

     

    1 hour ago, tinman said:

    it is proper place, Fibaro just not updated yet the docs

    I do hope they update it soon, which means ASAP :-)

     

    1 hour ago, tinman said:

    each Fibaro firmware contains list of changes to the SDK / API, that list is readable from ssh level, which i have to my HC3

    I don't have it, but I guess I could ask to get it. I do have it for my both HC2

     

    Posted

    Ok, so the ’fibaro.alert’ have been changed to ’hub.alert’. Seems like the old command was supposed to work but apparently aren’t.

     

    That raises the question: What about other commands like ‘fibaro.call’? Seems like there is a ‘hub.call’ command, will all commands change from ‘fibaro.xxxx’ to ‘hub.xxxx’?

    Posted

    fibaro.alert and hub.alert works the same, the issue is with backward compatibility with *.alert function after some improvements there.
    We already fixed that and next version will restore compatibility (one argument less). 

    Posted
    1 hour ago, m.roszak said:

    fibaro.alert and hub.alert works the same, the issue is with backward compatibility with *.alert function after some improvements there.
    We already fixed that and next version will restore compatibility (one argument less). 

    @m.roszak

    Ok, but what about the general question i had?

     

    Will ‘hub.xxxx’ eventually replace ‘fibaro.xxxx’ ?

     

    Asking if it would be a good plan to already now start converting all scenes from using ‘fibaro.xxxx’ to ‘hub.xxxx’?

    • Like 1
    Posted
    48 minutes ago, JcBorgs said:

    @m.roszak

    Ok, but what about the general question i had?

     

    Will ‘hub.xxxx’ eventually replace ‘fibaro.xxxx’ ?

     

    Asking if it would be a good plan to already now start converting all scenes from using ‘fibaro.xxxx’ to ‘hub.xxxx’?

    You can do

    Please login or register to see this code.

    at the beginning of your scenes/QAs and continue using fibaro. If they start to change the names of the actual methods... well, that would just be mean ;-) 

    Posted
    2 hours ago, JcBorgs said:

    Will ‘hub.xxxx’ eventually replace ‘fibaro.xxxx’ ?

     


    It replaced it already... but, backward compatibility will be maintained so rewriting the scripts won't be necessary - ever :)

    • Like 1

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