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

Problems with scenes


Lauri
 Share

Question

Hi, I'm having trouble to get one scene to work correctly, maybe someone can help me?

I have aeonlabs 4-1 sensor in my bathroom and if I enter the room - light goes on. Now I tried to create a scene where light is turned off if I forgot it or smth...

I attached one version of this:

laevalgusti = light

Liikumisandur = motion sensor from 4-1 sensor

Idea was - IF ceiling light is ON and motion sensor has been safe for 60sec (no movement) then it will turn OFF the ceiling light.

I also tried same scene with small modifications - IF ceiling fan is ON for 60sec and motion sensor SAFE THEN turn OFF light..

No luck so far... If i manually run the scene it works - but it doesnt work automatically. I have checked "start with HC2" option and restarted HC2 - no change..

Please login or register to see this attachment.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Any luck with this?

I am seeing the same problem with LUA in the beta as well.

I'm not sure if its relevant but my 4-1 sensor is running off a battery, not mains. However with the HC2 home page open, I can see it change from 0 to 1, so I assume the HC2 has the upto date value for the sensor. However it never seems to start the scene.

Anyone have any ideas?

Link to comment
Share on other sites

  • 0

For those that are having problems. I resolved my issue by adding a section under %%properties

This appears to link the scene execution to the value change on the motion sensor

Link to comment
Share on other sites

  • 0
  • Inquirer
  • I didn't get it working and decided to go back to stable version.

    Can you explain what did you do exactly with %%properties?? I did'nt understand this at the moment.

    Link to comment
    Share on other sites

    • 0

    Unfortunately I cant show you the exact code as I am at work, and the beta doesnt work with remote access yet ;o)

    It seems putting something like :-

    %%properties

    39 value

    at the top of the LUA script means that the scene is triggered when deviceId 39's value changes. In my case, deviceId 39 is the motion sensor.

    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.

     Share

    ×
    ×
    • Create New...