Thanks for the reply. So, if I understand correctly I would do the following:
- Define an item as switch or rollershutter.
- When the item changes I would then run the rule, like you defined, which would execute my code depending on the new value of the switch or rollershutter.
- And since items execute asynchronously, the corresponding code of the rule will run asynchronously.
Is this correct? If so, I have stupid question:
- How do I define an “empty” Switch or Rollershutter item. Meaning one, that is not tied to a channel as such, but only has a state? Up until now, I have only created to channels. I have tried to define a proxy-switch like so (I found the suggestion of a proxy switch here), but it does not show up under controls in my PaperUI (unlike the other switches, that I have defined):
Switch projector_screen "Projector Screen"
An example of how to define the needed items would be really helpful.
Regarding the rollershutter:
Would I gain something from using this item instead of the switch given that my projector screen only has two positions - close position and viewing position? It seems to me like rollershutter is something like blinds, that can stop somewhere in-between.
Thanks,
Michael