-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
shelly_1l_aceb5f.yaml
151 lines (131 loc) · 2.85 KB
/
shelly_1l_aceb5f.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
substitutions:
device_name: "Shelly 1L [ACEB5F]"
host_name: "shelly-1l-aceb5f"
esphome:
name: ${host_name}
friendly_name: ${device_name}
esp8266:
board: esp01_1m
ota:
platform: esphome
password: !secret esphome_password
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
web_server:
port: 80
auth:
username: !secret web_server_username
password: !secret web_server_password
time:
- platform: homeassistant
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: ntc
sensor: temperature_resistance
name: Temperatura urządzenia
device_class: "temperature"
disabled_by_default: true
accuracy_decimals: 1
calibration:
b_constant: 3350
reference_resistance: 10kOhm
reference_temperature: 298.15K
on_value_range:
- above: "80.0"
then:
- switch.turn_off: relay
- platform: resistance
id: temperature_resistance
sensor: temperature_analog
configuration: DOWNSTREAM
resistor: 32kOhm
- platform: adc
id: temperature_analog
pin:
number: A0
switch:
- platform: gpio
pin:
number: GPIO5
id: relay
name: "Przekaźnik"
restore_mode: RESTORE_DEFAULT_OFF
binary_sensor:
- platform: gpio
id: input_1
internal: true
pin:
number: GPIO4
on_click:
then:
- switch.toggle: relay
- event.trigger:
id: button_1
event_type: "single_push"
on_double_click:
then:
- event.trigger:
id: button_1
event_type: "double_push"
filters:
- delayed_on_off: 50ms
- platform: gpio
id: input_2
internal: true
pin:
number: GPIO14
on_click:
then:
- switch.toggle: relay
- event.trigger:
id: button_2
event_type: "single_push"
on_double_click:
then:
- event.trigger:
id: button_2
event_type: "double_push"
filters:
- delayed_on_off: 50ms
status_led:
pin:
number: GPIO0
button:
- platform: restart
name: "Uruchom ponownie"
device_class: "restart"
event:
- platform: template
name: "Przycisk 1"
device_class: button
id: button_1
event_types:
- "single_push"
- "double_push"
disabled_by_default: true
- platform: template
name: "Przycisk 2"
device_class: button
id: button_2
event_types:
- "single_push"
- "double_push"
disabled_by_default: true