mirror of
https://github.com/brianhanifin/esphome-config.git
synced 2026-07-28 04:05:55 +00:00
refactor: fix from experiment that didn't work out
This commit is contained in:
+3
-3
@@ -45,7 +45,7 @@ script:
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: $button_pin
|
||||
number: $button_gpio
|
||||
inverted: True
|
||||
name: $upper_devicename Button
|
||||
id: button
|
||||
@@ -61,5 +61,5 @@ switch:
|
||||
# Relay is for internal use only. Do not expose to Home Assistant.
|
||||
- platform: gpio
|
||||
id: relay
|
||||
pin: $relay_pin
|
||||
restore_mode: ALWAYS_ON
|
||||
pin: $relay_gpio
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
+3
-3
@@ -55,7 +55,7 @@ binary_sensor:
|
||||
# Physical Toggle Switch. Monitor for switch position changes internally. Do not expose to Home Assistant.
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO5
|
||||
number: $button_gpio
|
||||
inverted: True
|
||||
#name: $upper_devicename Button
|
||||
id: button
|
||||
@@ -85,5 +85,5 @@ switch:
|
||||
- platform: gpio
|
||||
id: relay
|
||||
name: $devicename
|
||||
pin: GPIO4
|
||||
restore_mode: ALWAYS_OFF
|
||||
pin: $relay_gpio
|
||||
restore_mode: ALWAYS_OFF
|
||||
|
||||
Reference in New Issue
Block a user