I still have a few automations not working since OH4, latest issue I’ve found is with UoM and variables. I am unable to use variables with the quantity shape. I am using ℃, but to rule out that particular unit, I created an isolated example:
As I was only experiencing problems with my initial variable set, as illustrated here, the way to achieve this is to type the initialisation:
Which gives:
So this doesn’t really answer the question, can you use a variable in a quantity (no), but it does provide an alternative approach to using quantity with variables.
I’ll note that you can then legitimately go on and do this:
Or even this:
I’d therefore suggest it might not be a bug, just a consideration - the bug may be allowing a variable in the quantity shape at all. I feel that’s one for the authors to ponder!
Either a variable should not be allowed or it should be allowed. The fact that it’s allowed but doesn’t work is most definitely a bug. Anything that results in undefined like that is a bug and it needs to be fixed. Please file an issue.