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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user