...
Then: Turn on windowlamp1, windowlamp2, windowlamp3
NOTE!: If you want to use your group in other automations then you need to enable "Allow loops" in automations settings, otherwise the Heart will not trigger your group because it want to prevent loops that can be missconfigured.
Example 2; Alarm
Use the virtual device to keep a state of something, like the alarm state for enable/disable alarm.
...