Various errors

Hello to all. There are some errors that can not be avoided. I hope you can help. This is one and then again another. Thank you very much.

This error occurred when you started and switched to a switch. I have a wifi light bulb that is connected to the electric red and fires up the support of a mini sonoff switch. By using an automation. The master of automation and then the error. It is rare that it works.

Automation

  - alias:
    trigger:
      - platform: state
        entity_id: switch.10010f3073 # sonoff mini
        to: "off"
    condition:
      condition: numeric_state
      entity_id: light.luz_pasillo # atriburo brightness
      attribute: brightness
      above: 10
    action:
      - service: light.turn_off #group lighrs
        target:
          entity_id: light.luz_pasillo

Advertising

Logger: homeassistant.helpers.service
Source: helpers/service.py:130
First occurred: 12:11:44 (1 occurrences)
Last logged: 12:11:44

Unable to find referenced entities switch.10010f3073

Other error

Logger: aioesphomeapi.reconnect_logic
Source: /usr/local/lib/python3.9/site-packages/aioesphomeapi/reconnect_logic.py:126
First occurred: 12:47:04 (12 occurrences)
Last logged: 13:14:15

Can't connect to ESPHome API for tecla-wifi-principal @ 192.168.0.4: Error connecting to ('192.168.0.4', 6053): [Errno 113] Connect call failed ('192.168.0.4', 6053)
Can't connect to ESPHome API for tecla-wifi-comedor @ 192.168.0.211: Error while reading data: [Errno 104] Connection reset by peer
Can't connect to ESPHome API for tecla-wifi-banio @ 192.168.0.47: Hello timed out
Can't connect to ESPHome API for enchufe-wifi-aire-comedor @ 192.168.0.190: Timeout waiting for response for <class 'api_pb2.ConnectRequest'>
Can't connect to ESPHome API for enchufe-wifi-aire-comedor @ 192.168.0.190: Hello timed out