-
Notifications
You must be signed in to change notification settings - Fork 2
/
padres.yaml
86 lines (77 loc) · 1.78 KB
/
padres.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
substitutions:
devicename: padres_rgbw
friendly_name: Casa128 leds
wifi_ip: "192.168.103.12"
packages:
#Include location specific settings
location: !include locations/casa128.yaml
#Include common definitions for home (wifi, web server, etc)
settings: !include settings/common.yaml
#Light effects
lights-effects: !include devices/includes/lights-effects/rgbw.yaml
#Remote control
light-remote: !include devices/includes/light-remotes/nec_rgbw.yaml
esp8266:
board: esp8285
time:
- platform: sntp
timezone: Europe/Berlin
# ...
on_time:
# Every morning
- seconds: 0
minutes: 0
hours: 8
then:
- light.turn_on:
id: my_light
brightness: 100%
red: 100%
green: 100%
blue: 100%
white: 100%
# Every morning on weekdays
- seconds: 0
minutes: 0
hours: 23
then:
- light.turn_on:
id: my_light
brightness: 20%
red: 0%
green: 20%
blue: 0%
white: 0%
light:
- platform: rgbw
name: light
id: my_light
red: output_red
green: output_green
blue: output_blue
white: output_white
restore_mode: ALWAYS_OFF
effects:
!include devices/includes/lights-effects/rgbw_effects.yaml
output:
- platform: esp8266_pwm
id: output_red
pin: GPIO12
max_power: 100%
- platform: esp8266_pwm
id: output_green
pin: GPIO5
max_power: 100%
- platform: esp8266_pwm
id: output_blue
pin: GPIO13
max_power: 100%
- platform: esp8266_pwm
id: output_white
pin: GPIO15
max_power: 100%
remote_receiver:
pin:
number: GPIO04
inverted: true
dump: nec