I know it’s new to the snapshots, but I can’t wait to be able to use metadata in my items. One use case is to add metadata to my dimmer items for brightness levels based on a lux value and time of day…
I currently store this in a hashmap for my rules, but I think it will be less tedious to maintain in metadata. Can it be accessed in a rule (does the DSL have access to the MetadataRegistry), and if so how? If not, I assume the REST API can be used?
Why not? this would be a very nice feature to have!
Ok, If items metadata is useless for this, can you explain how do you declare and access this hashmaps? What I’m trying to achieve is to have a “user friendly” name for the items (actually named with ugly names such as “GF_LR_Lamp2”, and what to show “Living Room Lamp” in a rule fired text)