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


All-in-One Scene: How to do it Better


cag014

Recommended Posts

Hi cag!

 

The AOQ which one NTP server use? Because today the sunset at 21:18 in the AOQ, but in Hungary that time is 20:44.

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

Hi @cag014,

Only for the purpose of optimizing code, it would be nice if in one jM line multiple states could be the trigger.

F.i. :

{0,"`OverloopSwitch`",{state="sceneActivation=`But1Release`", trueAct={

    {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

{0,"`OverloopSwitch`",{state="sceneActivation=`But1Single`", trueAct={

    {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

Two jM lines with the same action. This could be one jM line:

{0,"`OverloopSwitch`",{state={"sceneActivation=`But1Release`" or "sceneActivation=`But1Single`"}, trueAct={

    {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

I have a lot of these state triggers with the same action.

Edited by Rover
Link to comment
Share on other sites

  • Topic Author
  • On 6/27/2021 at 10:57 AM, Rover said:

    Hi @cag014,

    Only for the purpose of optimizing code, it would be nice if in one jM line multiple states could be the trigger.

    F.i. :

    {0,"`OverloopSwitch`",{state="sceneActivation=`But1Release`", trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

    {0,"`OverloopSwitch`",{state="sceneActivation=`But1Single`", trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

    Two jM lines with the same action. This could be one jM line:

    {0,"`OverloopSwitch`",{state={"sceneActivation=`But1Release`" or "sceneActivation=`But1Single`"}, trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

    I have a lot of these state triggers with the same action.

    Let me se what can I do...

    Link to comment
    Share on other sites

  • Topic Author
  • On 6/27/2021 at 10:57 AM, Rover said:

    Hi @cag014,

    Only for the purpose of optimizing code, it would be nice if in one jM line multiple states could be the trigger.

    F.i. :

    {0,"`OverloopSwitch`",{state="sceneActivation=`But1Release`", trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

    {0,"`OverloopSwitch`",{state="sceneActivation=`But1Single`", trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

    Two jM lines with the same action. This could be one jM line:

    {0,"`OverloopSwitch`",{state={"sceneActivation=`But1Release`" or "sceneActivation=`But1Single`"}, trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

    I have a lot of these state triggers with the same action.

    OK, have added the option, please notice it works for equal comparison only ( greater or less doesn't work)

    Please set the state to all possible options and use operator ==

    For example

    {0,"`OverloopSwitch`",{state="sceneActivation==`But1Release` or `But1Single`", trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

     

    Since the string could be very long the full data won't be displayed in the table ( only first 30 characters).

    Using HcWebEye and by hovering the mouse on the line, full condition will be displaeyd.

    Please login or register to see this spoiler.

    Let me know if it works

     

     

    Please login or register to see this attachment.

    Edited by cag014
    • Thanks 1
    Link to comment
    Share on other sites

  • Topic Author
  • On 6/17/2021 at 8:49 AM, SmartLifeSystems said:

    Hi cag! I have an interesting question for you. I have a WalliDimmer, and a WalliOutlet. In the AOQ I can change this devices parameters? I would like to change the device's LED color.

    Yes, you can do it

    for example to change on device with id 31 with arguments:

    parameter number - 5

    size of the parameter in bytes - 1

    value of the parameter to set - 128

    use -

     trueAct={"31", "setConfiguration,5,1,128"}

     

    SInce the last time I have checked that was few months ago, let me know if it works

    Edited by cag014
    Link to comment
    Share on other sites

  • Topic Author
  •  

    On 6/21/2021 at 10:29 PM, SmartLifeSystems said:

    Hi cag!

     

    The AOQ which one NTP server use? Because today the sunset at 21:18 in the AOQ, but in Hungary that time is 20:44.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    AOQ uses system timedate of the controller.

    Please verify that your system shows correctly the timedate.

    sometimes if the clock changed (summer/winter)  reboot might help

     

    Edited by cag014
    Link to comment
    Share on other sites

  • Topic Author
  • I am sorry for a late response, but had a cataract surgery on both eyes...

    At least now I don't need the glasses?

    Link to comment
    Share on other sites

  • Topic Author
  • On 6/20/2021 at 10:06 PM, bbolgar said:

    Hi!

     

    What would be the best way to set a switch to be on for 2 hours then off for 1 hour, repeating?

    Please try below

    {120,"`wallSw`,{state="true",timeoutAct={"`wallSw`,"turnOff"}}},

    {60,"`wallSw`,{state="false",timeoutAct={"`wallSw`,"turnOn"}}},

     

    When you will start the AOS the counting will be started from current state of the switch, meaning if the switch is on the 2 hours count will begin, if switch is off the one hour will begin.

    Just for testing please set let's say 5 minutes ON and 2 minutes OFF

    {5,"`wallSw`,{state="true",timeoutAct={"`wallSw`,"turnOff"}}},

    {2,"`wallSw`,{state="false",timeoutAct={"`wallSw`,"turnOn"}}},

    Edited by cag014
    Link to comment
    Share on other sites

    On 7/2/2021 at 2:36 AM, cag014 said:

    OK, have added the option, please notice it works for equal comparison only ( greater or less doesn't work)

    Please set the state to all possible options and use operator ==

    For example

    {0,"`OverloopSwitch`",{state="sceneActivation==`But1Release` or `But1Single`", trueAct={

        {"&SwitchScene","setGlobal","ArmSlapen","if {&Huisstatus:value<>Slapen}"},}}},

     

    Since the string could be very long the full data won't be displayed in the table ( only first 30 characters).

    Using HcWebEye and by hovering the mouse on the line, full condition will be displaeyd.

    Please login or register to see this spoiler.

    Thanx @cag014 ?, it works beautiful! Very elegant ?

    It makes it possible to remove a lot of jM lines with the same remaining functionality!

    • Thanks 1
    Link to comment
    Share on other sites

    On 7/2/2021 at 3:00 AM, cag014 said:

    Yes, you can do it

    for example to change on device with id 31 with arguments:

    parameter number - 5

    size of the parameter in bytes - 1

    value of the parameter to set - 128

    use -

     trueAct={"31", "setConfiguration,5,1,128"}

     

    SInce the last time I have checked that was few months ago, let me know if it works

     

    Hi cag,

     

    I tryed your code, but don't working. Did I something wrong?

     

    Please login or register to see this attachment.

    On 7/2/2021 at 3:07 AM, cag014 said:

     

    AOQ uses system timedate of the controller.

    Please verify that your system shows correctly the timedate.

    sometimes if the clock changed (summer/winter)  reboot might help

     

     

    The problem was my location settings. The HomeCenter3 was the factory location. Now this is working fine.

     

    Thanks your help!

    Edited by SmartLifeSystems
    Link to comment
    Share on other sites

    On 7/2/2021 at 3:13 AM, cag014 said:

    I am sorry for a late response, but had a cataract surgery on both eyes...

    At least now I don't need the glasses?

     

    Your eyes is ok now?

    Link to comment
    Share on other sites

    45 minutes ago, SmartLifeSystems said:

     

    Hi cag,

     

    I tryed your code, but don't working. Did I something wrong?

     

    Please login or register to see this attachment.

     

    The problem was my location settings. The HomeCenter3 was the factory location. Now this is working fine.

     

    Thanks your help!

     

    Here is the devices templates, if these help for you.

     

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

  • Topic Author
  • 4 hours ago, SmartLifeSystems said:

     

    Your eyes is ok now?

    Yes, thank you

    Link to comment
    Share on other sites

  • Topic Author
  • 4 hours ago, SmartLifeSystems said:

     

    Here is the devices templates, if these help for you.

     

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Just to see what doesn't work properly can you please use "+setConfiguration,X,X,X" in your jM lines.

    Let me know...

    Link to comment
    Share on other sites

    Hi @cag014,

    Please login or register to see this spoiler.

    Could it be this one?

    Edited by Rover
    Link to comment
    Share on other sites

  • Topic Author
  • 8 hours ago, Rover said:

    Hi @cag014,

    Please login or register to see this spoiler.

    Yes, it means no state defined, so AOQ waits for first changed value to display. It could be any available value. For example for wall plug it could be state, power or energy. Every changed on any parameter will be displayed.

    By the way in this case every changed parameter will trigger the line.

    Of course if this is a motion sensor then only one parameter available - motion.

    • Thanks 1
    Link to comment
    Share on other sites

    18 hours ago, cag014 said:

    Just to see what doesn't work properly can you please use "+setConfiguration,X,X,X" in your jM lines.

    Let me know...

     

    OK, working fine now.

     

    Thanks your help!

    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, SmartLifeSystems said:

     

    OK, working fine now.

     

    Thanks your help!

    Thanks, now I know how to fix it... will include that in next release...

    • Like 1
    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, SmartLifeSystems said:

     

    OK, working fine now.

     

    Thanks your help!

    Make I ask you what exactly you are changing and why? I want to add this to Tips and Tricks document for other user to explore this option.

    Tanks n advance

    Link to comment
    Share on other sites

    The Wallis led ring color and status what I change. At xy time in the night the led ring is turning off, at xy time the led ring is turning on. And another option: if the door will be opening in the room, or the motion sensor will breach, the led ring will turn on state if I haven't automation for the actualy situation and I can see the switch in the dark. I have no problem if the led is on, but my children can't sleep sleep. :)

    Edited by SmartLifeSystems
    Link to comment
    Share on other sites

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