forked from mrflobow/velux_remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvelux_remote.yml
71 lines (56 loc) · 1.25 KB
/
velux_remote.yml
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
substitutions:
friendly_name: Velux Remote
device_name: velux_remote
esphome:
name: "${device_name}"
platform: ESP8266
board: d1_mini
wifi:
ssid: "Bazinga-IOT"
password: !secret wifipassword
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "fallback"
password: "pommesmayo"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret otapassword
ota:
password: !secret otapassword
switch:
- platform: gpio
id: velux_down
pin: 13
inverted: yes
- platform: gpio
id: velux_stop
pin: 12
inverted: yes
- platform: gpio
id: velux_up
pin: 14
inverted: yes
- platform: template
name: "${friendly_name} Down"
lambda: 'return false;'
turn_on_action:
- switch.turn_on: velux_down
- delay: 10ms
- switch.turn_off: velux_down
- platform: template
name: "${friendly_name} Stop"
lambda: 'return false;'
turn_on_action:
- switch.turn_on: velux_stop
- delay: 10ms
- switch.turn_off: velux_stop
- platform: template
name: "${friendly_name} Up"
lambda: 'return false;'
turn_on_action:
- switch.turn_on: velux_up
- delay: 10ms
- switch.turn_off: velux_up