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



jgab

Recommended Posts

Jan I want to have the value off:

Please login or register to see this code.

to refresh every 5 min if possible to have or use in ER5 as Global Variable

Edited by Sjakie
GV add
Link to comment
Share on other sites

  • Topic Author
  • Please login or register to see this code.

    First time, if global LiveWeer doesn't exists, ut will log "nil", but then it will get the right weather....

    Link to comment
    Share on other sites

    Jan, thank you very much!

    The result is a big difference

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Jan, is it possible to have a daily report from history fa $LiveWeer_Temp? Or are Global Variables not stored in history?

     

     

    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, Sjakie said:

    Jan, is it possible to have a daily report from history fa $LiveWeer_Temp? Or are Global Variables not stored in history?

     

     

    This is a way to save all changes for global variable $foop and log the changes at 23:59 each evening.

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Jan sorry get error also in the by you give rule

    Please login or register to see this code.

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • 7 hours ago, Sjakie said:

    Jan sorry get error also in the by you give rule

    Please login or register to see this code.

    Please login or register to see this code.

     

    osdate -> os.date

    Link to comment
    Share on other sites

    @jgab, I have on all my rules at the end a number with letter.

    I notice in my QA who regularly crashes that it crash after a rule with .start()

    this morning I modified this QA >>> crashed

    I saw the rule had .start()  >>> removed . start()

    QA crashed again on a rule with .start() >>> removed .start()

    add 3 times enter save QA QA run

    Can this be a cause or is it???

    Link to comment
    Share on other sites

  • Topic Author
  • Can you post the rule that crashes with .start() ?

    Link to comment
    Share on other sites

    On this rules the QA crated a crash

    Please login or register to see this code.

    Please login or register to see this code.

    Please login or register to see this code.

     

    Edited by Sjakie
    removed all .start() in this QA
    Link to comment
    Share on other sites

    Jan, I get error even if I copy yours again and I hav e no idea what's wrong.

    Please login or register to see this code.

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Quote

    Dagelijkse limiet van 300 verzoeken overstegen. Meer nodig? Neem een pro-abonnement voor 500.000 dataverzoeken (€45 per maand) bij

    Please login or register to see this link.

     

    Exceeded daily limit of 300 requests. Need more? Take out a pro subscription for 500,000 data requests (€45 per month) at

    Please login or register to see this link.

     

    Edited by SmartHomeEddy
    Link to comment
    Share on other sites

    Oh yee, thanks.

    Will it work again tomorrow?

    Refresh need change from 5 into 10 minutes.

     

    Link to comment
    Share on other sites

    That depends on how many people use your APIkey by now 😉
     

     

     

    Edited by SmartHomeEddy
    Link to comment
    Share on other sites

    Thanks, no problem there aren't so much Fibaro users in my town, it was my mistake by copying it also in test QA so I requested to many times.

    btw according my api its "licht bewolkt" on te site it show "zwaar bewolkt".

    The temperatuur give the same value.

    Link to comment
    Share on other sites

    Please login or register to see this code.

    Please login or register to see this code.

    ZZZZ and YYYY I fill in names as above, Temp, Samenv, Lv, Windr etcetera.

    YYYY >>>> exact the same as in values

     

    Jan the given example by you is working for two values but if I extend it will not refresh the actual data

    If I copy your example in a new QA it show the recent data.

    No error is shown and I  am not at the limit of 300 requestst

    So I guess I need to do some more??

    Please advice

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Hi,

     

    Maybe a stupid question, but how to invoke a custom QuickApp method (attached to custom UI button) from a rule?

    I've prepared QuickApp to work with

    Please login or register to see this link.

    (RGB bulb) and I use it as dim light but also for noticications. You can invoke custom RGB sequence, i.e. create "blink notification" - what I exposed in the UI as custom button QuickApp:onButtonNotification(event). 

     

    How could I create a EventRunner rule to invoke onButtonNotification? Let's suppose I have motionSensor and the QuickApp device is mapped as rgbBulb. I would expect something like that (which obviously doesn't work)

    Please login or register to see this code.

    or maybe like that:

    Please login or register to see this code.

     

    TL;DR

    Question: Is there any way to call QuickApps method from EventRunner? Am I even approaching this topic correctly?

    Link to comment
    Share on other sites

    3 hours ago, pawelczapski said:

    Hi,

     

    Maybe a stupid question, but how to invoke a custom QuickApp method (attached to custom UI button) from a rule?

    I've prepared QuickApp to work with

    Please login or register to see this link.

    (RGB bulb) and I use it as dim light but also for noticications. You can invoke custom RGB sequence, i.e. create "blink notification" - what I exposed in the UI as custom button QuickApp:onButtonNotification(event). 

     

    How could I create a EventRunner rule to invoke onButtonNotification? Let's suppose I have motionSensor and the QuickApp device is mapped as rgbBulb. I would expect something like that (which obviously doesn't work)

    Please login or register to see this code.

    or maybe like that:

    Please login or register to see this code.

     

    TL;DR

    Question: Is there any way to call QuickApps method from EventRunner? Am I even approaching this topic correctly?

    Just call it as you would call from other quickapp. hub.call(<QAid>,<functionName>,<params>)

    • Like 1
    • Thanks 1
    Link to comment
    Share on other sites

    @jgab, I see this  error a few times but with different debug before and after so I  have no clue where to find what is wrong. Can you extend error message what or why?

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

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