Skip to content

Commit

Permalink
🐛 (esphome): Fix incorrect desk controller config
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmaek committed Jun 19, 2024
1 parent 989f41d commit 9dfd3e7
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions esphome/esp8266-desk-controller-bureau-thib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,24 @@ packages:
mqtt: !include ./shared/mqtt.yaml

binary_sensor:
# GPIO Pin 16 does not support pullup pin mode. Please choose another pin.
# - platform: gpio
# name: "Button 1"
# internal: true
# pin:
# number: D0
# mode: INPUT_PULLUP
# inverted: true
# on_press:
# - mqtt.publish:
# topic: "esphome/${device_name}/button"
# payload: "1"
# on_click:
# min_length: 1s
# max_length: 2s
# then:
# - mqtt.publish:
# topic: "esphome/${device_name}/button_hold"
# payload: "1"
- platform: gpio
name: "Button 1"
internal: true
pin:
number: D4
mode: INPUT_PULLUP
inverted: true
on_press:
- mqtt.publish:
topic: "esphome/${device_name}/button"
payload: "1"
on_click:
min_length: 1s
max_length: 2s
then:
- mqtt.publish:
topic: "esphome/${device_name}/button_hold"
payload: "1"

- platform: gpio
name: "Button 2"
Expand All @@ -43,30 +42,30 @@ binary_sensor:
on_press:
- mqtt.publish:
topic: "esphome/${device_name}/button"
payload: "1"
payload: "2"
on_click:
min_length: 1s
max_length: 2s
then:
- mqtt.publish:
topic: "esphome/${device_name}/button_hold"
payload: "1"
payload: "2"

- platform: gpio
name: "Button 3"
internal: true
pin:
number: D2
number: D3
mode: INPUT_PULLUP
inverted: true
on_press:
- mqtt.publish:
topic: "esphome/${device_name}/button"
payload: "1"
payload: "3"
on_click:
min_length: 1s
max_length: 2s
then:
- mqtt.publish:
topic: "esphome/${device_name}/button_hold"
payload: "1"
payload: "3"

0 comments on commit 9dfd3e7

Please sign in to comment.