Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Precision display differences

Featured Replies

Posted

Lost an hour trying to debug this on the Virtual plugin ; until I asked myself if the AC did this....

@bmercier, the precision on display seems to be different between the entry number and the actual in Current versus Set Current:

for some reason Set Current in the Eisy-ui is one tenth.  Whats interesting, is the number you enter goes in properly but then shows as one tenth down below:

correct in AC:

image.thumb.png.88dcdf2c07c7efb5dcf55aa2dff53eeb.png

 

Not in eisy-ui:

image.thumb.png.d52392e0bfda45baaadd2e65bcfc3dbb.png

Solved by bmercier

Go to solution

@sjenkins, I'm not familiar with the VirtualPlugin. Please let me know how you configured the Virtual plugin so I can reproduce it.

 

  • Author
5 hours ago, bmercier said:

@sjenkins, I'm not familiar with the VirtualPlugin. Please let me know how you configured the Virtual plugin so I can reproduce it.

 

Its for Virtual devices ; just called 'virtual' in the plugin store.  I have been re-writing it as I took over curation of it a bit ago; the behaviour exhibits in both the old production and re-written non-production (you will likely find the re-write much easier to read).  The issue shows itself in the temperature devices.

If you install it & configure with one device:

key   value

10    temperature

 

As far as 'configuring' this behaviour, you can see in the profile files there is very little ability to configure beyond a precision variable.  Perhaps eisy-ui is ignoring that?

 

 

Edited by sjenkins

  • Solution

@sjenkins thanks for reporting this. It will be fixed in the next release.

The problem seems to happen when the precision on the editor is different than the precision on the value.

In this case, although the precision on the ST prop is also 1, I think the plugin is setting values with a precision of 0.

  • Author
19 minutes ago, bmercier said:

@sjenkins thanks for reporting this. It will be fixed in the next release.

The problem seems to happen when the precision on the editor is different than the precision on the value.

In this case, although the precision on the ST prop is also 1, I think the plugin is setting values with a precision of 0.

Thanks @bmercier,

seeking to understand:

so right now when I setDriver(GV0, value), I don't expressly set uom, like:

setDriver(GV0, value, uom=#[name I used in EDITORS])

is that what you are thinking? or is it that value is possibly an int() rather than a float()

This is part of the api which is rather quiet, as well when to use force=True or not.

appreciate your time

21 hours ago, sjenkins said:

Thanks @bmercier,

seeking to understand:

so right now when I setDriver(GV0, value), I don't expressly set uom, like:

setDriver(GV0, value, uom=#[name I used in EDITORS])

is that what you are thinking? or is it that value is possibly an int() rather than a float()

This is part of the api which is rather quiet, as well when to use force=True or not.

appreciate your time

Actually, I'm not fully sure.

What I know is that both the property and the parameter on the command has a precision of 1, but the precision on the updated value from the subscription has a precision of 0.

So I'm thinking that if the value sent is an integer, then precision would be 0 instead of 1.

I don't think there's any work-around for you, except maybe try with a float with something like .01 (which should be rounded to .0), giving the same result as an integer.

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.