esphome: name: button friendly_name: button on_boot: - priority: 600 then: - switch.turn_on: white - delay: 10ms - switch.turn_off: white preferences: flash_write_interval: 24h i2c: - id: bus_a sda: GPIO21 scl: GPIO22 sensor: - platform: shtcx temperature: name: "Living Room Temperature" humidity: name: "Living Room Humidity" address: 0x70 binary_sensor: - platform: gpio pin: number: 37 name: "Bottom left key" - platform: gpio pin: number: 36 name: "Bottom right key" - platform: gpio pin: number: 38 allow_other_uses: true name: "Top left key" - platform: gpio pin: number: 39 name: "Top right key" switch: - platform: gpio id: white pin: number: 23 inverted: True name: "White LED" - platform: gpio pin: number: 18 inverted: True name: "Green LED" - platform: gpio pin: number: 4 inverted: False name: "Red LED" deep_sleep: run_duration: 60s wakeup_pin: number: 38 allow_other_uses: true mode: input: True wakeup_pin_mode: KEEP_AWAKE