summaryrefslogtreecommitdiffstats
path: root/esphome/config/hoblight.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'esphome/config/hoblight.yaml')
-rw-r--r--esphome/config/hoblight.yaml86
1 files changed, 64 insertions, 22 deletions
diff --git a/esphome/config/hoblight.yaml b/esphome/config/hoblight.yaml
index e36bf31..cf2d7e5 100644
--- a/esphome/config/hoblight.yaml
+++ b/esphome/config/hoblight.yaml
@@ -1,5 +1,16 @@
1substitutions:
2 device_name: hoblight
3 friendly_name: "Hob Light"
4
1esphome: 5esphome:
2 name: hoblight 6 name: ${device_name}
7 friendly_name: ${friendly_name}
8
9 devices:
10 - id: hob_dimmer
11 name: "Hob Dimmer"
12 - id: dining_table
13 name: "Dining Table"
3 14
4esp8266: 15esp8266:
5 board: esp01_1m 16 board: esp01_1m
@@ -33,24 +44,24 @@ wifi:
33 44
34 # Enable fallback hotspot (captive portal) in case wifi connection fails 45 # Enable fallback hotspot (captive portal) in case wifi connection fails
35 ap: 46 ap:
36 ssid: "Hoblight Fallback Hotspot" 47 ssid: "${device_name} Fallback Hotspot"
37 password: !secret wifi_ap_password 48 password: !secret wifi_ap_password
38 49
39captive_portal: 50captive_portal:
40 51
41light: 52light:
42 - id: dining_table 53 - platform: cwww
43 platform: cwww 54 device_id: dining_table
44 name: "Dining Table" 55 name: None
45 cold_white: pwm_w 56 cold_white: pwm_w
46 warm_white: pwm_b 57 warm_white: pwm_b
47 cold_white_color_temperature: 6536 K 58 cold_white_color_temperature: 6536 K
48 warm_white_color_temperature: 2000 K 59 warm_white_color_temperature: 2000 K
49 restore_mode: RESTORE_DEFAULT_OFF 60 restore_mode: RESTORE_DEFAULT_OFF
50 61
51 - id: hob_dimmer 62 - platform: color_temperature
52 platform: color_temperature 63 device_id: hob_dimmer
53 name: "Hob Dimmer" 64 name: None
54 color_temperature: pwm_rxd 65 color_temperature: pwm_rxd
55 brightness: pwm_gpio0 66 brightness: pwm_gpio0
56 cold_white_color_temperature: 6536 K 67 cold_white_color_temperature: 6536 K
@@ -58,28 +69,28 @@ light:
58 restore_mode: RESTORE_DEFAULT_OFF 69 restore_mode: RESTORE_DEFAULT_OFF
59 70
60output: 71output:
61 #- id: pwm_r 72 #- platform: esp8266_pwm
62 # platform: esp8266_pwm 73 # id: pwm_r
63 # pin: GPIO12 74 # pin: GPIO12
64 # frequency: 1000 Hz 75 # frequency: 1000 Hz
65 76
66 #- id: pwm_g 77 #- platform: esp8266_pwm
67 # platform: esp8266_pwm 78 # id: pwm_g
68 # pin: GPIO15 79 # pin: GPIO15
69 # frequency: 1000 Hz 80 # frequency: 1000 Hz
70 81
71 - id: pwm_b 82 - platform: esp8266_pwm
72 platform: esp8266_pwm 83 id: pwm_b
73 pin: GPIO14 84 pin: GPIO14
74 frequency: 1000 Hz 85 frequency: 1000 Hz
75 86
76 - id: pwm_w 87 - platform: esp8266_pwm
77 platform: esp8266_pwm 88 id: pwm_w
78 pin: GPIO4 89 pin: GPIO4
79 frequency: 1000 Hz 90 frequency: 1000 Hz
80 91
81 - id: pwm_gpio0 92 - platform: esp8266_pwm
82 platform: esp8266_pwm 93 id: pwm_gpio0
83 pin: GPIO0 94 pin: GPIO0
84 frequency: 2000 Hz 95 frequency: 2000 Hz
85 min_power: 0.05 96 min_power: 0.05
@@ -89,12 +100,43 @@ output:
89 # pin: GPIO1 100 # pin: GPIO1
90 # frequency: 2000 Hz 101 # frequency: 2000 Hz
91 102
92 - id: pwm_rxd 103 - platform: esp8266_pwm
93 platform: esp8266_pwm 104 id: pwm_rxd
94 pin: GPIO3 105 pin: GPIO3
95 frequency: 2000 Hz 106 frequency: 2000 Hz
96 107
108 - platform: gpio
109 id: unused_gpio1
110 pin:
111 number: GPIO1
112 mode: INPUT_PULLUP
113 - platform: gpio
114 id: unused_gpio2
115 pin:
116 number: GPIO2
117 mode: INPUT_PULLUP
118 - platform: gpio
119 id: unused_gpio12
120 pin:
121 number: GPIO12
122 mode: INPUT_PULLUP
123 - platform: gpio
124 id: unused_gpio13
125 pin:
126 number: GPIO13
127 mode: INPUT_PULLUP
128 - platform: gpio
129 id: unused_gpio15
130 pin:
131 number: GPIO15
132 mode: INPUT_PULLUP
133 - platform: gpio
134 id: unused_gpio16
135 pin:
136 number: GPIO16
137 mode: INPUT_PULLDOWN
138
97binary_sensor: 139binary_sensor:
98 - id: user_button 140 - platform: gpio
99 platform: gpio 141 id: user_button
100 pin: GPIO5 142 pin: GPIO5