Hi community!
In the past days I stumbled upon an unexpected behavior in OH2.5 that I would like to understand better.
I try to modularize different sets of functions in my configuration as good as possible. Therefore usually I create multiple .items and .rules files for the individual functionalities.
For example I have “alarm.items”, “default.items”, “presence.items” etc. On the other hand I have a sitemap to show them all
Now I had the case that a group or item is not shown in sitemap when I put it into “alarm.items” but everything is just fine if I put it to “default.items” it seems.
All the .items files are in the same correct config directory.
This is what I get when I try to show the sitemap (that contains a group item “gAlarm”:
==> /var/log/openhab2/openhab.log <==
2021-02-25 19:36:40.478 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.sitemap.Group
2021-02-25 19:36:40.491 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘gAlarm’ for widget org.eclipse.smarthome.model.sitemap.sitemap.Group
2021-02-25 19:36:40.496 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘gAlarm’ for widget org.eclipse.smarthome.model.sitemap.sitemap.Group
2021-02-25 19:36:40.500 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘gAlarm’ for widget org.eclipse.smarthome.model.sitemap.sitemap.Group
Also I mentioned that items from “alarm.items” are also missing from the rules perspective. For example I see this in my log:
2021-02-25 19:25:30.860 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘FridgeDoorOpen’: The name ‘FridgeOpen_Alarmdelay’ cannot be resolved to an item or type; line 69, column 55, length 21
Any idea what can be the reason? I suspect some file format or something although I cannot see any difference between the differnt files…