summaryrefslogtreecommitdiffstats
path: root/esphome/config/bedlight.yaml
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2025-10-21 11:24:54 +0200
committermanuel <manuel@mausz.at>2025-10-21 11:24:54 +0200
commit60391c4fb817a825e71d49a15b5a24b158c5d4d5 (patch)
tree227cbe15714f7d42bfdf8c931b43513e7fea81ad /esphome/config/bedlight.yaml
parent69ff1340a8f373480d618a20cd92f18ac2a01b54 (diff)
downloadarduino-60391c4fb817a825e71d49a15b5a24b158c5d4d5.tar.gz
arduino-60391c4fb817a825e71d49a15b5a24b158c5d4d5.tar.bz2
arduino-60391c4fb817a825e71d49a15b5a24b158c5d4d5.zip
add friendly_name everywhere. diable unused GPIO to save power
Diffstat (limited to 'esphome/config/bedlight.yaml')
-rw-r--r--esphome/config/bedlight.yaml81
1 files changed, 64 insertions, 17 deletions
diff --git a/esphome/config/bedlight.yaml b/esphome/config/bedlight.yaml
index 2913e99..ac83f5d 100644
--- a/esphome/config/bedlight.yaml
+++ b/esphome/config/bedlight.yaml
@@ -1,5 +1,11 @@
1substitutions:
2 device_name: bedlight
3 friendly_name: "Bed Light"
4
1esphome: 5esphome:
2 name: bedlight 6 name: ${device_name}
7 friendly_name: ${friendly_name}
8 area: Bed Room
3 9
4 # light default values 10 # light default values
5 on_boot: 11 on_boot:
@@ -46,7 +52,7 @@ wifi:
46 52
47 # Enable fallback hotspot (captive portal) in case wifi connection fails 53 # Enable fallback hotspot (captive portal) in case wifi connection fails
48 ap: 54 ap:
49 ssid: "Bedlight Fallback Hotspot" 55 ssid: "${device_name} Fallback Hotspot"
50 password: !secret wifi_ap_password 56 password: !secret wifi_ap_password
51 57
52captive_portal: 58captive_portal:
@@ -63,13 +69,13 @@ light:
63 restore_mode: RESTORE_DEFAULT_OFF 69 restore_mode: RESTORE_DEFAULT_OFF
64 70
65output: 71output:
66 - id: gpio_r 72 #- id: gpio_r
67 platform: gpio 73 # platform: gpio
68 pin: GPIO12 74 # pin: GPIO12
69 75
70 - id: gpio_g 76 #- id: gpio_g
71 platform: gpio 77 # platform: gpio
72 pin: GPIO15 78 # pin: GPIO15
73 79
74 - id: pwm_b 80 - id: pwm_b
75 platform: esp8266_pwm 81 platform: esp8266_pwm
@@ -107,17 +113,58 @@ output:
107 return 0.0002; 113 return 0.0002;
108 return state; 114 return state;
109 115
110 - id: gpio0 116 #- id: gpio0
111 platform: gpio 117 # platform: gpio
112 pin: GPIO0 118 # pin: GPIO0
113 119
114 - id: gpio_txd 120 #- id: gpio_txd
115 platform: gpio 121 # platform: gpio
116 pin: GPIO1 122 # pin: GPIO1
117 123
118 - id: gpio_rxd 124 #- id: gpio_rxd
119 platform: gpio 125 # platform: gpio
120 pin: GPIO3 126 # pin: GPIO3
127
128 - platform: gpio
129 id: unused_gpio0
130 pin:
131 number: GPIO0
132 mode: INPUT_PULLUP
133 - platform: gpio
134 id: unused_gpio1
135 pin:
136 number: GPIO1
137 mode: INPUT_PULLUP
138 - platform: gpio
139 id: unused_gpio2
140 pin:
141 number: GPIO2
142 mode: INPUT_PULLUP
143 - platform: gpio
144 id: unused_gpio3
145 pin:
146 number: GPIO3
147 mode: INPUT_PULLUP
148 - platform: gpio
149 id: unused_gpio12
150 pin:
151 number: GPIO12
152 mode: INPUT_PULLUP
153 - platform: gpio
154 id: unused_gpio13
155 pin:
156 number: GPIO13
157 mode: INPUT_PULLUP
158 - platform: gpio
159 id: unused_gpio15
160 pin:
161 number: GPIO15
162 mode: INPUT_PULLUP
163 - platform: gpio
164 id: unused_gpio16
165 pin:
166 number: GPIO16
167 mode: INPUT_PULLDOWN
121 168
122globals: 169globals:
123 - id: g_dim_level 170 - id: g_dim_level