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

Guest Benrive
Posted (edited)
1 hour ago, cag014 said:

Yes, if they are not master/slave... in case of master/slave only master HC3 will see al devices.

I have seen many posts about master/slave issues... so may be as a first step use AOQ to control both HC3 - AOQ does see all device on both HC3

You can do better and to run  AOQ on every HC3 and yes, you can use and define any device of any HC3  in both AOQs 

 


It is great, since this way I can free process one or the other of the load and compensate.

Ok, I'm already looking at it in section xiv. Slave configuration 

 

Please login or register to see this code.

 

And the new jS2n={motionHC2= "400’hc2",….}

 

Thank's. 

I'm not going to put them as master and slave

Edited by Benrive
Posted
On 25.1.2022 at 21:15, cag014 said:

Tut mir leid, mein schlechtes ... sollte sein 

 

   {0, "`AbuirWZ`",{trigActState={"{`AbuirWZ`:power > 2 |`AbuirWZ`:value=true}"}, trigAct ={" `AbuirWZ` "," turnOff;else;turnOn" }}},

oder

   {0, "`AbuirWZ`",{ trigAct ={" `AbuirWZ` "," turnOff;else;turnOn","{`AbuirWZ`:power > 2 |`AbuirWZ`:value=true}"}}},

Hi cag014

This line works now.

Please login or register to see this code.

Unfortunately, the trigger doesn't let me turn on the switch anymore.

Is it possible to assign a delay to the triggerr?

for example 2 seconds so that the power has time over the comparison, in my case?

thank you

  • Topic Author
  • Posted (edited)
    1 hour ago, parip69 said:

    The delay could be set is state only like that: (in this example delay of 3 seconds)

    Means when the state became "true", wait for 3 seconds and recheck the state - if still "true" execute the line.... 

    Please see if 3 seconds is enough for the power condition...

    Please login or register to see this code.

     

     

    Edited by cag014
    Guest Benrive
    Posted (edited)
    On 1/27/2022 at 5:23 PM, Benrive said:

     

     

    I don't necessarily need to configure master and slave.
    What I need is to expand the coverage of the Zwave network and have everything to manage from one place.
    If I don't put them as master and slave, I will have 2 networks to link the devices to but they won't see each other. I'm right?

    No, RGBW will be triggered by momentary switch only for ON/Off And Adjust brightness.

     

    RGBW are for the walls in the entrance hall and in 2 hallways where I have very high ceilings.
    In these corridors I have 2 lamps with Dimmer 2, motion sensor and push buttons to turn on both dimmer 2 and RGBW 2

    The idea is to program some lines in AOQ so that they are activated at to become night and deactivated at sunrise.

    But with the possibility of turning off and on from the physical button.

     

    On 1/27/2022 at 5:05 PM, cag014 said:

    As I understand the RGBW will be triggered by sensors in the corridors?  Where the RGBW lights located ? In the living room?

     

     

     

    Hello @cag014.

     

    No, RGBW wil be triggered by momentary Switch only for ON/OFF and Bridgges.

    The momentary Switch it's only in IN3 and parameter 150 = 1 HSB Mode.

     

    Could you help me with this?. I've been trying all weekend without success, I can't get a nice effect for RGBW.
    my brain is burned

    Edited by Benrive
    Guest Benrive
    Posted

    Hello @cag014

     

    Finally I have put the new Hc3 as a slave, the reason has been to be able to have only one Yubii Application since my family uses it a lot.

     

    Inform you, that at the moment it is going very well and I have not had problems with All in One. (As far as I have now).

    if in the future I have problems, I will put both as masters and configure AIO to handle the slaves.

     

    Let's see if you can think of something to be able to do the effect I intend with the RGBW please.

    Thanks a lot

    Posted

    Hi! I have a task which I can't solve for a couple days:

     

    I'd like to turn on lights in a bathroom when the door become opened
    From 6:00 till 02:00 but only if over 2000 lux outside

    And if it's winter - same period but from 6:00 to 10:00 turn it on anyway, no matter how much lux outside

     

    My code: 

    Please login or register to see this code.

     

    Expanded variables are "if{...}" and code inside

    But light turning on at 6:00 because it's winter and doors are opened.

    How to react on "door opening" or "state just changed to opened from closed" events without repeating the code few times?

    Guest Benrive
    Posted (edited)
    5 hours ago, hellower said:

    Hi! I have a task which I can't solve for a couple days:

     

    I'd like to turn on lights in a bathroom when the door become opened
    From 6:00 till 02:00 but only if over 2000 lux outside

    And if it's winter - same period but from 6:00 to 10:00 turn it on anyway, no matter how much lux outside

     

    My code: 

    Please login or register to see this code.

     

    Expanded variables are "if{...}" and code inside

    But light turning on at 6:00 because it's winter and doors are opened.

    How to react on "door opening" or "state just changed to opened from closed" events without repeating the code few times?

     

    Try like this, I would differentiate both periods on separate lines.

    I don't know what you have inside this variable "outdoorOver2kLux". I understand that it resolves true or false.

     

    But something like this should work:

     

    {0,"`MainBathDoor`",{state="value=true",timeSlot="06:00~02:00",trueAct={"`MainBathLight`","turnOn","if {`LuxSensor`:value>2000 and `ItsWinter`:value=false}"}}},  -- Swapping LuxSensor for yours
    {0,"`MainBathDoor`",{state="value=true",timeSlot="06:00~10:00",trueAct={"`MainBathLight`","turnOn","if {`ItsWinter`:value=true}"}}}, -- Swapping ItsWinter for yours
     
    About your last question, you will need a more expert answer than mine , sorry.
    Edited by Benrive
  • Topic Author
  • Posted (edited)
    7 hours ago, hellower said:

    Hi! I have a task which I can't solve for a couple days:

     

    I'd like to turn on lights in a bathroom when the door become opened
    From 6:00 till 02:00 but only if over 2000 lux outside

    And if it's winter - same period but from 6:00 to 10:00 turn it on anyway, no matter how much lux outside

     

    My code: 

    Please login or register to see this code.

     

    Expanded variables are "if{...}" and code inside

    But light turning on at 6:00 because it's winter and doors are opened.

    How to react on "door opening" or "state just changed to opened from closed" events without repeating the code few times?

    Question - what do you mean by 06:00~02:00 ? if from 6am to 2 am?

    I do believe that you mean 6pm! then is 18:00~02:00 and it should be defined in timeSlot as shown by @Benrive

    Now the condition is not defined properly, it define as a value of variable which in this case by default the code uses as time delay!!??

    @Benrive example looks correct. In addition instead of using ItsWinter variable you can define months inside timeSlot, so no need to use extra variable.

     

     

    Edited by cag014
    Guest Benrive
    Posted

    Hello @cag014,

    I imagine you will be super busy.

    You can't think of anything for what I want to do with the RGBW ambient lights. Above I gave an example of what my intention is.

    Thank's in advance

    Posted (edited)

    @Benrive  Thank you for suggestion! I'll separate this parts and watch for results.

    @cag014  I use "Winter" in different places of the script (i have ~50 scenarios in your script and ~80 devices in the network) so for me it's better to store this code as variable instead of copy/paste this part everywhere:

    Please login or register to see this code.

    Also I use "alwaysZero" variable because TRUE or FALSE not working, maybe you know more elegant solution but this one also works :)

    BTW thanks to all!

    Edited by hellower
    update info
    Guest Benrive
    Posted (edited)

    Hello @cag014


    Well, I already have the first error with the slave home center.
    When these lines must be executed, scene command 16 is not recognized.
    This same example works perfectly with devices linked to the master home center.

     

    `LuzDPrincipal` = New Id in exclave Hc3 "Light"

     

    Please login or register to see this code.

     

    In the debug screen it does not appear that scene 16 is executed.

    And in webeye trace ... I can see today at 14:37:41 send scene 16.

     

    Please login or register to see this image.

    /monthly_2022_02/image.png.aba19f063106d904c2e89baca959b4db.png" />

     

    but in trace i don't see nothing.

     

    Please login or register to see this attachment.

     

    Would you know what it could be?

    Thanks

    Edited by Benrive
  • Topic Author
  • Posted
    2 hours ago, Benrive said:

    Hello @cag014


    Well, I already have the first error with the slave home center.
    When these lines must be executed, scene command 16 is not recognized.
    This same example works perfectly with devices linked to the master home center.

     

    `LuzDPrincipal` = New Id in exclave Hc3 "Light"

     

    Please login or register to see this code.

     

    In the debug screen it does not appear that scene 16 is executed.

    And in webeye trace ... I can see today at 14:37:41 send scene 16.

     

    Please login or register to see this link.

     

    but in trace i don't see nothing.

     

    Please login or register to see this attachment.

     

    Would you know what it could be?

    Thanks

    1. How you have defined the slave home center and the device of the slave? 

    Device in slave must have suffix of the slave name.

    2. What do you mean by scene 16 executed? sceneActivation is just and ID that device send to identify the executed action of the device (pressing some button), it is not a scene in home center.

    You can see the scene ID executed  in the "Value" column. As I see it has id 16 as required.

    Guest Benrive
    Posted
    13 hours ago, cag014 said:

    1. How you have defined the slave home center and the device of the slave? 

    Device in slave must have suffix of the slave name.

    2. What do you mean by scene 16 executed? sceneActivation is just and ID that device send to identify the executed action of the device (pressing some button), it is not a scene in home center.

    You can see the scene ID executed  in the "Value" column. As I see it has id 16 as required.

     

    1-. The exslave defined it within the general configuration as an exslave. So I have all the devices within the same Yubii App and I manage everything from the master device.

     

    Please login or register to see this image.

    /monthly_2022_02/image.png.89a4c17338432921f19d9a74770b515a.png" />

     

    I have unlinked the devices near this from the master and linked to the slave, but they all show up on the master.

    In blue the devices of the master and in red those linked in the slave

     

    image.png.55c7ce4201197a14a468064b12efe10a.png

    I have not configured the slave part in All in One ( I think it was not necessary ). Linked lights and motion devices on the slave work fine changing only in Js2n for the new assigned Id.

     

    2-. Yes, is a switch for a light ( When press momentary switch sceneActivation  = 16 ).

    Yes, the value is correct, but pressing does nothing, the action is not seen in the debug window as you can see in the previous post.

  • Topic Author
  • Posted (edited)

    Is the momentary switch actually send the sceneACtivation - I mean did you test that?

    Another few questions:

    1. Is the momentary switch part of the slave system?

    2. Could you please post property from master system of some device that included in slave system? Might be the configuration is different.

    Edited by cag014
    Guest Benrive
    Posted (edited)
    On 2/4/2022 at 1:15 PM, cag014 said:

    Is the momentary switch actually send the sceneACtivation - I mean did you test that?

    Another few questions:

    1. Is the momentary switch part of the slave system?

    2. Could you please post property from master system of some device that included in slave system? Might be the configuration is different.

    This scene works well for doing the same thing. All devices involved are on the slave.

    Please login or register to see this image.

    /monthly_2022_02/image.png.f80259a81d69d19aa2ce815f53672148.png" />

     

     

    Properties of the linked device on the slave

     

    Quote

    Please login or register to see this code.

     

    Properties of the same device linked on master. ( Other Light )

    Quote

    Please login or register to see this code.

     

    Edited by Benrive
  • Topic Author
  • Posted
    4 hours ago, Benrive said:

    This scene works well for doing the same thing. All devices involved are on the slave.

    Please login or register to see this link.

     

     

    Properties of the linked device on the slave

     

     

    Properties of the same device linked on master. ( Other Light )

     

    Just to make sure that we're on the same page...

    in AOQ your condition is 

    LuzDPrincipal`:value=0}

    while in block scene

    state=false (turned Off)

     

    there is a huge difference between them... while state=false (turned OFF) the value could be greater than 0.

    value represents the last brightness that set. while state represents the device status (on or off).

    could you please try to set same condition

    LuzDPrincipal`:state=false}

    By the way in HC2 the state parameter is not exits and value acts as value and as a state - means when you turn off the device the value goes to zero. This is the change introduced in HC3 

    Guest Benrive
    Posted
    7 hours ago, cag014 said:

    Just to make sure that we're on the same page...

    in AOQ your condition is 

    LuzDPrincipal`:value=0}

    while in block scene

    state=false (turned Off)

     

    there is a huge difference between them... while state=false (turned OFF) the value could be greater than 0.

    value represents the last brightness that set. while state represents the device status (on or off).

    could you please try to set same condition

    LuzDPrincipal`:state=false}

    By the way in HC2 the state parameter is not exits and value acts as value and as a state - means when you turn off the device the value goes to zero. This is the change introduced in HC3 

     

    Ok, I'm going to try to change what you say and tell you how it works.
    But actually I have that line the same all the lights in the bedrooms and the devices linked in the master and it works perfectly with Value = 0

    Guest Benrive
    Posted
    On 2/7/2022 at 8:42 AM, Benrive said:

     

    Ok, I'm going to try to change what you say and tell you how it works.
    But actually I have that line the same all the lights in the bedrooms and the devices linked in the master and it works perfectly with Value = 0

     

    Hello @cag014,

     

    Removing the condition if I can see in the trace that the JM line is executed on that device linked to the slave.

    The only thing I don't understand is how it worked before being in the master.?

    What I have finally done has been to replace the line with another.

     

    Please login or register to see this code.

     

    Is it correct to do it this way?

  • Topic Author
  • Posted

    looks fine...

    ?

    Guest Benrive
    Posted (edited)
    2 hours ago, cag014 said:

    looks fine...

    ?

     

    Thank's @cag014

    Can you think of something for what I want to do with the RGBW ambient lights and the circadian cycle?.

    I mentioned it a few posts above.

    Edited by Benrive

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