From 0583f27aea4f05d53dc4fdcd381aeb568c1c5d39 Mon Sep 17 00:00:00 2001 From: Thibault Maekelbergh Date: Mon, 29 Jan 2024 15:29:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(esphome):=20Add=20air=20quality=20?= =?UTF-8?q?sensor=20kitchen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../esp8266-desk-controller-bureau-thib.yaml | 72 +++++++++++++++++++ esphome/ikea-vindriktning-keuken.yaml | 13 ++++ 2 files changed, 85 insertions(+) create mode 100644 esphome/esp8266-desk-controller-bureau-thib.yaml create mode 100644 esphome/ikea-vindriktning-keuken.yaml diff --git a/esphome/esp8266-desk-controller-bureau-thib.yaml b/esphome/esp8266-desk-controller-bureau-thib.yaml new file mode 100644 index 0000000..1986af9 --- /dev/null +++ b/esphome/esp8266-desk-controller-bureau-thib.yaml @@ -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" diff --git a/esphome/ikea-vindriktning-keuken.yaml b/esphome/ikea-vindriktning-keuken.yaml new file mode 100644 index 0000000..b5760d6 --- /dev/null +++ b/esphome/ikea-vindriktning-keuken.yaml @@ -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