43 lines
No EOL
662 B
YAML
43 lines
No EOL
662 B
YAML
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" |