Skip to content

Commit

Permalink
Use Shelly Plus 2PM for laundry_shelly
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspence committed Jan 1, 2024
1 parent 3c7e9a4 commit c8fc752
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions esphome/devices/shelly/plus2PM.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Based on https://devices.esphome.io/devices/Shelly-Plus-2PM.
---
packages:
common: !include 'packages/common.yaml'
platform: !include
file: '../../packages/platform/esp32.yaml'
vars:
board: 'esp32doit-devkit-v1'

status_led: !include 'packages/status_led.yaml'

input1: !include
file: 'packages/input.yaml'
vars:
id: 1
pin: 'GPIO5'
input2: !include
file: 'packages/input.yaml'
vars:
id: 2
pin: 'GPIO18'

output1: !include
file: 'packages/output.yaml'
vars:
id: 1
pin: 'GPIO12'
output2: !include
file: 'packages/output.yaml'
vars:
id: 2
pin: 'GPIO13'

binary_sensor:
- platform: 'gpio'
pin:
number: 'GPIO4'
inverted: true
mode:
input: true
pullup: true
id: 'button1'
internal: true
filters:
delayed_on_off: '5s'
on_press:
then:
button.press: 'button_restart'

i2c:
sda: 'GPIO26'
scl: 'GPIO25'
2 changes: 1 addition & 1 deletion esphome/laundry_shelly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ substitutions:
device_name: 'Laundry Shelly'

packages:
device: !include 'devices/shelly/25.yaml'
device: !include 'devices/shelly/plus2PM.yaml'

0 comments on commit c8fc752

Please sign in to comment.