How to get all semantic problems for all items beside restarting openHAB?

Hey Forum,

I’m in the progress of migrating my installation from openHAB 4.x to 5.0. Regarding items, there is now a SemanticsService, that can check the semnatic model for errors. I can see its messages at startup in the openHAB logs.

I can see that the SemanticsService has a getItemSemanticsProblems(Item item) method to check for one item but, as for my understanding, not access to it via REST API.

Is there a way to get all semantic errors, like on startup? Or do I have to do it item by item? Maybe using a script or rule?

Otherwise restarting the openHAB service just to get a check, I personally find a little cumbersome.

Kind regards,
Frank

Ping @Mherwege ..

The API endpoint is /items/semantics/health

You also have this when you open the Settings page in the UI and look at the bottom for Health Issues. You will find all of the semantics issues listed there, with links to the items concerned.

2 Likes