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

it' was a zwave fibaro dual switch (fgs223), driven by slave gateway. I wrote wrong id in js line.  Let me know if you need more info.

Posted
On 6/16/2020 at 11:17 PM, cag014 said:

@SmartLifeSystems

Please try line below (since I don't know the thermostat real command, I'm using "setPoint" command as an example)

Please login or register to see this code.

 

What do you think? Is it what you need or I'm off target?

 

 

Thanks your help!

  • Topic Author
  • Posted
    10 minutes ago, SmartLifeSystems said:

     

     

    Thanks your help!

    So it works...

    You're welcome

    Posted
    1 minute ago, cag014 said:

    Tehát működik ...

    Szívesen

     

    Yes!!! :)

    Posted

    cag014 what you think about this line

     

    {10, "`tlab`",{state="value>25",timeSlot="09:00~21:00",trueAct={{"`climamod`","setMode,2",""},{"`climafan`","setFanMode,4",""},{"`climaset`","setThermostatSetpoint,2,23",""}},falseAct={"`climamod`","setMode,0","","={$24clock:value=21:00}"}}},  

     

    It's meant to check temp every 15 min from 9 to 21, if temp >25 turn on air conditioner, then turnoff at 9pm

  • Topic Author
  • Posted (edited)

    I believe it doesn't work and you receive time out alert after 10 minutes when tlab>25.

    In addition I don't see where you checking temperature every 10 minutes? If I understand correctly tlab is temperature sensor and he reports the temperature changes regardless 10 minutes loop.

    may I suggest to use as follow:

    Please login or register to see this code.

    What it does: 

    tlab>25 trueAct{} executed in time slot 09:00~21:00

    tlab<25 falseAct{} executed in time slot 09:00~21:00

    at 21:05 falseAct{} executed

     

    For reference Time slot formats are:

    22:00~05:00 defines time slot between 22:00 to 05:00 next day.

    21:05~  if only first half of time slot defined then trueAct{} table executed at 21:05

    ~21:05 if only second half of time slot defined then falseAct{} table executed at 21:05

     

    Let me know if you need more info.

     

    Edited by cag014
    Posted

    i'm trying to avoid air conditioner on/off when tlab reports for example 25 degrees.

    {0,"`tlab`",{state="value>25",timeSlot="09:00~21:00,~21:05",trueAct={{"`climamod`","setMode,2",""},{"`climafan`","setFanMode,4",""},{"`climaset`","setThermostatSetpoint,2,23",""},{"`climamod`","setMode,0","","{`tlab`:value<23}"}},falseAct={"`climamod`","setMode,0",""}}},

     

    What you think of this modified jm line?

     In time slot air conditioner will be switched off only if tlab report <23 and at 21:05 

    Posted
    1 hour ago, gggizmo said:

    i'm trying to avoid air conditioner on/off when tlab reports for example 25 degrees.

    {0,"`tlab`",{state="value>25",timeSlot="09:00~21:00,~21:05",trueAct={{"`climamod`","setMode,2",""},{"`climafan`","setFanMode,4",""},{"`climaset`","setThermostatSetpoint,2,23",""},{"`climamod`","setMode,0","","{`tlab`:value<23}"}},falseAct={"`climamod`","setMode,0",""}}},

     

     

    edited in 

    {0,"`tlab`",{state="value>25",timeSlot="09:00~21:00",trueAct={{"`climamod`","setMode,2",""},{"`climafan`","setFanMode,4",""},{"`climaset`","setThermostatSetpoint,2,23",""},{"`climamod`","setMode,0","","{`tlab`:value<23}"},{"`climamod`","setMode,0","","={$24clock:value=21:01}"}}}}

     

     

    Posted

    I' trying to start my sprinkler system every morning at 04:00. 

    {0,"$24clock",{state="value=04:00",trueAct={{"`lineadx`","turnOn",""},{"`lineadx`","turnOff","1800"},{"`lineacx`","turnOn","1799"},{"`lineacx`","turnOff","3599"},{"`lineasxt`","turnOn","3598"},{"`lineasxt`","turnOff","5398"},{"`lineasxb`","turnOn","5397"},{"`lineasxb`","turnOff","7197"}}}},
    {0,"`lineadx`|`lineasxt`|`lineasxb`|`lineacx`",{state="value=true",trueAct={"`pompa`","turnOn",""},falseAct={"`pompa`","turnOff","","={`lineadx`:value=false|`lineasxt`:value=false|`lineasxb`:value=false|`lineacx`:value=false}"}}},

     

    It's not a starndard system cause i have to start a water pump when a sprinkler start.

    so first line is to start a sequence (single sprinkler for 30.min, then the second one). Start of second, third and fourth sprinkler, is one second before the stop of the previous one to avoid water pump off ( falseact of second jm lines).

     

     

  • Topic Author
  • Posted
    On 6/25/2020 at 12:45 PM, gggizmo said:

    edited in 

    {0,"`tlab`",{state="value>25",timeSlot="09:00~21:00",trueAct={{"`climamod`","setMode,2",""},{"`climafan`","setFanMode,4",""},{"`climaset`","setThermostatSetpoint,2,23",""},{"`climamod`","setMode,0","","{`tlab`:value<23}"},{"`climamod`","setMode,0","","={$24clock:value=21:01}"}}}}

     

     

    May I suggest very simple solution (two jM lines)

     

    {0,"`tlab`",{state="value>25",timeSlot="09:00~21:00",trueAct={{"`climamod`","setMode,2",""},{"`climafan`","setFanMode,4",""},{"`climaset`","setThermostatSetpoint,2,23",""}}}},

    {0,"`tlab`",{state="value<23",timeSlot="21:01~", trueAct={"`climamod`","setMode,0",""}}},

     

    When temp>25 turn On

    When temp<23 turnOff and at 21:01 always turnOff

  • Topic Author
  • Posted
    On 6/25/2020 at 2:15 PM, gggizmo said:

    I' trying to start my sprinkler system every morning at 04:00. 

    {0,"$24clock",{state="value=04:00",trueAct={{"`lineadx`","turnOn",""},{"`lineadx`","turnOff","1800"},{"`lineacx`","turnOn","1799"},{"`lineacx`","turnOff","3599"},{"`lineasxt`","turnOn","3598"},{"`lineasxt`","turnOff","5398"},{"`lineasxb`","turnOn","5397"},{"`lineasxb`","turnOff","7197"}}}},
    {0,"`lineadx`|`lineasxt`|`lineasxb`|`lineacx`",{state="value=true",trueAct={"`pompa`","turnOn",""},falseAct={"`pompa`","turnOff","","={`lineadx`:value=false|`lineasxt`:value=false|`lineasxb`:value=false|`lineacx`:value=false}"}}},

     

    It's not a starndard system cause i have to start a water pump when a sprinkler start.

    so first line is to start a sequence (single sprinkler for 30.min, then the second one). Start of second, third and fourth sprinkler, is one second before the stop of the previous one to avoid water pump off ( falseact of second jm lines).

     

     

    It should work, but based on my experience sometimes the system (HC2) has delays (up to several seconds) , so I wouldn't trust 1 second delay for proper operation.

    You can simplified as following:

    Please login or register to see this code.

    In this scenario no commands run in the background and it's system delays free.

     

     

    Posted
    1 hour ago, cag014 said:

    May I suggest very simple solution (two jM lines)

     

    {0,"`tlab`",{state="value>25",timeSlot="09:00~21:00",trueAct={{"`climamod`","setMode,2",""},{"`climafan`","setFanMode,4",""},{"`climaset`","setThermostatSetpoint,2,23",""}}}},

    {0,"`tlab`",{state="value<23",timeSlot="21:01~", trueAct={"`climamod`","setMode,0",""}}},

     

    When temp>25 turn On

    When temp<23 turnOff and at 21:01 always turnOff

    exactly what i did  except for second jm line

    mine is

    {0,"$24clock",{state="value=21:05",trueAct={{"`climamod`","setMode,0",""}}}},

    1 hour ago, cag014 said:

    It should work, but based on my experience sometimes the system (HC2) has delays (up to several seconds) , so I wouldn't trust 1 second delay for proper operation.

    You can simplified as following:

    Please login or register to see this code.

    In this scenario no commands run in the background and it's system delays free.

     

     

    this one works too

    {0,"$24clock",{state="value=04:00",trueAct={{"`lineadx`","turnOn",""},{"`lineadx`","turnOff","1800"},{"`lineacx`","turnOn","1770"},{"`lineacx`","turnOff","3570"},{"`lineasxt`","turnOn","3540"},{"`lineasxt`","turnOff","5340"},{"`lineasxb`","turnOn","5310"},{"`lineasxb`","turnOff","7110"}}}},

     

    30 sec delay...

     

    thanks, i think i'm just starting to understand logic and syntax of aos.

     

    Posted

    hi cag just a few questions:

    i'm wondering how to control some jm lines manually.

     

    for example sprinkler system. I heve not humidity control so how to disable time cicle for sprinklers without erasing jmline?

    and same for air conditioning or heating.

     

    may be a global var ( enabled, disabled), ore some simple trick  like a vd that set global vars to enable or disable a single lines?

  • Topic Author
  • Posted
    18 hours ago, gggizmo said:

    hi cag just a few questions:

    i'm wondering how to control some jm lines manually.

     

    for example sprinkler system. I heve not humidity control so how to disable time cicle for sprinklers without erasing jmline?

    and same for air conditioning or heating.

     

    may be a global var ( enabled, disabled), ore some simple trick  like a vd that set global vars to enable or disable a single lines?

    You're correct. Use global variables to control jM{} line.

    To control the entire jM{} line use lineState rule (the format exactly the same as conditions) for example:

    Define global gVar. Follow line is active only if gVar = true.

    Please login or register to see this code.

    If gVar <> true the line deactivated

    • 2 weeks later...
    Posted

    Another qustion about hue lights...

    {0,"`isoggiorno`",{state="centralSceneSupport=2.Pressed",trueAct={"`piantanaalta`","turnOff;else;turnOn","","{`piantanaalta`:on=true}"}}},

     

    how to add a second action after else?

    What i need is: turnon and setbrightness to 255, probably i can't find the correct syntax....

     

    tnx

  • Topic Author
  • Posted

    As far as I know brightness command could be sent any time regardless On/Off, right?

    My suggestion is to send the command on every button press.

    {0,"`isoggiorno`",{state="centralSceneSupport=2.Pressed",trueAct={"`piantanaalta`","setbrightness,255,""},{"`piantanaalta`","turnOff;else;turnOn","","{`piantanaalta`:on=true}"}}}},

    Posted

    Please login or register to see this image.

    /monthly_2020_07/image.png.15d2016ba19eea268a9f34422ebcd036.png" />

     

     

    why?, changeBrightness it's an available lua command for fibaro hue plugin...

  • Topic Author
  • Posted

    Are you sure ID 818 is Hue Light?

    Looks like this is a thermostat, and available actions for devices are

    setMode, setFan, setThermostatSetpoint.

     

    Posted

    Please login or register to see this code.

    Posted

    same behavior with every hue lights in system...on init i get setMode, setFan, setThermostatSetpoint. as permitted actions.

    just to give you more infos

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