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

Fibaro dimmer 2 value fault ?


systemfel

Question

why is this not working on fibaro 2 dimmers  ???  i can not cheek  if the lights  are on ?   

 

I think this is a bug. Can anyone else test it. or tell how to check the value of a dimmer if it is on or off

if tonumber (fibaro: getValue (391, "value")) == 1 then fibaro: Call (391, "turnoff") fibaro: debug ( "turn off the light") end

 

Am I doing that wrong?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

It should be turnOff not turnoff. 

 

Works for me 

[DEBUG] 22:07:21: Test: 99

Please login or register to see this code.

 

Edited by sonnyboy
Link to comment
Share on other sites

  • 0

For dimmers in general, value means:

 

0 = off

1 = lowest level = 1 % brightness (-> Check parameters of the actual device, it might be configurable).

99 = highest level = 100 % brightness (-> Check parameters of the actual device, it might be configurable too).

 

There is no "value 100".

 

Special case: you can *set* the value to:

255 = previous level = same as "turnOn" = what the dimmer remembers, last time it was on.

After setting it to 255, the dimmer reports the actual level (for instance: 75).

 

Does this help?

Link to comment
Share on other sites

  • 0
  • Inquirer
  • 22 hours ago, sonnyboy said:

    i have changed  all that.. i know you are fro sweden so i ask in swedisch know..  Hur gör jag att den söker på ett större värde än 1 för är den nu lika med 1 så blir det ju rätt men behöver nog så den kollar  på ett värde som är större   = > typ kolla jag med din kod hade den tex 28 på dimmern  värdet då

    It should be turnOff not turnoff. 

     

    Works for me 

    [DEBUG] 22:07:21: Test: 99

    Please login or register to see this code.

     

     

    Link to comment
    Share on other sites

    • 0

    Hej 

    Kan detta hjälpa dig?

    Funkar för mig :)

     

    Hittade ett par till fel i stavning och mellanslag

    Please login or register to see this code.

     

    [DEBUG] 20:43:41: turn off the light
    [DEBUG] 20:48:50: turn off the light
    [DEBUG] 20:48:59: turn off the light

    Edited by sonnyboy
    Link to comment
    Share on other sites

    • 0

    If english is really too difficult for you, you do not have to answer this... But I'm trying to help. And I am really curious! Why would you want to turn of a dimmer immediately when it is on? All code so far checks device 391 then turns off that very same device. What are you trying to do?

     

    What happens if you save this scene and turn on/off the dimmer? What does it print?

     

    Please login or register to see this code.

     

     

    Link to comment
    Share on other sites

    • 0

    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.

    ".

    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.

    ×
    ×
    • Create New...