I’m not sure how I did it… maybe I just wrote a small Arduino code that keep sending an RF signal using RCSwitch library example.
And using the gateway should also work, with the default configuration, the gateway repeat each RF code it send, 20 times.
I have bought the same PIR as you and I’m thinking of buying more of the same kind. Do they all send the same code on motion or is there any way to distinguish them?
Strange mine are working perfectly since months, could you post a picture of the inside and give the exact Product ID from banggood the working mine are id 941723
Codes are sent while starting up and only sends 1 code when motion is triggerd. Did not see if codes are sent while battery low. Range of the PIR is ~ 3 / 5 meters so sometimes additional bridges are required to receive the 433mhz signal.
By the way, dont know what happend but my kaku switches also work now Happy to see good improvements on the code side
The Kerui P829 can be powered by USB (micro or mini USB, I’ll have to check) so you can easily power them from main by using a simple USB charger.
Not sure there is a point though, use some AA Eneloop, you should be good to go for more than a year and then be able to recharge the battery. You’ll easily find them for 2€ a piece, so for a grand total of 4€ it might cost less than a USB charger+ cable or less than a AC to DC converter.
On an electricity consumption point of view, it might also cost less, a charger or transformer usually stays hot and consume more electricity than used by the sensor.