-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemax.yaml
102 lines (86 loc) · 1.78 KB
/
emax.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
92
93
94
95
96
97
98
99
100
101
102
esphome:
name: emax
friendly_name: EMAX
bk72xx:
board: wb2s
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret encryption_key
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Emax Fallback Hotspot"
password: !secret ap_password
captive_portal:
web_server:
port: 80
ota: true
include_internal: true
auth:
username: !secret web_server_username
password: !secret web_server_password
time:
- platform: homeassistant
id: homeassistant_time
text_sensor:
- platform: libretiny
version:
name: LibreTiny Version
binary_sensor:
- platform: gpio
id: binary_switch_1
pin:
number: P10
inverted: true
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: switch_1
switch:
- platform: gpio
id: switch_1
name: Relay 1
pin: P24
status_led:
pin:
number: P26
inverted: true
substitutions:
voltage_divider: "912.7644402186831"
current_resistor: "0.0009428028717413666"
current_multiply: "0.9428028717413666"
sensor:
- platform: hlw8012
model: BL0937
cf_pin:
number: P6
inverted: true
cf1_pin:
number: P7
inverted: true
sel_pin:
number: P8
inverted: true
current:
name: BL0937 Current
filters:
- multiply: ${current_multiply}
voltage:
name: BL0937 Voltage
power:
name: BL0937 Power
energy:
name: BL0937 Energy
voltage_divider: ${voltage_divider} #1600
current_resistor: ${current_resistor} # 0.001 ohm
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s