Low cost window/door sensor

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
nmaster
Posts: 54
Joined: Saturday 16 August 2014 17:17
Target OS: Linux
Domoticz version: 3.6304
Contact:

Re: Low cost window/door sensor

Post by nmaster »

Thank you Raspberry Piet.

I'll try one on these detector to see if it can work.
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Low cost window/door sensor

Post by Raspberry Piet »

nmaster wrote:Thank you Raspberry Piet.

I'll try one on these detector to see if it can work.
Keep us informed in this topic!
Thice
Posts: 3
Joined: Thursday 21 August 2014 23:46
Target OS: Linux
Domoticz version:
Contact:

Re: Low cost window/door sensor

Post by Thice »

I created a small and simple Arduino based device and some code to be able to link any of these cheap 433Mhz devices to the RFXCOM & Domoticz.
All information can be found here: http://www.thice.nl/convert-cheap-433mh ... convertor/
Works really well here.
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Low cost window/door sensor

Post by roblom »

I bought also some of the 2262 switches but due to the fact that it only sends on "Off" or only an "On" command. I thought this wouldn't be a problem because I thought this would be solvable with some blocky events. But it does not send only an "Off" signal but the switch is also on "Off" and stays "Off". Therefore you can create a blocky event but this gets into a loop (switch is set to "on" therefore it is set to "off" and that sets it to "on" etc.) or doesn't doe anything at all.
Somebody knows a solution to this?
nmaster
Posts: 54
Joined: Saturday 16 August 2014 17:17
Target OS: Linux
Domoticz version: 3.6304
Contact:

Re: Low cost window/door sensor

Post by nmaster »

Hi,

Just received this cheap smoke detector http://www.aliexpress.com/item/433MHz-3 ... 52593.html

It is detected like other 2262.

There is jumper to set 1.5 / 3.3 / 4.7 M and code.
sultanhq
Posts: 6
Joined: Wednesday 23 July 2014 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Low cost window/door sensor

Post by sultanhq »

decrxgarage wrote:I bought also some of the 2262 switches but due to the fact that it only sends on "Off" or only an "On" command. I thought this wouldn't be a problem because I thought this would be solvable with some blocky events. But it does not send only an "Off" signal but the switch is also on "Off" and stays "Off". Therefore you can create a blocky event but this gets into a loop (switch is set to "on" therefore it is set to "off" and that sets it to "on" etc.) or doesn't doe anything at all.
Somebody knows a solution to this?

Set an "off delay" for 10 seconds in the switch settings. that' how I use mine
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Low cost window/door sensor

Post by roblom »

sultanhq wrote:
decrxgarage wrote:I bought also some of the 2262 switches but due to the fact that it only sends on "Off" or only an "On" command. I thought this wouldn't be a problem because I thought this would be solvable with some blocky events. But it does not send only an "Off" signal but the switch is also on "Off" and stays "Off". Therefore you can create a blocky event but this gets into a loop (switch is set to "on" therefore it is set to "off" and that sets it to "on" etc.) or doesn't doe anything at all.
Somebody knows a solution to this?

Set an "off delay" for 10 seconds in the switch settings. that' how I use mine
Can you post a screenshot?
sultanhq
Posts: 6
Joined: Wednesday 23 July 2014 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Low cost window/door sensor

Post by sultanhq »

decrxgarage wrote:
sultanhq wrote:
decrxgarage wrote:I bought also some of the 2262 switches but due to the fact that it only sends on "Off" or only an "On" command. I thought this wouldn't be a problem because I thought this would be solvable with some blocky events. But it does not send only an "Off" signal but the switch is also on "Off" and stays "Off". Therefore you can create a blocky event but this gets into a loop (switch is set to "on" therefore it is set to "off" and that sets it to "on" etc.) or doesn't doe anything at all.
Somebody knows a solution to this?

Set an "off delay" for 10 seconds in the switch settings. that' how I use mine
Can you post a screenshot?
switch.GIF
switch.GIF (29.92 KiB) Viewed 7534 times
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Low cost window/door sensor

Post by roblom »

I have it working now but there is some strange thing in the blocky.

I named the PT2262 switch "Signaalgever - 01" and added a switch off delay of 1 second.
Signaalgever - 01
Signaalgever - 01
Signaalgever - 01.jpg (69.58 KiB) Viewed 7490 times
Then I created a virtual sensor called "Schakelaar - 01"
Schakelaar - 01
Schakelaar - 01
Schakelaar - 01.jpg (57.48 KiB) Viewed 7490 times
With this 2 I created a event.
Blocky
Blocky
Blocky test.jpg (101.88 KiB) Viewed 7490 times
This works but the thing I think is a bug is the "Schakelaar - 01" must be "On" or "Open" but i have to set them to "On" or "Off". So if i change in the above "Open" to "On" and "Closed" to "Off" it doesn't work anymore.
User avatar
mbliek
Posts: 194
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: the Netherlands
Contact:

Re: Low cost window/door sensor

Post by mbliek »

I think that schakelaar - 01 must be contact instead of door lock as switch type.
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Low cost window/door sensor

Post by roblom »

mbliek wrote:I think that schakelaar - 01 must be contact instead of door lock as switch type.
That's possible but the PT2262 switch is connected to a door so thats why I used the doorswitch. Nevertheless is works but not as I expected because the state is "Open" and it must be set with a "On" command.
User avatar
mbliek
Posts: 194
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: the Netherlands
Contact:

Re: Low cost window/door sensor

Post by mbliek »

decrxgarage wrote:
mbliek wrote:I think that schakelaar - 01 must be contact instead of door lock as switch type.
That's possible but the PT2262 switch is connected to a door so thats why I used the doorswitch. Nevertheless is works but not as I expected because the state is "Open" and it must be set with a "On" command.
But a door lock is a electric lock on the door.
So On means door locked and open means door unlocked.

The switch type contact is an magnetic contact that detects if the door is open or closed.
ThinkPad
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

Post by ThinkPad »

I also received this cheap sensor today.

In my case it only sends an 'on' signal. I put the off delay at 5 seconds. If yours only sends 'off', create an 'on' delay ;)

You can then create an event like this:

Code: Select all

IF doorcontact = on AND lamp1 = Off
DO SET lamp1 = On FOR 5 minutes
Mine has an PT2264 chip, and is recognized as 'Lighting4', subtype 'PT2262'.

I have the jumper on the yellow place like in this picture: http://i58.tinypic.com/16j3grc.jpg (and also the jumper in the left corner, and the 3M3 jumper).
I am not active on this forum anymore.
Dountill
Posts: 10
Joined: Thursday 04 December 2014 16:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Low cost window/door sensor

Post by Dountill »

I cant find my door sensor in Domoticz. Any idea?
- Latest version Domoticz
- Lightning checked on "set mode"
- New Battery
- Allowed to find new hardware
- Red led works.
- Tried 2 new batterys

Image
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Low cost window/door sensor

Post by Heisenberg »

It should work.
What does your log say? Is there a new device recognized like this:
Tue Dec 30 17:27:10 2014 (RFXtrx433E) Lighting 4 (Unknown)

If not then try to set your jumper (a1h) to the lower pins
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Low cost window/door sensor

Post by Raspberry Piet »

Got a 315Mhz version instead of 433Mhz?
(Check printed text on top of the metal saw filter)
Dountill
Posts: 10
Joined: Thursday 04 December 2014 16:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Low cost window/door sensor

Post by Dountill »

Raspberry Piet wrote:Got a 315Mhz version instead of 433Mhz?
(Check printed text on top of the metal saw filter)
There it is. R315A :(
ThinkPad
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

Post by ThinkPad »

Ouch! :(

Fortunately they aren't very expensive :)
I am not active on this forum anymore.
Dountill
Posts: 10
Joined: Thursday 04 December 2014 16:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Low cost window/door sensor

Post by Dountill »

I already contacted banggood, i ordered the 433 version, so it's not my fault. Anyway, i also ordered 2 others from eBay to play with :)
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Low cost window/door sensor

Post by Heisenberg »

Is the problem that you've posted here solved yet?: http://www.domoticz.com/forum/viewtopic.php?f=28&t=4740
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests