[APP][Pro] Virtual Devices - Virtual Devices to simulate 1 or more real devices

Just addit them in the assest map and driver.js, but with the new testversion you can do it while you install a device

1 Like

Can someone explain step by step the round formula {{round(tag*2)/2.0}}

Just copy it, remove “tag” and add your own tag

I know but I would like to know what this formula does. The result is rounding a number to .0 or 0.5.

0.5

What do you mean bij 0.5? Can you explain what the formula does?

Best explanation is with an example of the steps that are taken:
Example temperature (also the tag) = 1.686
1.686 * 2 = 3.372
round(3.372) = 3
3 / 2 = 1.5

Example temperature (also the tag) = 1.236
1.236 * 2 = 2.472
round(2.472) = 2
2 / 2 = 1

Thanks! but why first *2 and then /2?

Without those steps you can only round to either “0.1” or full numbers, that’s just how calculation works in this world

It rounds the temperature to .5 degrees. For example. 5.3 becomes 5.5 and 5.7 also. When you dont the tile will only display 5.5.

Now I understand. Thanks.

Yes. And the .1 will not be shown in the tile

{{round(tag*2)/2.0}}

So in this case the .0 at the end is useless?

Yes. This will do:
{{round(tag*2)/2}}

Thanks for the help!

1 Like

Its because of profilephoto😜

:grinning:

Hmm, can you guys put a negative ( -) in front when you make a new termostat?

Yes, first enter the digits and then type the - in front of them.

3 Likes