Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for unit handling of generic devices widget #48

Open
DigiH opened this issue Nov 14, 2022 · 0 comments
Open

Suggestion for unit handling of generic devices widget #48

DigiH opened this issue Nov 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@DigiH
Copy link
Member

DigiH commented Nov 14, 2022

With generic devices being displayed on a generic widget page I would suggest the following

• if the unit is int show the value as a integer only without decimals, and do not show the unit
• if the unit is either string or status, just show the value without the unit
• if a status value is a boolean, show it as true/false and don't convert/display it to/as 1/0

Example from the SmartDry discussion for the Shake and Wake properties, but applicable to all other generic devices.

Shake
241

Wake
true

image

@emericg emericg added the enhancement New feature or request label Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants