I have a motion sensor ABUS BW8000 which has a NC motion contact. It is powered with 12V.
The motion sensor is connected to an ESP device (and I’m using a pull up resistor). I have used ESPHome for this:
binary_sensor:
- platform: gpio
pin: D5
name: "Abus_pir_sensor"
device_class: motion
But I’m wondering what the best way is to connect such a device. I’m not an electrician.
What I would like to have are the different states of the motion sensor (because starting up gives the same result as a motion trigger):
- the motion sensor is not connected/off
- the motion sensor is working/active/standby
- the motion sensor is triggered (a real trigger, not when starting up)
I have done some basic tests with a voltmeter (measuring the resistance / I’m using 200 as scale):
- Motion sensor is powered of → the NC contact gives 1 (so the contact is open)
- Motion sensor is starting up → the NC contact gives about 2 seconds 7 Ohm and then for about a minute gives 1 (so the contact is open)
- Motion sensor is ready and in standby → the NC contact gives 7 Ohm
- Motion sensor triggers motion → the NC contact gives 1
So what is the best way to connect this? Should it be an analog input and check something changes from 7 Ohm to …?
(PS: I know that there are motion sensor like the HC-SR501. But they gives a ton of false triggers so that is the reason that I have buy a more professional pir sensor)