Sending parameter and getting output from Exec

I am struggling a bit with the binding and Thing concepts. Now, I want to make an item which executes a command when the item value is changed from OH, but also executes a different command periodically to poll its value. To me, it seems like either is possible, but maybe not both? Is that correct?

The exec 2.0 binding is a little challenging. You are indeed correct, either is possible. I also think both might be possible but I’m not sure how.

One challenge is the run channel only links to Switch Items. So if your periodic running script doesn’t return ON/OFF it wont work.

I think one way to manage this is to use a proxy item connected to two other items linked to to thee two Things as appropriate and a rule to keep everything in sync.

1 Like