From: David Woodhouse Date: Thu, 8 Aug 2024 16:06:08 +0000 (+0100) Subject: esp-idf for Faikin too X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2228785dfc4c02cf89352911c9df50c06ab7ff56;p=users%2Fdwmw2%2Fesp32-pool.git esp-idf for Faikin too --- diff --git a/faikin.yaml b/faikin.yaml index d5eeec3..6c2c45a 100644 --- a/faikin.yaml +++ b/faikin.yaml @@ -15,27 +15,15 @@ esphome: 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 @@ -43,9 +31,47 @@ substitutions: 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: [ @@ -61,19 +87,6 @@ packages: #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 @@ -131,5 +144,7 @@ switch: 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