gf-bt-proxy-01.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. substitutions:
  2. devicename: gf-bt-proxy-01
  3. low_devicename: gf_bt_proxy_01
  4. friendly_devicename: GF Bluetooth Proxy
  5. esphome:
  6. name: $devicename
  7. friendly_name: $friendly_devicename
  8. packages:
  9. diag: !include common/diag.yaml
  10. esp32:
  11. board: esp32dev
  12. framework:
  13. type: arduino
  14. # type: esp-idf
  15. # Enable logging
  16. logger:
  17. web_server:
  18. port: 80
  19. # Enable Home Assistant API
  20. api:
  21. encryption:
  22. key: "ejeMnlF5M60w/yuYwAWn/kIBz701xLwVkUGf9iN8uLA="
  23. ota:
  24. password: "2c27af3ab81f992e23745c20ab5dfc02"
  25. wifi:
  26. ssid: !secret iot_ssid
  27. password: !secret iot_password
  28. domain: .int.mmax.cloud
  29. # # Enable fallback hotspot (captive portal) in case wifi connection fails
  30. # ap:
  31. # ssid: "Gf-Bt-Proxy-01 Fallback Hotspot"
  32. # password: "Ry3eaIb2vmf1"
  33. esp32_ble_tracker:
  34. scan_parameters:
  35. active: True
  36. # We currently use the defaults to ensure Bluetooth
  37. # can co-exist with WiFi In the future we may be able to
  38. # enable the built-in coexistence logic in ESP-IDF
  39. # active: true
  40. bluetooth_proxy:
  41. active: true
  42. # external_components:
  43. # - source: github://myhomeiot/esphome-components
  44. #ble_monitor:
  45. # discovery: true
  46. # restore_state: true
  47. # decimals: 1
  48. # period: 300
  49. # ble_gateway:
  50. # id: blegateway
  51. # on_ble_advertise:
  52. # then:
  53. # homeassistant.event:
  54. # event: esphome.on_ble_advertise
  55. # data:
  56. # packet: !lambda return packet;
  57. #
  58. # binary_sensor:
  59. # - platform: homeassistant
  60. # id: ble_gateway_discovery
  61. # entity_id: binary_sensor.ble_gateway
  62. # attribute: discovery
  63. # on_state:
  64. # then:
  65. # lambda: id(blegateway).set_discovery(x);
  66. #
  67. # text_sensor:
  68. # - platform: homeassistant
  69. # id: ble_gateway_devices
  70. # entity_id: binary_sensor.ble_gateway
  71. # attribute: devices
  72. # on_value:
  73. # then:
  74. # lambda: id(blegateway).set_devices(x);
  75. #
  76. # switch:
  77. # - platform: template
  78. # id: switch_ble_gateway_discovery
  79. # name: BLE Gateway Discovery
  80. # icon: mdi:bluetooth-connect
  81. # lambda: return id(blegateway).get_discovery();
  82. # turn_on_action: [lambda: id(blegateway).set_discovery(true);]
  83. # turn_off_action: [lambda: id(blegateway).set_discovery(false);]
  84. # disabled_by_default: true
  85. # entity_category: config
  86. #
  87. # button:
  88. # - platform: safe_mode
  89. # name: Safe Mode Boot
  90. # entity_category: diagnostic