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
    1 hour ago, Sjakie said:

    Jan good morning,

    How to convert a post in time?

    I like to do:

    Rule.eval([[#rise is after sunrise => post(#openCurtain)]])

    Thanks for your time,

    //Sjakie

    Sorry, I don't understand. "convert a post in time"?

    You want your rule to post #openCurtain if the event #rise comes after sunrise? or?

    Posted

    Jan,

    You want your rule to post #openCurtain if the event #rise comes after sunrise

    correct.

    //Sjakie

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

    Jan,

    You want your rule to post #openCurtain if the event #rise comes after sunrise

    correct.

    //Sjakie

    Rule.eval([[#rise & now > sunrise => post(#openCurtain)]])

    'now' is a pre-defined rule variable that is always the current time.

    Posted (edited)

    Hi @jgab

     

    I have some crazy ghosts in my EventRunner4 v0.5fix46.

    I am using EV4 and COH.

    I have 4 COH Bulp that wont turn off -

    Pressing a button (on A Matrix) It seems that there are send double "Central Scene Event" with toggle. It starts the Transision - within 1-2 Sec it the reverse back to 100%

    If I remove the the EV4 rule, I dont see the Double Trigger in the logs.

    BUT...

    The most crazy is in the example below, where the rule is taken out . Its still possible to control the HUE from the Matrix button, with turn on, off and DIMM. Like the rule is cached, and if i enable it again it triggered double again.

    It started yesterday i think - i haven't touched any EV4 rule here. I run 4 EV4 at the same time.

     

    Have you heard about this - Any ideas. 

     

     

    Quote

    Please login or register to see this code.

     

     

    Edited by ChristianSogaard
    P
  • Topic Author
  • Posted
    12 minutes ago, ChristianSogaard said:

    Hi @jgab

     

    I have some crazy ghosts in my EventRunner4 v0.5fix46.

    I am using EV4 and COH.

    I have 4 COH Bulp that wont turn off -

    Pressing a button (on A Matrix) It seems that there are send double "Central Scene Event" with toggle. It starts the Transision - within 1-2 Sec it the reverse back to 100%

    If I remove the the EV4 rule, I dont see the Double Trigger in the logs.

    BUT...

    The most crazy is in the example below, where the rule is taken out . Its still possible to control the HUE from the Matrix button, with turn on, off and DIMM. Like the rule is cached, and if i enable it again it triggered double again.

    It started yesterday i think - i haven't touched any EV4 rule here. I run 4 EV4 at the same time.

    I'm running a custom version of the Fibaro HC3 firmware 5.062

     

    Have you heard about this - Any ideas. 

     

    Well,the ghost can be  that double instances are running of the ER4 QA. I have seen this myself for the last month but I had issues previously. It's not just a ER4 issue but can happen other QAs too. The only way around it is to remove and reinstall the QA - or restart the HC3. The latter usually helps,

    • Thanks 1
    Posted (edited)
    7 minutes ago, jgab said:

     

    Well,the ghost can be  that double instances are running of the ER4 QA. I have seen this myself for the last month but I had issues previously. It's not just a ER4 issue but can happen other QAs too. The only way around it is to remove and reinstall the QA - or restart the HC3. The latter usually helps,

    Thank you for your fast reply. You help is amazing.. Restart helped 

    Edited by ChristianSogaard
    P
    Posted
    I trying to do a set of rules with following function

    A single switch (I am using Matrix with 4 keys) should have two lifes - A manual and a automatic controlled with PIR.
    --A manual Press on Key 1 will - turn TOGGLE the light at same Matrix and 
    -- when Manual Turn on Key 1 the PIR is DISABLED.
    PIR is enabled when light is turned off.
     
    I tried following rules - in the first rule, the part "garage.Tryk1:manual >= 0 => disable(PIR)" dont seem to work, so i might have misunderstood the syntax for manual. Can manual be used with the Matrix?

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    1 hour ago, ChristianSogaard said:
    I trying to do a set of rules with following function

    A single switch (I am using Matrix with 4 keys) should have two lifes - A manual and a automatic controlled with PIR.
    --A manual Press on Key 1 will - turn TOGGLE the light at same Matrix and 
    -- when Manual Turn on Key 1 the PIR is DISABLED.
    PIR is enabled when light is turned off.
     
    I tried following rules - in the first rule, the part "garage.Tryk1:manual >= 0 => disable(PIR)" dont seem to work, so i might have misunderstood the syntax for manual. Can manual be used with the Matrix?

    Please login or register to see this code.

     

    Your Matrix is always operated manually.

    :manual is for devices that can either be turned on/off manually or by a script. 

    :manual returns the time since the device changed state caused by something that did not originated from a rule. Typically someone manually flip a switch as opposed to a rule flipping the switch.

     

    • Like 1
    Posted

    @jgab

    how to switch off this:

    Please login or register to see this code.

    I think I have newest version of ER4: 

    E_VERSION,E_FIX = 0.5,"fix46"

     

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

    @jgab

    how to switch off this:

    Please login or register to see this code.

    I think I have newest version of ER4: 

    E_VERSION,E_FIX = 0.5,"fix46"

     

    Can you check the file 'Toolbox_triggers' to see if it emits a TICK in the /refreshStates loop there?

    I did remove it some time ago but maybe your Toolbox in ER4 haven't been updated for some reason.

     

    However, I also used the /refreshStates loop with a 'TICK' in other QAs previous - maybe it's another QA?

    Posted

    OK, I will verify

    btw.

    this should also update of Toolbox?

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    4 minutes ago, petrkl12 said:

    OK, I will verify

    btw.

    this should also update of Toolbox?

    Please login or register to see this code.

     

    Yes it does.

    Posted

    ok, this is from your old QA for crash notifier

    how to replace that?

    Please login or register to see this code.

     

  • Topic Author
  • Posted

    Please login or register to see this code.

     

    Something like above - however the whole QA would need a refresh...

    Posted

    Good morning Jan,

    This ist giving the value?

    < Rule.eval([[eetKamer.gordijnAchter:isClosed =>

            myLog('eetKamer.gordijnAchter %s %%',eetKamer.gordijnAchter:value); log('gordijn achter gesloten')
                ]])>
    What I am doing wrong?
    //Sjakie
    Posted

    Jan, this started suddenly?

    ChildrenofHue version 1.16

    FIbaro fw 5.063.30

     

    Please login or register to see this attachment.

    Please advice,

    //Sjakie

    Posted

    "FibaroapiHC3.lua / ver 0.198" does not work in ZBS.

     

    Please login or register to see this image.

    /monthly_2021_03/image.png.60de6c8776a772cf47c0b2488acbd70c.png" />

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

    "FibaroapiHC3.lua / ver 0.198" does not work in ZBS.

     

    Please login or register to see this link.

    You must set compiler to 5.3

    Posted
    2 hours ago, jgab said:

    You must set compiler to 5.3

     

    Can I see how to do it?

  • Topic Author
  • Posted
    Just now, Earybeongbeong7 said:

     

    Can I see how to do it?

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

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