Hi there,
the yaml-file is well compiled but flashing fails. Sometimes the flash goes to 18% and then stops. But mostly, after seeing “Uploading stub…” in the log, the process ends with the error “ERROR Running command failed: Packet transfer stopped (received 0 bytes)”. I am flashing with ESPhome-addon in home assistant, latest version.
I am flashing via USB-cable which is connected to my raspberry Pi 4+.
esphome:
name: optolink
friendly_name: optolink
esp32:
board: esp32-s2-saola-1
variant: ESP32S2
framework:
type: arduino
version: 2.0.9
platform_version: 5.3.0
# Enable logging
logger:
level: DEBUG
hardware_uart: UART1
external_components:
- source: github://pr#4453
components: [optolink ]
# Enable Home Assistant API
api:
encryption:
key: "xxxxx"
ota:
password: "xxxxx"
wifi:
ssid: !secret wifi_1_ssid
password: !secret wifi_1_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Optolink Fallback Hotspot"
password: "xxxxx"
#captive_portal:
web_server:
port: 80
optolink:
protocol: KW # P300 oder KW
logger: enable # wenn später alles rund läuft, wieder entfernen
state: Status # wenn später alles rund läuft, wieder entfernen
device_info: Vitotronic 200 KW2 # dient zur Identifizierung der Vitotronic
rx_pin: GPIO44
tx_pin: GPIO43
sensor:
- platform: optolink
name: Aussentemperatur
address: 0x0800
bytes: 2
div_ratio: 10
unit_of_measurement: °C
device_class: temperature
update_interval: 1min