substitutions: name: sthome-ut4 friendly_name: "sthome-ut4" esphome: name: "${name}" friendly_name: "${friendly_name}" esp32: board: esp32-c3-devkitm-1 variant: ESP32C3 framework: type: esp-idf # Enable logging logger: # Enable Home Assistant API api: encryption: key: "qmfAFWSynz6VhvR5oBrtx2wnNP8n1yZKslVGNDMTWMc=" ota: - platform: esphome password: "2144396ae4f6a829dc7fe7de88c5887b" wifi: #ssid: !secret wifi_ssid #password: !secret wifi_password output_power: 8.5dB # we will use local dns server for local dns resolution domain: ".sthome.org" networks: - ssid: !secret wifi_ssid1 password: !secret wifi_password1 - ssid: !secret wifi_ssid2 password: !secret wifi_password2 - ssid: !secret wifi_ssid3 password: !secret wifi_password3 - ssid: !secret wifi_ssid4 password: !secret wifi_password4 - ssid: !secret wifi_ssid5 password: !secret wifi_password5 manual_ip: # For faster connection startup, set a static IP address # Set this to the IP of the ESP static_ip: 10.0.2.4 gateway: 10.0.0.2 subnet: 255.255.240.0 dns1: 10.0.0.1 dns2: 10.0.0.2 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "${name} Fallback Hotspot" password: "FtGGLAU7OFPx" captive_portal: sun: id: sun_sensor latitude: !secret latitude longitude: !secret longitude time: platform: sntp switch: - platform: gpio pin: number: GPIO10 inverted: true id: relay5 name: "Relay 5" icon: "mdi:lock-outline" restore_mode: RESTORE_DEFAULT_OFF #on_turn_on: # - delay: 1000ms # - switch.turn_off: relay5 - platform: gpio pin: number: GPIO0 inverted: true id: relay6 name: "Relay 6" icon: "mdi:gate" restore_mode: RESTORE_DEFAULT_OFF on_turn_on: - delay: 500ms - switch.turn_off: relay6