Automation with status "unavailable" suddenly doesn't work

Hi,
sometime Sonoff ZB-Bridge that controls some ZB devices disconnect itself from WiFi so I loose all ZigBee devices. I solved the problem putting the ZB-Bridge after a WiFI switch the I made an automation (the only one I need till now…) as follow:

alias: Recycle switch
description: Recycle switch when light is unavailable for more then 1 min
trigger:
  - platform: state
    entity_id:
      - light.sonoff_....
    to: unavailable
    for:
      hours: 0
      minutes: 1
      seconds: 0
action:
  - service: switch.turn_off
    target:
      entity_id: switch.sonoff_...
    data: {}
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - service: switch.turn_on
    target:
      entity_id: switch.sonoff_...
    data: {}
mode: single

The logic is if light.sonoff_xyz is unavailable for more the 1 minute then “recycle” the switch…

It works till May but now seems that it doesn’t work any more: any hint, tips, suggestions?

Thanks in advance,
.m.

Are you absolutely sure you haven’t edited it? Because:

data: {}

seems wrong, that’s JSON - and this is a YAML file. I would expect it to say data: [] much like empty conditions.