Skip to content

Commit

Permalink
Update for new esphome version
Browse files Browse the repository at this point in the history
The new version introduced the `allow_other_uses: true` flag if you use a pin twice.
This needs to be set.
  • Loading branch information
ajfriesen committed Jan 11, 2024
1 parent 5921430 commit a6bd4ad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pc-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ esphome:

project:
name: "ajfriesen.pc-switch"
version: "1.0.0"
version: "1.0.1"

# Enable logging
logger:
Expand Down Expand Up @@ -38,15 +38,19 @@ captive_portal:

switch:
- platform: gpio
pin: D6
pin:
number: D6
allow_other_uses: true
id: power_switch
internal: true
on_turn_on:
- delay: 300ms
- switch.turn_off: power_switch

- platform: gpio
pin: D6
pin:
number: D6
allow_other_uses: true
id: power_switch_force
internal: true
on_turn_on:
Expand Down

1 comment on commit a6bd4ad

@RAJABABU10
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi sir i am raja babu Frome India/////// please provide complete video , am confuse how to run software . am a student please please sir humbly request...
my email id is /////// raja.rb79@gmail.com

Please sign in to comment.