Hi @rlkoshak , thank you for your response (honored to talk to you once ) unfortunately I think I am not involved enough into openhab source code yet to understand fully your response
I’ll try to reformulate my question to something more clear.
I have the bridge which connects to an external API. This bridge will ensure to query the API at decent interval in order to maintain some “cache” up to date. Then each declared things owned by the bridge will be notified about changes in the case.
Suppose I have a channel named “isPlaying” if the bridge update the cache and detects that the isPlaying status changed -> he wants to notify the concerned Thing “Hey dear, could you please update your channel isPlaying I have this new value for you ?”
What is the prefered way to notify this thing that it has to update its channel ?
- send a Command to the Thing ?
(handleCommand(ChannelUID channelUID,Command command))
- let the thing register as a listener to the bridge and then the bridge can simply propagate the events to registered listeners. (the way I did and it seems but not 100% sure that the HueBinding is doing it as well)
I hope it’s a bit more clear now