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


  • 0

Help with problem with declarations on Home Center 3


Pete123

Question

Hi,

 

I have an issue with some declarations on Home Center 3.

what I want to do is:

if:

-all lights are off

-lux below limit

-cleaning is "no"

-motion from any motion sensor

-light control is set to "auto"

or if:

-any lights are on

-lux sensor change value

-cleaning is "no"

-light control is set to "auto"

 

Then I want the scene to run.

 

With the current declarations I have, it always trigger if any motion is detected.

If I only use the first or second part of mentioned above, it works as I intend it to.

I have tried to remove parts of each criteria mentioned above, but it does not help, only if I limit it to one or the other part.

 

I would really appreciate if someone could help me point out my mistake:

Please login or register to see this attachment.

--light trigger v5.0
{
    operator = "any",
    conditions = {
        {
            operator = "all",
            conditions = { 
                {
                    id = 253,       --ambience sensor 
                    isTrigger = false,
                    operator = "<=",
                    property = "value",
                    type = "device",
                    value = 500
                },
                {
                    isTrigger = false,
                    operator = "==",
                    property = "cleaning",  --Cleaning 
                    type = "global-variable",
                    value = "no"
                },
                {
                    isTrigger = false,
                    operator = "==",
                    property = "controlGuestRoom",  --auto/manual
                    type = "global-variable",
                    value = "auto"
                },
                {
                    operator = "any",
                    conditions = { 
                        {
                            id = 454,       --motion sensor
                            isTrigger = true,
                            operator = "==",
                            property = "value",
                            type = "device",
                            value = true
                        }, 
                        {
                            id = 251,       --motion sensor
                            isTrigger = true,
                            operator = "==",
                            property = "value",
                            type = "device",
                            value = true
                        } 
                    }
                }, 
                {
                    operator = "all",
                    conditions = {
                        {
                            id = 271,       --light
                            isTrigger = false,
                            operator = "<=",
                            property = "value",
                            type = "device",
                            value = 5
                        }, 
                        {
                            id = 614,       --light
                            isTrigger = false,
                            operator = "<=",
                            property = "value",
                            type = "device",
                            value = 5
                        }, 
                        {
                            id = 619,       --light
                            isTrigger = false,
                            operator = "<=",
                            property = "value",
                            type = "device",
                            value = 5
                        }, 
                        {
                            id = 249,       --light switch
                            isTrigger = false,
                            operator = "==",
                            property = "value",
                            type = "device",
                            value = false
                        }
                    }
                }
            }
        },
        {
            operator = "all",
            conditions = {
                {
                    operator = "any",
                    conditions = {
                        {
                            id = 271,       --light
                            isTrigger = false,
                            operator = ">=",
                            property = "value",
                            type = "device",
                            value = 5
                        }, 
                        {
                            id = 614,       --light
                            isTrigger = false,
                            operator = ">=",
                            property = "value",
                            type = "device",
                            value = 5
                        }, 
                        {
                            id = 619,       --light
                            isTrigger = false,
                            operator = ">=",
                            property = "value",
                            type = "device",
                            value = 5
                        }, 
                        {
                            id = 249,       --light switch
                            isTrigger = false,
                            operator = "==",
                            property = "value",
                            type = "device",
                            value = true
                        }
                    }
                },
                {
                    id = 253,       --ambience sensor 
                    isTrigger = true,
                    operator = "anyValue",
                    property = "value",
                    type = "device"
                },
                {
                    isTrigger = false,
                    operator = "==",
                    property = "cleaning",  --Cleaning 
                    type = "global-variable",
                    value = "no"
                },
                {
                    isTrigger = false,
                    operator = "==",
                    property = "controlGuestRoom",  --auto/manual
                    type = "global-variable",
                    value = "auto"
                }
            }
        }
    }
}

 

Edited by Pete123
update of lua
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  • Inquirer
  • This is an issue and has been reported to support. No news on when it will be fixed.

    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
    Answer this question...

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