]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Host mode ecodan support
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 8 Aug 2024 16:21:48 +0000 (17:21 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 8 Aug 2024 16:21:48 +0000 (17:21 +0100)
ecodan-host.yaml [new file with mode: 0644]

diff --git a/ecodan-host.yaml b/ecodan-host.yaml
new file mode 100644 (file)
index 0000000..0e321e8
--- /dev/null
@@ -0,0 +1,92 @@
+# https://github.com/revk/ESP32-Faikin
+#
+# The 2024-01-06 board has a WS2812 LED on GPIO47.
+#
+# On the main connector connect, ground and 5v
+# Connect to the TX/RX pins on the debug header
+# (poking pins in the hole seems to work well enough).
+#
+# Connect IO0 from the debug header to ground, power cycle.
+# Then you can program it. It'll fail to reset, just release IO0 and power cycle.
+
+esphome:
+  name: ecodan
+
+host:
+
+
+# Enable logging
+logger:
+  level: DEBUG
+  
+external_components:
+ - source:
+     type: local
+     path: ../git/esphome-ecodan-hp/components
+   components: [ ecodan ]
+
+substitutions:
+# heatpump heating/cooling switch
+# available modes: HEAT_ROOM_TEMP, HEAT_FLOW_TEMP, HEAT_COMPENSATION_CURVE, COOL_ROOM_TEMP, COOL_FLOW_TEMP
+  default_heating_switch_mode: HEAT_COMPENSATION_CURVE
+  default_cooling_switch_mode: COOL_FLOW_TEMP
+
+uart:
+ - id: uart_main
+   port: /dev/ttyUSB0
+   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
+   port: /dev/ttyUSB1
+   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:
+  ecodan:
+    url: file:/home/dwmw/git/esphome-ecodan-hp/
+    ref: main
+    refresh: always
+    files: [ 
+            #confs/esp32s3.yaml, # confs/esp32.yaml, for regular board
+            confs/zone1.yaml,
+            ## enable if you want to use zone 2
+            #confs/zone2.yaml,
+            ## enable label language file
+            confs/ecodan-labels-en.yaml,
+            #confs/ecodan-labels-nl.yaml,
+            #confs/ecodan-labels-it.yaml,
+            #confs/server-control.yaml,
+            #confs/debug.yaml,
+           ]
+
+switch:
+  - platform: template
+    id: ecodan_led_switch
+    name: ${led_switch}
+    optimistic: true
+    restore_mode: RESTORE_DEFAULT_ON
+    lambda: return id(ecodan_led_switch).state;
+
+ecodan:
+  id: ecodan_instance
+  uart_id: uart_main
+  proxy_uart_id: uart_proxy
+#  rx_pin: GPIO34
+#  tx_pin: GPIO48