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

Implement text_sensor based on ble_client (#3079)

Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
Borys Pierov
2022-02-19 03:45:32 -05:00
committed by GitHub
parent f137cc10f4
commit 231908fe9f
5 changed files with 355 additions and 0 deletions

View File

@@ -2496,6 +2496,18 @@ globals:
initial_value: "false"
text_sensor:
- platform: ble_client
ble_client_id: ble_foo
name: 'Sensor Location'
service_uuid: '180d'
characteristic_uuid: '2a38'
descriptor_uuid: '2902'
notify: true
update_interval: never
on_notify:
then:
- lambda: |-
ESP_LOGD("green_btn", "Location changed: %s", x);
- platform: mqtt_subscribe
name: "MQTT Subscribe Text"
topic: "the/topic"