esphome: name: poolcoversensor esp32: board: esp32-poe framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: password: !secret ota_password ota: password: !secret ota_password #wifi: # ssid: "WLAN" # password: !secret wifi_password # # # Enable fallback hotspot (captive portal) in case wifi connection fails # ap: # ssid: "Poolcoversensor Fallback Hotspot" # password: !secret ota_password #captive_portal: ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 power_pin: GPIO12 sensor: - platform: ultrasonic trigger_pin: 4 echo_pin: 36 name: "Poolcover Einstieg Abstand" icon: "mdi:door-sliding-open" update_interval: 1s timeout: 3m binary_sensor: - platform: gpio device_class: opening name: "Poolcover Vorne Einstieg" icon: "mdi:waves-arrow-right" filters: - delayed_on: 100ms pin: number: 16 mode: input: true pullup: true - platform: gpio device_class: opening name: "Poolcover Mitte" icon: "mdi:waves-arrow-up" filters: - delayed_on: 100ms pin: number: 15 mode: input: true pullup: true - platform: gpio device_class: opening name: "Poolcover Ende" icon: "mdi:waves-arrow-left" filters: - delayed_on: 100ms pin: number: 14 mode: input: true pullup: true # Those pins act as GND to be connected with the binary inputs switch: - platform: gpio id: gndpin1 pin: 13 internal: true - platform: gpio id: gndpin2 pin: 2 internal: true - platform: gpio id: gndpin3 pin: 5 internal: true