substitutions: esp_name: "esp32-atom-lite" esphome: name: ${esp_name} comment: ${esp_name} esp32: board: m5stack-atom framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: encryption: key: !secret esp32-atomo-lite_api ota: password: !secret ota_password wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: ${esp_name} fallback password: !secret fallback_password captive_portal: bluetooth_proxy: active: true binary_sensor: - platform: gpio pin: number: GPIO39 inverted: true name: ${esp_name}_Button id: button on_click: then: - if: condition: - light.is_on: RGB_Light then: - light.turn_off: RGB_Light else: - light.turn_on: RGB_Light light: - platform: fastled_clockless chipset: ws2812b pin: GPIO25 num_leds: 1 rgb_order: GRB id: RGB_Light name: "${esp_name}_RGB_Light" effects: - random: name: "Random" transition_length: 20s update_interval: 5s - addressable_rainbow: name: Rainbow Effect speed: 100 width: 50