Ajouter mystrom-motion-sensor/esphome.yaml
This commit is contained in:
parent
48258d44a5
commit
71528bb47e
1 changed files with 43 additions and 0 deletions
43
mystrom-motion-sensor/esphome.yaml
Normal file
43
mystrom-motion-sensor/esphome.yaml
Normal 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"
|
Loading…
Reference in a new issue