]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Faikin finally working (with external pullup on RX)
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 9 Aug 2024 17:37:02 +0000 (18:37 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 9 Aug 2024 17:37:02 +0000 (18:37 +0100)
faikin.yaml

index 6c2c45a56d962f139cdbc627412d16a0b0a9be6c..c5959734897c89e932615e5dd93f479962dd9331 100644 (file)
 
 esphome:
   name: faikin1
+  on_boot:
+    then:
+      - light.turn_on:
+          id: led
+          red: 100%
+          green: 0%
+          blue: 0%
 
 esp32:
   board: esp32-s3-devkitc-1
@@ -25,6 +32,29 @@ external_components:
      path: ../git/esphome-ecodan-hp/components
    components: [ ecodan ]
 
+wifi:
+  networks:
+    - ssid: !secret wifi_ssid
+      password: !secret wifi_pw
+      bssid: !secret wndr3800_bssid
+      priority: 1
+
+mqtt:
+  on_connect:
+    then:
+      - light.turn_on:
+         id: led
+         blue: 100%
+         red: 0%
+         green: 0%
+  on_disconnect:
+    then:
+      - light.turn_on:
+         id: led
+         blue: 0%
+         red: 100%
+         green: 0%
+
 substitutions:
 # heatpump heating/cooling switch
 # available modes: HEAT_ROOM_TEMP, HEAT_FLOW_TEMP, HEAT_COMPENSATION_CURVE, COOL_ROOM_TEMP, COOL_FLOW_TEMP
@@ -36,6 +66,9 @@ uart:
    rx_pin:
     number: GPIO34
     inverted: true
+    mode:
+      input: true
+      pullup: true
    tx_pin:
     number: GPIO48
     inverted: true
@@ -74,7 +107,8 @@ packages:
     url: file:/home/dwmw/git/esphome-ecodan-hp/
     ref: main
     refresh: always
-    files: [ 
+    files: [
+            confs/base.yaml,
             #confs/esp32s3.yaml, # confs/esp32.yaml, for regular board
             confs/zone1.yaml,
             ## enable if you want to use zone 2