DIY motion sensor for under €5

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

Post Reply
theSpiked
Posts: 1
Joined: Sunday 09 September 2018 20:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

DIY motion sensor for under €5

Post by theSpiked »

I've made my own motion sensors for enabling motion based lights and I'd like to share my project with you guys!
Using ESP8266, HC-SR501 MQTT and Domoticz I've been able to create these sensors for under €5/piece, including a simple project box.

Source: https://thenailz.github.io/mqtt-motion-detection/

Please let me know what you think!
denman091
Posts: 30
Joined: Monday 31 July 2017 15:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Pijnacker
Contact:

Re: DIY motion sensor for under €5

Post by denman091 »

Hi, i have read your project and it looks very nice. But i'm a newbie in case of esp8266 and Mqtt. I think i'm going to buy the hardware and in the time it is send i will find out how Mqtt is working.
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: DIY motion sensor for under €5

Post by emme »

ciao,
good job!
Just wish to contribute with with 2 notes:

You use a specific node to store the last-seen value (timestamp)... why don't use context data instead and pass the value as it is?

the esp will send a new telegram ONLY if value changes.... your flow will switch off if it does not get a 1 anymore for 15min...
but if you still have movement... your node does not send 1 anymore and you get the flow switch off the variable even if it is not true...
I would suggest to keep the 1 and 0 values from the node and act by consequence, have then domoticz handle the time difference operation

ciao
M
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest