Started migrating my textual configuration to the new YAML format. Have read up on the documentation and tested a few things, but wondered if anymore could help out. I have the following item without any channel that I use for a rule:
Number SceneItem "[MAP(scene.map):%s]"
Is there a way to reuse the map file, either via the label or as a tranform in the channel?
Are transform dependent on having a channel all the time?
Transformations can be applied in a number of places:
in a Channel configuration
a transformation Profile
in a rule
Sitemap label
Item definition
Itâs the last one thatâs relevant.
Since .items files were created there has been a whole lot of changes to how openHAB lets you control how the state of an Item is formatted before itâs displayed. This means that the label field of an Item in a .items file is now really a shorthand for defining a stateDescription. One field of the stateDescription is the pattern and thatâs what the stuff between [ ] becomes.
Looking at the code, I can confirm there is a bug in DSL and YAML generators as I ignore the format when there is no label , while DSL/YAML item providers accept it.