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

Posted

Hello!

I am using a scene to slowly dim a light from 50 -> 0 over 10 minutes.

But, this means that when I press the S1 switch, the light does not light up, as it is “turning on” with a level of 0. Yes, you could double click and go to 100%, but try to explain that to a three year old kid with bad dreams… :=)

Is it possible to set a parameter to tell the light “Start up at 40 next time”?

Posted

Don't know how dimmers work but I'd say:

Either: catch the "push" event when turning off the lamp to set default to 40 when somebody pushes the button next time

If that's not possible because if you do so the light turns on when setting value then: catch the event when turning on the light to automagically set value to 40 if it equals 0

This can be done using scenes with triggers.

  • Topic Author
  • Posted
    Don't know how dimmers work but I'd say:

    Either: catch the "push" event when turning off the lamp to set default to 40 when somebody pushes the button next time

    If that's not possible because if you do so the light turns on when setting value then: catch the event when turning on the light to automagically set value to 40 if it equals 0

    This can be done using scenes with triggers.

    "Set the default", yeah, but I cannot find a parameter which does this.

    " catch the event when turning on the light to automagically set value to 40 if it equals 0" I connot really do this, as S1 is hard wired, is it not?

    Posted

    "hard wired" = button, that's what you mean ?

    You can catch the event using the ID of the dimmer and then check its value.

    Posted
    Hello!

    I am using a scene to slowly dim a light from 50 -> 0 over 10 minutes.

    could you please share your code for this?

  • Topic Author
  • Posted
    Hello!

    I am using a scene to slowly dim a light from 50 -> 0 over 10 minutes.

    could you please share your code for this?

    Sure, it's dead simple and has no overrides tho..

    Please login or register to see this code.

    [/code]

    Posted

    My code, based on yours.

    Please login or register to see this code.

    I've add two last lines to restore to normal level.

    I have side-effect: blink of light on "SetValue,99", but very-very short and not for full power, and then it turns off.

    After that, when I press physical button to turn on light - I have 99% level. I prefer 99% since dim max level is 99 in configuration. Maybe 100% work as well.

    BTW, your script works much faster than 10 minutes. About 60 seconds from 50% to 0%. I think 50*1200ms=60 seconds, not 600.

    I left 1*1000*50=50 seconds for test purpose in my version.

    I have no idea how can be done without side effects.

    [ Added: 2014-01-18, 00:30 ]

    more testing done.

    Please notice that

    fibaro:call(lampID, "setValue", 0);

    is totally equal to

    fibaro:call(lampID, "turnOff")

    Since level 0 is not possible. min level is 1.

    So, final code for your 40%, 10 minutes

    Please login or register to see this code.

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