From 71528bb47e5dad4b0f635e9cb185d490427e83b5 Mon Sep 17 00:00:00 2001 From: pierre Date: Sat, 18 Jan 2025 23:26:51 +0100 Subject: [PATCH] Ajouter mystrom-motion-sensor/esphome.yaml --- mystrom-motion-sensor/esphome.yaml | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 mystrom-motion-sensor/esphome.yaml diff --git a/mystrom-motion-sensor/esphome.yaml b/mystrom-motion-sensor/esphome.yaml new file mode 100644 index 0000000..db3a41c --- /dev/null +++ b/mystrom-motion-sensor/esphome.yaml @@ -0,0 +1,43 @@ +esphome: + name: motion + friendly_name: motion + +preferences: + flash_write_interval: 24h + +i2c: + - id: bus_a + sda: 22 + scl: 19 + +sensor: + - platform: tsl2561 + name: "Ambient Light" + address: 0x39 + update_interval: 15s + - platform: tmp102 + name: "Temperature" + update_interval: 15s + +binary_sensor: + - platform: gpio + pin: + number: 14 + inverted: True + name: "Plus key" + - platform: gpio + pin: + number: 33 + name: "PIR sensor" + +switch: + - platform: gpio + pin: + number: 17 + inverted: True + name: "White LED" + - platform: gpio + pin: + number: 16 + inverted: False + name: "Red LED" \ No newline at end of file