💬 Door, Window and Push-button Sensor
-
Is the BinarySwitchSleepSensor a good answer ?
-
I have the same problem, when I use the bounce library to read my reed switch I always read "1". If I use digitalRead I get an bounce error.
I have an arduino compatible, configure it for 1Mhz, 1M resistor for the reed switch and 2 AA battery.
Someone has a similar one working? -
I have the same problem, when I use the bounce library to read my reed switch I always read "1". If I use digitalRead I get an bounce error.
I have an arduino compatible, configure it for 1Mhz, 1M resistor for the reed switch and 2 AA battery.
Someone has a similar one working? -
Nuub here..
Thinking about building this in my mailbox..
AND if possible set a green light diode to start light when box is opened and stop when its opened again.That way i would see when i come home if someone has opened the mailbox or not.. Sure push notifications work aswell but it would be a nice touch for the wifey
-
Nuub here..
Thinking about building this in my mailbox..
AND if possible set a green light diode to start light when box is opened and stop when its opened again.That way i would see when i come home if someone has opened the mailbox or not.. Sure push notifications work aswell but it would be a nice touch for the wifey
@meanmrgreen if you use a led it will draw a few mA when on and battery life will be poor.
At best you could wake up every few seconds and flash it briefly (like 100ms or less). In that case use a low value current limiting resistor to have an intense flash, and probably a red LED is better.
To stop the blinking why not use a button (or touch button, check TTP223 in AliExpress) inside the mailbox ? -
Not sure if it more battery friendly, but maybe sending a bluetooth low energy beacon is better than a led? Higher nerd factor for sure, but maybe less spouse friendly (depending on how good the ble app on the phone is).
Seems like it would be possible by using an extra nrf24: https://github.com/floe/BTLE/blob/master/examples/send/send.ino
On the other hand, if a smartphone is required you might as well open the app for your controller and check the status there :)
Maybe use a battery-friendly PIR and only light/blink the led when motion is detected?
-
You lost me at bluetooth beacon? :)
Me personally is using the app but wifey and kids ain't really as interested as i am ;)
So therefore I would need a indicator of some sorts around the mailbox that is about 30 meters from the house in the road up to the house.
Maybe a solar led light or similar to light up? Or a flag on a servo?
Will start with building the switch and figure out the indicator later.
-
Hi Everyone
Be carefull a newby here... :-)I have ordered all the parts for my sensor network. My plan is to have battery powered sensor sensing the following: Door/window status AND temp/humidity. Doing all this in a low power fashion.
My question is: Would these code in the build section be easily combined (dooe switch and temp/hum) in a way that it measures the temp/hum regurarly (every 15-30 min) and if during the sleep a door event happens it sends the door event to the gateway (and probably since we are awake do a temp/hum measurement as well)?
Every piece of direction, advice is appreciated.
Atesz
-
Like I said..newby here. Hold back your horses for a moment, I did a deep search and found some interesting forum topics here :-)
-
@Atesz very welcome to the MySensors community!
"easily" is in the eye of the beholder, but I'd say yes. https://forum.mysensors.org/topic/2597/combining-mysensors-examples is a great starting poing for combining sketches.@mfalkvidd Thank you very much, it is almost what I've been looking for !
-
Goodevening,
I am new to mysensors (newby) i wil make 3 sensors on my mini pro can some one help me with the sketch.
I am working a hole day but i can't get it writh help is very use vol.
One switch (reed contact) is working. -
Hi Ton,
You have to give us a little bit more information here (and please start a new thread for your project).
Normally good to give information about:
- What are you trying to accomplish?
- What is working?
- What is not working?
- What did you try yourself before posting?
- What is the expected result?
- Logs from the sensor/gateway/controller.
-
I had big problems getting this one to work in Domoticz... But then I downgraded the Arduino IDE to IDE 1.6.7 (https://forum.mysensors.org/topic/5164/ethernet-gw-w5100-can-not-connect-to-domoticz/2) and then it worked!
-
@hek,
Thanks for the reply.
What are you trying to accomplish?
I want to try 3 reed/door contacts on one mini-pro on pin 3,4 and 5What is working?
One reed/door contact is workingWhat is not working?
I don't no how i must make a second reed/door contact in the sketch (door/window push button)
I am new to programming arduino and don't undertsand how to do that, ik look for a hint how i can implement a second reed/door switch in the sketchWhat did you try yourself before posting?
I look many sketches on internet and try to copy a copple of line in the working sketch but i don't get a second reed/switch in domoticz. I am trying this a hole day (i am with pension).What is the expected result? a second, thirth reed/sensor in domoticz i see here only the first sensor.
Logs from the sensor/gateway/controller.
The log for the first reed/door switch i see and it is working in domoticz, that is not the problem.Sorry for the bad English.
-
@ Svante
Thanks for the reply but is is working well with one reed switch. So that is not the problem I want on the mini/pro a second and thirt switch.
-
Hi, New here but stumbled across this.
I am planning on re-using an old wired alarm system that has door and window sensors all over my house terminating under my stairs. Can I combine one sketch into multiple door reed switches on one arduino. That seems to have been asked before but there doesn't seem to be an answer. It would be quite annoying to have 8 arduinos next to each other in order to do so.
Nick -
Hi, New here but stumbled across this.
I am planning on re-using an old wired alarm system that has door and window sensors all over my house terminating under my stairs. Can I combine one sketch into multiple door reed switches on one arduino. That seems to have been asked before but there doesn't seem to be an answer. It would be quite annoying to have 8 arduinos next to each other in order to do so.
Nick@nickgosling - no problem if you have 1 wire for each reedswitch you could just add it to different input/pins and have 1 arduno check which pins is high or low.
-
Thanks for the response. OK I'm fine with assigning a pin as an input but how would I change the code to reflect this .thanks.
-
Thanks for the response. OK I'm fine with assigning a pin as an input but how would I change the code to reflect this .thanks.
@nickgosling - take the sketch and add one child for each sensor. Define one input for each sensor and in the loop check each pin for a statechange. With a if you can then send the status for each changed pin.