openhab-core
openhab-core copied to clipboard
[REST] Endpoint for binding actions missing
Currently it is only possible to get persistence providers through the Rest API. Threre should be a generic way to interact with binding actions analog to persistance, too.
It would be nice if this could be on the roadmap for OH3.
GET /things/{thingUID}/actions -> get a list of available actions
POST /things/{thingUID}/actions/{actionName} -> execute action, inputs as JSON
Would that be what you thought about? I didn't check if implementation is possible, but before that it should be clear what is expected.
Yes - that or something similar is what I would have expected.