-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesp-ble-temp.yaml
57 lines (46 loc) · 1.13 KB
/
esp-ble-temp.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
esphome:
name: esp-ble-temp
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "e84dbfb7a533e1eb2b5aa2c4f37e15d5"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ESP-BLE-TEMP Fallback Hotspot"
password: "WXtF9QwWdZJS"
captive_portal:
esp32_ble_tracker:
sensor:
- platform: pvvx_mithermometer # LYWSD03MMC Mijia Therometer
mac_address: "A1:B1:C1:D1:E1:F1" # LYWSD03MMC MAC address
temperature:
name: "T1 Temperature"
humidity:
name: "T1 Humidity"
battery_level:
name: "T1 Thermometer Battery Level"
battery_voltage:
name: "T1 Thermometer Battery Volts"
# Auto daily reset
time:
- platform: homeassistant
on_time:
- seconds: 0
minutes: 0
hours: 4
days_of_week: MON-SUN
then:
- switch.toggle: restart_switch
switch:
- platform: restart
name: "ESP-BLE-TEMP restart"
id: restart_switch