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 21:46:54 +12:00
committed by GitHub
co-authored by Jesse Hills
parent 7b11284008
commit f968713be8
4 changed files with 30 additions and 2 deletions
+3
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: |-