Advertisement
y2kbug

Untitled

Dec 5th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. substitutions:
  2. name: esphome-web-f95d0c
  3. friendly_name: M5Stack-Atom-Lite-BLE-Gateway
  4.  
  5. esphome:
  6. name: ${name}
  7. friendly_name: ${friendly_name}
  8. min_version: 2024.6.0
  9. name_add_mac_suffix: false
  10. project:
  11. name: esphome.web
  12. version: dev
  13.  
  14. esp32:
  15. board: esp32dev
  16. framework:
  17. type: arduino
  18.  
  19. # Enable logging
  20. logger:
  21.  
  22. # Enable Home Assistant API
  23. api:
  24.  
  25. # Allow Over-The-Air updates
  26. ota:
  27. - platform: esphome
  28.  
  29. # Allow provisioning Wi-Fi via serial
  30. improv_serial:
  31.  
  32. wifi:
  33. ssid: !secret wifi_ssid
  34. password: !secret wifi_password
  35.  
  36. ap:
  37. ssid: "M5Stack-Atom-Lite-BLE-Gateway"
  38. password: !secret wifi_password
  39.  
  40. # In combination with the `ap` this allows the user
  41. # to provision wifi credentials to the device via WiFi AP.
  42. captive_portal:
  43.  
  44. dashboard_import:
  45. package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main
  46. import_full_config: true
  47.  
  48. # Sets up Bluetooth LE (Only on ESP32) to allow the user
  49. # to provision wifi credentials to the device.
  50. esp32_improv:
  51. authorizer: none
  52.  
  53. # To have a "next url" for improv serial
  54. web_server:
  55.  
  56. external_components:
  57. - source: github://myhomeiot/esphome-components
  58. - source: github://pr#2854
  59. components: [esp32_ble_tracker]
  60.  
  61. esp32_ble_tracker:
  62.  
  63. ble_gateway:
  64. devices:
  65. - mac_address: A4:C1:38:A1:52:FF
  66. on_ble_advertise:
  67. then:
  68. homeassistant.event:
  69. event: esphome.on_ble_advertise
  70. data:
  71. packet: !lambda return packet;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement