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.yaml85
1 files changed, 85 insertions, 0 deletions
diff --git a/esphome/config/hoblight.yaml b/esphome/config/hoblight.yaml
new file mode 100644
index 0000000..31c4494
--- /dev/null
+++ b/esphome/config/hoblight.yaml
@@ -0,0 +1,85 @@
1esphome:
2 name: hoblight
3 platform: ESP8266
4 board: esp01_1m
5
6# Enable logging
7logger:
8 # make RXD / TXD available
9 baud_rate: 0
10
11# Enable Home Assistant API
12api:
13 password: !secret api_password
14
15# OTA
16ota:
17 password: !secret ota_password
18
19# WiFi Credentials
20wifi:
21 ssid: !secret wifi_ssid
22 password: !secret wifi_password
23
24 # Enable fallback hotspot (captive portal) in case wifi connection fails
25 ap:
26 ssid: "Hoblight Fallback Hotspot"
27 password: !secret wifi_ap_password
28
29captive_portal:
30
31light:
32 - platform: cwww
33 id: dining_table
34 name: "Dining Table"
35 cold_white: pwm_w
36 warm_white: pwm_b
37 cold_white_color_temperature: 6536 K
38 warm_white_color_temperature: 2000 K
39 - platform: color_temperature
40 name: "Hob"
41 color_temperature: pwm_rxd
42 brightness: pwm_gpio0
43 cold_white_color_temperature: 6536 K
44 warm_white_color_temperature: 2000 K
45
46output:
47 #- platform: esp8266_pwm
48 # pin: GPIO12
49 # frequency: 1000 Hz
50 # id: pwm_r
51
52 #- platform: esp8266_pwm
53 # pin: GPIO15
54 # frequency: 1000 Hz
55 # id: pwm_g
56
57 - platform: esp8266_pwm
58 pin: GPIO14
59 frequency: 1000 Hz
60 id: pwm_b
61
62 - platform: esp8266_pwm
63 pin: GPIO4
64 frequency: 1000 Hz
65 id: pwm_w
66
67 - platform: esp8266_pwm
68 pin: GPIO0
69 frequency: 2000 Hz
70 id: pwm_gpio0
71
72 #- platform: esp8266_pwm
73 # pin: GPIO1
74 # frequency: 2000 Hz
75 # id: pwm_txd
76
77 - platform: esp8266_pwm
78 pin: GPIO3
79 frequency: 2000 Hz
80 id: pwm_rxd
81
82binary_sensor:
83 - platform: gpio
84 pin: GPIO5
85 id: light_0_touch