Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- name: esphome-web-f95d0c
- friendly_name: M5Stack-Atom-Lite-BLE-Gateway
- esphome:
- name: ${name}
- friendly_name: ${friendly_name}
- min_version: 2024.6.0
- name_add_mac_suffix: false
- project:
- name: esphome.web
- version: dev
- esp32:
- board: esp32dev
- framework:
- type: arduino
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- # Allow Over-The-Air updates
- ota:
- - platform: esphome
- # Allow provisioning Wi-Fi via serial
- improv_serial:
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- ap:
- ssid: "M5Stack-Atom-Lite-BLE-Gateway"
- password: !secret wifi_password
- # In combination with the `ap` this allows the user
- # to provision wifi credentials to the device via WiFi AP.
- captive_portal:
- dashboard_import:
- package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main
- import_full_config: true
- # Sets up Bluetooth LE (Only on ESP32) to allow the user
- # to provision wifi credentials to the device.
- esp32_improv:
- authorizer: none
- # To have a "next url" for improv serial
- web_server:
- external_components:
- - source: github://myhomeiot/esphome-components
- - source: github://pr#2854
- components: [esp32_ble_tracker]
- esp32_ble_tracker:
- ble_gateway:
- devices:
- - mac_address: A4:C1:38:A1:52:FF
- on_ble_advertise:
- then:
- homeassistant.event:
- event: esphome.on_ble_advertise
- data:
- packet: !lambda return packet;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement