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

I have the following code:

Please login or register to see this code.

I want to accomplish the following idea:

 

if the temp is between 18.1 - 18.9 then

     1 digits after comma

else

    If the bathroom temperature is example 18.0 / or 18 then it should show only zero digits after the comma

end

 

 

Any help would be appreciated ? :-)

(temperatures are examples, it can be any temperature)

Posted
8 hours ago, samuel said:

I have the following code:

Please login or register to see this code.

I want to accomplish the following idea:

 

if the temp is between 18.1 - 18.9 then

     1 digits after comma

else

    If the bathroom temperature is example 18.0 / or 18 then it should show only zero digits after the comma

end

 

 

Any help would be appreciated ? :-)

(temperatures are examples, it can be any temperature)

 

 

Like this?

Please login or register to see this code.

 

/Peo

  • Topic Author
  • Posted

    The temperature comes from heatit thermostat, So, the temperature will not stay between 18-19 degrees celcius but will change. Thats why i mention that the (temperatures are examples, it can be any temperature) because of the sensor

     

    Your script is fixed between 18-19 degrees

     

    But i will test your script first~ 

    Tested the script~ 

     

    This not exactly what I was looking for.

     

    on my iphone in an VD, normally my outlining is on the right from the text (normally left outlined)

    I fixed this by putting spaces in text so that the line will be outlined to the right.

    but if a value is 18 then it needs one space to the right compared to a value like "18.6" Thats what I like to accomplish

     

    when the bathroomtemperature is 18 it needs to see that there is a zero  18.0 or none  (18) the rest what is in between 18.1 - 18.9 will normally be displayed

    of course not only by 18, but by all temperatures, because the sensor displays not only  a value of 18-19 but also outside this range

    Please login or register to see this code.

    Looking forward for a solution

     

  • Topic Author
  • Posted

    This is working for me:

     

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