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