Low cost window/door sensor
Moderator: leecollings
-
- Posts: 9
- Joined: Thursday 11 September 2014 19:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Contact:
Re: Low cost window/door sensor
For everybody who (like me) is struggeling with these doot contacts:
I have also ordered three of these door contacts but i cannot get the above (roblom) blockly to work correct.
I also have some siemens PIR sensors wich work very nice with the "Ulitmate Smart PIR" scripts, and these work about the same, only "on" commands are send.
(http://www.domoticz.com/wiki/Smart_Lua_Scripts) the 2 scripts under "the ulimate PIR"
These doorcontacts work very well with the same scripts, you only have to rename your doorcontact to the naming convention and it works for switching lights etc.
I have renamed the scripts and in the scripts all the "PIR" to "DCN", and they work ok, if the switch uses "on" signal or "off" does not matter.
I have also ordered three of these door contacts but i cannot get the above (roblom) blockly to work correct.
I also have some siemens PIR sensors wich work very nice with the "Ulitmate Smart PIR" scripts, and these work about the same, only "on" commands are send.
(http://www.domoticz.com/wiki/Smart_Lua_Scripts) the 2 scripts under "the ulimate PIR"
These doorcontacts work very well with the same scripts, you only have to rename your doorcontact to the naming convention and it works for switching lights etc.
I have renamed the scripts and in the scripts all the "PIR" to "DCN", and they work ok, if the switch uses "on" signal or "off" does not matter.
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Low cost window/door sensor
But what about just giving a delay for the on or off (the inverse of what your sensor sends) for a few seconds?
If my PIR sends only 'Off' commands, i put a 'On' delay for 5 seconds or so. This makes the switch go from Off to On instead of only off.
Should be enough to base an event on? No Lua required...
If my PIR sends only 'Off' commands, i put a 'On' delay for 5 seconds or so. This makes the switch go from Off to On instead of only off.
Should be enough to base an event on? No Lua required...
I am not active on this forum anymore.
-
- Posts: 9
- Joined: Thursday 11 September 2014 19:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Contact:
Re: Low cost window/door sensor
Where can i see if the on off delay works, the switch always is off, and in the log i only see the off commands.ThinkPad wrote:But what about just giving a delay for the on or off (the inverse of what your sensor sends) for a few seconds?
If my PIR sends only 'Off' commands, i put a 'On' delay for 5 seconds or so. This makes the switch go from Off to On instead of only off.
Should be enough to base an event on? No Lua required...
My type is switch on/off type and if i put a number in the on and off delay fields the seem to do nothing ?
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Low cost window/door sensor
Fill in a on delay for 5 secs. Off delay not used for your switch. By using the delay, it should turn to On after a while, and to Off when sensor is activated. And then back to On again.
I am not active on this forum anymore.
-
- Posts: 9
- Joined: Thursday 11 September 2014 19:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Contact:
Re: Low cost window/door sensor
Here that does not seem to work
I have it configured as normal on/off switch. In the switches tab it is always shown as "off"
In the delay fields i have on delay 5 and off delay 0.
When i open the switch i see an update of the time in the switches tab but remains off.
in the log i can only see off commands and never on, only if i manually klik on the lightbulb icon it says switching on and after 5 secs it goes on and stays on.
Until i open the doorswitch then the switch is turned to off and nerver to on, not in the sitches tab and not in the log.
I have it configured as normal on/off switch. In the switches tab it is always shown as "off"
In the delay fields i have on delay 5 and off delay 0.
When i open the switch i see an update of the time in the switches tab but remains off.
in the log i can only see off commands and never on, only if i manually klik on the lightbulb icon it says switching on and after 5 secs it goes on and stays on.
Until i open the doorswitch then the switch is turned to off and nerver to on, not in the sitches tab and not in the log.
-
- Posts: 18
- Joined: Saturday 04 January 2014 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Low cost window/door sensor
I have the same with this sensor, tried everything with on and off delay.
but its doesn't work, only a off signal
but its doesn't work, only a off signal
CubieTruck with Domoticz
RfxTrx 433Mhz Usb, Rfx Sensor, Z-Wave
Slave Raspberry Pi with Domoticz, Piface, P1 usb
RfxTrx 433Mhz Usb, Rfx Sensor, Z-Wave
Slave Raspberry Pi with Domoticz, Piface, P1 usb
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Low cost window/door sensor
I think you have a totally different sensor. Mine does nothing when the magnet is near, and sends a command (red LED turns on) when the magnet is moved away.
I got mine from Banggood.com
I got mine from Banggood.com
I am not active on this forum anymore.
-
- Posts: 9
- Joined: Thursday 11 September 2014 19:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Contact:
Re: Low cost window/door sensor
Mine came from ebay, and have this exact behaviour as yours.ThinkPad wrote:I think you have a totally different sensor. Mine does nothing when the magnet is near, and sends a command (red LED turns on) when the magnet is moved away.
I got mine from Banggood.com
Actually for my needs they work very good with the ultimate PIR script as i mentioned a few post back, and then it does not matter if it send a on or off command.
Now i use one to monitor my gasmeter. In this topic http://www.domoticz.com/forum/viewtopic.php?f=14&t=1641 a kaku switch is used, but this low cost door sensor works good also. My gasmeter was slightly different from the one in the mentioned topic, the place where the sensor (reed contact) needs to be placed is not at the bottom but on the top of the counter and sends the magnetic pulse very 0.1 m3.
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Low cost window/door sensor
Received the cheap PIR today, same as this one: http://www.domoticz.com/forum/viewtopic ... =40#p17076 (PIR538C). I have configured my jumpers the same (3M3 jumper, upper right four jumpers, bottom left one jumper).
However, Domoticz is not picking it up. I connected the RFXCOM to my PC, and ran rfxmngr, which detects the PIR as Lighting4 - PT2262. So the PIR is working, and RFXCOM can hear it.
But Domoticz doesn't receive it when i click on 'Learn switch'... I tried setting 'ARC' enabled for the RFXCOM in Domoticz, but when i put the checkmark to the ARC box, and save it, it doesn't remember, because when i go back to the 'Set mode' screen, the box is not ticked anymore.
Edit:
Ok, got it:
I am going to hide somewhere, so stupid i didn't thought of this
When 'Lighting4' is enabled, it is recognized as: 'Lighting4, PT2262' and Domoticz only receives 'On' commands.
When Lighting4 is disabled at 'Set mode', but ARC is enabled, the device is received as 'Lighting 5, BBSB new', but only receives 'Off' commands
I chose for Lighting4, as i already have that one in use for the doorcontact also mentioned in this thread. I used an off delay so i can use the PIR in events.
However, Domoticz is not picking it up. I connected the RFXCOM to my PC, and ran rfxmngr, which detects the PIR as Lighting4 - PT2262. So the PIR is working, and RFXCOM can hear it.
But Domoticz doesn't receive it when i click on 'Learn switch'... I tried setting 'ARC' enabled for the RFXCOM in Domoticz, but when i put the checkmark to the ARC box, and save it, it doesn't remember, because when i go back to the 'Set mode' screen, the box is not ticked anymore.
Edit:
Ok, got it:
I am going to hide somewhere, so stupid i didn't thought of this
When 'Lighting4' is enabled, it is recognized as: 'Lighting4, PT2262' and Domoticz only receives 'On' commands.
When Lighting4 is disabled at 'Set mode', but ARC is enabled, the device is received as 'Lighting 5, BBSB new', but only receives 'Off' commands
I chose for Lighting4, as i already have that one in use for the doorcontact also mentioned in this thread. I used an off delay so i can use the PIR in events.
I am not active on this forum anymore.
-
- Posts: 59
- Joined: Tuesday 07 October 2014 11:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: France RA
- Contact:
Re: Low cost window/door sensor
so this device (http://www.ebay.nl/itm/171089657359?var ... 1439.l2649) works with domoticz ?
thank you
thank you
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
-
- Posts: 9
- Joined: Thursday 11 September 2014 19:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.1
- Contact:
Re: Low cost window/door sensor
Choose the 433Mhz with 2262 chipset or it will no work.jackslayter wrote:so this device (http://www.ebay.nl/itm/171089657359?var ... 1439.l2649) works with domoticz ?
thank you
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Low cost window/door sensor
Mine are ordered 433Mhz and 2262 chipset as you told
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 59
- Joined: Tuesday 07 October 2014 11:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: France RA
- Contact:
Re: Low cost window/door sensor
yes , thanks , I order PIR and door contact
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Low cost window/door sensor
mvveelen asked me how he could connect these PIRs to a permanent connected power supply. He mentioned that he didn't have a 9V DC power supply, but he did have some 5V adapters.
I read the datasheet of the chips inside the PIR, power first goes to 'BISS0001' (PIR detection part) which works from 3-5V. The SC2262 chip (RF part) works from 2-13V.
mvveelen hasn't got his PIRs yet, so i connected mine to my lab power supply. Adjusted voltage to 5V DC, and the PIR seems to work fine. I created a small event that turns the light on. When i walked into the room, light turned on.
Only downside is that there is a small blue led inside the PIR glowing. I think it indicates a low battery, because when i slowly crank up the lab power supply to 9V the blue led dims gradually as i turn the voltage knob higher.
But LED can be soldered out, or put a small piece of black tape over it.
Distance between PIR and RFXCOM is about 3m, with a YTONG/Xella wall in between. Maybe on longer distances you will encounter problems, as i think that maybe 5V is too low to provide full transmit power.
But for short distances it is fine. So this could be a cheap way to have the PIR connected to mains all the time, just use a cheap 5V phone charger.
I read the datasheet of the chips inside the PIR, power first goes to 'BISS0001' (PIR detection part) which works from 3-5V. The SC2262 chip (RF part) works from 2-13V.
mvveelen hasn't got his PIRs yet, so i connected mine to my lab power supply. Adjusted voltage to 5V DC, and the PIR seems to work fine. I created a small event that turns the light on. When i walked into the room, light turned on.
Only downside is that there is a small blue led inside the PIR glowing. I think it indicates a low battery, because when i slowly crank up the lab power supply to 9V the blue led dims gradually as i turn the voltage knob higher.
But LED can be soldered out, or put a small piece of black tape over it.
Distance between PIR and RFXCOM is about 3m, with a YTONG/Xella wall in between. Maybe on longer distances you will encounter problems, as i think that maybe 5V is too low to provide full transmit power.
But for short distances it is fine. So this could be a cheap way to have the PIR connected to mains all the time, just use a cheap 5V phone charger.
I am not active on this forum anymore.
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Low cost window/door sensor
Thanks for testing ThinkPad !
That blue LED you're talking about, might be kinda nice If it bothers me (when I use the PIR in my home), I can always put some black tape over it or something like that. But for the PIR in the garage it seems sufficient, because I probably will only use this 5V power supply for that one and in the garage a blue LED is no problem. Indoor I will probably use a battery. Now the wait for the PIR's has started
That blue LED you're talking about, might be kinda nice If it bothers me (when I use the PIR in my home), I can always put some black tape over it or something like that. But for the PIR in the garage it seems sufficient, because I probably will only use this 5V power supply for that one and in the garage a blue LED is no problem. Indoor I will probably use a battery. Now the wait for the PIR's has started
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 10
- Joined: Thursday 04 December 2014 16:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Low cost window/door sensor
I tried to add another door contact (next to my excisting one). I have to set an other code right? My first one got jumper set on H1, second one on H3. They both showed up in Domoticz. The first one doesn't work all the time, the second one doesnt work at all. I added a 10s off-delay (both sending out "on" signal) tried new batterys etc. Any ideas?
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Low cost window/door sensor
Have you also got the 3M3 jumper set?
See this post for working jumper settings: http://www.domoticz.com/forum/viewtopic ... =40#p17076
Only need to configure the 4 jumpers on the bigger jumper block in a different order, otherwise your contacts will send the same codes.
See this post for working jumper settings: http://www.domoticz.com/forum/viewtopic ... =40#p17076
Only need to configure the 4 jumpers on the bigger jumper block in a different order, otherwise your contacts will send the same codes.
I am not active on this forum anymore.
-
- Posts: 10
- Joined: Thursday 04 December 2014 16:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Low cost window/door sensor
Yeah, jumper is set on 3M3.So i need to put in 4 jumpers? I only put in 1, per sensor at the moment. Will try a 4 jumper code when i am home. To be continued...ThinkPad wrote:Have you also got the 3M3 jumper set?
See this post for working jumper settings: http://www.domoticz.com/forum/viewtopic ... =40#p17076
Only need to configure the 4 jumpers on the bigger jumper block in a different order, otherwise your contacts will send the same codes.
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Low cost window/door sensor
I don't know if 4 jumpers are necessary... Cheap Chinese hardware that doesn't come with a user manual :p
But the jumper setting from Raspberry Piet does work here.
But the jumper setting from Raspberry Piet does work here.
I am not active on this forum anymore.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest