As per what Tom has suggested you can simply use them as a digital input to something as simple as a Wemos D1 mini (I like the new version which includes mounting holes) running ESPhome. Have a look at ESPhome, it’s super easy to create your own devices and you can have many sensors on the one device
@etude, did you manage to integrate the IR sensor? I am thinking about the same project placing those beam sensors around my house. Lessons learnt would be appreciated.
I used optex beam sensors, zero false alarms, day or night, sun or rain. Have them tied to my alarm panel, chimes when someone drives up driveway. Working on adding alarm to Home Assistant via AlarmDecoder. Certainly, any Arduino or ESPHome device could connect to it, they typically have a Normally Open relay that momentarily closes when sensor is activated. You would just need to pullup the signal to 3.3 or 5V (depending on the microcontroller) using a 10K resistor and tie the other wire to ground.
That’s a 5v regulator to power the d1 mini which requires 5v while the sensor require at least 12v to max 24v. using the regulator lets me power both the d1 mini and the beam break off the one 12v supply.
Thanks, Now I see you explained it, I missed it, sorry.
Didn’t the other side of the IR beam break sensors needs to be connected? It just receives the Beem? Without any power?
Hello Im new here. Can somebody help me how to set up a d1 mini with a beam sensor to work in home assistant. The video is no longer available and this post is 2 years old.
Thank you
You will need to program the Wemos D1 mini first. I suggest using ESPhome. It is really easy to use once you have a read of the documentation. You will need to setup a GPIO input.
Once you have flashed to D1 mini with your ESPhome program then add that device to HA. Again, the docs will assist you here but basically you just go to setting > Devices & Integration > add integration > ESPhome > enter the fixed IP address for the D1 mini that you programmed it with.
Then you can create HA automations to have the P.E. Beam trigger whatever you want in HA.