Shelly gen 4 mini - WIfi and Zigbee - make a "backup"

Hi all
I have this device connectet to my garage door.
Works super!

I use this config

type: custom:button-card
entity: switch.shelly_hojre_garage_port
name: Højre garageport
icon: mdi:garage
tap_action:
  action: call-service
  confirmation:
    text: Er du sikker på, at du vil åbne/lukke porten?
  service: switch.toggle
  service_data:
    entity_id: switch.shelly_hojre_garage_port
state:
  - value: "off"
    color: green
    icon: mdi:garage
  - value: "on"
    color: red
    icon: mdi:garage-open

But i also have the device connectet with zigbee.
So how can i build like “If wifi is down” use the zigbee device instead to trigger the opening? :slight_smile: Hope it makes sense :slight_smile:
Regards Daniel