Well, I have tested it again, and for me it seems to work.
[ul][li]I have openLuup running VeraBridge linked to a Vera Edge. [/li]
[li]The bridge variable HouseModeMirror shows ‘1 : local mirrors remote’[/li]
[li]I have a scene set to trigger on changes in the openLuup plugin HouseMode variable[/li]
[li]I change mode on the Vera[/li]
[li] The following happens in the openLuup log…[/li][/ul]
2018-02-05 21:25:46.878 luup.variable_set:378: 378.urn:akbooer-com:serviceId:VeraBridge1.HouseMode was: 3 now: 1 #hooks:0
2018-02-05 21:25:46.878 luup.call_action:378: 0.urn:micasaverde-com:serviceId:HomeAutomationGateway1.SetHouseMode
2018-02-05 21:25:46.878 luup.variable_set:0: 2.openLuup.HouseMode was: 3 now: 1 #hooks:1
2018-02-05 21:25:47.380 luup.watch_callback:: 2.openLuup.HouseMode function: 0x007a1208
2018-02-05 21:25:47.381 luup.call_action:3: 0.urn:micasaverde-com:serviceId:HomeAutomationGateway1.RunScene
2018-02-05 21:25:47.381 luup_log:0: House Mode Test Scene: Mode now 1
2018-02-05 21:25:47.381 luup.scenes:: scene 17, House Mode Test, initiated by command
…showing, line by line, that:
[ol][li]VeraBridge (device 378) sets its own HouseMode device variable (to Home)
[/li][li]VeraBridge runs an action to change the local house mode[/li]
[li]that action also changes the openLuup plugin HouseMode variable[/li]
[li]the scene trigger watching that variable is invoked by AltUI (device 3)[/li]
[li]that trigger runs the scene[/li]
[li]the scene writes line to the log describing the new mode[/li]
[li]the scene completes.[/li][/ol]
This is what I would expect. What bothers me is your statement:
And I've got a scene that syncs the mode to vera, but when I enable that it gets into a loop somehow.
What is that doing, and why? The bridge has done all the work as above. It seems you may have set up a race condition through that scene?
Note that once you’ve selected the mirror mode ‘1 : local mirrors remote’, then any changes to the local openLuup house mode will quickly get overwritten by the VeraBridge syncing it to the remote Vera.
Maybe I’m misunderstanding your logic, but logs of the relevant bits and scene code would help if possible.