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
10 hours ago, jgab said:

ZBS Menu->Project->Lua Interpreter->Lua 5.3

Thank you. So much.!!

Posted

Hi

 

I still get the error.

 

Please login or register to see this code.

 

  • Topic Author
  • Posted
    2 hours ago, Earybeongbeong7 said:

    Hi

     

    I still get the error.

     

    Please login or register to see this code.

     

    Sorry, it was a stupid error introduced in v.198, It's been fixed in v.199 that's been out for 16 hours :-)

     

    Posted
    15 minutes ago, jgab said:

    Sorry, it was a stupid error introduced in v.198, It's been fixed in v.199 that's been out for 16 hours :-)

     

     

    OMG. 

     

    I still get the error.

     

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    48 minutes ago, Earybeongbeong7 said:

     

    OMG. 

     

    I still get the error.

     

    Please login or register to see this code.

     

    What line in the log shows the error?

    Posted (edited)
    4 minutes ago, jgab said:

    What line in the log shows the error?

     

    ER4 restarts continuously as this log comes out.

     

    Please login or register to see this code.

     

     

     

    Edited by Earybeongbeong7
  • Topic Author
  • Posted
    8 minutes ago, Earybeongbeong7 said:

     

    ER4 restarts continuously as this log comes out.

     

    Please login or register to see this code.

     

    That's just warnings that some timers are a bit late, and don't cause restart of the QA.

    You can turn it off with

    if dofile ....

       hc3_emulator = {

          debug = { timersWarn=false }

     

    I see that you restart the QA because of HT being updated. The plugin.restart() code is a bit experimental and can be the cause of this behaviour. I will test and see if I can reproduce it.

  • Topic Author
  • Posted
    9 minutes ago, jgab said:

    That's just warnings that some timers are a bit late, and don't cause restart of the QA.

    You can turn it off with

    if dofile ....

       hc3_emulator = {

          debug = { timersWarn=false }

     

    I see that you restart the QA because of HT being updated. The plugin.restart() code is a bit experimental and can be the cause of this behaviour. I will test and see if I can reproduce it.

     

    Well, ER4 behaves well when restarting.

    To restart a QA in the emulator is quite an "involved" procedure that is initiated with plugin.restart().

    There is no way the QA can spontaneously restart because some timer crashed (the behaviour that the QA restarts on crash like it does on the HC3 is not implemented in the emulator)

    ...so my point is that I think you have a ER rule that repeatedly calls plugin.restart().

    Is there something with the HT changed rule that triggers at every restart?

    2 minutes ago, jgab said:

     

    Well, ER4 behaves well when restarting.

    To restart a QA in the emulator is quite an "involved" procedure that is initiated with plugin.restart().

    There is no way the QA can spontaneously restart because some timer crashed (the behaviour that the QA restarts on crash like it does on the HC3 is not implemented in the emulator)

    ...so my point is that I think you have a ER rule that repeatedly calls plugin.restart().

    Is there something with the HT changed rule that triggers at every restart?

    How does the HT changed rule look like?

    Posted (edited)

     

    6 minutes ago, jgab said:

     

    Well, ER4 behaves well when restarting.

    To restart a QA in the emulator is quite an "involved" procedure that is initiated with plugin.restart().

    There is no way the QA can spontaneously restart because some timer crashed (the behaviour that the QA restarts on crash like it does on the HC3 is not implemented in the emulator)

     

    Currently, the following TEST is being used by ZBS.

     

    It works fine in 0.158 version, but ER4 restarts continuously in 0.199 version.

     

     

     

    Please login or register to see this code.

     

     

    Please login or register to see this code.

     

    Edited by Earybeongbeong7
  • Topic Author
  • Posted

    but what rule is logging this

    Please login or register to see this code.

     

    Posted

    Please login or register to see this code.

     

    It works fine for 0.158 version.

  • Topic Author
  • Posted

    Yes, but plugin.restart was not implemented in v.158 (did nothing) but is implemented in v.199

    So how does the HT changed rule look like?

    Posted
    2 minutes ago, jgab said:

    Yes, but plugin.restart was not implemented in v.158 (did nothing) but is implemented in v.199

    So how does the HT changed rule look like?

     

     

    Sorry. That's my big mistake.
    I thought there was no problem with the test rule because it could not be rerun in version 0.158.

     

    In the rule I wrote, there was something like the following.

     

    I am really sorry.

     

    Please login or register to see this code.

     

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

     

     

    Sorry. That's my big mistake.
    I thought there was no problem with the test rule because it could not be rerun in version 0.158.

     

    In the rule I wrote, there was something like the following.

     

    I am really sorry.

     

    Please login or register to see this code.

     

    Well, now we know that plugin.restart() works in the emulator for you too :-)

     

    Posted

    Jan,

    Something changed? Last Telegram 27 February

    {"ERR":true,"err":".\/include\/EventRunner.lua:1856: attempting to index non table with key:'msg'","msg":"Error executing instruction:'[\"%aref\",1,\"msg\"]'","src":"Rule:7[@08:17 =>...]"}

    <Telegram.msg(TID,'Let Op; Voordeur open positie slot - open{DAG}');>

    Please advice,

    //Sjakie

  • Topic Author
  • Posted

    HC3 or HC2? Who’s Telegram funktion?

    Posted

    Jan,

    HC3, my HC2 is in a box.

    Telegram QA created by 10@der I believe, I will send by PM.

    It was working for a while but now the push messages admin doest work I noticed I dont get Telegram either.

    Note push message to another user are working strange.

    //Sjakie

  • Topic Author
  • Posted
    1 hour ago, Sjakie said:

    Jan,

    HC3, my HC2 is in a box.

    Telegram QA created by 10@der I believe, I will send by PM.

    It was working for a while but now the push messages admin doest work I noticed I dont get Telegram either.

    Note push message to another user are working strange.

    //Sjakie

     

    But calling another QA looks like

    fibaro.call(ID,"sendTelegram",...)

    or similar.

    You call something that looks like Telegram.send(....

    in your rule.

    Who defined that Telegram.send function?

    Just now, jgab said:

     

    But calling another QA looks like

    fibaro.call(ID,"sendTelegram",...)

    or similar.

    You call something that looks like Telegram.send(....

    in your rule.

    Who defined that Telegram.send function?

    Anything that looks like Telegram.send

    makes ER expect that Telegram is a table with a key 'send' that is assigned a function it can call

    Posted

    Jan,

    Thanks! In 99/100 I get my advice from you>> much appriciated!!

    No idea from who. perhaps my initiative, but thanks its working again.

    Have a nice weekend,

    //Sjakie

    Posted

    Hi - I´m trying to read my Netatmo Co2 sensor

    The trigger look like this - Incoming trigger:{"id":521,"value":862,"type":"device","property":"value","old":891.0}

     

    Please login or register to see this code.

    I tried several syntax with no luck. i could use some help

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