-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
blitzwolf_bw_shp6_2ad05a.yaml
112 lines (96 loc) · 2.06 KB
/
blitzwolf_bw_shp6_2ad05a.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
103
104
105
106
107
108
109
110
111
112
substitutions:
device_name: "BlitzWolf BW-SHP6 [2AD05A]"
host_name: "blitzwolf-bw-shp6-2ad05a"
current_res: "0.00290"
voltage_div: "940"
max_power: "2300"
esphome:
name: ${host_name}
friendly_name: ${device_name}
platform: ESP8266
board: esp8285
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: !secret local_domain
ap:
ssid: ${device_name}
password: !secret esphome_password
captive_portal:
logger:
api:
encryption:
key: !secret encryption_key
ota:
platform: esphome
password: !secret esphome_password
web_server:
port: 80
auth:
username: !secret web_server_username
password: !secret web_server_password
time:
- platform: homeassistant
binary_sensor:
- platform: gpio
id: device_button
internal: true
pin:
number: GPIO13
on_press:
- switch.toggle: relay
output:
- platform: gpio
pin: GPIO00
inverted: true
id: led
switch:
- platform: gpio
pin: GPIO15
id: relay
icon: mdi:power-plug
name: "Przekaźnik"
restore_mode: ALWAYS_ON
on_turn_on:
- output.turn_on: led
on_turn_off:
- output.turn_off: led
button:
- platform: restart
name: "Uruchom ponownie"
device_class: "restart"
status_led:
pin:
number: GPIO02
inverted: true
sensor:
- platform: uptime
name: "Ostatni restart"
type: "timestamp"
entity_category: "diagnostic"
- platform: wifi_signal
name: "Siła sygnału"
update_interval: 300s
device_class: "signal_strength"
entity_category: "diagnostic"
- platform: hlw8012
sel_pin:
number: GPIO12
inverted: true
cf_pin: GPIO05
cf1_pin: GPIO14
current_resistor: ${current_res}
voltage_divider: ${voltage_div}
power:
name: "Pobór mocy"
unit_of_measurement: "W"
device_class: "power"
on_value_range:
- above: ${max_power}
then:
- output.turn_off: led
- switch.turn_off: relay
energy:
name: "Energia"
unit_of_measurement: "Wh"
device_class: "energy"