Working in Sonoff Mini

This commit is contained in:
2021-02-02 12:51:13 -05:00
parent 33efa7052c
commit 6e2f3e071d
7 changed files with 297 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ sensor:
binary_sensor:
- platform: gpio
pin: GPIO00
pin: GPIO00 # The built-in switch
id: reset
internal: true
filters:
@@ -56,16 +56,18 @@ binary_sensor:
- platform: gpio
name: ${device_name}_status
pin: GPIO04
pin: GPIO04 # The external terminals
id: switch_1
filters:
- delayed_on: 100ms
on_press:
then:
- switch.toggle:
id: relay_1
on_release:
then:
- switch.toggle:
id: relay_1
# on_release:
# then:
# - switch.toggle:
# id: relay_1
switch:
- platform: gpio