I load a .sitemap file:
sitemap m {
Switch item=i_Mute icon="soundvolume_mute.png"
}
This sitemap is by all means valid. In openHAB 5.2.0 MainUI, by visiting GET /sitemaps/m → Code, I convert it to YAML. The result is:
version: 1
sitemaps:
m:
widgets:
- type: Switch
item: i_Mute
icon: soundvolume_mute.png
I replace above m: with n: and store the result as file yaml/sitemap-n.yaml. openHAB logs:
2026-07-10 08:54:20.897 [INFO ] [aml.internal.YamlModelRepositoryImpl] - Adding YAML model yaml/sitemap-n.yaml
2026-07-10 08:54:20.903 [WARN ] [aml.internal.YamlModelRepositoryImpl] - YAML model yaml/sitemap-n.yaml: invalid sitemap "n": widget 1/1 of type Switch: invalid icon value "soundvolume_mute.png" for "name" field; it must contain a maximum of 3 segments separated by a colon, each segment matching pattern [a-zA-Z0-9_][a-zA-Z0-9_-]*
I load a
.sitemapfile:This sitemap is by all means valid. In openHAB 5.2.0 MainUI, by visiting
GET /sitemaps/m→Code, I convert it to YAML. The result is:I replace above
m:withn:and store the result as file yaml/sitemap-n.yaml. openHAB logs: