1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Add ble RSSI sensor for connected devices (#3860)

This commit is contained in:
RoboMagus
2022-10-12 04:23:56 +02:00
committed by GitHub
parent 19900b004b
commit 9f9980e338
6 changed files with 197 additions and 25 deletions

View File

@@ -321,6 +321,7 @@ mcp23s17:
sensor:
- platform: ble_client
type: characteristic
ble_client_id: ble_foo
name: Green iTag btn
service_uuid: ffe0
@@ -335,6 +336,11 @@ sensor:
then:
- lambda: |-
ESP_LOGD("green_btn", "Button was pressed, val%f", x);
- platform: ble_client
type: rssi
ble_client_id: ble_foo
name: Green iTag RSSI
update_interval: 15s
- platform: adc
pin: A0
name: Living Room Brightness