1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

Add optional lambda to BLESensor for raw data parsing (#1851)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
David Kiliani
2021-06-01 11:46:54 +02:00
committed by GitHub
parent 7b11284008
commit f968713be8
4 changed files with 30 additions and 2 deletions

View File

@@ -271,6 +271,9 @@ sensor:
descriptor_uuid: 'ffe2'
notify: true
update_interval: never
lambda: |-
ESP_LOGD("main", "Length of data is %i", x.size());
return x[0];
on_notify:
then:
- lambda: |-