I saw that similar posts but both are without a solution unfortunatelly.
Hope anyone may assist here. It drives me crazy meanwhile. I could just define the item in the *.item file but then i don’t see it in the semantic model. Didn’t find a way to link manually defined items to semantic model.
The difference between your two approaches is that the file based transformation only transforms the displayed value of the state, whereas in your UI based transformation, you’re using a profile to transform the actual state.
What you want is NOT using a profile, ie. set it to Default profile. Instead, use: Item → Add Metadata → State Description → Pattern. This would be the equivalent of what you were doing in the .items file.
Lastly, you can fully assign semantic models using your .items file. The semantic model in an Item definition is set through the item’s Tag, and group memberships.
Here’s an example:
Number thermostat_spm "Set point mode [MAP(ccu_thermostat_setPoint_mode.map):%s]" ["Setpoint", "Temperature"]
I don’t actually understand what your “thermostat_spm” actually does. I assumed it’s for temperature, but if it’s for something else, you can assign a different tag.