gf-bt-proxy-01.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. esp32:
  9. board: esp32dev
  10. framework:
  11. # type: arduino
  12. type: esp-idf
  13. packages:
  14. # Enable Home Assistant API
  15. esphome: !include common/keys.yaml
  16. diag: !include common/diag.yaml
  17. # Enable logging
  18. logger:
  19. web_server:
  20. port: 80
  21. wifi:
  22. ssid: !secret iot_ssid
  23. password: !secret iot_password
  24. domain: .int.mmax.cloud
  25. # # Enable fallback hotspot (captive portal) in case wifi connection fails
  26. # ap:
  27. # ssid: "Gf-Bt-Proxy-01 Fallback Hotspot"
  28. # password: "Ry3eaIb2vmf1"
  29. # esp32_ble_tracker:
  30. # scan_parameters:
  31. # # active: True
  32. # # We currently use the defaults to ensure Bluetooth
  33. # # can co-exist with WiFi In the future we may be able to
  34. # # enable the built-in coexistence logic in ESP-IDF
  35. # active: False
  36. # interval: 1110ms
  37. # window: 1100ms
  38. # # on_scan_end:
  39. # # - then:
  40. # # - lambda: |-
  41. # # ESP_LOGD("ble_auto", "The scan has ended!");
  42. bluetooth_proxy:
  43. active: False
  44. connection_slots: 4
  45. # external_components:
  46. # - source: github://myhomeiot/esphome-components
  47. #ble_monitor:
  48. # discovery: true
  49. # restore_state: true
  50. # decimals: 1
  51. # period: 300
  52. # ble_gateway:
  53. # id: blegateway
  54. # on_ble_advertise:
  55. # then:
  56. # homeassistant.event:
  57. # event: esphome.on_ble_advertise
  58. # data:
  59. # packet: !lambda return packet;
  60. #
  61. # binary_sensor:
  62. # - platform: homeassistant
  63. # id: ble_gateway_discovery
  64. # entity_id: binary_sensor.ble_gateway
  65. # attribute: discovery
  66. # on_state:
  67. # then:
  68. # lambda: id(blegateway).set_discovery(x);
  69. #
  70. # text_sensor:
  71. # - platform: homeassistant
  72. # id: ble_gateway_devices
  73. # entity_id: binary_sensor.ble_gateway
  74. # attribute: devices
  75. # on_value:
  76. # then:
  77. # lambda: id(blegateway).set_devices(x);
  78. #
  79. # switch:
  80. # - platform: template
  81. # id: switch_ble_gateway_discovery
  82. # name: BLE Gateway Discovery
  83. # icon: mdi:bluetooth-connect
  84. # lambda: return id(blegateway).get_discovery();
  85. # turn_on_action: [lambda: id(blegateway).set_discovery(true);]
  86. # turn_off_action: [lambda: id(blegateway).set_discovery(false);]
  87. # disabled_by_default: true
  88. # entity_category: config
  89. #
  90. # button:
  91. # - platform: safe_mode
  92. # name: Safe Mode Boot
  93. # entity_category: diagnostic
  94. # Example configuration entry
  95. button:
  96. - platform: factory_reset
  97. name: Restart with Factory Default Settings