This repository has been archived by the owner on Apr 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
esp_somfy.yaml
85 lines (70 loc) · 1.68 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
esphome:
name: esp_somfy
platform: ESP8266
board: d1_mini_lite
arduino_version: [email protected]
includes:
- RFsomfy.h
- SomfyRts.h
- SomfyRts.cpp
# libraries:
# - Ticker
comment: versao 2 - 10/abr/2020
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
use_address: 192.168.50.12
manual_ip:
static_ip: 192.168.50.12
gateway: 192.168.50.1
subnet: 255.255.255.0
web_server:
port: 80
# Enable logging
logger:
level: DEBUG
esp8266_store_log_strings_in_flash: False
baud_rate: 115200
api:
password: !secret api_pass
ota:
password: !secret ota_pass
cover:
- platform: custom
lambda: |-
std::vector<Cover *> covers;
auto rfSomfy0 = new RFsomfy(0);
rfSomfy0->set_code(50);
App.register_component(rfSomfy0);
auto rfSomfy1 = new RFsomfy(1);
rfSomfy1->set_code(100); // Set initial rolling code. After it works, remove this line.
App.register_component(rfSomfy1);
auto rfSomfy2 = new RFsomfy(2);
App.register_component(rfSomfy2);
covers.push_back(rfSomfy0);
covers.push_back(rfSomfy1);
covers.push_back(rfSomfy2);
return {covers};
covers:
- name: "Blind 2"
device_class: shade
id: somfy0
- name: "Veneziana casal"
device_class: shutter
id: somfy1
- name: "Veneziana roxo"
device_class: shutter
id: somfy2
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"