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)

Hi,

 

¿Is it possible to do this in one line?

 

Please login or register to see this code.

 

Edited by Benrive
Posted
On 2/2/2022 at 8:12 PM, cag014 said:

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.

 

 

 

Problem still persist. Detailed:

Every morning at 6:01AM bathroom light turning on by the code:

 

Please login or register to see this code.

 

I want turn lights on if outdoor light not so bright during the day and whole night. 

Because I use this "if {...}" many times in the script I put it into a variable . Later I modify my code and add timeSlot for reduce active hours from 6:00AM to 02:00AM but can't change variable.

 

And now code works WHEN TIMESLOT (+1 min ???) instead of WHEN DOOR FALSE => TRUE

 

Here is one more strange thing:

Please login or register to see this code.

 

As you can see some devices should turn on together with MainBathLight but they don't

 

Event panel in attachment without device filter

Maybe it's cross time conditions do that, but I can't understand why here are so many logic deviations 

Please login or register to see this attachment.

Please login or register to see this attachment.

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

 

Problem still persist. Detailed:

Every morning at 6:01AM bathroom light turning on by the code:

 

Please login or register to see this code.

 

I want turn lights on if outdoor light not so bright during the day and whole night. 

Because I use this "if {...}" many times in the script I put it into a variable . Later I modify my code and add timeSlot for reduce active hours from 6:00AM to 02:00AM but can't change variable.

 

And now code works WHEN TIMESLOT (+1 min ???) instead of WHEN DOOR FALSE => TRUE

 

Here is one more strange thing:

Please login or register to see this code.

 

As you can see some devices should turn on together with MainBathLight but they don't

 

Event panel in attachment without device filter

Maybe it's cross time conditions do that, but I can't understand why here are so many logic deviations 

Please login or register to see this attachment.

Please login or register to see this attachment.

 

 

4 hours ago, hellower said:

Please login or register to see this code.

Do you mean that this code makes the light turn on by itself every day at 06:01?.

 

1-. In this case, the only thing you can do to turn on the light is to open the door. This is the action that performs evaluating the rest.

2-. Do you have other JM lines that influence the light in the bathroom or the door?.

3-. Try to put some line to be able to chase the error.

{0,"`MainBathDoor`",{state="value=true",trueAct={"warningTag" , "warning" , "Door Open"}}}

{0,"`MainBathLight`",{state="value=true",trueAct={"warningTag" , "warning" , "Light On"}}}

 

 

Edited by Benrive
Posted
5 hours ago, Benrive said:

 

 

Do you mean that this code makes the light turn on by itself every day at 06:01?.

 

1-. In this case, the only thing you can do to turn on the light is to open the door. This is the action that performs evaluating the rest.

2-. Do you have other JM lines that influence the light in the bathroom or the door?.

3-. Try to put some line to be able to chase the error.

{0,"`MainBathDoor`",{state="value=true",trueAct={"warningTag" , "warning" , "Door Open"}}}

{0,"`MainBathLight`",{state="value=true",trueAct={"warningTag" , "warning" , "Light On"}}}

 

 

 

Yes, this code makes the light turn on every day

1. Yes, door is open at this time, as few hours before without changing state. So when timeSlot in action the light turns on. But I expect it will turn when state will change from "false" to "true"

2. Yes, but first attachment let me make assumption that it is exactly this part of code

3. This is very interesting debug process but as I understand it is only schematic description. Can you explain how to perform it in real code?

  • Topic Author
  • Posted
    On 2/9/2022 at 12:51 PM, hellower said:

    Problem still persist. Detailed:

    Every morning at 6:01AM bathroom light turning on by the code:

    When the timeSlot starts, the code initializes the line. To avoid that please add initOnStartup=false at your line.

    Please login or register to see this code.

    • Like 1
  • Topic Author
  • Posted
    On 2/8/2022 at 7:28 PM, Benrive said:

    Hi,

     

    ¿Is it possible to do this in one line?

     

    Please login or register to see this code.

     

    Of course, any action array [trueAct, falseAct, …] could have unlimited number of commands

    {0,"`EntAbrePuerta`",{state="centralSceneSupport=1.Pressed",trueAct={{"`cerraduraPuerta`","unsecure"},{"`SalAbrePuerta`","turnOn"}}}},

    Guest Benrive
    Posted (edited)
    On 2/12/2022 at 1:25 PM, cag014 said:

    Of course, any action array [trueAct, falseAct, …] could have unlimited number of commands

    {0,"`EntAbrePuerta`",{state="centralSceneSupport=1.Pressed",trueAct={{"`cerraduraPuerta`","unsecure"},{"`SalAbrePuerta`","turnOn"}}}},

     

    Thank's

    Perfect, this speeds up a lot. Could a 3 second delay be added in the second instruction?. {"`SalAbrePuerta`","turnOn"}

    As well as setting it to return to TurnOff after another 2 seconds?

     

    Please login or register to see this code.

     

    Could it be something like that?.

     

    Please login or register to see this code.

     

    Edited by Benrive
    Guest Benrive
    Posted (edited)

    Hi @cag014,

     

    Hello,
    I keep having problems with JM lines when running on linked devices on the slave.

    This same scene on the other 7 linked lights on the master HC3 work perfect.

     

    Please login or register to see this code.

     

    I can't understand what can happen

    I have tried with Value=0 and with State=false 

    but it does nothing

     

    Edited by Benrive
  • Topic Author
  • Posted
    On 2/14/2022 at 12:47 PM, Benrive said:

    Hi @cag014,

     

    Hello,
    I keep having problems with JM lines when running on linked devices on the slave.

    This same scene on the other 7 linked lights on the master HC3 work perfect.

     

    Please login or register to see this code.

     

    I can't understand what can happen

    I have tried with Value=0 and with State=false 

    but it does nothing

     

    When you expect this line should work, I mean according to your time slot it won't work at night... only between 8 am to 11 pm. 

    Is it works during the day?

    On 2/14/2022 at 12:32 PM, Benrive said:

     

    Thank's

    Perfect, this speeds up a lot. Could a 3 second delay be added in the second instruction?. {"`SalAbrePuerta`","turnOn"}

    As well as setting it to return to TurnOff after another 2 seconds?

     

    Please login or register to see this code.

     

    Could it be something like that?.

     

    Please login or register to see this code.

     

    Yes, this is correct

    Guest Benrive
    Posted
    3 hours ago, cag014 said:

    When you expect this line should work, I mean according to your time slot it won't work at night... only between 8 am to 11 pm. 

    Is it works during the day?

     

    Yes, they are 2 equal lines, only the time and the brightness level change. To avoid when waking up or getting up at night that the light ilimune to the maximum

  • Topic Author
  • Posted (edited)
    On 2/14/2022 at 12:47 PM, Benrive said:

    Hi @cag014,

     

    Hello,
    I keep having problems with JM lines when running on linked devices on the slave.

    This same scene on the other 7 linked lights on the master HC3 work perfect.

     

    Please login or register to see this code.

     

    I can't understand what can happen

    I have tried with Value=0 and with State=false 

    but it does nothing

     

    I am a little bit confused... by looking on your block scene you have two devices

    Please login or register to see this spoiler.

    Mando D.Principal   which monitored for sceneActivation ==16

    and

    Luz D.Principal which looks like the dimmer that turns on the lights.

     

    In jM line I see only LuzDPrincipal (which is monitored for sceneActivation==16 and as a dimmer) is it correct? or might be like

     

    Please login or register to see this code.

    Edited by cag014
    Guest Benrive
    Posted
    8 hours ago, cag014 said:

    I am a little bit confused... by looking on your block scene you have two devices

    Please login or register to see this spoiler.

     

    Yes, I thought the same as you having the scene like this.
    I changed as you told me but AOQ tells me that the property is not valid for this device.

    The weird thing is that in every other light, the same thing is working.

     

    These are the properties and this is the AIO message. But in Scene It's Ok

     

    The properties :

    Please login or register to see this image.

    /monthly_2022_02/image.png.9dde20fceecf0c2764f43a91bee67374.png" />

     

    Please login or register to see this attachment.

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

     

    Yes, I thought the same as you having the scene like this.
    I changed as you told me but AOQ tells me that the property is not valid for this device.

    The weird thing is that in every other light, the same thing is working.

     

    These are the properties and this is the AIO message. But in Scene It's Ok

     

    The properties :

    Please login or register to see this link.

     

    Please login or register to see this attachment.

    OK, let's try that

    please add + sign before sceneActivation - should be

    .... state="+sceneActivation=16",.....

    In addition could you please

    1. post property of device 326 at your master system

    2. As I understand you have LUA scene works with sceneACtivation... please post the scene conditions

    Guest Benrive
    Posted
    3 hours ago, cag014 said:

    OK, let's try that

    please add + sign before sceneActivation - should be

    .... state="+sceneActivation=16",.....

    In addition could you please

    1. post property of device 326 at your master system

    2. As I understand you have LUA scene works with sceneACtivation... please post the scene conditions

     

    Hi,

     

    I have included + in front, but nothing follows without doing anything.

    This the properties os device 326.

    Quote

    Please login or register to see this code.

     

    The scene in LUA , work's good

     

    Please login or register to see this code.

     

    Action.

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    6 hours ago, Benrive said:

     

    Hi,

     

    I have included + in front, but nothing follows without doing anything.

    This the properties os device 326.

     

    Let's try something else

    Go back and use following line (w/o condition) to verify that sceneActivation of the slave seen by the master system)

     

    {0,"`LuzDPrincipal`",{state="sceneActivation=16",timeSlot="08:01~22:59",trueAct={"`LuzDPrincipal`","setValue,40"}}},

     

    or you can test it with this line (when sceneActivation = 16 you should see at debug window trace line showing " LuzDPrincipal sceneID = 16")

     

    {0,"`LuzDPrincipal`",{state="sceneActivation=16",trueAct={"","trace","LuzDPrincipal sceneID = 16"}}},

    Press the switch several times to change the sceneID to see if it works properly

    Guest Benrive
    Posted
    7 hours ago, cag014 said:

    Let's try something else

    Go back and use following line (w/o condition) to verify that sceneActivation of the slave seen by the master system)

     

    {0,"`LuzDPrincipal`",{state="sceneActivation=16",timeSlot="08:01~22:59",trueAct={"`LuzDPrincipal`","setValue,40"}}},

     

    or you can test it with this line (when sceneActivation = 16 you should see at debug window trace line showing " LuzDPrincipal sceneID = 16")

     

    {0,"`LuzDPrincipal`",{state="sceneActivation=16",trueAct={"","trace","LuzDPrincipal sceneID = 16"}}},

    Press the switch several times to change the sceneID to see if it works properly

     

    Hello ,

     

    I'll tell you how it works.

    Once the lines are added without condition, pressing does not recognize scene 16.

    But, if after pressing I modify the brightness value (I increase the intensity, keeping it pressed). For example until value = 66 , pressing again recognizes the scene and sets the value = 40 according to the JM line.

     

    It only recognizes the scene if the value has been previously changed

     

    Please login or register to see this attachment.

    Guest Benrive
    Posted

    Hello,

     

    I have finished installing the ambient lights in the entryway of our new house.
    Currently I have put these JM lines to be able to act on the button.

     

    Scene One Click ( Mode Aurora )

    Please login or register to see this code.

    Scene Two Click ( Mode Only White )

     

    Please login or register to see this code.

     

    I automatically activate the "Aurora" scene, it is the one that most closely resembles what I want.

    Please login or register to see this code.


    I want to give showiness to those high walls.

    Can you think of any way to do it through some sequence in LUA, imagine that it would be to set the scene as if it were a museum or something similar.

    I'll pass you pictures of where they are and how it is so that you can get an idea of what I intend.

    Please login or register to see this image.

    /monthly_2022_02/image.png.6b89654f918cf720e796c450a9651174.png" />

     

    image.png.1479d50f07f523d5afbad9b8a6728a63.png

    Thanks in advance

     

     

  • Topic Author
  • Posted
    On 2/18/2022 at 9:37 AM, Benrive said:

     

    Hello ,

     

    I'll tell you how it works.

    Once the lines are added without condition, pressing does not recognize scene 16.

    But, if after pressing I modify the brightness value (I increase the intensity, keeping it pressed). For example until value = 66 , pressing again recognizes the scene and sets the value = 40 according to the JM line.

     

    It only recognizes the scene if the value has been previously changed

     

    Please login or register to see this attachment.

    I have tested my dimmer (Fibaro 212) and it works just fine regardless the dimmer's value.

    Could you verify that red light on the dimmer is off and not blinking...

    On 2/18/2022 at 2:50 PM, Benrive said:

    Hello,

     

    I have finished installing the ambient lights in the entryway of our new house.
    Currently I have put these JM lines to be able to act on the button.

     

    Scene One Click ( Mode Aurora )

    Please login or register to see this code.

    Scene Two Click ( Mode Only White )

     

    Please login or register to see this code.

     

    I automatically activate the "Aurora" scene, it is the one that most closely resembles what I want.

    Please login or register to see this code.


    I want to give showiness to those high walls.

    Can you think of any way to do it through some sequence in LUA, imagine that it would be to set the scene as if it were a museum or something similar.

    I'll pass you pictures of where they are and how it is so that you can get an idea of what I intend.

    Please login or register to see this link.

     

    Please login or register to see this link.

    Thanks in advance

     

     

    Is the bulb light on the ceiling  is RGB z-wave also?

    Guest Benrive
    Posted
    9 hours ago, cag014 said:

    I have tested my dimmer (Fibaro 212) and it works just fine regardless the dimmer's value.

    Could you verify that red light on the dimmer is off and not blinking...

    Is the bulb light on the ceiling  is RGB z-wave also?

     

    Hello @cag014
    The rest also work normally for me, there is no light on the device.
    This line stopped working when binding to the slave

    9 hours ago, cag014 said:

    Is the bulb light on the ceiling  is RGB z-wave also?

     

    Yes it is dimmable, I also have a motion sensor on those Aeotec stairs.

    Guest Benrive
    Posted (edited)

    Hello,

     

    I When this scene is launched, the first part is executed 2 times (I imagine that because pressing once (1 sec) recognizes as 2 times.
    Is there any way to prevent this? I've already set the Input 1 in smart implant to 1 sec but I can't go down any longer.

     

    The Jm Line.

    Please login or register to see this code.

     

    Trace: Only Push one 

     

    Please login or register to see this attachment.

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