Hi all
So I’m trying to make a multisensor, using the following:
- Wemos D1 Mini
- HTU21D (I2C Temperature and Humidity Sensor) (VCC to 3.3V, GND to GND, SDA to D2, SCL to D1)
- BH1750 (I2C Light Sensor) (VCC to 3.3V, GND to GND, SDA to D2, SCL to D1)
- AM312 PIR Sensor (VCC to 3.3V, GND to GND, Signal to D3)
Diagram as follows:
Unfortunately, while the I2C devices work happily like this, the AM312 doesn’t seem to detect motion correctly. I’ve checked all the wires are sound and everything seems to be good, and the I2C sensors update, but the AM312 always shows as motion detected, and never stops showing that in HomeAssistant.
Any ideas?
Thanks!
Rob
Snippet of relevant parts of my .yaml in case that’s useful:
esphome:
name: multisensor_1
platform: ESP8266
board: d1_mini
wifi:
ssid: SECRET
password: SECRET PASSWORD
ap:
ssid: $hostname AP
captive_portal:
logger:
api:
ota:
web_server:
port: 80
substitutions:
hostname: 'Multisensor 1'
switch:
- platform: restart
name: $hostname restart
binary_sensor:
- platform: status
name: $hostname Status
- platform: gpio
pin: D3
name: $hostname Motion
device_class: motion
sensor:
- platform: wifi_signal
name: $hostname WiFi Signal
update_interval: 60s
- platform: uptime
name: $hostname Uptime
- platform: htu21d
temperature:
name: $hostname Temperature
icon: "mdi:thermometer-lines"
humidity:
name: $hostname Humidity
icon: "mdi:water-percent"
update_interval: 60s
- platform: bh1750
name: $hostname Illuminance
icon: "mdi:brightness-percent"
address: 0x23
measurement_time: 69
update_interval: 60s
text_sensor:
- platform: version
name: $hostname ESPHome Version
- platform: wifi_info
ssid:
name: $hostname WiFi
ip_address:
name: $hostname IP Address
i2c:
sda: D2
scl: D1
frequency: 100kHz
scan: True
id: bus_a