From 290f4831779b736b3707cbf3d590fb68890320f9 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 23 Oct 2025 09:59:55 +0200 Subject: move to GPIOxy rather then Dx pin identifier --- esphome/config/printerswitch.yaml | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'esphome/config/printerswitch.yaml') 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: logger: # make RXD / TXD available baud_rate: 0 - level: DEBUG # Enable Home Assistant API api: @@ -49,7 +48,7 @@ binary_sensor: name: "Button" device_class: power pin: - number: GPIO01 + number: GPIO1 inverted: true on_press: - switch.toggle: relay @@ -59,8 +58,8 @@ sensor: - platform: hlw8012 model: BL0937 sel_pin: GPIO12 - cf_pin: GPIO04 - cf1_pin: GPIO05 + cf_pin: GPIO4 + cf1_pin: GPIO5 current_resistor: ${current_resistor} voltage_divider: ${voltage_divider} voltage: @@ -159,6 +158,32 @@ output: id: led pin: GPIO13 + - platform: gpio + id: unused_gpio0 + pin: + number: GPIO0 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio2 + pin: + number: GPIO2 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio3 + pin: + number: GPIO3 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio15 + pin: + number: GPIO15 + mode: INPUT_PULLUP + - platform: gpio + id: unused_gpio16 + pin: + number: GPIO16 + mode: INPUT_PULLDOWN + interval: - interval: 10s then: -- cgit v1.2.3