Hi, I am looking at automating the lights in my house/office by adding PIR sensors to detect presence + relays to switch lights on/off + arduino/nodemcu to give an app/web interface as well.
Relays can easily be added to the light switches for on/off functionality. The question is "what will be the best way to link the PIR to the nodemcu/arduino?"
1)1 PIR might trigger 1 light or 2 or more depending on location. For eg. in bathroom I want only 1 light triggered through a PIR whereas a PIR in living room will trigger 2 lights. Can PIR trigger relays directly without need for arduino or similar? IF yes, can we then read the relay state wirelessly to provide the app functionality and also trigger the relays remotely through a master arduino/nodemcu?
2) The PIR might be located far away from the relays, in this case what is best option to wirelessly link the PIR to the relay/nodemcu keeping in mind long lasting power source?
Considering I want to do whole house, there will be multiple relays connected to all the current manual switchboards + PIR's to detect presence + arduinos/nodemcus
There are many options coming to mind:
1) Use a central nodemcu/arduino as master unit and wireless connect other (relays +PIR) combos to it? 2) use separate nodemcu + relay + PIR to each wall switch and control?
Another question is power source for all the components. Powering the arduino/relays should be ok. What about the PIR if they are mounted in a location which doesn't have power source? Can they be battery operated and last a year?
IR or Zigbee or BLE, which would be most suitable?
Would love to hear suggestions on what will be optimum way to do this.