I’m on OH3.4.x and trying to implement a Thing providing a REST API using the HTTP binding.
There is a functionality to turn something on and off using the API but the required POST requests for those are hitting different endpoints (commandExtension).
I haven’t found an example or hint in the documentation for the channel definition if I want to have one OH “switch” to send the corresponding API request.
Is this possible somehow or would I need to implement two switches and do something around managing the state of those (to reflect something like a push-button)?
Thanks,
Wolfgang