I would really like to use generic PIRs with OpenHAB (not just the ones that can sit on an Arduino or RPi), like this one -Luxomat RC-plus next 230 - what ways have folks here found to do it? or perhaps an idea how to?
The desired functionality is that:
the PIR’s signals to the security lights turning them on/off are intercepted by a “box” which communicates with OpenHAB
OpenHAB can also switch these lights on independently
OpenHAB knows that the lights are on or off (i.e. doesn’t have to recall the state of the PIR)
I’m new to OpenHAB and home automation in general, though I’m in the early stages of a mplete home renovation, so can run cables wherever needed.
Your question is overall inadequate in technical terms (I’m sorry for the rudeness)!
You are asking for a contact/switch to be integrated in openHAB, which as a question might be understandable for some of the openHAB users without the minimum understanding of what openHAB is!
I would like to be wrong saying this: whoever mislead you that openHAB can have you blanket covered in terms of not investing in hardware, was wrong!
The bindings themselves offer a lot of opportunities for a contact/switch to be integrated! All you need is the necessary hardware!
It looks like you misunderstood my request or I wasn’t clear enough. Firstly though I am a complete HA newbie with minimal electrical expertise (I am comfortable replacing sockets, but that’s it so far). I have a very experienced electrician onsite who is doing all the installs. Back to the question, I would not know what technical terms you are alluding to.
I do expect to invest in hardware! That was what I meant when I said 'intercepted by a “box” which communicates with OpenHAB’ . Looking at Sonoff, there seem to be two options that could suit my needs and integrate with OpenHAB: Sonoff POW (inline switch) and Sonoff 4CH (in my home’s Consumer Unit / Fuse Box).
It would be great to benefit from talking with people who have integrated stand-alone PIRs with OpenHAB via Sonoff - is this the best sub-forum to find them?
Looking at the PIR you showed in your first post, they need power. Normal AC power seems to be what they need. Upon detection, they will close a contact. This switching can be detected in a number of way. Your conumdrum is how to feedback this switching to OH.
That can be done in a number of ways.
Your electrician can run a cable back to your cabinet where all the switching wire are then connected to a cheap and cheerful arduino and an arduino sketch can then publish the states of your PIRs to mqtt. OH can then read the mqtt messages
Because there is power going to the PIR you can get a simple sonoff (You don’t need the POW or the 4CH) connected to the power and then detect the PIR switch and feed back via MQTT to openHAB. The drawback is that each sonoff needs to connect to wifi, so you need a good wifi router for the house.
The problem with a standalone PIR (providing a contact) is that you only get the contact status, you can not modify brightness parameters, delay times and/or re-triggering conditions (the standalone PIR’s have this settings provided on themselves without a possibility to remotely modify them). If you do not wish to ever modify this settings remotely, then you need to use an input module (to monitor the contact of the PIR), which AFAIK does not exist in the sonoff world yet! The only workaround is to use the sonoff TH and provide a different resistance for when the PIR contact is closed or open. Of course isolation from mains power is required!
Try other ESP based devices that have inputs.
A couple of my switches failed after a while. I think it is because of power demands on the WiFi transceiver in the sonoff. I don’t know if other devices are affected.
There are other posts about this.