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/office-pc-control.yaml | 43 ++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 8 deletions(-) (limited to 'esphome/config/office-pc-control.yaml') diff --git a/esphome/config/office-pc-control.yaml b/esphome/config/office-pc-control.yaml index 92d78d6..30033bb 100644 --- a/esphome/config/office-pc-control.yaml +++ b/esphome/config/office-pc-control.yaml @@ -1,5 +1,11 @@ +substitutions: + device_name: office-pc-control + friendly_name: "Office PC Control" + + esphome: - name: office-pc-control + name: ${device_name} + friendly_name: ${friendly_name} area: Office on_boot: priority: -100 @@ -40,7 +46,7 @@ wifi: # Enable fallback hotspot (captive portal) in case wifi connection fails ap: - ssid: "Couchlight Fallback Hotspot" + ssid: "${device_name} Hotspot" password: !secret wifi_ap_password captive_portal: @@ -49,15 +55,36 @@ output: - platform: gpio id: pc_reset pin: - number: D2 + number: D2 # GPIO4 inverted: true # pc power/reset pins are GND activated - platform: gpio id: pc_power_onoff pin: - number: D3 + number: D3 # GPIO0 inverted: true # pc power/reset pins are GND activated + - 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_gpio13 + pin: + number: D7 # GPIO13 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio16 + pin: + number: D0 # GPIO16 + mode: INPUT_PULLDOWN + button: - platform: output name: "Reset" @@ -103,7 +130,7 @@ binary_sensor: name: "Touch button" id: touch_button pin: - number: D8 + number: D8 # GPIO15 mode: INPUT internal: true filters: @@ -116,7 +143,7 @@ binary_sensor: name: "Power button" id: power_button pin: - number: D5 + number: D5 # GPIO14 mode: INPUT_PULLUP inverted: true internal: true @@ -142,7 +169,7 @@ binary_sensor: name: "Reset button" id: reset_button pin: - number: D6 + number: D6 # GPIO12 mode: INPUT_PULLUP inverted: true internal: true @@ -174,7 +201,7 @@ binary_sensor: name: "Powered" icon: "mdi:desktop-tower" pin: - number: D1 + number: D1 # GPIO5 mode: INPUT_PULLUP filters: - delayed_on: 100ms -- cgit v1.2.3