How to see all possible allowed values for a state [REST-API]

  • Platform information:
    • Raspberry 3b with openhabian
  • Issue of the topic:
    I do not see any command/url that sends me all allowed values for an item.
    For example: My light has the commands ON/OFF. What command would give me both states as response? Is there a chance to make this possible?

I don’t think there is any rest call that provides this. One question is what would this call return for Number, String, DateTime?

There is a table in the docs that leaves all the valid commands one can send to each Item type. These are static so I suspect the devs figured there was no need for a separate API call.

You can always create an issue on the ESH repo to request such an API call.

1 Like