Cheap 433MHz door sensor (with open and close)

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
JelteV
Posts: 20
Joined: Wednesday 04 January 2017 20:55
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Cheap 433MHz door sensor (with open and close)

Post by JelteV » Sunday 03 September 2017 20:12

Hi,

So I don't know if this is special or not but I found these cheap Door sensor that look great, are really cheap (<€ 5,-) and send an open and close signal.
https://www.aliexpress.com/item/433MHz- ... 91010.html
IMG_4198.JPG
IMG_4198.JPG (32.29 KiB) Viewed 299 times

I thought I would share how to set them up in Domoticz.

So first this sensor has to be picked up by Domoticz. If you have an RFXCOM you need to enable the Lightning 4 mode.
As soon as this is enabled your sensor will show up in your list of (unused) devices as 2 devices with the same ID.
One device will be triggered when the door is opened, one will be triggered when the door is closed.

You need to find out which device is triggered when. You can find out by triggering each event. First move the contact away from the base, this will simulate opening the door. The "last seen" time of that device will change.
Rename that device. Let's call it "Front door open (event)".
Now move the contact back to the base. If you did it correct "last seen" time of the other device will change.
Rename that device. Let's call that "Front door close (event)".

And add them both as switches in Domoticz.
Both devices will be always on, you can't switch them off. To know the state of the door we need to add a new dummy switch.
Add a new dummy door contact and call it "Front door (Virtual)".

To know the state of the door we need to add 2 small scripts.
One when the door is opened and one when closed.
Here they are:
Spoiler: show
Door open :

Code: Select all

return {
	active = true, -- set to false to disable this script
	on = {
		devices = {
			'Front door open (event)',
		},
	},
	-- in case of a timer event or security event, device == nil
	execute = function(domoticz, device)
		if (device.changed) then
			domoticz.devices('Front door (Virtual)').open()
		end
	end
}
Door close :

Code: Select all

return {
	active = true, -- set to false to disable this script
	on = {
		devices = {
			'Front door close (event)' 
		},
	},
       -- in case of a timer event or security event, device == nil
	execute = function(domoticz, device)
		if (device.changed) then
			domoticz.devices('Front door (Virtual)').close()
		end
	end
}
There you have it.
A working 433MHz door contact in Domoticz with an open and close for less then € 5,-!
Now you always know the state of your door or window.
Last edited by JelteV on Monday 04 September 2017 9:39, edited 1 time in total.

aleph0
Posts: 41
Joined: Thursday 12 May 2016 15:47
Target OS: Linux
Domoticz version: 3.8005
Location: South of France
Contact:

Re: Cheap 433MHz door sensor (with open and close)

Post by aleph0 » Monday 04 September 2017 3:39

Thanks you very much for this info :) I've been looking for something like that for a long time :)

Rolo
Posts: 54
Joined: Sunday 27 December 2015 20:19
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: The Netherlands
Contact:

Re: Cheap 433MHz door sensor (with open and close)

Post by Rolo » Sunday 10 September 2017 9:10

Can you tell wich type of battery is used in this switch?

User avatar
sincze
Posts: 686
Joined: Monday 02 June 2014 22:46
Target OS: Linux
Domoticz version: 3.7546
Location: Netherlands
Contact:

Re: Cheap 433MHz door sensor (with open and close)

Post by sincze » Sunday 10 September 2017 11:31

Nice find. Even open/close. Well design looks also okay. Next stop will be their motion sensors right??
Running Domoticz since 2013 with Cubietruck
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

SweetPants
Posts: 1477
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.8423
Location: The Netherlands
Contact:

Re: Cheap 433MHz door sensor (with open and close)

Post by SweetPants » Sunday 10 September 2017 11:32

Rolo wrote:
Sunday 10 September 2017 9:10
Can you tell wich type of battery is used in this switch?
If you follow the link in the first post it says:
Power Supply:DC 12V(12V 23A battery)

Jem101
Posts: 43
Joined: Saturday 02 May 2015 21:26
Target OS: Raspberry Pi
Domoticz version: beta
Location: London, UK
Contact:

Re: Cheap 433MHz door sensor (with open and close)

Post by Jem101 » Sunday 10 September 2017 13:00

SweetPants wrote:
Sunday 10 September 2017 11:32
Rolo wrote:
Sunday 10 September 2017 9:10
Can you tell wich type of battery is used in this switch?
If you follow the link in the first post it says:
Power Supply:DC 12V(12V 23A battery)
Yes it does say that but it must be a misprint somewhere - a battery that can supply 23A at 12 V is a car battery! I suspect, looking at the other similar products, that it'll be something like a CR2032 button-type cell.

SweetPants
Posts: 1477
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.8423
Location: The Netherlands
Contact:

Re: Cheap 433MHz door sensor (with open and close)

Post by SweetPants » Sunday 10 September 2017 13:44

23 A is the battery type http://www.toolstation.nl/shop/p92000?c ... gIvJ_D_BwE
very common type is chinese sensors. They are a little expensive in use

Jem101
Posts: 43
Joined: Saturday 02 May 2015 21:26
Target OS: Raspberry Pi
Domoticz version: beta
Location: London, UK
Contact:

Re: Cheap 433MHz door sensor (with open and close)

Post by Jem101 » Sunday 10 September 2017 14:19

SweetPants wrote:
Sunday 10 September 2017 13:44
23 A is the battery type http://www.toolstation.nl/shop/p92000?c ... gIvJ_D_BwE
very common type is chinese sensors. They are a little expensive in use
Ah I didn't know that - I stand corrected!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests