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

Lights: setlevel but no getlevel?


okidoki

Question

Why is there an actioname 'setlevel'  to set a new light level to a light, but not a 'getlevel' to get the current level? Or am i missing something?

I want to readout the level before i temporary adjust the level and than reset the original level after some time.

 

this is wat i see for my light:

"actions": { "abortUpdate": 1, "reconfigure": 0, "reset": 0, "retryUpdate": 1, "setValue": 1, "startLevelDecrease": 0, "startLevelIncrease": 0, "startUpdate": 1, "stopLevelChange": 0, "toggle": 0, "turnOff": 0, "turnOn": 0, "updateFirmware": 1

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 1
1 minute ago, okidoki said:

Is a ecodim dimmer. And yes  of couse i meant setValue, sorry, my mistake.

 

Please login or register to see this attachment.

 

Here is the list of actions: I was looking for a getvalue to get the level. I also have quibino mini dimmer, but there is it not available either. I just have work with setvalue. Can do that.

Please login or register to see this link.

 

 

 

Ok, then you get the value with fibaro.getValue(61,"value")

  • Like 1
Link to comment
Share on other sites

  • 0
7 hours ago, okidoki said:

Why is there an actioname 'setlevel'  to set a new light level to a light, but not a 'getlevel' to get the current level? Or am i missing something?

I want to readout the level before i temporary adjust the level and than reset the original level after some time.

 

this is wat i see for my light:

"actions": { "abortUpdate": 1, "reconfigure": 0, "reset": 0, "retryUpdate": 1, "setValue": 1, "startLevelDecrease": 0, "startLevelIncrease": 0, "startUpdate": 1, "stopLevelChange": 0, "toggle": 0, "turnOff": 0, "turnOn": 0, "updateFirmware": 1

These are actions that are invoked by fibaro.call(...)

fibaro.call never return any value.

The idea is that fibaro.getValue(<id>,<property>) should be used for that and that the value is a property of the device. I don't know if the 'level' is a property of your device. Have a look with swagger if there is any property that reflects the current level.

  • Like 1
Link to comment
Share on other sites

  • 0
  • Inquirer
  • 7 hours ago, jgab said:

    These are actions that are invoked by fibaro.call(...)

    fibaro.call never return any value.

    The idea is that fibaro.getValue(<id>,<property>) should be used for that and that the value is a property of the device. I don't know if the 'level' is a property of your device. Have a look with swagger if there is any property that reflects the current level.

    yeah, i'm aware of that. I checked but its not a property of my light devices. So i have to use the setlevel. I'll find a solution.

    Thks for the answer.

    Link to comment
    Share on other sites

    • 0
    8 minutes ago, okidoki said:

    yeah, i'm aware of that. I checked but its not a property of my light devices. So i have to use the setlevel. I'll find a solution.

    Thks for the answer.

    What type of device is it? (what physical device/brand, and what "fibaro type" does it get? ex. "com.fibaro.multilevelSwitch")

    ...and do you have a 'setLevel'? or do you mean 'setValue'?

    Edited by jgab
    Link to comment
    Share on other sites

    • 0

    hello,

     

    Having this issue with numerous hue lights, I did it by directly requesting information from the hue Bridge instead of from HC3.

    It's perfectly working and sure to have the latest full information (status, hue, bri, ct, x, y ...)

    can share some code lines if could be a good approach for you

     

    regards,

    mathias

     

    Edited by Mateo
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 9 hours ago, jgab said:

    What type of device is it? (what physical device/brand, and what "fibaro type" does it get? ex. "com.fibaro.multilevelSwitch")

    ...and do you have a 'setLevel'? or do you mean 'setValue'?

    Is a ecodim dimmer. And yes  of couse i meant setValue, sorry, my mistake.

     

    Please login or register to see this attachment.

     

    Here is the list of actions: I was looking for a getvalue to get the level. I also have quibino mini dimmer, but there is it not available either. I just have work with setvalue. Can do that.

    Please login or register to see this image.

    /monthly_2020_05/image.png.bbd89f3589928662fbfb11cfc25cefd2.png" />

     

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 6 hours ago, Mateo said:

    hello,

     

    Having this issue with numerous hue lights, I did it by directly requesting information from the hue Bridge instead of from HC3.

    It's perfectly working and sure to have the latest full information (status, hue, bri, ct, x, y ...)

    can share some code lines if could be a good approach for you

     

    regards,

    mathias

     

    Thks for the offer Mathias, but i don't have any hue lights. Is just a normal dimmable led with some zwave dimmers of ecodim and quibino.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 11 minutes ago, jgab said:

     

    Ok, then you get the value with fibaro.getValue(61,"value")

     

    Ha, It Works!  @jgab Thanks a lot! I tested and the levelvalue is correct. Great!

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