In DSL I want to loop through all things and get some properties (like all things being OFFLINE)
I know how to do it with items:
import org.openhab.core.model.script.ScriptServiceUtil var strThing = ScriptServiceUtil.getItemRegistry.getItems()
I tried a few days to find an equivalent command for things like these:
but these do not work.
Could anybody please guide me in the right direction?
Please keep in mind, I do not need a comand to get properties of a specific thing. I need a command which returns ALL things.