-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
[persistence] previousState(true) returns current value when there is an unit applied on channel #3096
Comments
Can you show the item definition? It seems that JDBC checks the item and adds a unit but your historic value has no unit. |
I have my mqtt channels handled with this:
|
Persistence knows nothing about things or channels, only about items and states. If there is an issue, it's with the item, so I need the item definition. |
Where can I find this? Would you like to see the screenshots? I'm using UI, I do not see any
|
Which openHAB version is this? I can't find anything that could go wrong there. |
as mentioned
|
Can you try adding state description Metadata (like |
I've changed persistence engine from
RRD4j
toJDBC
(mariadb
) sice I've read somewhere thatpreviousState
is not working withRRD4j
.Unfortunately,
previousState(true)
does not work correctly for channels with unit of measurement set.without unit set (see rssi):
Using openHAB 3.3.0
The text was updated successfully, but these errors were encountered: