I have a scene (s1) which changes the state of a virtual switch when a device is switched on and off from the vera UI.
When a scene (s2) switches the same device, the virtual switch state also changes. Is it possible to make the scene (s2) not effect the toggle state through scene (s1)?
Many thanks
Use PLEG, you can control the coupling between logic.
I must take a look at PLEG. Is it native to Vera or an addon?
If I wanted to do this with LUA is it possible?
PLEG is a Plugin.
PLEG is written in LUA, so if it can do it, then you can do it in LUA.
You need to deal with state management between scenes if you do this in LUA.
If you do this kind of development … you should be familiar with software techniques …
You should consolidate the code into the Startup LUA, … I recommend writing it as a module, and loading the module from the Startyp LUA
Placing LUA fragments in multiple scenes that have coupling is bad engineering and recipe for problems.