This commit is contained in:
J. Nick Koston 2023-06-09 14:28:41 -05:00
parent 019ca7c0c6
commit d98f22325b
No known key found for this signature in database
1 changed files with 18 additions and 4 deletions

View File

@ -42,21 +42,35 @@ binary_sensor:
device_class: running
entity_category: diagnostic
- platform: gpio
pin: D5 # D5 dry contact for opening door
pin:
number: D5 # D5 dry contact for opening door
inverted: true
mode:
input: true
pullup: true
name: "${friendly_name} Dry contact open"
entity_category: diagnostic
invert: true
on_press:
- cover.open: ${id_prefix}_garage
- platform: gpio
pin: D6 # D6 dry contact for closing door
pin:
number: D6 # D6 dry contact for closing door
inverted: true
mode:
input: true
pullup: true
name: "${friendly_name} Dry contact close"
entity_category: diagnostic
invert: true
on_press:
- cover.close: ${id_prefix}_garage
- platform: gpio
pin: D3 # D3 dry contact for triggering light (no discrete light commands, so toggle only)
pin:
number: D3 # D3 dry contact for triggering light (no discrete light commands, so toggle only)
inverted: true
mode:
input: true
pullup: true
name: "${friendly_name} Dry contact light"
entity_category: diagnostic
invert: true