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
    44 minutes ago, ChristianSogaard said:

    Hi Jan

     

    I seems that the ´;;´dont work - the two last lines only work when || value < 500 & value  line is hit

     

        || value < 500 & value > 225  >> extractor_step=4; extractor_light = 1;;
        post(#Extractor{step=extractor_step,light=extractor_light});
        log(extractor_step++' '++extractor_light);

     

     

    Try triple - ';;;'

    Posted (edited)
    1 hour ago, jgab said:

    Try triple - ';;;'

    Tried - having same behavior. only running  last two lines when last line trigger, changed back to ;;

    I also looks like rule two only runs when light is 1

     

    Please login or register to see this code.

     

    Edited by ChristianSogaard
    P
    Posted
    On 6/25/2021 at 11:36 AM, jgab said:

    Ok, they didn't exist as ER4 commands.

    I pushed v0.5fix62 with new commands:

    Please login or register to see this code.

    Bit unsure if you need to quote number values like '18' or it is ok with 18.

    You need to stringify 'Cool' etc as they are sent as strings. Without quotes, ER will interpret Cool as a variable (that is probably nil)

     

    For actions I don't support yet you can use the fibaro call in the rule...

    Ex.

    rule("trueFor(00:01:00,(PVFronius:value > 1000 & DanfosRSHolEtajTemp:value > 26)) => fibaro.call(ACScara,'setThermostatMode','Cool')")

    ...and then tell me to implement it as a :command.

     

     

     

    I still can not make it work fully ;(  Must be all the drinks i had in the weekend... or something

     

    The new commands work, so does the fibaro.call in rules.

     

    But i need to check if for example Fan was set on High or Mode is Off for the last 10 minutes.

     

    Something like :

     

    rule("trueFor(00:10:00,(PVFronius:value > 1000 & DanfosRSHolEtajTemp:value > 24 & ACScara:thermostatMode='Off')) => log('test OK')")
     
    Must be something easy which i am overlooking.
     
    Thank you for help :) 
     
    Posted

    Jan since short time I have some difficulties with my arming scene.

    After some long investigation I see that the trigger is not working in one QA (1306).

    If I copy the debug to the other (1306) scene it does not show the change of state see debug

    QA1305 is the originator if hoofdslaapkamer.laders:isOn it generate a post and remote (#opStaan) and the same for (#bedTime)

     

     

    Please login or register to see this attachment.

    BUT;

    The remote (#opStaan) and (#bedTime) are comming trough.

    If I copy Event Runner page from 1305 to 1306 the editor show its the same, save is not blue

    Any idea?

    //Sjakie

     

    Posted
    1 hour ago, Sjakie said:

    Jan since short time I have some difficulties with my arming scene.

    After some long investigation I see that the trigger is not working in one QA (1306).

    If I copy the debug to the other (1306) scene it does not show the change of state see debug

    QA1305 is the originator if hoofdslaapkamer.laders:isOn it generate a post and remote (#opStaan) and the same for (#bedTime)

     

     

    Please login or register to see this attachment.

    BUT;

    The remote (#opStaan) and (#bedTime) are comming trough.

    If I copy Event Runner page from 1305 to 1306 the editor show its the same, save is not blue

    Any idea?

    //Sjakie

     

    HI @Sjakie - did you put alarm into the self:enableTriggerType({"device","global-variable","custom-event","profile","alarm", "sceneEvent" }) ?

    Posted

    Hello Cristian,

    No I did not.

    The alarm was working perfect except I wanted to recieve only one message independant wich partiton, I have9, is/will be armed/disarmed.

    So my gues is I dont need to do that orsomething is/has changed in ER? Jan did you changed something?

    I can not restore back totest do to renaming/numbering all partitions and all equipment in alarmsystem.

    The missing messages are reverting back to the trigger mentioned in previous post.

    Thanks for your remark,

     

    Jan

    Please login or register to see this code.

     

    In this QA time rules does  notwork either, I am on fix 62

    //Sjakie

    Posted

    I have no clue at all what is happening but now its working again!!!!!!!!!!!

    //Sjakie

     

    Posted
    3 hours ago, Sjakie said:

    I have no clue at all what is happening but now its working again!!!!!!!!!!!

    //Sjakie

     

     

    behind the scenes Jgab Magic what else :) 

     

    • Like 1
    Posted

    Hahaha yep great service from Jan!

     

    Jan,

    I am playing with some dates and time I want every even week number a message but also a start weeknumber if possible?

    Please login or register to see this code.

    Here I do something wrong.

    Please login or register to see this code.

    Please advice,

    //Sjakie

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

    Hahaha yep great service from Jan!

     

    Jan,

    I am playing with some dates and time I want every even week number a message but also a start weeknumber if possible?

    Please login or register to see this code.

    Here I do something wrong.

     

    wnum % 2 == 0 & wnum >= 20 & wnum <= 40

     

    Even weeks between week 20 and 40

     

    5 hours ago, Sjakie said:

    Please login or register to see this code.

    Please advice,

    //Sjakie

    Time needs @ and is only 24h

    rule(“@11:20 & day(‘29’) & month(‘6’) => ….

    Posted
    On 6/27/2021 at 11:23 AM, ChristianSogaard said:

    Hi Jan

     

    I seems that the ´;;´dont work - the two last lines only work when || value < 500 & value  line is hit

     

        || value < 500 & value > 225  >> extractor_step=4; extractor_light = 1;;
        post(#Extractor{step=extractor_step,light=extractor_light});
        log(extractor_step++' '++extractor_light);

     

     

    Hi @jgab - any thoughts what i can try, now where ;; and ;:; if not working as delimiter for the "|| value" statements ?

    Posted

    Jan, thanks for the answer on my two questions.

    I started again with ICAL V01  it will shows my calender items in edit preview window

    When I use the version V09 i see no items in the preview window???

    Besides that it will give in trace:

    Please login or register to see this attachment.

     

     

    If I create a second calender it will crash both Ical QA's

    Please login or register to see this attachment.

    Please advice,

    //Sjakie

  • Topic Author
  • Posted
    On 6/30/2021 at 7:44 AM, ChristianSogaard said:

    Hi @jgab - any thoughts what i can try, now where ;; and ;:; if not working as delimiter for the "|| value" statements ?

    Sorry, it's a bug in the script compiler - will look at it during the weekend.

    (It's strange as it has passed tests  in the past)

    On 6/30/2021 at 8:28 AM, Sjakie said:

    Jan, thanks for the answer on my two questions.

    I started again with ICAL V01  it will shows my calender items in edit preview window

    When I use the version V09 i see no items in the preview window???

    Besides that it will give in trace:

    Please login or register to see this attachment.

     

     

    If I create a second calender it will crash both Ical QA's

    Please login or register to see this attachment.

    Please advice,

    //Sjakie

    I don't actively support the iCAL QA as I don't use it myself. I may have a look this weekend.

    Posted
    On 6/28/2021 at 12:03 AM, Momos said:

     

    I still can not make it work fully ;(  Must be all the drinks i had in the weekend... or something

     

    The new commands work, so does the fibaro.call in rules.

     

    But i need to check if for example Fan was set on High or Mode is Off for the last 10 minutes.

     

    Something like :

     

    rule("trueFor(00:10:00,(PVFronius:value > 1000 & DanfosRSHolEtajTemp:value > 24 & ACScara:thermostatMode='Off')) => log('test OK')")
     
    Must be something easy which i am overlooking.
     
    Thank you for help :) 
     

     

    Please please @jgab tell me what can i do ?   I tried everything i could think about...

    Posted

    Hi Momos,

     

    Please login or register to see this code.

    If your value >1000 is Watt you need to use power

    give it a try,

    tip:

    break rule in pieces and see where it goes wrong

    //Sjakie

    here with other devices it works

     

    Posted

    The problem is with the thermostats:

     

    Please login or register to see this code.

     

    This is where the rule breaks.

     

     

     

    Posted

    Please login or register to see this code.

    Posted
    On 6/25/2021 at 11:36 AM, jgab said:

    Ok, they didn't exist as ER4 commands.

    I pushed v0.5fix62 with new commands:

    Please login or register to see this code.

    Bit unsure if you need to quote number values like '18' or it is ok with 18.

    You need to stringify 'Cool' etc as they are sent as strings. Without quotes, ER will interpret Cool as a variable (that is probably nil)

     

    For actions I don't support yet you can use the fibaro call in the rule...

    Ex.

    rule("trueFor(00:01:00,(PVFronius:value > 1000 & DanfosRSHolEtajTemp:value > 26)) => fibaro.call(ACScara,'setThermostatMode','Cool')")

    ...and then tell me to implement it as a :command.

     

     

     

    this:)

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

    Please login or register to see this code.

    Yes, to test a property you need to use '==' like in Lua

    If you only use '=' it is interpreted as an assignment.

    1 hour ago, Momos said:

     

    this:)

    These functions are in 0.5,fix62

    <ID>:thermostatSetpoint=<val>

    <ID>:setThermostatMode=<val>
    <ID>:setCoolingThermostatSetpoint=<val>
    <ID>:setThermostatFanMode=<val>

     

    what functions are you missing still missing?

  • Topic Author
  • Posted
    On 6/30/2021 at 7:44 AM, ChristianSogaard said:

    Hi @jgab - any thoughts what i can try, now where ;; and ;:; if not working as delimiter for the "|| value" statements ?

     

    Hi, the || >> is fixed now. Pushed 0.5fix63

    Note that you need to use ;; the end the ||>> sequence.

    Because the actions to the right of the >> can be a sequence of statements separated by ';'.

    Therefore the compiler needs a double ';;' to signal that the sequence has ended. 

    Ex.

    Please login or register to see this code.

     

     

     

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