You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking on an Item's page there is an option to set the State Description Pattern.
I find it shows %.0f %unit% even when the Item already has a State Description through the metadata menu.
For example:
I have a temperature Item withe a State Description Pattern: %.1f °F
I can see it’s applied.
But the “State description pattern” on the Item’s edit page still reads %.0f %unit%.
When I try to change it, it does not appear to save the change (in this case to %.3f %unit%).
If I go to an Item that does not have a State Description Pattern, when I go to the Item’s edit page and I change the State Description Pattern, upon hitting save it reverts back to %.0f %unit% and no State Description Metadata is created.
There are no errors in openhab.log.
There might be two issues involved here. The value entered into the state description field reverts when clicking on any other field, not just when clicking save. I'm going to open a separate issue for this behavior because it's also occurring elsewhere so it is likely a wider issue.
To make things even weirder, if I do click on another field before saving the Item it works as expected. The existing state description pattern is updated.
Hopefully this is enough info to reproduce it.
Expected behavior
Editing and saving the state description pattern from the Item's edit page:
creates state description metadata if it doesn't already exist upon save
updates state description metadata if it does already exist upon save
shows the current state description metadata if it already exists
Steps to reproduce
Navigate to the Item's settings page for an Item with a state description
Notice the state description pattern shows %.0f %unit%
Modify the pattern and click save. Notice the modifications revert to %.0f %unit% and that State Description metadata was not modified
Navigate to the Item's settings page for an Item without a state description
Modify the pattern and click save. Notice the modifications revert and no State Description metadata was created.
I'm not sure if these are relevant. The Brave Browser console doesn't make it easy to copy the logs.
Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('https://home.myopenhab.org/settings/items/BasementAirthingsWavePlus_Temperature/') with script ('https://home.myopenhab.org/settings/items/BasementAirthingsWavePlus_Temperature/service-worker.js'): The script has an unsupported MIME type ('text/html').
And
Incorrect use of autocomplete attribute
A form field's autocomplete attribute is empty. This might prevent the browser from correctly autofilling the form.
To fix this issue, provide a valid autocomplete value.
Browser network traffic
None of the calls appear to have failed.
Additional information
The text was updated successfully, but these errors were encountered:
Seems like it was forgotten to adjust the item-mixin accordingly to the state description field being visible when editing an existing Item ... I will fix that.
florian-h05
added a commit
to florian-h05/openhab-webui
that referenced
this issue
Mar 13, 2024
The problem
When clicking on an Item's page there is an option to set the State Description Pattern.
I find it shows %.0f %unit% even when the Item already has a State Description through the metadata menu.
For example:
I have a temperature Item withe a State Description Pattern: %.1f °F
I can see it’s applied.
But the “State description pattern” on the Item’s edit page still reads %.0f %unit%.
When I try to change it, it does not appear to save the change (in this case to %.3f %unit%).
If I go to an Item that does not have a State Description Pattern, when I go to the Item’s edit page and I change the State Description Pattern, upon hitting save it reverts back to %.0f %unit% and no State Description Metadata is created.
There are no errors in openhab.log.
There might be two issues involved here. The value entered into the state description field reverts when clicking on any other field, not just when clicking save. I'm going to open a separate issue for this behavior because it's also occurring elsewhere so it is likely a wider issue.
To make things even weirder, if I do click on another field before saving the Item it works as expected. The existing state description pattern is updated.
Hopefully this is enough info to reproduce it.
Expected behavior
Editing and saving the state description pattern from the Item's edit page:
Steps to reproduce
Navigate to the Item's settings page for an Item with a state description
Notice the state description pattern shows
%.0f %unit%
Modify the pattern and click save. Notice the modifications revert to
%.0f %unit%
and that State Description metadata was not modifiedNavigate to the Item's settings page for an Item without a state description
Modify the pattern and click save. Notice the modifications revert and no State Description metadata was created.
Your environment
Browser console
I'm not sure if these are relevant. The Brave Browser console doesn't make it easy to copy the logs.
And
Browser network traffic
None of the calls appear to have failed.
Additional information
The text was updated successfully, but these errors were encountered: