I’ve noticed that some bindings seem to be doing some kind of behind the scene transformation on item value that is causing me problems because actual items states seem to be different from rendered item state. Seems to be related to state description, but i haven’t found solution in the documentation.
I’m having this problem for example with charging states of Dacia binding or Operation mode of Onecta (beta) binding.
My problem is that when I try writing rules based on states of these items, based on what i see displayed in the interface it does not work. Same issus trying to set dynamic visibility in sitemaps.
How can i find what is the actual states of these item in order to use it in my rules and sitemaps ?
Is it related to the unit of measurement changes of v4.0? Lots of topics about it if so:
To see the values coming in you can check the logs. Though I’ll be honest, i cheat and use node red for that because it’s more practical.
It would actually be nice to have a log window in each item, filtered for that item alone, to see the values coming in and out… but regardless, check the logs
Thanks Pedro, i’ll look for the log.
May be related to this unit issue, but in my case, it is a text state that is transformed into a different text. For example, on the Onecta binding, air conditionning operation mode is displayed as “Cooling” in the interface, but value I need to use for comparison in rules & dynamics sitemaps is “COLD”.
The state is not actually being converted really. Some bindings automatically apply state descriptions to items linked to their channels so that the Display state is different than the actual item state. Many of the items specific pages in the UI use that display state instead of the actual state. To see the difference you can use the Developer Side Bar and go to the expression tester. Then type in
And the result will be an object that shows you the state of the items and, if it exists and is different than the state, the display state.
You can also always see the actual state in the items list page itself.