ioBroker/ioBroker.simple-api

Access to non-state objects ("folders")

KenADev opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
I want to get the human-readable device names from ioBroker.zigbee.
Those are not stored as state, but in the "folder" that contains the states. (See screenshot with example)
I was not able to query those, as it seems that the objects-endpoint only shows objects for states?
/objects?pattern=zigbee.0.0015xxxxxxa7 returns an empty result.

grafik

Describe the solution you'd like
Also return the object for non-state objects, e.g. folders in the object hierarchy.

Describe alternatives you've considered
None

Additional context
None

did you tried to add &type=folder to the query as "implicitely suggested" in https://github.com/ioBroker/ioBroker.simple-api#objects ? :-)

I didn't. Thanks!

Edit: It worked with &type=device in my case!