esphome: name: modempower esp8266: board: sonoff_basic wifi: ssid: !secret wifi_ssid password: !secret wifi_password fast_connect: true ap: ssid: modempower_rescue password: !secret rescue_ap_password captive_portal: api: encryption: key: !secret k5gModem ota: - platform: esphome password: !secret p5gModem logger: binary_sensor: - platform: gpio pin: number: GPIO0 mode: input: true pullup: true inverted: true name: "5G Modem Power Button" on_press: - switch.toggle: relay switch: - platform: gpio name: "5G Modem Power Relay" pin: GPIO12 restore_mode: ALWAYS_ON id: relay status_led: pin: number: GPIO13 inverted: yes