I'm using dlink.py to send dch-s150 motion updates to node-red through the python exec node.
python3 -u /home/pi/dlink.py ip pin loop
Exec node is triggered in spawn mode so it sends continuous output from python as a payload. Do what you want with the output. I use it to trigger occupancy for thermostat control with suitable timers, etc.
It actually makes the Dlink motion sensor useful without the cloud service. No lag.
It does use a fair amount of cpu to loop the python app though. There could be a better way.
However, thanks for your work on this. I think a lot of people would like to use their s150's directly. It's a nice piece of hardware.
K
I'm using dlink.py to send dch-s150 motion updates to node-red through the python exec node.
python3 -u /home/pi/dlink.py ip pin loop
Exec node is triggered in spawn mode so it sends continuous output from python as a payload. Do what you want with the output. I use it to trigger occupancy for thermostat control with suitable timers, etc.
It actually makes the Dlink motion sensor useful without the cloud service. No lag.
It does use a fair amount of cpu to loop the python app though. There could be a better way.
However, thanks for your work on this. I think a lot of people would like to use their s150's directly. It's a nice piece of hardware.
K