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

  • Topic Author
  • Posted
    7 minutes ago, Sjakie said:

    Jan delayed update??

    07:47 fix 54

     

    Thanks for the support!

    //Sjakie

    Your HC3 has a mind of its own - 7min delay to update is very strange.

    25 minutes ago, Sjakie said:

    Jan, 1-3-4-5 are armed and all others disarmed

    So in first Rule no debug is okay because 4 is armed

    In that light 2nd rule should not give log too because 3 is armed!

    This is not consequent??

    3rd is okay because all are armed.

    Or do I miss something?

    //Sjakie

    sorry not mentioned 2-6-7-11 disarmed

    Are you sure? In your example you said that 1-2-3-4-5 was armed.

    Posted

    Jan

    Thanks for mentioning that my HC3 has his own mind.

    So now I dont need to worry about all the strange things happening.

    The other QA's where updating alsmost directly, perhaps this QA's update was in the cue because high traffic?

    //Sjakie

    Posted

    Jan sorry

    1,3,4,5 are armed

    2,6,7,11 disarmed

    //Sjakie

  • Topic Author
  • Posted (edited)
    32 minutes ago, Sjakie said:

    Jan sorry

    1,3,4,5 are armed

    2,6,7,11 disarmed

    //Sjakie

    Please login or register to see this code.

    If the above is the rule.

    First, no log, 4 is armed.

    Second,  no log, 3 is armed

    Third, {2,6,7,11}:alarm=false can't be used in header  Use :disarmed.

     

    Note, '=' is always a command (setting something) and can't be used left of the '=>'

    To compare use '=='

    Edited by jgab
    Posted

    Sorry Jan,

    I was playing

    Please login or register to see this code.

    Now I get no trigger in header>>> was typo ::

    Jan you did it I have now  ONE message!!!!!!!!!

    Thanks

    Posted

    Jan,

    HC2

    Whats the working cmd for    httpGet('http://api.

    error no such cmd httpGet/httpget

    Is there also another way to do a push with filled in text? or only the text created in Pushmsg?

     

    Please login or register to see this code.

    Thanks in advance,

    //Sjakie

    Please login or register to see this attachment.

    sorry  for the picture

    Posted

    @jgab

    I have got a problem after a fix update.
    A couple of days ago, a rule stopped working, the one that dims the bedroom lamp.
    I suspect a small bug has crept into ER. Rule and error message as below.

     

    Rule
    rule("@{catch,22:10} => sovrum.dim_lampa:dim={600,'down'}") -- Time to sleep

     

    Error message when i test the rule

    [2021-05-19] [15:32:00] [DEBUG] [QUICKAPP20]: [true]>>'Rule:42[@{catch,15:32} => sovrum.dim_lampa:dim={600,'down'}]'
    [2021-05-19] [15:32:00] [ERROR] [QUICKAPP20]: in Rule:42[@{catch,15:32} => sovrum.dim_lampa:dim={600,'down'}]: {"ERR":true,"err":".\/include\/Toolbox.lua:219: \/usr\/share\/lua\/5.3\/json\/encode.lua:88: Failed to encode value, encoders for function deny encoding","msg":"Error executing instruction:'[\"%setprop\",2,false,[\"dim\"]]'","src":"Rule:42[@{catch,15:32} => sovrum.dim_lampa:dim={600,'down'}]"}


    An error message about HTTP call sometimes pops up. I have no rules with HTTP calls, so I do not know what is causing the error.

    [2021-05-19] [15:31:10] [ERROR] [QUICKAPP20]: No response from HTTP call
     

    Posted

    I created these EV4 rules - the idea is from a friend of mine - Luise.

    Its a toothbrush timer for the bathroom, based on Matrix switch  - so you change the light every 30 sec to indicate next row of ? your mouth.

     

    Please login or register to see this code.

     

    If Badevarelset.Matrix is equal 1000, then Badevarelset.Tryk1 is +2 equal 1002, and  Badevarelset.Tryk2 is +4 and  Badevarelset.Tryk3 is +6 and  Badevarelset.Tryk6 is +6

    Just wondering if there intelligent way to optimize this code ?

  • Topic Author
  • Posted
    14 hours ago, RH_Dreambox said:

    @jgab

    I have got a problem after a fix update.
    A couple of days ago, a rule stopped working, the one that dims the bedroom lamp.
    I suspect a small bug has crept into ER. Rule and error message as below.

     

    Rule
    rule("@{catch,22:10} => sovrum.dim_lampa:dim={600,'down'}") -- Time to sleep

     

    Error message when i test the rule

    [2021-05-19] [15:32:00] [DEBUG] [QUICKAPP20]: [true]>>'Rule:42[@{catch,15:32} => sovrum.dim_lampa:dim={600,'down'}]'
    [2021-05-19] [15:32:00] [ERROR] [QUICKAPP20]: in Rule:42[@{catch,15:32} => sovrum.dim_lampa:dim={600,'down'}]: {"ERR":true,"err":".\/include\/Toolbox.lua:219: \/usr\/share\/lua\/5.3\/json\/encode.lua:88: Failed to encode value, encoders for function deny encoding","msg":"Error executing instruction:'[\"%setprop\",2,false,[\"dim\"]]'","src":"Rule:42[@{catch,15:32} => sovrum.dim_lampa:dim={600,'down'}]"}


    An error message about HTTP call sometimes pops up. I have no rules with HTTP calls, so I do not know what is causing the error.

    [2021-05-19] [15:31:10] [ERROR] [QUICKAPP20]: No response from HTTP call
     

    Thanks, that was a bug. Fixed in fix55

  • Topic Author
  • Posted
    12 hours ago, ChristianSogaard said:

    If Badevarelset.Matrix is equal 1000, then Badevarelset.Tryk1 is +2 equal 1002, and  Badevarelset.Tryk2 is +4 and  Badevarelset.Tryk3 is +6 and  Badevarelset.Tryk6 is +6

    Just wondering if there intelligent way to optimize this code ?

    Well, I think it's pretty clear code - you will understand what's going on when you look at the code a couple of months from now. Optimizing it will make it harder to understand - and the performance will be the same.

    • Like 1
    Posted

    Jan, I get error but no discription

    Please login or register to see this code.

    the rule is

    Please login or register to see this code.

    Whats wrong?

    //Sjakie

    Posted

    Jan, I get error but no discription

    Error disapered after restart.

    Jan, HC2

    BeveiligenAanw >>>in header and GV created

     

    J

    Please login or register to see this image.

    /monthly_2021_05/afbeelding.png.58a66a0fad958d092e5df1120c72c62f.png" />an HC2:

    Please login or register to see this code.

    Please advice,

    //Sjakie

  • Topic Author
  • Posted
    20 hours ago, Sjakie said:

    Jan, I get error but no discription

    Please login or register to see this code.

    the rule is

    Please login or register to see this code.

    Whats wrong?

    //Sjakie

    If I test the same rule I get no errors. Which indicates that some of your HT values must be strange.

    14 hours ago, Sjakie said:

    Jan, I get error but no discription

    Error disapered after restart.

    Jan, HC2

    BeveiligenAanw >>>in header and GV created

     

    J

    Please login or register to see this link.

    an HC2:

    Please login or register to see this code.

    Please advice,

    //Sjakie

    This doesn't make sense. Do you have another rule that starts with 

    $BeveiligenAanw=='Uit' ...

    ?

    It must be a rule that uses '/' division?

    Do you have any rule that involves division?

    Posted

    @jgab

    this happend during ER4 autoupdate :) Where is ER4 engine :)

     

    Please login or register to see this attachment.

     

    I think autoupdate procedure should be rewritten and check if all components are OK

  • Topic Author
  • Posted
    1 minute ago, petrkl12 said:

    @jgab

    this happend during ER4 autoupdate :) Where is ER4 engine :)

     

    Please login or register to see this attachment.

     

    I think autoupdate procedure should be rewritten and check if all components are OK

    ER Engine is  the file EventRunner

    Posted (edited)

    sorry, OK

    but ER4 didn't start and I don't know why ...

     

    any debug messages

    Please login or register to see this attachment.

     

    Edited by petrkl12
  • Topic Author
  • Posted
    2 minutes ago, petrkl12 said:

    sorry, OK

    but ER4 didn't start and I don't know why ...

    Do you get any log/error messages?

    My own ER4 just updated to fix56 this morning without problem.

    4 minutes ago, petrkl12 said:

    sorry, OK

    but ER4 didn't start and I don't know why ...

     

    any debug messages

    Please login or register to see this attachment.

     

    If you add a blank and re-save?

    Posted

    any errors nor debug messages ... as you can see in my previous post

  • Topic Author
  • Posted

    You may also be a victim of this "QA stops working" syndrome. Seen it a few times with different QAs.

    Sometimes it works by restarting the HC3.

    It may also work by downloading the QA (save to .fqa) delete the QA on the HC3 and re-install the saved QA.

    Posted

    just re-saved source code helped ...

    ER4 is my basic automatization sw :) so I will have to think how to detect and restart it from other QA

     

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