💬 Door, Window and Push-button Sensor
-
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.
-
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.