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

Quickapp slider minimum and maximum range


mike79

Question

Hello

I am almost done with my Quick app for panasonic heatpumps that are connected via  comfort cloud.

I hit a wall with the slider code, i really cant find any good examples 

 

 

I have a value "tempe" that i send to a http server in another function

 

Please login or register to see this code.

 

as now the device when slided all way up sets the heatpump to 65 degress or around that.

 

i need somehow to have range from 15 to 30 degrees and when sliding it have to step 0.5 degrees instead of now 1 degree at the time.

 

 

any suggestions how to do this.

Please login or register to see this image.

/monthly_2021_07/image.png.3597cff6f607e6bb2b2c75c95f4a8566.png" />

 

 

Edited by mike79
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0
9 hours ago, mike79 said:

apparently there is in the fqa file when you dl it.

Please login or register to see this code.

changing those to 

Please login or register to see this code.

did the trick.

Just wierd there aint code for it

There is also a "step" property.

Have you tried self:updateView("slider","max","30") ?

  • Thanks 1
Link to comment
Share on other sites

  • 0
  • Inquirer
  • apparently there is in the fqa file when you dl it.

    Please login or register to see this code.

    changing those to 

    Please login or register to see this code.

    did the trick.

    Just wierd there aint code for it

    Edited by mike79
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes that also works.

    apparently it does not have any effect in the edit window or preview mode.

     

    Any suggestions for stepping 0.5 at the time when changing slider values.

    Edited by mike79
    Link to comment
    Share on other sites

    • 0
    1 hour ago, mike79 said:

    Yes that also works.

    apparently it does not have any effect in the edit window or preview mode.

     

    Any suggestions for stepping 0.5 at the time when changing slider values.

    If the "step" property doesn't allow for fractions I don't think it's solvable. (haven't tested)

    The alternative is to always treat the slider as a percent slider 0-100 and present the real value in a label.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • after some investigation i got it to work

    sometime the simple is the answer.

     

    Please login or register to see this code.

     

    Edited by mike79
    • Like 2
    Link to comment
    Share on other sites

    • 0

    Hi Mike, that would be great if it worked...

    I tested it on HC3 last FW, all updateView ended with success, but no changes at GUI and API too. Min and Max are same as before...

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 47 minutes ago, marbe said:

    Hi Mike, that would be great if it worked...

    I tested it on HC3 last FW, all updateView ended with success, but no changes at GUI and API too. Min and Max are same as before...

    It works, but not in the code editor, if you go out of editor it works

    Link to comment
    Share on other sites

    • 0
    31 minutes ago, mike79 said:

    It works, but not in the code editor, if you go out of editor it works

    It would be nice if we could figure out how to set the %value tip that is shown when we drag the slider, to somethings else. Now it always show 0% - 100%.

    Link to comment
    Share on other sites

    • 0
    1 minute ago, mike79 said:

    do you mean changing the % sign to something else @jgab

    Yes, the '%' and the value should reflect the min and max too.

    Link to comment
    Share on other sites

    • 0
    On 7/31/2021 at 3:47 PM, jgab said:

    It would be nice if we could figure out how to set the %value tip that is shown when we drag the slider, to somethings else. Now it always show 0% - 100%.

     

    not sure if you noted, this has bee changed, one can set unit property for slider

     

     

    • Like 1
    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...