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


Question

Posted

Hi everyone, 
I have HC3. I want to turn on a light not at 100%, just at 10%. But I don't want the light to start and 100% and then decrease level to 10%, I just want to turn it on at 10%. 

 

That said, while building LUA scene, I put this in "action"

 

hub.call(235, 'setValue', 10)
hub.setTimeout(2000, function()
hub.call(235, 'turnOff')
end)
 
Why if I put set Value to 1, the light turns on at 100%? then it goes to 1% and 2 seconds later it turns off (this last part is fine). 
 
The weird thing is that I use the same LUA scene for ID 99, it works as expected, but not with ID 235. I first created for ID 99, then copy the LUA scene and just changed ID for 235
 
Thanks, 
Best, 

10 answers to this question

Recommended Posts

  • 0
Posted

Which device are you controlling?
In general, you are doing it in the right way.

  • 0
  • Inquirer
  • Posted

    It's a light from my kid's room. He gets out of bed very early and turns on the light, so I want that light to be off even if he pushes the light button. 

    This is device information.
    Category: Lights
    Role: Dimmer
    Manufacturer: Fibargroup
    Version: 3.5
    Node.Endpoint: 38.1
    Type: Dimmer

    • 0
    Posted

    In general, a single click on the device restores the previous state of the output. If it was 100% before turning the device off the device will go back to it and your scene will overwrite it to 10%.

    If you want full control over brightness you can for example set Parameter 19 to 1, it will cause turning on the light by the button by default will set 1% of brightness.
    Then, from the scene - you can set it to any value you want depending on other factors. 

    • 0
  • Inquirer
  • Posted

    Can you share with me example of how I should put the "action" Parameter 19 to 1? 

     

    Thanks! 

    • 0
    Posted

    @gdigiorno He means the parameters setting of the device itself. You can setup this manually. 

     

    Please login or register to see this attachment.


     

    Please login or register to see this attachment.


     



     

     

    • 0
  • Inquirer
  • Posted (edited)

    Got it. 

    I can set it to 1%, and that would solve starting light at 1% instead of 99%.

     

    But, if even if I press the light button twice, it continues doing the "action", it doesn't put the light to 100%. I mean, double tapping light button, still do the "action" (turn off the light). 

     

    Is there anything in parameters or in LUA script that I can do in order to dismiss turning off light when I do double tapping? 

     

    Thanks!

     

    Please login or register to see this attachment.

    Edited by gdigiorno
    • 0
    Posted

    I don’t understand what you are trying to do, but maybe you mean parameter 23?

     

    Please login or register to see this attachment.

    • 0
    Posted

    I use block scene to achieve this. Has set brightness function for light

    • 0
  • Inquirer
  • Posted

    Thanks for your feedback. Really appreciate it! 

     

    What actually is happening is the following

     

    If Scene is "OFF"
    - I put 1% in Parameter 19, with one single click turns on light at 1%, with double click, turns on light 100%. 

    If Scene is "ON"

    - I put 1% in Parameter 19, with one single click turns on light at 1%, then it turns light off. If I do double click, it goes to 100% and then turns light off (it doesn't keep turned on at 100%). 

     

    What I really want is 
    Scene "OFF"
    - Single click turns on light at 100%
     

    Scene ON

    Option 1:

    - Single click turns light at 1% and then turns off during specific time range (8pm to 8am). Outside time range, light turns on at 100%. Double click turns light 100% even in time range
    Option 2:

    - Single click turns lighat at 1% and then turns off during specific time range. Outside time range, light continues turning at 1%, and with doubleclick light turns at 100%

     

    Time range is something I've already done and works well, but the action part is the one I'm missing something to make it work properly. 

     

    My scene looks like this now:

     

    DECLARATIONS (Conditions/Triggers)

    {
    conditions = { {
    id = 99,
    isTrigger = true,
    operator = "==",
    property = "state",
    type = "device",
    value = true
    }, {
    conditions = { {
    isTrigger = false,
    operator = "match>=",
    property = "cron",
    type = "date",
    value = { "00", "09", "*", "*", "*", "*" }
    }, {
    isTrigger = false,
    operator = "match<",
    property = "cron",
    type = "date",
    value = { "30", "17", "*", "*", "*", "*" }
    } },
    operator = "all"
    } },
    operator = "all"
    }

     

    ACTIONS

    hub.call(99, 'setValue', 1)
    hub.setTimeout(2000, function()
    hub.call(99, 'turnOff')
    end)
    • 0
  • Inquirer
  • Posted

    Any ideas about my last post? 

    Thanks! 

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