Ajouter mystrom-motion-sensor/esphome.yaml

This commit is contained in:
Pierre Guillod 2025-01-18 23:26:51 +01:00
parent 48258d44a5
commit 71528bb47e

View file

@ -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"