summaryrefslogtreecommitdiffstats
path: root/esphome/config/printerswitch.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'esphome/config/printerswitch.yaml')
-rw-r--r--esphome/config/printerswitch.yaml33
1 files changed, 29 insertions, 4 deletions
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: