API access

Is there a way for binding to discovery other bindings and call commands on them? I was thinking about using the REST API but it seems like there should be a way to do that directly…

I know that it is possible for an addon to require another addon (e.g. the MQTT Action requires the MQTT Binding). But I think having a binding directly call another binding would be a violation of the ESH architecture. Bindings, if I understand correctly, are expected to be self-contained.

The usual interface between bindings would be via Items and Rules.

You might have better luck at a definitive answer on the Eclipse SmartHome forums which forms the basis of OH and where architectural issues like these are discussed and implemented.

Actually - I’ve discovered the whole world of OSGI services and know how to to what I’m planning. But thanks anyway!