From 60391c4fb817a825e71d49a15b5a24b158c5d4d5 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 21 Oct 2025 11:24:54 +0200 Subject: add friendly_name everywhere. diable unused GPIO to save power --- esphome/config/3dprinter-led.yaml | 62 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 3 deletions(-) (limited to 'esphome/config/3dprinter-led.yaml') diff --git a/esphome/config/3dprinter-led.yaml b/esphome/config/3dprinter-led.yaml index c85f222..16cc43d 100644 --- a/esphome/config/3dprinter-led.yaml +++ b/esphome/config/3dprinter-led.yaml @@ -1,6 +1,10 @@ -esphome: - name: 3dprinter-led +substitutions: + device_name: 3dprinter-led friendly_name: "3D Printer LED" + +esphome: + name: ${device_name} + friendly_name: ${friendly_name} area: Office on_boot: priority: -100 @@ -41,7 +45,7 @@ wifi: # Enable fallback hotspot (captive portal) in case wifi connection fails ap: - ssid: "Couchlight Fallback Hotspot" + ssid: "${device_name} Fallback Hotspot" password: !secret wifi_ap_password captive_portal: @@ -59,3 +63,55 @@ light: type: esp8266_uart bus: 1 default_transition_length: 300ms + +output: + - platform: gpio + id: unused_gpio0 + pin: + number: D3 # GPIO0 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio1 + pin: + number: TX # GPIO1 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio3 + pin: + number: RX # GPIO3 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio4 + pin: + number: D2 # GPIO4 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio5 + pin: + number: D1 # GPIO5 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio12 + pin: + number: D6 # GPIO12 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio13 + pin: + number: D7 # GPIO13 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio14 + pin: + number: D5 # GPIO14 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio15 + pin: + number: D8 # GPIO15 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio16 + pin: + number: D0 # GPIO16 + mode: INPUT_PULLDOWN -- cgit v1.2.3