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

How to know the light activation


Question

Posted

Hello All,

 

Does anyone know if it is possible in LUA to become know, if the light has been turn on by clicking on S1 in dimmer?

I need it for my auto lights and if switch is not pressed then scene would switch off light after short time (someone was just passing motion sensor), but if I want to stay longer in the room, simply I would click on switch and it would stop that scene and prevent light going off so quick.

Thanks a lot

4 answers to this question

Recommended Posts

  • 0
Posted

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

  • 0
Posted

There are many ways how to accomplish that what you need. For example, when you press switch on dimmer it runs scene which changes one global variable. Your light scene while running is checking value of that global variable and if it is set not to switch off light then it leaves lights on even if motion in room is not detected because you are sitting and reading book.

 

Another example is if you turn on some appliance in that room when you stay longer like TV, or music, or some table lamp. If that appliance is connected to the smart plug, your light scene can monitor that smart plug and if detects higher consumption than usual then leave lights on.

 

I have scenes that do just that and even more. I have scene in kitchen that monitor outside weather and if it is very cloudy with or without rain it will keep lights on since it is quite dark if it is cloudy outside, or living room light scene which automatically dim lights if TV is turned on. My scenes also use alarm clock so keep lights on in the morning from time when alarm is set until some predefined time.

 

 

  • 0
Posted

+1 to @Sankotronic's solution. As his first method mentions, use the dimmer's sceneActivation to trigger a scene that changes a global variable, then use that global variable to enable/disable the auto-lighting. See the dimmer's manual for the correct sceneActivation ID numbers to use for your application.

  • 0
  • Inquirer
  • Posted

    Thank you guys, will give it a go and let see what (and how) I can do it. Seems simply thing.

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