esphome: name: maxxfan friendly_name: MaxxFan esp32: board: esp32-c3-devkitm-1 framework: type: esp-idf # Enable logging logger: # Enable Home Assistant API api: encryption: key: "deleted//will_be_autocreated_by_esphome" ota: - platform: esphome password: "use_your_own" wifi: networks: - ssid: !secret wifi_ssid password: !secret wifi_password ap: ssid: "MaxxFan" password: "use_your_own" captive_portal: i2c: sda: GPIO4 scl: GPIO5 scan: true tca9555: - id: vanturtle address: 0x27 binary_sensor: - platform: gpio name: "0 Auto Hold" id: c0_auto_hold pin: tca9555: vanturtle number: 0 mode: INPUT - platform: gpio name: "1 Auto Hold" id: c1_auto_hold pin: tca9555: vanturtle number: 8 mode: INPUT switch: - platform: gpio name: "0 Controller LED" id: c0_controller_led pin: tca9555: vanturtle number: 1 mode: OUTPUT - platform: gpio name: "0 Auto" id: c0_auto pin: tca9555: vanturtle number: 2 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c0_auto - platform: gpio name: "0 Direction" id: c0_direction pin: tca9555: vanturtle number: 3 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c0_direction - platform: gpio name: "0 On Off" id: c0_on_off pin: tca9555: vanturtle number: 4 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c0_on_off - platform: gpio name: "0 Faster" id: c0_faster pin: tca9555: vanturtle number: 5 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c0_faster - platform: gpio name: "0 Slower" id: c0_slower pin: tca9555: vanturtle number: 6 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c0_slower - platform: gpio name: "0 Beep" id: c0_beep pin: tca9555: vanturtle number: 7 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c0_beep - platform: gpio name: "1 Controller LED" id: c1_controller_led pin: tca9555: vanturtle number: 9 mode: OUTPUT - platform: gpio name: "1 Auto" id: c1_auto pin: tca9555: vanturtle number: 10 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c1_auto - platform: gpio name: "1 Direction" id: c1_direction pin: tca9555: vanturtle number: 11 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c1_direction - platform: gpio name: "1 On Off" id: c1_on_off pin: tca9555: vanturtle number: 12 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c1_on_off - platform: gpio name: "1 Faster" id: c1_faster pin: tca9555: vanturtle number: 13 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c1_faster - platform: gpio name: "1 Slower" id: c1_slower pin: tca9555: vanturtle number: 14 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c1_slower - platform: gpio name: "1 Beep" id: c1_beep pin: tca9555: vanturtle number: 15 mode: OUTPUT on_turn_on: - delay: 150ms - switch.turn_off: c1_beep