Sofern jemand an meiner Lösung zur Diskussion gestern interessiert ist, ich habs geschafft den Fehler wegzubekommen.
Ich hab den alten ESP nicht direkt mit meinem eigenen ESP-Home Programm via legacy-Format beschrieben, sondern ihn zunächst über diese Weboberfläche mit diesem “Standard ESP Programm” beschrieben. Dann taucht er via autodiscover in den Integrationen auf. Außerdem in ESP Home, wo man ihn “adopten” kann. Durch Autodiscover funktioniert wohl der enkryptionkey-Austauch (wieder?). Nach dem Adopten dann über OTA mein eigenes Programm aufgespielt.
Ich hab außerdem vor dem neu Einbinden die YAML File der “alten, broken” config manuell via WinSCP gelöscht.
Obs an dem einen oder anderen lag weiß ich noch nicht, aber es läuft.
Danke nochmals für die Hilfen
Danke für deine Rückmeldung.
Hilfreich wäre vieleicht noch folgendes zu präzisieren, damit Leute mit wenig Erfahrung, wie ich, das besser nachvollziehen können.
Ich hatte das gleiche Problem mit meinem zweiten M5 Stack Lite.
Bei mir klappte nur eine komplette Neuinstallation über ESPHome Bluetooth Proxy
Danach den neu gefundenen Proxy wieder adopten und installieren. Ggf. vorher noch ein HA Restart
Wäre vermutlich noch Interessant, wo du die schlussendlich gefunden hast, nachdem du geschrieben hast.
Die YAML Config File der ESP-Home Geräte sind alle auch im normalen file-editor unter config/esp-home zu finden. Ich hab zuerst das Gerät in der Integration gelöscht. Dann über WinSCP die YAML File die im genannten ESP Home Ordner drin ist. Danach das Gerät im ESP-Home Addon gelöscht.
Man kommt an die YAML-File auch ohne WinSCP ran, aber ich dachte, vielleicht findet man via root irgenwelche anderen Unterordner, oder das Löschen ist gründlicher. Vom Gefühl her würde ich nicht behaupten, dass das der Ausschlag war, das es nun läuft, da die YAML Files auch gelöscht werden, wenn man das Gerät im ESP-Home Addon löscht. Hier ein Video zu WinSCP und HA
Ich gehe stark davon aus, dass Autodiscover und das “adopten” im ESP-Home-Addon dazu führt, das ein neuer Key-generiert/akzeptiert/neugeschrieben wird und es daher wieder läuft. Das passt auch mit der beschriebenen Erfahrung von @Soul zusammen.
Habe mich schon gefreut, dass deine Anleitung auch mir hilft. Leider schaffe ich es nur bis zur Integration in das Homeassistant addon. Dort erhalte ich die Fehlermeldung:
Keine Verbindung zum ESP möglich. Achte darauf, dass deine YAML-Datei eine Zeile ‘api:’ enthält.
Natürlich enthält meine yaml die erforderlichen neuen Daten!
Im ESPHOME konnte ich sehen, wie der Knoten erfolgreich erstellt wurde und die logs verfolgen ohne irgendeine Fehlermeldung.
Ich bin am verzweifeln.
Das klingt jetzt aber nach einem anderen Fehler wie dem von uns beschriebenen.
Hast du das Problem mit Allen ESPs oder nur einem?
Ich habe mitlerweile neue ESP im Einsatz und von denen macht garkeiner mehr Probleme. Probleme gab es wirklich nur bei ESPs die irgenwie schonmal eingebunden waren. Ich rede aber wie gesagt vom Handshake Error
leider habe ich zusätzlich noch das Problem, dass ich esphome intern gar nicht richtig nutzen kann, weil mein ubuntu die Kommunikation über usb verweigert. Ich kann meine esps zunächst mit esptool einrichten und dann geht die Kommunikation leidlich über WLAN. Doch das funktioniert nicht immer. Ich sehe den unten stehenden Knoten in der Übersicht der fritzbox, aber sauber kommunizieren in HA geht nicht.
Linking /data/gartenbewaesserung/.pioenvs/gartenbewaesserung/firmware.elf
RAM: [===== ] 46.7% (used 38260 bytes from 81920 bytes)
Flash: [===== ] 53.2% (used 555313 bytes from 1044464 bytes)
Building /data/gartenbewaesserung/.pioenvs/gartenbewaesserung/firmware.bin
esp8266_copy_factory_bin(["/data/gartenbewaesserung/.pioenvs/gartenbewaesserung/firmware.bin"], ["/data/gartenbewaesserung/.pioenvs/gartenbewaesserung/firmware.elf"])
======================== [SUCCESS] Took 398.87 seconds ========================
INFO Successfully compiled program.
INFO Connecting to 192.168.188.102
INFO Uploading /data/gartenbewaesserung/.pioenvs/gartenbewaesserung/firmware.bin (559472 bytes)
INFO Compressed to 383879 bytes
Uploading: [===== ] 8%
ERROR Error sending data: [Errno 104] Connection reset by peer
nach einem weiteren “retry” hat es doch funktioniert. Doch dann tritt eben der Fehler auf, dass ich wegen des ständigen Verbindungsverlustes, der sofort auftritt, wenn ich in HA meinen Knoten Gartenbewässerung konfigurieren will, eben keine Konfiguration vornehmen kann. Sieht man im log schön.
INFO ESPHome 2023.8.2
INFO Reading configuration /config/esphome/gartenbewaesserung.yaml...
INFO Detected timezone 'Europe/Berlin'
INFO Generating C++ source...
INFO Compiling app...
Processing gartenbewaesserung (board: d1_mini; framework: arduino; platform: platformio/espressif8266@3.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 1.2.3
|-- ESPAsyncWebServer-esphome @ 2.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
RAM: [===== ] 46.7% (used 38260 bytes from 81920 bytes)
Flash: [===== ] 53.2% (used 555313 bytes from 1044464 bytes)
========================= [SUCCESS] Took 13.17 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.188.102
INFO Uploading /data/gartenbewaesserung/.pioenvs/gartenbewaesserung/firmware.bin (559472 bytes)
INFO Compressed to 383879 bytes
Uploading: [============================================================] 100% Done...
INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.188.102 using esphome API
INFO Successfully connected to 192.168.188.102
[18:54:48][I][app:102]: ESPHome version 2023.8.2 compiled on Aug 21 2023, 18:47:43
[18:54:48][C][wifi:543]: WiFi:
[18:54:48][C][wifi:379]: Local MAC: C8:C9:A3:66:A1:B3
[18:54:48][C][wifi:380]: SSID: 'FRITZBox-7590-5193180'[redacted]
[18:54:48][C][wifi:381]: IP Address: 192.168.188.102
[18:54:48][C][wifi:382]: BSSID: 3C:A6:2F:AE:C1:58[redacted]
[18:54:48][C][wifi:384]: Hostname: 'gartenbewaesserung'
[18:54:48][C][wifi:386]: Signal strength: -52 dB ▂▄▆█
[18:54:48][C][wifi:390]: Channel: 13
[18:54:48][C][wifi:391]: Subnet: 255.255.255.0
[18:54:48][C][wifi:392]: Gateway: 192.168.188.1
[18:54:48][C][wifi:393]: DNS1: 0.0.0.0
[18:54:48][C][wifi:394]: DNS2: 0.0.0.0
[18:54:48][C][logger:301]: Logger:
[18:54:48][C][logger:302]: Level: DEBUG
[18:54:48][C][logger:303]: Log Baud Rate: 115200
[18:54:48][C][logger:305]: Hardware UART: UART0
[18:54:48][C][template.select:065]: Template Select 'Zone 1 start'
[18:54:48][C][template.select:066]: Update Interval: 60.0s
[18:54:48][C][template.select:069]: Optimistic: YES
[18:54:48][C][template.select:070]: Initial Option: 23:45
[18:54:48][C][template.select:071]: Restore Value: YES
[18:54:48][C][template.select:065]: Template Select 'Zone 2 start'
[18:54:48][C][template.select:066]: Update Interval: 60.0s
[18:54:48][C][template.select:069]: Optimistic: YES
[18:54:48][C][template.select:070]: Initial Option: 01:00
[18:54:48][C][template.select:071]: Restore Value: YES
[18:54:48][C][template.select:065]: Template Select 'Zone 3 start'
[18:54:48][C][template.select:066]: Update Interval: 60.0s
[18:54:48][C][template.select:069]: Optimistic: YES
[18:54:48][C][template.select:070]: Initial Option: 01:30
[18:54:48][C][template.select:071]: Restore Value: YES
[18:54:48][C][template.select:065]: Template Select 'Zone 4 start'
[18:54:48][C][template.select:066]: Update Interval: 60.0s
[18:54:48][C][template.select:069]: Optimistic: YES
[18:54:48][C][template.select:070]: Initial Option: 02:00
[18:54:48][C][template.select:071]: Restore Value: YES
[18:54:48][C][template.select:065]: Template Select 'Zone 5 start'
[18:54:48][C][template.select:066]: Update Interval: 60.0s
[18:54:48][C][template.select:069]: Optimistic: YES
[18:54:48][C][template.select:070]: Initial Option: 02:45
[18:54:48][C][template.select:071]: Restore Value: YES
[18:54:48][C][template.select:065]: Template Select 'Zone 6 start'
[18:54:48][C][template.select:066]: Update Interval: 60.0s
[18:54:48][C][template.select:069]: Optimistic: YES
[18:54:48][C][template.select:070]: Initial Option: 03:15
[18:54:48][C][template.select:071]: Restore Value: YES
[18:54:48][C][template.number:050]: Template Number 'Zone 1 duration'
[18:54:48][C][template.number:050]: Unit of Measurement: 'min'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.number:050]: Template Number 'Zone 2 duration'
[18:54:48][C][template.number:050]: Unit of Measurement: 'min'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.number:050]: Template Number 'Zone 3 duration'
[18:54:48][C][template.number:050]: Unit of Measurement: 'min'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.number:050]: Template Number 'Zone 4 duration'
[18:54:48][C][template.number:050]: Unit of Measurement: 'min'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.number:050]: Template Number 'Zone 5 duration'
[18:54:48][C][template.number:050]: Unit of Measurement: 'min'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.number:050]: Template Number 'Zone 6 duration'
[18:54:48][C][template.number:050]: Unit of Measurement: 'min'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.number:050]: Template Number 'Time Multiplier'
[18:54:48][C][template.number:050]: Unit of Measurement: '%'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.number:050]: Template Number 'Skip Days'
[18:54:48][C][template.number:051]: Optimistic: YES
[18:54:48][C][template.number:052]: Update Interval: 60.0s
[18:54:48][C][template.sensor:022]: Template Sensor 'Zone 1 remaining'
[18:54:48][C][template.sensor:022]: State Class: ''
[18:54:48][C][template.sensor:022]: Unit of Measurement: 'min'
[18:54:48][C][template.sensor:022]: Accuracy Decimals: 0
[18:54:48][C][template.sensor:023]: Update Interval: 60.0s
[18:54:48][C][template.sensor:022]: Template Sensor 'Zone 2 remaining'
[18:54:48][C][template.sensor:022]: State Class: ''
[18:54:48][C][template.sensor:022]: Unit of Measurement: 'min'
[18:54:48][C][template.sensor:022]: Accuracy Decimals: 0
[18:54:48][C][template.sensor:023]: Update Interval: 60.0s
[18:54:48][C][template.sensor:022]: Template Sensor 'Zone 3 remaining'
[18:54:48][C][template.sensor:022]: State Class: ''
[18:54:48][C][template.sensor:022]: Unit of Measurement: 'min'
[18:54:48][C][template.sensor:022]: Accuracy Decimals: 0
[18:54:48][C][template.sensor:023]: Update Interval: 60.0s
[18:54:48][C][template.sensor:022]: Template Sensor 'Zone 4 remaining'
[18:54:48][C][template.sensor:022]: State Class: ''
[18:54:48][C][template.sensor:022]: Unit of Measurement: 'min'
[18:54:48][C][template.sensor:022]: Accuracy Decimals: 0
[18:54:48][C][template.sensor:023]: Update Interval: 60.0s
[18:54:48][C][template.sensor:022]: Template Sensor 'Zone 5 remaining'
[18:54:48][C][template.sensor:022]: State Class: ''
[18:54:48][C][template.sensor:022]: Unit of Measurement: 'min'
[18:54:48][C][template.sensor:022]: Accuracy Decimals: 0
[18:54:48][C][template.sensor:023]: Update Interval: 60.0s
[18:54:48][C][template.sensor:022]: Template Sensor 'Zone 6 remaining'
[18:54:48][C][template.sensor:022]: State Class: ''
[18:54:48][C][template.sensor:022]: Unit of Measurement: 'min'
[18:54:48][C][template.sensor:022]: Accuracy Decimals: 0
[18:54:48][C][template.sensor:023]: Update Interval: 60.0s
[18:54:48][C][switch.gpio:068]: GPIO Switch 'irrigation_channel6'
[18:54:48][C][switch.gpio:090]: Restore Mode: always OFF
[18:54:48][C][switch.gpio:031]: Pin: GPIO2
[18:54:48][C][switch.gpio:068]: GPIO Switch 'irrigation_channel5'
[18:54:48][C][switch.gpio:090]: Restore Mode: always OFF
[18:54:48][C][switch.gpio:031]: Pin: GPIO0
[18:54:48][C][switch.gpio:068]: GPIO Switch 'irrigation_channel4'
[18:54:48][C][switch.gpio:090]: Restore Mode: always OFF
[18:54:48][C][switch.gpio:031]: Pin: GPIO15
[18:54:48][C][switch.gpio:068]: GPIO Switch 'irrigation_channel3'
[18:54:48][C][switch.gpio:090]: Restore Mode: always OFF
[18:54:48][C][switch.gpio:031]: Pin: GPIO13
[18:54:48][C][switch.gpio:068]: GPIO Switch 'irrigation_channel2'
[18:54:48][C][switch.gpio:090]: Restore Mode: always OFF
[18:54:48][C][switch.gpio:031]: Pin: GPIO12
[18:54:48][C][switch.gpio:068]: GPIO Switch 'irrigation_channel1'
[18:54:48][C][switch.gpio:090]: Restore Mode: always OFF
[18:54:48][C][switch.gpio:031]: Pin: GPIO14
[18:54:48][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'manual_gpio'
[18:54:48][C][gpio.binary_sensor:016]: Pin: GPIO5
[18:54:49][C][template.switch:068]: Template Switch 'Irrigation Zone 1'
[18:54:49][C][template.switch:090]: Restore Mode: always OFF
[18:54:49][C][template.switch:057]: Optimistic: NO
[18:54:49][C][template.switch:068]: Template Switch 'Irrigation Zone 2'
[18:54:49][C][template.switch:090]: Restore Mode: always OFF
[18:54:49][C][template.switch:057]: Optimistic: NO
[18:54:49][C][template.switch:068]: Template Switch 'Irrigation Zone 3'
[18:54:49][C][template.switch:090]: Restore Mode: always OFF
[18:54:49][C][template.switch:057]: Optimistic: NO
[18:54:49][C][template.switch:068]: Template Switch 'Irrigation Zone 4'
[18:54:49][C][template.switch:090]: Restore Mode: always OFF
[18:54:49][C][template.switch:057]: Optimistic: NO
[18:54:49][C][template.switch:068]: Template Switch 'Irrigation Zone 5'
[18:54:49][C][template.switch:090]: Restore Mode: always OFF
[18:54:49][C][template.switch:057]: Optimistic: NO
[18:54:49][C][template.switch:068]: Template Switch 'Irrigation Zone 6'
[18:54:49][C][template.switch:090]: Restore Mode: always OFF
[18:54:49][C][template.switch:057]: Optimistic: NO
[18:54:49][C][template.switch:068]: Template Switch 'Zone 1 enabled'
[18:54:49][C][template.switch:090]: Restore Mode: restore defaults to OFF
[18:54:49][C][template.switch:057]: Optimistic: YES
[18:54:49][C][template.switch:068]: Template Switch 'Zone 2 enabled'
[18:54:49][C][template.switch:090]: Restore Mode: restore defaults to OFF
[18:54:49][C][template.switch:057]: Optimistic: YES
[18:54:49][C][template.switch:068]: Template Switch 'Zone 3 enabled'
[18:54:49][C][template.switch:090]: Restore Mode: restore defaults to OFF
[18:54:49][C][template.switch:057]: Optimistic: YES
[18:54:49][C][template.switch:068]: Template Switch 'Zone 4 enabled'
[18:54:49][C][template.switch:090]: Restore Mode: restore defaults to OFF
[18:54:49][C][template.switch:057]: Optimistic: YES
[18:54:49][C][template.switch:068]: Template Switch 'Zone 5 enabled'
[18:54:49][C][template.switch:090]: Restore Mode: restore defaults to OFF
[18:54:49][C][template.switch:057]: Optimistic: YES
[18:54:49][C][template.switch:068]: Template Switch 'Zone 6 enabled'
[18:54:49][C][template.switch:090]: Restore Mode: restore defaults to OFF
[18:54:49][C][template.switch:057]: Optimistic: YES
[18:54:49][C][template.switch:068]: Template Switch 'Automation enabled'
[18:54:49][C][template.switch:090]: Restore Mode: restore defaults to OFF
[18:54:49][C][template.switch:057]: Optimistic: YES
[18:54:49][C][homeassistant.time:010]: Home Assistant Time:
[18:54:49][C][homeassistant.time:011]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[18:54:49][C][restart.button:017]: Restart Button 'Irrigation Restart'
[18:54:49][C][status:034]: Status Binary Sensor 'Irrigation Status'
[18:54:49][C][status:034]: Device Class: 'connectivity'
[18:54:49][C][captive_portal:088]: Captive Portal:
[18:54:49][C][mdns:112]: mDNS:
[18:54:49][C][mdns:113]: Hostname: gartenbewaesserung
[18:54:49][C][ota:093]: Over-The-Air Updates:
[18:54:49][C][ota:094]: Address: 192.168.188.102:8266
[18:54:49][C][ota:097]: Using Password.
[18:54:49][C][api:138]: API Server:
[18:54:49][C][api:139]: Address: 192.168.188.102:6053
[18:54:49][C][api:141]: Using noise encryption: YES
[18:54:49][C][wifi_signal.sensor:009]: WiFi Signal 'Irrigation Wifi'
[18:54:49][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[18:54:49][C][wifi_signal.sensor:009]: State Class: 'measurement'
[18:54:49][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
[18:54:49][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[18:55:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:55:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:55:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:55:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:55:31][D][sensor:093]: 'Irrigation Wifi': Sending state -55.00000 dBm with 0 decimals of accuracy
[18:55:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:55:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:56:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:56:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:56:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:56:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:56:31][D][sensor:093]: 'Irrigation Wifi': Sending state -51.00000 dBm with 0 decimals of accuracy
[18:56:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:56:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:57:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:57:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:57:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:57:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:57:31][D][sensor:093]: 'Irrigation Wifi': Sending state -52.00000 dBm with 0 decimals of accuracy
[18:57:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:57:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:58:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:58:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:58:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:58:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:58:31][D][sensor:093]: 'Irrigation Wifi': Sending state -52.00000 dBm with 0 decimals of accuracy
[18:58:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:58:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:58:55][D][api:102]: Accepted 192.168.188.100
[18:58:55][W][api.connection:083]: 192.168.188.100: Socket operation failed: HANDSHAKESTATE_SETUP_FAILED errno=11
[18:59:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:59:19][D][api:102]: Accepted 192.168.188.100
[18:59:19][W][api.connection:083]: 192.168.188.100: Socket operation failed: HANDSHAKESTATE_SETUP_FAILED errno=11
[18:59:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:59:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:59:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:59:31][D][sensor:093]: 'Irrigation Wifi': Sending state -52.00000 dBm with 0 decimals of accuracy
[18:59:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:59:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[18:59:39][I][ota:113]: Boot seems successful, resetting boot loop counter.
[19:00:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:00:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:00:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:00:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:00:31][D][sensor:093]: 'Irrigation Wifi': Sending state -52.00000 dBm with 0 decimals of accuracy
[19:00:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:00:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:01:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:01:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:01:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:01:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:01:31][D][sensor:093]: 'Irrigation Wifi': Sending state -54.00000 dBm with 0 decimals of accuracy
[19:01:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:01:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:02:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:02:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:02:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:02:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:02:31][D][sensor:093]: 'Irrigation Wifi': Sending state -52.00000 dBm with 0 decimals of accuracy
[19:02:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:02:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:03:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:03:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:03:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:03:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:03:31][D][sensor:093]: 'Irrigation Wifi': Sending state -57.00000 dBm with 0 decimals of accuracy
[19:03:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:03:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:04:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:04:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:04:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:04:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:04:31][D][sensor:093]: 'Irrigation Wifi': Sending state -60.00000 dBm with 0 decimals of accuracy
[19:04:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:04:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:04:42][D][api:102]: Accepted 192.168.188.100
[19:04:42][W][api.connection:083]: 192.168.188.100: Socket operation failed: HANDSHAKESTATE_SETUP_FAILED errno=11
[19:05:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
WARNING 192.168.188.102: Connection error occurred: EOF received
INFO Processing unexpected disconnect from ESPHome API for 192.168.188.102
WARNING Disconnected from API
WARNING Can't connect to ESPHome API for 192.168.188.102: Handshake timed out (TimeoutAPIError)
INFO Trying to connect to 192.168.188.102 in the background
WARNING 192.168.188.102: Connection error occurred: Connection lost
INFO Successfully connected to 192.168.188.102
[19:06:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:06:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:06:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:06:31][D][sensor:093]: 'Irrigation Wifi': Sending state -58.00000 dBm with 0 decimals of accuracy
[19:06:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:06:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:07:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:07:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:07:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:07:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:07:31][D][sensor:093]: 'Irrigation Wifi': Sending state -58.00000 dBm with 0 decimals of accuracy
[19:07:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:07:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:08:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:08:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:08:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:08:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:08:31][D][sensor:093]: 'Irrigation Wifi': Sending state -59.00000 dBm with 0 decimals of accuracy
[19:08:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:08:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:09:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:09:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:09:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:09:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:09:31][D][sensor:093]: 'Irrigation Wifi': Sending state -58.00000 dBm with 0 decimals of accuracy
[19:09:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:09:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:10:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:10:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:10:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:10:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:10:31][D][sensor:093]: 'Irrigation Wifi': Sending state -59.00000 dBm with 0 decimals of accuracy
WARNING 192.168.188.102: Connection error occurred: EOF received
INFO Processing unexpected disconnect from ESPHome API for 192.168.188.102
WARNING Disconnected from API
INFO Successfully connected to 192.168.188.102
[19:11:13][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:11:28][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:11:28][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:11:31][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:11:31][D][sensor:093]: 'Irrigation Wifi': Sending state -57.00000 dBm with 0 decimals of accuracy
[19:11:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:11:38][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
WARNING 192.168.188.102: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for 192.168.188.102
WARNING Disconnected from API
INFO Successfully connected to 192.168.188.102
[19:12:01][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'manual_gpio'
[19:12:01][C][gpio.binary_sensor:016]: Pin: GPIO5
[19:12:01][C][template.switch:068]: Template Switch 'Irrigation Zone 1'
[19:12:01][C][template.switch:090]: Restore Mode: always OFF
[19:12:01][C][template.switch:068]: Template Switch 'Irrigation Zone 2'
[19:12:01][C][template.switch:057]: Optimistic: NO
[19:12:01][C][template.switch:068]: Template Switch 'Irrigation Zone 3'
[19:12:01][C][template.switch:057]: Optimistic: NO
[19:12:01][C][template.switch:068]: Template Switch 'Irrigation Zone 4'
[19:12:01][C][template.switch:057]: Optimistic: NO
[19:12:01][C][template.switch:068]: Template Switch 'Irrigation Zone 5'
[19:12:01][C][template.switch:057]: Optimistic: NO
[19:12:01][C][template.switch:068]: Template Switch 'Irrigation Zone 6'
[19:12:01][C][template.switch:057]: Optimistic: NO
[19:12:01][C][template.switch:068]: Template Switch 'Zone 1 enabled'
[19:12:01][C][template.switch:057]: Optimistic: YES
[19:12:01][C][template.switch:068]: Template Switch 'Zone 2 enabled'
[19:12:01][C][template.switch:057]: Optimistic: YES
[19:12:01][C][template.switch:068]: Template Switch 'Zone 3 enabled'
[19:12:01][C][template.switch:057]: Optimistic: YES
[19:12:01][C][template.switch:068]: Template Switch 'Zone 4 enabled'
[19:12:01][C][template.switch:057]: Optimistic: YES
[19:12:01][C][template.switch:068]: Template Switch 'Zone 5 enabled'
[19:12:01][C][template.switch:057]: Optimistic: YES
[19:12:01][C][template.switch:068]: Template Switch 'Zone 6 enabled'
[19:12:01][C][template.switch:057]: Optimistic: YES
[19:12:01][C][template.switch:068]: Template Switch 'Automation enabled'
[19:12:01][C][template.switch:057]: Optimistic: YES
[19:12:01][C][homeassistant.time:010]: Home Assistant Time:
[19:12:01][C][restart.button:017]: Restart Button 'Irrigation Restart'
[19:12:01][C][status:034]: Status Binary Sensor 'Irrigation Status'
[19:12:02][C][captive_portal:088]: Captive Portal:
[19:12:02][C][mdns:112]: mDNS:
[19:12:02][C][mdns:113]: Hostname: gartenbewaesserung
[19:12:02][C][ota:093]: Over-The-Air Updates:
[19:12:02][C][api:138]: API Server:
[19:12:02][C][wifi_signal.sensor:009]: WiFi Signal 'Irrigation Wifi'
[19:12:02][C][wifi_signal.sensor:009]: State Class: 'measurement'
[19:12:02][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[19:12:33][D][sensor:093]: 'Zone 2 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:12:36][D][sensor:093]: 'Zone 4 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:12:37][D][sensor:093]: 'Zone 5 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:12:41][D][sensor:093]: 'Zone 1 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:12:43][D][api:102]: Accepted 192.168.188.100
[19:12:43][W][api.connection:083]: 192.168.188.100: Socket operation failed: HANDSHAKESTATE_SETUP_FAILED errno=11
[19:12:45][D][sensor:093]: 'Zone 6 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:12:45][D][sensor:093]: 'Zone 3 remaining': Sending state 0.00000 min with 0 decimals of accuracy
[19:12:50][D][sensor:093]: 'Irrigation Wifi': Sending state -59.00000 dBm with 0 decimals of accuracy
Leider hab ich kein Plan was bei dir los ist, aber es hat glaub nichts mit dem Problem des Threads zu tun. Vielleicht mal nen eigenen Thread dafür erstellen, dann findet vielleicht jemand
Hi zusammen,
hatte eben eine ähnliche Problematik.
Nach einigen Minuten kam allerdings eine Aufforderung den API Key neu einzugeben, danach hat die Verbindung wieder geklappt
So mittlerweile habe ich wenigstens den esp32 wieder an der Leine.
Vielleicht hilft es auch anderen, wenn Sie meinen Hinweis lesen, dass flashen aus dem Esphomeaddon heraus seit der Einführung von Wayland auf einem Ubuntu- Rechner nicht mehr funktioniert. Ich habe mir python und dann esptool auf meinem Rechner installiert und kann über das Terminal meine *.bin flashen, die ich im ESPHOME Addon in der Version modern erstellt habe.
Außerdem habe ich mir ein kurzes Datenkabel neu gekauft (Essager).
Den esp8266 bekomme ich zum Laufen, wenn ich die Template-Text-Sensoren weglasse. Die vollumfängliche yaml läuft einfach nicht mehr. Vor 9 Monaten ging das noch!
Selbes Problem bei mir. Lösung ganz einfach, auch wenn es mir nicht direkt aufgefallen war…
Man kann den ESP über HA direkt hinzufügen, nachdem man ihn zuvor gelöscht hat. Bei wurde der von ESPHome(Integration) direkt nach dem löschen wieder gefunden. Darüber hab ich den dann installiert. Recht am Anfang zeigt er den Encryption Key an, der müsste später gehen, man kann aber auch später noch den nötigen Key bekommen, also keine Panik.
Neu installieren lassen, bis der Handshake wieder fehlschlägt. Sobald das der Fall ist, sollte HA euch darauf aufmerksam machen, dass ein neues Device discovered wurde. Geht da auf konfigurieren und gebt den API-Key ein. Woher bekommt ihr den im Nachhinein? In der ESPHomeintegration bei dem Device auf die 3 Punkte klicken und da “show API Key” auswählen. Diesen kopieren und in der HA-Konfiguration eingeben. Fertig.
Bisher ging mir bei allen Versuchen durch, dass HA das Ding als neues Device erkennt. Aber das macht ja Sinn, weil ESPHome in sich geschlossen ist.
Ich hatte dasselbe Problem mit dem API Fehler: BAD_INDICATOR errno=11
Ich hatte den ESP32 schon für einmal in ESPHOME verwendet und anscheinend war deshalb noch der alte Encryption key irgendwo in Home Assistant mit diesem ESP32 verknüpft. Zum Glück konnte ich den key im esphome Archiv noch wieder finden.
Lösung für mich: alten key in neues script eingefügt - Fehler verschwunden