add esphome devices

This commit is contained in:
2024-12-01 11:42:03 +01:00
parent 640d2affa8
commit 03eaa38a08
6 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
esphome:
name: presense-office
friendly_name: presense-office
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
- platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: True
domain: .cloonar.smart
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Presense-Office Fallback Hotspot"
password: "jMTo5YkCC01q"
captive_portal:
bluetooth_proxy:
external_components:
- source: github://koying/esphome-ble-remote@master
components: [ ble_client_hid ]
ble_client:
- id: ble_client_1
mac_address: "90:f8:2e:f9:d7:32" # Replace with your remote's MAC address
ble_client_hid:
- id: ble_client_hid_1
ble_client_id: ble_client_1
sensor:
- platform: ble_client_hid
type: last_event_value
name: "Last Event Value"
ble_client_hid_id: ble_client_hid_1
text_sensor:
- platform: ble_client_hid
name: "Last Event Usage"
ble_client_hid_id: ble_client_hid_1