I’m currently struggling with the following use case, so maybe somebody has an idea how to solve it.
As my home cinema is rarely in use I want to switch it off completely via Sonoffs. So far so good.
Behind the Sonoff switch there’s a Yamaha surround receiver (besides other things) which is also set up as thing in openHAB.
When I switch of the Sonoff of course the Yamaha receiver becomes offline. Now the problem is that when I switch on the Sonoff the receiver stays offline.
What I’d like to do is to define a rule that reloads the Yamaha thing when the Sonoff is switched on. One option would be to define the thing file based and “touch” the file via the rule, but I don’t really want to mess around with file things and rather keep the thing definition via Paper UI.
Does somebody have an idea how this could be achieved? Is there a way to “reload” things within rules?
I think that should prompt the binding to try connect. Depends on the binding, which one is involved here?
If there is a thing hierarchy, you might have to try different levels.
An alternative might be to issue a REFRESH command to one of the Items, again it depends on binding what would happen (if anything).