Control several z-wave smart switches as one group

I am using three Fibaro Switch 2 devices to control my porch lights. They are the kind that you place behind an existing wall switch, which you can then use in parallell with the Z-wave control.
I have defined the switches as lights and made a light group. So I can automate them as a light group and easily change on/off state of the whole group via Lovelace.
I would also like to be able to switch the whole light group on/off using any of the physical switches connected to each Fibaro device.
What would be the easiest way to achieve this?

I solved this by creating two simple automations in the UI. The trigger is when the state of any switch changes.

  alias:  porchlight sync on
  description: ''
  trigger:
  - platform: state
    entity_id: light.porch1
    from: 'off'
    to: 'on'
  - platform: state
    entity_id: light.porch2
    from: 'off'
    to: 'on'
  - platform: state
    entity_id: light.porch3
    from: 'off'
    to: 'on'
  condition: []
  action:
  - service: light.turn_on
    data: {}
    entity_id: light.porchlights
  mode: single
  alias: porchlights sync off
  description: ''
  trigger:
  - platform: state
    entity_id: light.porch1
    from: 'on'
    to: 'off'
  - platform: state
    entity_id: light.porch2
    from: 'on'
    to: 'off'
  - platform: state
    entity_id: light.porch3
    from: 'on'
    to: 'off'
  condition:
  - condition: state
    entity_id: light.porchlights
    state: 'on'
  action:
  - service: light.turn_off
    data: {}
    entity_id: light.porchlights
  mode: single