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


S2 on dimmer should dim lights slowly


Recommended Posts

Guest MarkJ
Posted

I have a new challange. I use a dimmer (version 2.2) and I would like to get the following realised.

S1 will operate teh dimmer normaly (on,off,dimup-dim-down)

S2 I want to use to dimm the light with LUA code in small steps from 100% till 0% in about 5 minutes. I made some code to dim in 5 minutes from100 to 0 but I was not abel to link it to S2

During this time the kids can fall asleep.

How can I realise this.

Posted

You have to use sceneactivation function of S2 switch.

Guest MarkJ
  • Topic Author
  • Posted

    How can I do that?

    Seems that i missed something

    I find in LUA the posibility to use Sceneactivation but from that point I get lost

    For S2 the value should be 26 (Singel click momentary switch) but from that point onwards i do not know what to do.

    Can you please guide me in the right direction

    --[[

    %% properties

    %% globals

    --]]

    fibaro:getValue(145, "sceneActivation")

    Posted

    MarkJ, first of all, you should go to dimmer advanced properties and turn on scene activation support (parameter 41, it's turned off by default).

    After that you need a scene like this (I suppose that 145 is your dimmer ID and you are working with momentary switch 2nd button click (scene id 26)):

    Please login or register to see this code.

    In addition probably (depends on you code) you need additional check if you scene is already running (in case than someone pushes S2 several times while your scene is executing). Maybe your code requires it, maybe not.

    • 5 weeks later...
    Posted

    Thanks for sharing this. It helped me to get started with my dimmers and scenes. I'm yet to figure out how to do this with the relay switches though.

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