ioBroker / ioBroker.simple-api

HTTP-API Interface to read and write objets and states
MIT License
40 stars 19 forks source link

Access to non-state objects ("folders") #144

Closed KenADev closed 2 years ago

KenADev commented 2 years ago

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

Apollon77 commented 2 years ago

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

KenADev commented 2 years ago

I didn't. Thanks!

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