-
Notifications
You must be signed in to change notification settings - Fork 6
/
esphome-taiseia.yaml
91 lines (75 loc) · 1.65 KB
/
esphome-taiseia.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
81
82
83
84
85
86
87
88
89
90
91
substitutions:
devicename: esphome-taiseia
upper_devicename: "ESPHome TaiSeia"
esphome:
name: $devicename
comment: $upper_devicename
name_add_mac_suffix: true
external_components:
- source: github://tsunglung/taixia@master
components: [ taixia ]
esp8266:
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# reboot_timeout: 0s
ap:
password: "admin1234"
ap_timeout: 30s
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
ota:
uart:
id: uart_taixia
tx_pin: TX
rx_pin: RX
baud_rate: 9600
binary_sensor:
- platform: status
name: "${upper_devicename} Status"
- platform: taixia
power:
name: "${upper_devicename} Power"
button:
- platform: restart
name: "${upper_devicename} Restart"
number:
- platform: taixia
type: electricfan
off_timer:
name: "${upper_devicename} Off Timer"
sensor:
- platform: wifi_signal
name: "${upper_devicename} WiFi Signal"
update_interval: 60s
- platform: uptime
name: "${upper_devicename} Uptime"
filters:
- lambda: return x / 3600;
unit_of_measurement: "h"
accuracy_decimals: 1
switch:
- platform: taixia
type: electricfan
power:
name: "${upper_devicename} Power Switch"
text_sensor:
- platform: wifi_info
ip_address:
name: "${upper_devicename} IP Address"
- platform: taixia
sa_id:
name: "${upper_devicename} SA ID"
brand:
name: "${upper_devicename} SA Brand"
model:
name: "${upper_devicename} SA Model"
version:
name: "${upper_devicename} SA Version"
services:
name: "${upper_devicename} SA Services"
taixia: