Hi
I am just getting used to using this powerful plugin and am trying to get my head around how to most efficiently use it. I can make things happen (mostly) the way I want them to, but I am not sure I am doing in the most efficient way. I will give an example. I have a set of conditions like the following, which use the s2 scene control features of Fibaro dimmers via device property inputs in PLEG. Each of these then has an associated action. Thing is, I want the same behaviour to be assigned to multiple switches through the house (basically they all control Sonos systems in the room), with the only difference being the target Sonos device. Is there a way of doing this without having a separate set of conditions and actions for each? For example, can I have a condition that tests which room the double click was from and determines the correct Sonos device to execute a common action on (eg play Radio 6 on sonos device )?
Conditions
Name Repeat Expression
KeSpotDblClick No (SceneActivatedkeSpots;LastSceneTimekeSpots) AND (LastSceneIDkeSpots == 24)
KeSpotSglClick No (SceneActivatedkeSpots;LastSceneTimekeSpots) AND (LastSceneIDkeSpots == 26)
KeSpotTplClick No (SceneActivatedkeSpots;LastSceneTimekeSpots) AND (LastSceneIDkeSpots == 25)
KeSpotHold No (SceneActivatedkeSpots;LastSceneTimekeSpots) AND (LastSceneIDkeSpots == 22)
LrSpotDblClick No (SceneActivatedlrSpots;LastSceneTimelrSpots) AND (LastSceneIDlrSpots == 24)
LrSpotSglClick No (SceneActivatedlrSpots;LastSceneTimelrSpots) AND (LastSceneIDlrSpots == 26)
LrSpotTplClick No (SceneActivatedlrSpots;LastSceneTimelrSpots) AND (LastSceneIDlrSpots == 25)
LrSpotHold No (SceneActivatedlrSpots;LastSceneTimelrSpots) AND (LastSceneIDlrSpots == 22)
Thanks again.