I can’t manually configure my binding.
On the things page when I add my Thing, it says…
Add Manually
No thing types can be added with this binding.
I have implemented Discovery, and my code finds the airtouch and calls thingDiscovered(discoveryResult);
However, my AirTouch4Handler#initialize() is never called.
It feels like I am missing something simple.
Do I need to register a DiscoveryListener and then call configurationUpdated on my handler somehow?
(linking external 3.0.x addon so it is easier to navigate)
Discovery is another part of framework. It leads to detection of things which needs to be defined/declared separately. If you look back at your discovery code you for sure have there “ThingTypeUID”. This stands for <binding-id>:<thing-type-id> from above XML sample. Note - pay attention to bindingId attribute which needs to be in sync with other places in your code.
I have found that I can use AIRTOUCH4_CONTROLLER_THING_TYPE.getAsString() when building the ThingUID. That is safer, and has the prefix already prepended.
Thanks for the tip on that.
For the xml configuration for thing-types.xml it was there, but I had renamed the binding from airtouch4 to airtouch, and neglected to update the line at the top of thing-types.xml as follows…