Skip to content

Commit

Permalink
✨ (esphome): Add air quality sensor kitchen
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmaek committed Jan 29, 2024
1 parent 514e039 commit 0583f27
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
72 changes: 72 additions & 0 deletions esphome/esp8266-desk-controller-bureau-thib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
substitutions:
device_name: 'esp8266-desk-controller'
friendly_name: 'Desk Controller (Bureau Thib)'

esp8266:
board: nodemcuv2

packages:
base_config: !include ./shared/base_config.yaml
wifi: !include ./shared/wifi.yaml
api: !include ./shared/api.yaml
metrics: !include ./shared/metrics.yaml
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 2"
internal: true
pin:
number: D1
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 3"
internal: true
pin:
number: D2
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"
13 changes: 13 additions & 0 deletions esphome/ikea-vindriktning-keuken.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
substitutions:
device_name: 'ikea-vindriktning-keuken'
friendly_name: 'Air Quality Keuken'

esp8266:
board: d1_mini

packages:
base_config: !include ./shared/base_config.yaml
wifi: !include ./shared/wifi.yaml
api: !include ./shared/api.yaml
metrics: !include ./shared/metrics.yaml
ikea_vindriktning: !include ./lib/ikea_vindriktning.yaml

0 comments on commit 0583f27

Please sign in to comment.