I'm sorry at the moment I can't access the home assistant

Hi all,
often google home replies : “I’m sorry I can’t access to home assistant at the moment”… If I wait some minutes and I repeat again the command probably it works…

I have Home Assistant 2021.6.4 installed on raspberry pi3b.

Lately this appens very often…

What can I check to solve this?

As far as I know, 2 possible reasons for this:

  1. Connectivity between Google and your HA, obviously
  2. If HA takes too long to “acknowledge” the command, e.g. long running script. For whatever reason, it seems HA waits for the end of the execution of the action before acknowledging Google

thanks for your reply.
Raspberry is connected to the lan by cable.

This is the lst script inserted:

    alias: "metti_sky"
      - service: media_player.turn_off
        entity_id: media_player.sala_da_pranzo_2
      - service: media_player.select_source
          entity_id: media_player.oled_lg
          source: SKY

I think is short