]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
esp-idf for Faikin too
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 8 Aug 2024 16:06:08 +0000 (17:06 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 8 Aug 2024 16:06:08 +0000 (17:06 +0100)
faikin.yaml

index d5eeec381cda8c4a1e439805d18127a24eb6fa22..6c2c45a56d962f139cdbc627412d16a0b0a9be6c 100644 (file)
@@ -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