Automation redundancy or double checkautomation redundancy or double check

Hello everyone. I have a problem with a device.

Sometimes the light of the aquarium does not turn on because the nodemcu at times is in an unavailable state. If at that moment the light should turn on, it remains off. Can you check 30 minutes later to see if it still hasn’t turned on? Thanks

  - alias: 'La luz esta encendida?'
    trigger:
    - platform: state
      entity_id: switch.relay_8
      to: 'off'
    condition:
      - condition: time      
         #at: input_datetime.hora_encendido_de_luz_acuario + 30
    action:
      - service: switch.turn_on
        entity_id: switch.relay_8