Skip to content

Commit

Permalink
Autocommit: Config at 2024-10-06 12:36:01
Browse files Browse the repository at this point in the history
  • Loading branch information
avbor committed Oct 6, 2024
1 parent 65ddf21 commit a3d7b68
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
15 changes: 14 additions & 1 deletion esphome/esp32-bt-proxy-02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ esp32_ble_tracker:
- mac_address: F9:9D:1D:40:23:40
service_uuid: "5242"
then:
- lambda: 'id(black1_battery).publish_state(x[1]);'
# - lambda: 'id(black1_battery).publish_state(x[1]);' # catch battary %
- lambda: |-
if (x[11] == 1.0) {
id(black1_button).publish_state(true);
} else {
id(black1_button).publish_state(false);
}
id(black1_battery).publish_state(x[1]);
- mac_address: E6:9F:37:5B:1D:DA
service_uuid: "5242"
Expand All @@ -46,3 +53,9 @@ sensor:
unit_of_measurement: "%"
entity_category: "diagnostic"
accuracy_decimals: 0


binary_sensor:
- platform: template
name: "Holy-IoT Black-1 Button"
id: black1_button
Loading

0 comments on commit a3d7b68

Please sign in to comment.