Switchman M5 zrywa polaczenie samoistnie

Witam
Switchman M5 flash przez ESPHome wszystko pięknie ładnie troche pokombinowałem bo mialem problem z czerwonymi diodami ale metoda prob i błędów udało mi się do tego dojść i dział jak należy ale… Po jakimś czasie działania (nieregularnie) zrywa mi polaczenie na 5-15 minut po czym sam wraca do działania. Podczas zrywania traci polaczenie z HA jak i wyłącza przekaźniki w przełączniku (co skutkuje np wyłączeniem światła w pokoju) pomaga tylko odłączenie urządzenie od prądu i ponowne podłączenie, Switchman się połączy i dalej działa tak jak ma działać az znów się nie wywali Proszę o pomoc bo już sam nie wiem co jest nie tak… Dodam że ma przypisany adres IP w routerze. Załączam mój kod YAML może wskażecie mi co trzeba by było poprawić lub dodać…

esphome:
  name: m5-kuchnia

esp32:
  board: esp32dev
  framework:
    type: arduino

logger:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  power_save_mode: none

api:
  encryption:
    key: "..."

ota:
  password: "..."

sensor:  
  - platform: wifi_signal
    name: "RSSI"
    id: sensor_rssi
    update_interval: 90s
    entity_category: "diagnostic"

  - platform: uptime
    name: "Uptime"
    id: sensor_uptime
    update_interval: 300s
    entity_category: "diagnostic"

button:
  - platform: restart
    name: "Restart"
    id: button_restart

switch:
  - platform: gpio
    name: "Left"
    pin: GPIO23
    id: relay_1

  - platform: gpio
    name: "Right"
    pin: GPIO19
    id: relay_2
    on_turn_on:
      - output.turn_on: led_2
    on_turn_off:
      - output.turn_off: led_2

output:
  - platform: gpio
    id: led_2
    pin:
      number: GPIO22
      inverted: False

  - platform: ledc
    id: pwm_output
    pin: GPIO18
    frequency: 1000 Hz

binary_sensor:
  - platform: status
    name: "Status"
    id: sensor_status

  - platform: template
    name: "API connected"
    id: sensor_api_connected
    internal: True
    entity_category: 'diagnostic'
    device_class: 'connectivity'
    lambda: return global_api_server->is_connected();
    on_press:
      - light.turn_on: led_status
    on_release:
      - light.turn_off: led_status

  - platform: gpio
    name: "Left"
    pin:
      number: GPIO04
      mode: INPUT_PULLUP
      inverted: False
    on_press:
      - switch.toggle: relay_1

  - platform: gpio
    name: "Right"
    pin:
      number: GPIO15
      mode: INPUT_PULLUP
      inverted: False
    on_press:
      - switch.toggle: relay_2

light:
  - platform: status_led
    name: "LED"
    id: led_status
    pin:
      number: GPIO05
      inverted: False
    internal: True
    restore_mode: ALWAYS_OFF

  - platform: monochromatic
    output: pwm_output
    name: "LEDs"
    restore_mode: RESTORE_DEFAULT_OFF
    icon: 'mdi:led-outline'
    entity_category: 'config'

Dorzuć logi z momentu przed awarią, w jej trakcie i po, bez nich to można tylko próbować zgadywać co się stało. (po uarcie będziesz musiał je ogarnąć, bo zapewne w kluczowych momentach nie masz połączenia WiFi)

Mógł byś mi nakreślić jak to zrobić? Jestem świeży w HA i staram sie jak moge ale nie wszystko ogarniam ;/

No jakoś flashowałeś, zakładam że użyłeś do tego jakiś mostek UART-USB.

Musisz pamiętać o napięciu sieciowym występującym w urządzeniu podczas pracy, więc jeśli się ni czujesz na siłach to odradzam, ale nie widzę innej możliwości diagnostyki.

Moim zdaniem następuje z jakiegoś powodu reboot urządzenia, ale nie znamy okoliczności (np. dramatycznie niskiego sygnału WiFi, braku komunikacji z HA czy czegokolwiek innego - nawet wady fabrycznej sprzętu).

Udalo mi sie dorwac cos takiego
wlasnie przed chwila wywalilo mi przelacznik od lazienki po czym sam wstal

2023-09-23 14:02:24.974 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2023-09-23 14:02:25.020 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=12 from 2023-09-18 15:34:04.477938)
2023-09-23 14:02:41.465 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-kuchnia @ 192.168.0.178: Error connecting to ('192.168.0.178', 6053): [Errno 113] Connect call failed ('192.168.0.178', 6053) (SocketAPIError)
2023-09-23 14:02:41.473 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-sypialnia @ 192.168.0.213: Error connecting to ('192.168.0.213', 6053): [Errno 113] Connect call failed ('192.168.0.213', 6053) (SocketAPIError)
2023-09-23 14:02:46.639 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Compal Broadband Networks, Inc CH7465LG' for upnp integration not ready yet: Device not discovered: uuid:A37351C5-8521-4c24-A43E-AC2205A9909F::urn:schemas-upnp-org:device:InternetGatewayDevice:1; Retrying in background
2023-09-23 14:20:52.124 WARNING (MainThread) [aioesphomeapi.connection] m5-sypialnia @ 192.168.0.105: Connection error occurred: m5-sypialnia @ 192.168.0.105: Invalid encryption key: received_name=m5-kuchnia
2023-09-23 14:20:52.128 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-sypialnia @ 192.168.0.105: m5-sypialnia @ 192.168.0.105: Invalid encryption key: received_name=m5-kuchnia (InvalidEncryptionKeyAPIError)
2023-09-23 14:20:52.173 WARNING (MainThread) [aioesphomeapi.connection] 192.168.0.105: Connection error occurred: 192.168.0.105: Connection requires encryption
2023-09-23 14:20:53.365 WARNING (MainThread) [aioesphomeapi.connection] 192.168.0.105: Connection error occurred: 192.168.0.105: Invalid encryption key: received_name=m5-kuchnia
2023-09-23 14:26:56.700 WARNING (MainThread) [aioesphomeapi.connection] m5-kuchnia @ 192.168.0.105: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 14:26:59.768 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-kuchnia @ 192.168.0.105: Error connecting to ('192.168.0.105', 6053): [Errno 113] Connect call failed ('192.168.0.105', 6053) (SocketAPIError)
2023-09-23 15:03:11.866 ERROR (MainThread) [homeassistant.components.button] Platform esphome does not generate unique IDs. ID m5-kuchniabuttonrestart already exists - ignoring button.restart_2
2023-09-23 15:03:11.871 ERROR (MainThread) [homeassistant.components.switch] Platform esphome does not generate unique IDs. ID m5-kuchniaswitchleft already exists - ignoring switch.left_2
2023-09-23 15:03:11.873 ERROR (MainThread) [homeassistant.components.switch] Platform esphome does not generate unique IDs. ID m5-kuchniaswitchright already exists - ignoring switch.right_2
2023-09-23 15:03:11.878 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform esphome does not generate unique IDs. ID m5-kuchniabinary_sensorstatus already exists - ignoring binary_sensor.status_2
2023-09-23 15:03:11.882 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform esphome does not generate unique IDs. ID m5-kuchniabinary_sensorleft already exists - ignoring binary_sensor.left_2
2023-09-23 15:03:11.884 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform esphome does not generate unique IDs. ID m5-kuchniabinary_sensorright already exists - ignoring binary_sensor.right_2
2023-09-23 15:03:11.886 ERROR (MainThread) [homeassistant.components.light] Platform esphome does not generate unique IDs. ID m5-kuchnialightleds already exists - ignoring light.leds_2
2023-09-23 15:03:12.696 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-kuchnia @ 192.168.0.105: Error connecting to ('192.168.0.105', 6053): [Errno 113] Connect call failed ('192.168.0.105', 6053) (SocketAPIError)
2023-09-23 15:03:20.760 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-kuchnia @ 192.168.0.178: Error connecting to ('192.168.0.178', 6053): [Errno 113] Connect call failed ('192.168.0.178', 6053) (SocketAPIError)
2023-09-23 15:27:52.638 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_matter_server/start request
2023-09-23 15:27:52.644 ERROR (MainThread) [homeassistant.components.matter] Failed to start the Matter Server add-on: 
2023-09-23 16:13:26.203 WARNING (MainThread) [aioesphomeapi.connection] m5-sypialnia @ 192.168.0.104: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 16:13:28.632 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-sypialnia @ 192.168.0.104: Error connecting to ('192.168.0.104', 6053): [Errno 113] Connect call failed ('192.168.0.104', 6053) (SocketAPIError)
2023-09-23 16:13:30.809 WARNING (MainThread) [aioesphomeapi.connection] m5-kuchnia @ 192.168.0.105: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 16:13:33.880 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-kuchnia @ 192.168.0.105: Error connecting to ('192.168.0.105', 6053): [Errno 113] Connect call failed ('192.168.0.105', 6053) (SocketAPIError)
2023-09-23 16:28:29.699 WARNING (MainThread) [aioesphomeapi.connection] m5-sypialnia @ 192.168.0.104: Connection error occurred: [Errno 104] Connection reset by peer
2023-09-23 16:28:29.720 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-sypialnia @ 192.168.0.104: Error connecting to ('192.168.0.104', 6053): [Errno 111] Connect call failed ('192.168.0.104', 6053) (SocketAPIError)
2023-09-23 16:28:30.469 WARNING (MainThread) [aioesphomeapi.connection] m5-kuchnia @ 192.168.0.105: Connection error occurred: [Errno 104] Connection reset by peer
2023-09-23 16:30:40.653 WARNING (MainThread) [aioesphomeapi.connection] m5-kuchnia @ 192.168.0.105: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 16:30:41.100 WARNING (MainThread) [aioesphomeapi.connection] m5-sypialnia @ 192.168.0.104: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 16:30:43.768 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-kuchnia @ 192.168.0.105: Error connecting to ('192.168.0.105', 6053): [Errno 113] Connect call failed ('192.168.0.105', 6053) (SocketAPIError)
2023-09-23 16:30:44.216 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-sypialnia @ 192.168.0.104: Error connecting to ('192.168.0.104', 6053): [Errno 113] Connect call failed ('192.168.0.104', 6053) (SocketAPIError)
2023-09-23 16:42:42.617 WARNING (MainThread) [aioesphomeapi.connection] m5-sypialnia @ 192.168.0.104: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 16:42:44.792 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-sypialnia @ 192.168.0.104: Error connecting to ('192.168.0.104', 6053): [Errno 113] Connect call failed ('192.168.0.104', 6053) (SocketAPIError)
2023-09-23 16:43:03.725 WARNING (MainThread) [aioesphomeapi.connection] m5-kuchnia @ 192.168.0.105: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 16:43:06.808 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-kuchnia @ 192.168.0.105: Error connecting to ('192.168.0.105', 6053): [Errno 113] Connect call failed ('192.168.0.105', 6053) (SocketAPIError)
2023-09-23 17:39:46.085 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:46.102 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:48.626 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:48.633 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:50.584 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:50.591 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:52.489 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:52.496 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:53.243 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:39:53.249 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:08.639 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:08.645 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:11.067 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:11.073 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:12.127 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:12.133 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:12.847 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:12.853 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.306 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.312 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.500 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.519 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.665 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.671 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.788 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.794 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.940 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:13.946 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:14.516 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:14.522 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.065 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.071 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.201 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.207 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.595 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.602 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.888 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:15.898 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:16.143 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:16.149 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:16.335 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:16.341 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:18.777 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:18.783 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:19.033 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:19.039 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:19.412 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:19.418 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:19.632 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:19.638 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:20.456 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:20.462 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:57.584 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:57.590 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:59.986 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:40:59.992 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:00.584 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:00.593 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:00.960 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:00.967 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:01.218 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:01.224 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:01.853 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:41:01.860 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:42:06.088 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:42:06.094 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.left, switch.left_3, switch.right_2 are missing or not currently available
2023-09-23 17:42:13.395 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds_3 are missing or not currently available
2023-09-23 17:42:13.555 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds_3 are missing or not currently available
2023-09-23 17:42:13.714 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds_3 are missing or not currently available
2023-09-23 17:42:13.867 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds_3 are missing or not currently available
2023-09-23 17:42:14.161 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds_3 are missing or not currently available
2023-09-23 17:46:09.447 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds are missing or not currently available
2023-09-23 17:46:10.544 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds are missing or not currently available
2023-09-23 17:46:11.146 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds are missing or not currently available
2023-09-23 17:46:11.612 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds are missing or not currently available
2023-09-23 17:46:12.293 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.leds are missing or not currently available
2023-09-23 18:21:57.687 WARNING (MainThread) [aioesphomeapi.connection] m5-lazienka @ 192.168.0.107: Connection error occurred: Ping response not received after 90.0 seconds
2023-09-23 18:21:59.864 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5-lazienka @ 192.168.0.107: Error connecting to ('192.168.0.107', 6053): [Errno 113] Connect call failed ('192.168.0.107', 6053) (SocketAPIError)

Ten fragment sugeruje, że masz więcej problemów (zaniki zasilania?), bo to sugeruje, że się HA wywraca lub kończy pracę w nieoczekiwanych okolicznościach - typowy scenariusz to brak zasilania lub anormalny restart maszyny.

Tu za to mamy problemy z połączeniem, ale najlepsze jest dalej

Wydaje się, że kilkukrotnie dodawałeś do Integracji w HA to samo urządzenie ze skompilowanymi różnymi firmware (po radykalnych zmianach w YAMLu ESPHome)

Sugeruję póki co powywalać z HA wszystkie urządzenia ESPHome z którymi masz jakiekolwiek problemy (tj.mają ostrzeżenia w logach) i zrestartować HA, po restarcie powinny zostać wykryte automatycznie, a prawidłowe klucze api masz w aktualnych wersjach YAMLa.