summaryrefslogtreecommitdiffstats
path: root/esphome
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2025-10-23 09:59:55 +0200
committermanuel <manuel@mausz.at>2025-10-23 09:59:55 +0200
commit290f4831779b736b3707cbf3d590fb68890320f9 (patch)
tree72da704c3b8ad57b72f4c8d4785d57fd5dcafab4 /esphome
parent8be1017d4abd2de2f67e3eac856991ded85e6d6d (diff)
downloadarduino-290f4831779b736b3707cbf3d590fb68890320f9.tar.gz
arduino-290f4831779b736b3707cbf3d590fb68890320f9.tar.bz2
arduino-290f4831779b736b3707cbf3d590fb68890320f9.zip
move to GPIOxy rather then Dx pin identifier
Diffstat (limited to 'esphome')
-rw-r--r--esphome/config/3dprinter-led.yaml18
-rw-r--r--esphome/config/couchlight.yaml18
-rw-r--r--esphome/config/office-pc-control.yaml18
-rw-r--r--esphome/config/powerplug_awp07l.yaml30
-rw-r--r--esphome/config/printerswitch.yaml33
-rw-r--r--esphome/config/tvlight.yaml18
6 files changed, 93 insertions, 42 deletions
diff --git a/esphome/config/3dprinter-led.yaml b/esphome/config/3dprinter-led.yaml
index 16cc43d..16576a2 100644
--- a/esphome/config/3dprinter-led.yaml
+++ b/esphome/config/3dprinter-led.yaml
@@ -58,7 +58,7 @@ light:
58 type: GRBW 58 type: GRBW
59 variant: SK6812 59 variant: SK6812
60 num_leds: 35 60 num_leds: 35
61 pin: D4 # GPIO2 61 pin: GPIO2 # D4
62 method: 62 method:
63 type: esp8266_uart 63 type: esp8266_uart
64 bus: 1 64 bus: 1
@@ -68,7 +68,7 @@ output:
68 - platform: gpio 68 - platform: gpio
69 id: unused_gpio0 69 id: unused_gpio0
70 pin: 70 pin:
71 number: D3 # GPIO0 71 number: GPIO0 # D3
72 mode: INPUT_PULLUP 72 mode: INPUT_PULLUP
73 - platform: gpio 73 - platform: gpio
74 id: unused_gpio1 74 id: unused_gpio1
@@ -83,35 +83,35 @@ output:
83 - platform: gpio 83 - platform: gpio
84 id: unused_gpio4 84 id: unused_gpio4
85 pin: 85 pin:
86 number: D2 # GPIO4 86 number: GPIO4 # D2
87 mode: INPUT_PULLUP 87 mode: INPUT_PULLUP
88 - platform: gpio 88 - platform: gpio
89 id: unused_gpio5 89 id: unused_gpio5
90 pin: 90 pin:
91 number: D1 # GPIO5 91 number: GPIO5 # D1
92 mode: INPUT_PULLUP 92 mode: INPUT_PULLUP
93 - platform: gpio 93 - platform: gpio
94 id: unused_gpio12 94 id: unused_gpio12
95 pin: 95 pin:
96 number: D6 # GPIO12 96 number: GPIO12 # D6
97 mode: INPUT_PULLUP 97 mode: INPUT_PULLUP
98 - platform: gpio 98 - platform: gpio
99 id: unused_gpio13 99 id: unused_gpio13
100 pin: 100 pin:
101 number: D7 # GPIO13 101 number: GPIO13 # D7
102 mode: INPUT_PULLUP 102 mode: INPUT_PULLUP
103 - platform: gpio 103 - platform: gpio
104 id: unused_gpio14 104 id: unused_gpio14
105 pin: 105 pin:
106 number: D5 # GPIO14 106 number: GPIO14 # D5
107 mode: INPUT_PULLUP 107 mode: INPUT_PULLUP
108 - platform: gpio 108 - platform: gpio
109 id: unused_gpio15 109 id: unused_gpio15
110 pin: 110 pin:
111 number: D8 # GPIO15 111 number: GPIO15 # D8
112 mode: INPUT_PULLUP 112 mode: INPUT_PULLUP
113 - platform: gpio 113 - platform: gpio
114 id: unused_gpio16 114 id: unused_gpio16
115 pin: 115 pin:
116 number: D0 # GPIO16 116 number: GPIO16 # D0
117 mode: INPUT_PULLDOWN 117 mode: INPUT_PULLDOWN
diff --git a/esphome/config/couchlight.yaml b/esphome/config/couchlight.yaml
index 4579dc9..ad6da9d 100644
--- a/esphome/config/couchlight.yaml
+++ b/esphome/config/couchlight.yaml
@@ -56,17 +56,17 @@ light:
56output: 56output:
57 - platform: gpio 57 - platform: gpio
58 id: relay_light1 58 id: relay_light1
59 pin: D1 # GPIO5 59 pin: GPIO5 # D1
60 60
61 - platform: gpio 61 - platform: gpio
62 id: relay_light2 62 id: relay_light2
63 pin: D2 # GPIO4 63 pin: GPIO4 # D2
64 64
65 # UNUSED GPIO 65 # UNUSED GPIO
66 - platform: gpio 66 - platform: gpio
67 id: unused_gpio0 67 id: unused_gpio0
68 pin: 68 pin:
69 number: D3 # GPIO0 69 number: GPIO0 # D3
70 mode: INPUT_PULLUP 70 mode: INPUT_PULLUP
71 - platform: gpio 71 - platform: gpio
72 id: unused_gpio1 72 id: unused_gpio1
@@ -76,7 +76,7 @@ output:
76 - platform: gpio 76 - platform: gpio
77 id: unused_gpio2 77 id: unused_gpio2
78 pin: 78 pin:
79 number: D4 # GPIO2 79 number: GPIO2 # D4
80 mode: INPUT_PULLUP 80 mode: INPUT_PULLUP
81 - platform: gpio 81 - platform: gpio
82 id: unused_gpio3 82 id: unused_gpio3
@@ -86,17 +86,17 @@ output:
86 - platform: gpio 86 - platform: gpio
87 id: unused_gpio14 87 id: unused_gpio14
88 pin: 88 pin:
89 number: D5 # GPIO14 89 number: GPIO14 # D5
90 mode: INPUT_PULLUP 90 mode: INPUT_PULLUP
91 - platform: gpio 91 - platform: gpio
92 id: unused_gpio15 92 id: unused_gpio15
93 pin: 93 pin:
94 number: D8 # GPIO15 94 number: GPIO15 # D8
95 mode: INPUT_PULLUP 95 mode: INPUT_PULLUP
96 - platform: gpio 96 - platform: gpio
97 id: unused_gpio16 97 id: unused_gpio16
98 pin: 98 pin:
99 number: D0 # GPIO16 99 number: GPIO16 # D0
100 mode: INPUT_PULLDOWN 100 mode: INPUT_PULLDOWN
101 101
102script: 102script:
@@ -113,7 +113,7 @@ binary_sensor:
113 id: button_light1 113 id: button_light1
114 name: "Spot 1 PushButton" 114 name: "Spot 1 PushButton"
115 pin: 115 pin:
116 number: D7 # GPIO13 116 number: GPIO13 # D7
117 mode: INPUT_PULLUP 117 mode: INPUT_PULLUP
118 filters: 118 filters:
119 - invert 119 - invert
@@ -131,7 +131,7 @@ binary_sensor:
131 id: button_light2 131 id: button_light2
132 name: "Spot 2 PushButton" 132 name: "Spot 2 PushButton"
133 pin: 133 pin:
134 number: D6 # GPIO12 134 number: GPIO12 # D6
135 mode: INPUT_PULLUP 135 mode: INPUT_PULLUP
136 filters: 136 filters:
137 - invert 137 - invert
diff --git a/esphome/config/office-pc-control.yaml b/esphome/config/office-pc-control.yaml
index 30033bb..f82d66c 100644
--- a/esphome/config/office-pc-control.yaml
+++ b/esphome/config/office-pc-control.yaml
@@ -55,13 +55,13 @@ output:
55 - platform: gpio 55 - platform: gpio
56 id: pc_reset 56 id: pc_reset
57 pin: 57 pin:
58 number: D2 # GPIO4 58 number: GPIO4 # D2
59 inverted: true # pc power/reset pins are GND activated 59 inverted: true # pc power/reset pins are GND activated
60 60
61 - platform: gpio 61 - platform: gpio
62 id: pc_power_onoff 62 id: pc_power_onoff
63 pin: 63 pin:
64 number: D3 # GPIO0 64 number: GPIO0 # D3
65 inverted: true # pc power/reset pins are GND activated 65 inverted: true # pc power/reset pins are GND activated
66 66
67 - platform: gpio 67 - platform: gpio
@@ -77,12 +77,12 @@ output:
77 - platform: gpio 77 - platform: gpio
78 id: unused_gpio13 78 id: unused_gpio13
79 pin: 79 pin:
80 number: D7 # GPIO13 80 number: GPIO13 # D7
81 mode: INPUT_PULLUP 81 mode: INPUT_PULLUP
82 - platform: gpio 82 - platform: gpio
83 id: unused_gpio16 83 id: unused_gpio16
84 pin: 84 pin:
85 number: D0 # GPIO16 85 number: GPIO16 # D0
86 mode: INPUT_PULLDOWN 86 mode: INPUT_PULLDOWN
87 87
88button: 88button:
@@ -112,7 +112,7 @@ light:
112 type: GRB 112 type: GRB
113 variant: 800KBPS 113 variant: 800KBPS
114 num_leds: 16 114 num_leds: 16
115 pin: D4 # GPIO2 115 pin: GPIO2 # D4
116 method: 116 method:
117 type: esp8266_uart 117 type: esp8266_uart
118 bus: 1 118 bus: 1
@@ -130,7 +130,7 @@ binary_sensor:
130 name: "Touch button" 130 name: "Touch button"
131 id: touch_button 131 id: touch_button
132 pin: 132 pin:
133 number: D8 # GPIO15 133 number: GPIO15 # D8
134 mode: INPUT 134 mode: INPUT
135 internal: true 135 internal: true
136 filters: 136 filters:
@@ -143,7 +143,7 @@ binary_sensor:
143 name: "Power button" 143 name: "Power button"
144 id: power_button 144 id: power_button
145 pin: 145 pin:
146 number: D5 # GPIO14 146 number: GPIO14 # D5
147 mode: INPUT_PULLUP 147 mode: INPUT_PULLUP
148 inverted: true 148 inverted: true
149 internal: true 149 internal: true
@@ -169,7 +169,7 @@ binary_sensor:
169 name: "Reset button" 169 name: "Reset button"
170 id: reset_button 170 id: reset_button
171 pin: 171 pin:
172 number: D6 # GPIO12 172 number: GPIO12 # D6
173 mode: INPUT_PULLUP 173 mode: INPUT_PULLUP
174 inverted: true 174 inverted: true
175 internal: true 175 internal: true
@@ -201,7 +201,7 @@ binary_sensor:
201 name: "Powered" 201 name: "Powered"
202 icon: "mdi:desktop-tower" 202 icon: "mdi:desktop-tower"
203 pin: 203 pin:
204 number: D1 # GPIO5 204 number: GPIO5 # D1
205 mode: INPUT_PULLUP 205 mode: INPUT_PULLUP
206 filters: 206 filters:
207 - delayed_on: 100ms 207 - delayed_on: 100ms
diff --git a/esphome/config/powerplug_awp07l.yaml b/esphome/config/powerplug_awp07l.yaml
index 08a9e62..c8e3722 100644
--- a/esphome/config/powerplug_awp07l.yaml
+++ b/esphome/config/powerplug_awp07l.yaml
@@ -63,7 +63,7 @@ sensor:
63 sel_pin: 63 sel_pin:
64 number: GPIO12 64 number: GPIO12
65 inverted: true 65 inverted: true
66 cf_pin: GPIO05 66 cf_pin: GPIO5
67 cf1_pin: GPIO14 67 cf1_pin: GPIO14
68 current_resistor: ${current_resistor} 68 current_resistor: ${current_resistor}
69 voltage_divider: ${voltage_divider} 69 voltage_divider: ${voltage_divider}
@@ -124,5 +124,31 @@ switch:
124output: 124output:
125 - platform: esp8266_pwm 125 - platform: esp8266_pwm
126 id: led 126 id: led
127 pin: GPIO00 127 pin: GPIO0
128 inverted: true 128 inverted: true
129
130 - platform: gpio
131 id: unused_gpio1
132 pin:
133 number: GPIO1
134 mode: INPUT_PULLUP
135 - platform: gpio
136 id: unused_gpio2
137 pin:
138 number: GPIO2
139 mode: INPUT_PULLUP
140 - platform: gpio
141 id: unused_gpio3
142 pin:
143 number: GPIO3
144 mode: INPUT_PULLUP
145 - platform: gpio
146 id: unused_gpio4
147 pin:
148 number: GPIO4
149 mode: INPUT_PULLUP
150 - platform: gpio
151 id: unused_gpio16
152 pin:
153 number: GPIO16
154 mode: INPUT_PULLDOWN
diff --git a/esphome/config/printerswitch.yaml b/esphome/config/printerswitch.yaml
index 55ca307..9b31c94 100644
--- a/esphome/config/printerswitch.yaml
+++ b/esphome/config/printerswitch.yaml
@@ -17,7 +17,6 @@ esp8266:
17logger: 17logger:
18 # make RXD / TXD available 18 # make RXD / TXD available
19 baud_rate: 0 19 baud_rate: 0
20 level: DEBUG
21 20
22# Enable Home Assistant API 21# Enable Home Assistant API
23api: 22api:
@@ -49,7 +48,7 @@ binary_sensor:
49 name: "Button" 48 name: "Button"
50 device_class: power 49 device_class: power
51 pin: 50 pin:
52 number: GPIO01 51 number: GPIO1
53 inverted: true 52 inverted: true
54 on_press: 53 on_press:
55 - switch.toggle: relay 54 - switch.toggle: relay
@@ -59,8 +58,8 @@ sensor:
59 - platform: hlw8012 58 - platform: hlw8012
60 model: BL0937 59 model: BL0937
61 sel_pin: GPIO12 60 sel_pin: GPIO12
62 cf_pin: GPIO04 61 cf_pin: GPIO4
63 cf1_pin: GPIO05 62 cf1_pin: GPIO5
64 current_resistor: ${current_resistor} 63 current_resistor: ${current_resistor}
65 voltage_divider: ${voltage_divider} 64 voltage_divider: ${voltage_divider}
66 voltage: 65 voltage:
@@ -159,6 +158,32 @@ output:
159 id: led 158 id: led
160 pin: GPIO13 159 pin: GPIO13
161 160
161 - platform: gpio
162 id: unused_gpio0
163 pin:
164 number: GPIO0
165 mode: INPUT_PULLUP
166 - platform: gpio
167 id: unused_gpio2
168 pin:
169 number: GPIO2
170 mode: INPUT_PULLUP
171 - platform: gpio
172 id: unused_gpio3
173 pin:
174 number: GPIO3
175 mode: INPUT_PULLUP
176 - platform: gpio
177 id: unused_gpio15
178 pin:
179 number: GPIO15
180 mode: INPUT_PULLUP
181 - platform: gpio
182 id: unused_gpio16
183 pin:
184 number: GPIO16
185 mode: INPUT_PULLDOWN
186
162interval: 187interval:
163 - interval: 10s 188 - interval: 10s
164 then: 189 then:
diff --git a/esphome/config/tvlight.yaml b/esphome/config/tvlight.yaml
index 19e8c1c..e18e9ce 100644
--- a/esphome/config/tvlight.yaml
+++ b/esphome/config/tvlight.yaml
@@ -54,7 +54,7 @@ light:
54output: 54output:
55 - platform: esp8266_pwm 55 - platform: esp8266_pwm
56 id: dimmer_tvlight 56 id: dimmer_tvlight
57 pin: D5 # GPIO14 57 pin: GPIO14 # D5
58 frequency: 1000 Hz 58 frequency: 1000 Hz
59 inverted: true 59 inverted: true
60 # lower 22% are not useable. use max_power because of inverted 60 # lower 22% are not useable. use max_power because of inverted
@@ -63,12 +63,12 @@ output:
63 63
64 - platform: gpio 64 - platform: gpio
65 id: relay_wled 65 id: relay_wled
66 pin: D1 # GPIO5 66 pin: GPIO5 # D1
67 67
68 - platform: gpio 68 - platform: gpio
69 id: unused_gpio0 69 id: unused_gpio0
70 pin: 70 pin:
71 number: D3 # GPIO0 71 number: GPIO0 # D3
72 mode: INPUT_PULLUP 72 mode: INPUT_PULLUP
73 - platform: gpio 73 - platform: gpio
74 id: unused_gpio1 74 id: unused_gpio1
@@ -78,7 +78,7 @@ output:
78 - platform: gpio 78 - platform: gpio
79 id: unused_gpio2 79 id: unused_gpio2
80 pin: 80 pin:
81 number: D4 # GPIO2 81 number: GPIO2 # D4
82 mode: INPUT_PULLUP 82 mode: INPUT_PULLUP
83 - platform: gpio 83 - platform: gpio
84 id: unused_gpio3 84 id: unused_gpio3
@@ -88,26 +88,26 @@ output:
88 - platform: gpio 88 - platform: gpio
89 id: unused_gpio12 89 id: unused_gpio12
90 pin: 90 pin:
91 number: D6 # GPIO12 91 number: GPIO12 # D6
92 mode: INPUT_PULLUP 92 mode: INPUT_PULLUP
93 - platform: gpio 93 - platform: gpio
94 id: unused_gpio13 94 id: unused_gpio13
95 pin: 95 pin:
96 number: D7 # GPIO13 96 number: GPIO13 # D7
97 mode: INPUT_PULLUP 97 mode: INPUT_PULLUP
98 - platform: gpio 98 - platform: gpio
99 id: unused_gpio15 99 id: unused_gpio15
100 pin: 100 pin:
101 number: D8 # GPIO15 101 number: GPIO15 # D8
102 mode: INPUT_PULLUP 102 mode: INPUT_PULLUP
103 - platform: gpio 103 - platform: gpio
104 id: unused_gpio16 104 id: unused_gpio16
105 pin: 105 pin:
106 number: D0 # GPIO16 106 number: GPIO16 # D0
107 mode: INPUT_PULLDOWN 107 mode: INPUT_PULLDOWN
108 108
109power_supply: 109power_supply:
110 - id: relay_tvlight 110 - id: relay_tvlight
111 pin: D2 # GPIO4 111 pin: GPIO4 # D2
112 #enable_time: 3s 112 #enable_time: 3s
113 keep_on_time: 20ms 113 keep_on_time: 20ms