💬 Door, Window and Push-button Sensor
-
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.
-
Thank you I'll give that a go.
-
Hi,
Maybe it is a little off-topic here, but maybe you could point me to the right direction: I want to build nice wall switch, and from technological point of view it is not that difficult using mysensors, this part is clear, including battery powering or making some kind of power conversion from AC to DC (in openhardware there are quite a few examples on that). What is bothering me is the switch "enclosure". I have one example from TKB Home:
http://www.ebay.de/itm/TKB-Home-Z-Wave-Plus-Dual-Paddle-Wall-Switch-TZ56D-ZW5-/122201876698?ssPageName=ADME:X:EAC:GB:1120
that I have bought to try with smarttnings controller (which is not intended to work with, now I know), but what it has - it is the enclosure: it is nice switch with 2 micro switches inside (4 in total, since it is dual wall switch), that are not locking in the pressed position - you press up and it clicks one button/switch and returns back to its initial "neutral" position, you press down - again, click and back to "neutral".
I think the similar are are in aliexpress, that are called like wall wireless remote switch Transmitter, but I'm not sure about that, since I didn't bought one to disassemble.
Maybe some one have met something similar for making some nice RF controlled wall switches?Thanks in advance!
Regards -
Hi,
Maybe it is a little off-topic here, but maybe you could point me to the right direction: I want to build nice wall switch, and from technological point of view it is not that difficult using mysensors, this part is clear, including battery powering or making some kind of power conversion from AC to DC (in openhardware there are quite a few examples on that). What is bothering me is the switch "enclosure". I have one example from TKB Home:
http://www.ebay.de/itm/TKB-Home-Z-Wave-Plus-Dual-Paddle-Wall-Switch-TZ56D-ZW5-/122201876698?ssPageName=ADME:X:EAC:GB:1120
that I have bought to try with smarttnings controller (which is not intended to work with, now I know), but what it has - it is the enclosure: it is nice switch with 2 micro switches inside (4 in total, since it is dual wall switch), that are not locking in the pressed position - you press up and it clicks one button/switch and returns back to its initial "neutral" position, you press down - again, click and back to "neutral".
I think the similar are are in aliexpress, that are called like wall wireless remote switch Transmitter, but I'm not sure about that, since I didn't bought one to disassemble.
Maybe some one have met something similar for making some nice RF controlled wall switches?Thanks in advance!
Regards@Justas Hello, please check the dedicated category, if you don't find your hapiness please post there :)
https://forum.mysensors.org/category/42/enclosures-3d-printing
-
I tried this today and it wouldn't find a parent.
Adding #define MY_NODE_ID 1 seems to have solved the problem, so maybe this (and other) examples need to be updated with this info?
Thanks for the work on this project though, I think it will be a lort of fun when I get it all working! :)
-
I tried this today and it wouldn't find a parent.
Adding #define MY_NODE_ID 1 seems to have solved the problem, so maybe this (and other) examples need to be updated with this info?
Thanks for the work on this project though, I think it will be a lort of fun when I get it all working! :)
-
@joseyapor Yes no problem. 8 digital I/O. One of them a bit problematic as input (used for program mode)
-
Another newbie sorry.
Trying to use this as a simple doorbell, just to send a trigger to Domoticz.I connect doorbell button to digital pin 3, the Node appears in Domoticz ok as a "security sensor" but shows as state "ON". However pressing the button appears to do nothing sadly, switch status stays as on, and log shows no activity at all?
Using a Uno (clone) and wondering if somethings up with it? :(
-
What does the nodes and/or the gateways log say?
It might not change in domoticz if you just send on but no off signals but it should still be visible in the nodes log (arduino and in domotizc) -
Hold that thought, embarrassingly it might just be a bad connection! Oops
Just took it all apart in frustration, had a cuppa and put it back together.
And something is triggering now, need to play some more, but first hurdle looks like possibly a simply connection maybe.
I'll let you know. -
what is the logic of the variable "V_TRIPPED"to use? I just messed a little with the MyController application, and by using the V_TRIPPED the value changes from off to on,and stays on,even if the button is released? ( simular to close an opened door)
Should the variable not be of a binary type with according sensor type? -
Hi,
I have my sensor working well, Arduino pro mini with an Ethernet gateway using Home Assistant. .This is the first sensor I'm actually using a battery, so I've never really needed it, I see the battery level in HA as 0, how do I turn that on and use the battery level? Any pointers?
Thanks!
Jim