-
Notifications
You must be signed in to change notification settings - Fork 7
/
bike-xiao-esps3.yaml
81 lines (66 loc) · 1.55 KB
/
bike-xiao-esps3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
esphome:
name: xiao-s3-pinky-winky
friendly_name: XiaoS3PinkyWinky
platformio_options:
upload_speed: 460800
build_unflags: -Werror=all
board_build.f_flash: 80000000L
board_build.f_cpu: 240000000L
# something is broken in the old (=current for esphome) platform version
board_build.flash_mode: dio
external_components:
- source: github://buglloc/esphome-components
components: [ pinky_winky ]
esp32:
board: esp32-s3-devkitc-1
flash_size: 8MB
framework:
type: esp-idf
psram:
mode: octal
speed: 80000000
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "dHN0"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
time:
- platform: homeassistant
esp32_ble_tracker:
scan_parameters:
interval: 100ms
window: 30ms
active: false
continuous: true
# on_ble_advertise:
# then:
# - lambda: |-
# ESP_LOGI("ble_adv", "New BLE device (address: %s): %s", x.address_str().c_str(), x.get_name().c_str());
pinky_winky:
- id: bike_tracker
mac_address: "11:22:33:44:55:66"
secret: "so-secret-much-strong"
binary_sensor:
- platform: pinky_winky
id: bike_button
input: bike_tracker
name: "Bike tracker button"
sensor:
- platform: pinky_winky
input: bike_tracker
battery_level:
id: bike_battery
name: "Bike tracker battery level"
button:
- platform: template
name: "[re]Bind bike tracker"
on_press:
- pinky_winky.reset:
id: bike_tracker
switch:
- platform: restart
name: Restart