esp32:
board: esp32-s3-devkitc-1
framework:
- type: arduino
- version: latest
-
-# Enable logging
-logger:
-# hardware_uart: USB_SERIAL_JTAG
- level: DEBUG
-
-ota:
- platform: esphome
- password: !secret ota_upgrade_pw
+ type: esp-idf
+ version: 5.0.2
+ platform_version: 6.3.2
external_components:
- source:
type: local
- path: ../git/esphome_syslog/components
- components: [syslog]
-
- - source: github://gekkekoe/esphome-ecodan-hp@main
+ path: ../git/esphome-ecodan-hp/components
components: [ ecodan ]
- refresh: always
substitutions:
# heatpump heating/cooling switch
default_heating_switch_mode: HEAT_COMPENSATION_CURVE
default_cooling_switch_mode: COOL_FLOW_TEMP
+uart:
+ - id: uart_main
+ rx_pin:
+ number: GPIO34
+ inverted: true
+ tx_pin:
+ number: GPIO48
+ inverted: true
+ baud_rate: 2400
+ parity: EVEN
+ stop_bits: 1
+ debug:
+ direction: BOTH
+ dummy_receiver: false
+ after:
+ delimiter: "\n"
+ sequence:
+ - lambda: UARTDebug::log_hex(direction, bytes, ' ');
+
+ - id: uart_proxy
+ rx_pin:
+ number: GPIO44
+ inverted: true
+ tx_pin:
+ number: GPIO43
+ inverted: true
+ baud_rate: 2400
+ parity: EVEN
+ stop_bits: 1
+ debug:
+ direction: BOTH
+ dummy_receiver: false
+ after:
+ delimiter: "\n"
+ sequence:
+ - lambda: UARTDebug::log_hex(direction, bytes, ' ');
+
packages:
- remote_package:
- url: https://github.com/gekkekoe/esphome-ecodan-hp/
+ base: !include base.yaml
+ ecodan:
+ url: file:/home/dwmw/git/esphome-ecodan-hp/
ref: main
refresh: always
files: [
#confs/debug.yaml,
]
-wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_pw
-
-mqtt:
- broker: !secret mqtt_server
- port: 1884
- discovery_prefix: ${mqtt_prefix}/homeassistant
- log_topic: ${mqtt_prefix}/logs
- username: "pool"
- password: !secret pool_mqtt_pw
- id: mqtt_client
-
light:
- platform: esp32_rmt_led_strip
pin: GPIO47
ecodan:
id: ecodan_instance
- rx_pin: GPIO34
- tx_pin: GPIO48
+ uart_id: uart_main
+ proxy_uart_id: uart_proxy
+# rx_pin: GPIO34
+# tx_pin: GPIO48