Working in Sonoff Mini
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user