forked from dmslabsbr/esphome-somfy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesp_somfy.yaml
97 lines (85 loc) · 2.1 KB
/
esp_somfy.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
esphome:
name: blinds-control
platform: esp8266
board: d1_mini
platformio_options:
board_build.filesystem: littlefs
board_build.ldscript: eagle.flash.4m3m.ld
includes:
- RFsomfy.h
- SomfyRts.h
- SomfyRts.cpp
libraries:
- Ticker
- LittleFS
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
port: 6053
ota:
password: "3e92ff9cbb95fdb1181b2d7b0f9cda09"
wifi:
ssid: "REDACTED"
password: "REDACTED"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Blinds-Control Hotspot"
password: "r3ODqKLg6mv4"
captive_portal:
web_server:
port: 80
cover:
- platform: custom
lambda: |-
std::vector<Cover *> covers;
auto rfSomfy0 = new RFsomfy(0, 58, 56);
App.register_component(rfSomfy0);
auto rfSomfy1 = new RFsomfy(1, 39, 38);
App.register_component(rfSomfy1);
auto rfSomfy2 = new RFsomfy(2, 39, 38);
App.register_component(rfSomfy2);
auto rfSomfy3 = new RFsomfy(3, 57, 56);
App.register_component(rfSomfy3);
auto rfSomfy4 = new RFsomfy(4, 39, 38);
App.register_component(rfSomfy4);
covers.push_back(rfSomfy0);
covers.push_back(rfSomfy1);
covers.push_back(rfSomfy2);
covers.push_back(rfSomfy3);
covers.push_back(rfSomfy4);
return {covers};
covers:
- name: "Tapparella balcone"
device_class: shutter
id: somfy0
- name: "Tapparella soggiorno"
device_class: shutter
id: somfy1
- name: "Tapparella centrale"
device_class: shutter
id: somfy2
- name: "Tapparella cucina"
device_class: shutter
id: somfy3
- name: "Tapparelle"
device_class: shutter
id: somfy4
text_sensor:
- platform: version
name: "RFsomfy version"
- platform: custom
lambda: |-
auto rfSomfyInfo = new RFsomfyInfo();
App.register_component(rfSomfyInfo);
return {rfSomfyInfo};
text_sensors:
name: "RFsomfy info"
binary_sensor:
- platform: status
name: "RFsomfy status"
# Button for remote restart of the device
button:
- platform: restart
name: "Blinds remote restart"