Page 6 of 15

Re: Low cost window/door sensor

Posted: Monday 05 January 2015 21:35
by sheriff
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.

Re: Low cost window/door sensor

Posted: Monday 05 January 2015 22:23
by ThinkPad
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...

Re: Low cost window/door sensor

Posted: Monday 05 January 2015 22:58
by sheriff
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...
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.
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 ?

Re: Low cost window/door sensor

Posted: Monday 05 January 2015 23:07
by ThinkPad
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.

Re: Low cost window/door sensor

Posted: Monday 05 January 2015 23:27
by sheriff
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.

Re: Low cost window/door sensor

Posted: Friday 09 January 2015 20:41
by Hendrik
I have the same with this sensor, tried everything with on and off delay.
but its doesn't work, only a off signal

Re: Low cost window/door sensor

Posted: Friday 09 January 2015 21:14
by ThinkPad
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

Re: Low cost window/door sensor

Posted: Saturday 10 January 2015 21:39
by sheriff
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
Mine came from ebay, and have this exact behaviour as yours.
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.

Re: Low cost window/door sensor

Posted: Saturday 17 January 2015 18:10
by ThinkPad
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:
Image
I am going to hide somewhere, so stupid i didn't thought of this :shock: :roll:
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 :lol:

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.

Re: Low cost window/door sensor

Posted: Monday 19 January 2015 10:21
by jackslayter
so this device (http://www.ebay.nl/itm/171089657359?var ... 1439.l2649) works with domoticz ?
thank you

Re: Low cost window/door sensor

Posted: Monday 19 January 2015 10:23
by ThinkPad
Yes

Re: Low cost window/door sensor

Posted: Monday 19 January 2015 17:30
by sheriff
jackslayter wrote:so this device (http://www.ebay.nl/itm/171089657359?var ... 1439.l2649) works with domoticz ?
thank you
Choose the 433Mhz with 2262 chipset or it will no work.

Re: Low cost window/door sensor

Posted: Monday 19 January 2015 17:53
by mvveelen
Mine are ordered :D 433Mhz and 2262 chipset as you told ;)

Re: Low cost window/door sensor

Posted: Tuesday 20 January 2015 8:15
by jackslayter
yes , thanks , I order PIR and door contact

Re: Low cost window/door sensor

Posted: Tuesday 20 January 2015 13:06
by ThinkPad
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.

Re: Low cost window/door sensor

Posted: Tuesday 20 January 2015 14:00
by mvveelen
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 :D

Re: Low cost window/door sensor

Posted: Wednesday 21 January 2015 22:35
by Dountill
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?

Re: Low cost window/door sensor

Posted: Thursday 22 January 2015 11:19
by ThinkPad
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.

Re: Low cost window/door sensor

Posted: Thursday 22 January 2015 11:28
by Dountill
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.
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...

Re: Low cost window/door sensor

Posted: Thursday 22 January 2015 11:31
by ThinkPad
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.