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.

Moderators: leecollings, remb0

oasisnl
Posts: 22
Joined: Tuesday 21 November 2017 23:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by oasisnl »

these are dzvents scripts.
they should be placed in /path/to/domoticz/scripts/dzVents/scripts . Just activated the first contact and works great.
BarnaM7
Posts: 2
Joined: Wednesday 06 July 2016 19:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by BarnaM7 »

Hi,

I'm going to buy same of this sensor.
I have some mysensor nodes and sonoff switches with ESPurna firmware, but I'm not familiar with 433Mhz based sensors. I would like to buy an sonoff 433 bridge for the 433mhz door sensors and replace the firmware too.
I think this could be a good setup, am I right ? Or build a RFLINK gateway ?

Do you have any tip for 433Mhz based temp sensor?

thanks

Barna
marhar
Posts: 2
Joined: Saturday 13 January 2018 14:57
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post by marhar »

Hello, I orderd a few at aliexpress.
When I add one in domoticz (v3.8153 on synology with RFXtrx44e) as mentioned in the movie I only get one device and not 2.
The device is added as a "x10 security" motion detector.
How can I get 2 devices so that I can see on or off ?
Can someone helpme out??
cheers Marc
Last edited by marhar on Saturday 13 January 2018 19:27, edited 1 time in total.
bjacobse
Posts: 85
Joined: Tuesday 06 September 2016 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sorø, DK
Contact:

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

Post by bjacobse »

How long batterylifetime have you experienced?
marhar
Posts: 2
Joined: Saturday 13 January 2018 14:57
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post by marhar »

bjacobse wrote: Saturday 13 January 2018 18:41 How long batterylifetime have you experienced?
I just got them so I don't know.
JelteV
Posts: 19
Joined: Wednesday 04 January 2017 19:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

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

Post by JelteV »

bjacobse wrote: Saturday 13 January 2018 18:41 How long batterylifetime have you experienced?
Still running on the original battery.
d4nh
Posts: 5
Joined: Friday 30 January 2015 16:53
Target OS: Linux
Domoticz version:
Contact:

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

Post by d4nh »

sadly mine are not being detected by domoticz, might be a faulty one :(

weird... turned the magnet, now it worked for the open detection.
no closing device turned up in the list


nope.. no luck. not updating realtime. think i have a faulty product :(
plampix
Posts: 2
Joined: Monday 17 July 2017 13:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by plampix »

Even simpler would be this generic solution (follow JelteV's instructions, just call the on/off devices $device/close and $device/open, and the main device $device). This will work for all your */close and */open devices!

Code: Select all

return {
	active = true, -- set to false to disable this script
	on = {
		devices = {
			'*/close',
			'*/open'
		},
	},
	-- in case of a timer event or security event, device == nil
	execute = function(domoticz, device)
		if (device.changed) then
		    target, action = string.match(device.name, '(.+)/(.+)');
		    if (action == 'close') then
			    domoticz.devices(target).close();
			elseif (action == 'open') then
			    domoticz.devices(target).open();
			end
			
		end
	end
}
harolds
Posts: 12
Joined: Saturday 22 April 2017 13:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by harolds »

Super cool script! Working like a charm 8-)
lucdc
Posts: 1
Joined: Wednesday 26 September 2018 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Vilvoorde, Belgium
Contact:

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

Post by lucdc »

plampix wrote: Wednesday 11 April 2018 21:02 Even simpler would be this generic solution (follow JelteV's instructions, just call the on/off devices $device/close and $device/open, and the main device $device). This will work for all your */close and */open devices!
Great script plampix, thank you! The only inconvenience that I found is that, when you hide the on/off devices by starting their name with a "$" sign, the name of the main device will also have to start with a "$" sign, and will be hidden as well. I solved it by slightly modifying one line in your script: I changed

Code: Select all

target, action = string.match(device.name, '(.+)/(.+)');
into

Code: Select all

target, action = string.match(device.name, '$?(.+)/(.+)');
and now the name of the main device can, but does not have to start with a "$".
cherowley
Posts: 65
Joined: Tuesday 24 February 2015 15:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by cherowley »

Thanks for the heads-up on these, modded them to monitor locked status on all my uPVC doors.

Surprisingly easy, just moved the reed switch to behind the dead bolt recess and glued a tiny magnet on the end of the dead bolt.

Simples! Now Alexa warns me when going out or to bed if any door is unlocked 😁
Jubbes
Posts: 33
Joined: Wednesday 24 October 2018 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jubbes »

Hallo, where must i write in the script the 2 names from the devices front door open/close (event) and the name from the virtual button front door?
Thanks
cherowley
Posts: 65
Joined: Tuesday 24 February 2015 15:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by cherowley »

Jubbes wrote: Tuesday 06 November 2018 4:36 Hallo, where must i write in the script the 2 names from the devices front door open/close (event) and the name from the virtual button front door?
Thanks
I used a lua script (setup/more options/events):

commandArray = {}

if devicechanged["$Open3"] and devicechanged["$Open3"]=='On' then
commandArray['Front Door'] = "Off"
end
if devicechanged["$Close3"] and devicechanged["$Close3"]=='On' then
commandArray['Front Door'] = "On"
end

return commandArray
Dave21w
Posts: 376
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

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

Post by Dave21w »

I have a couple of these :-

https://www.ebay.co.uk/itm/KERUI-D026-W ... 2394768280

That I am using on my doors, not quite as cheap but you see them as one X10 Security device, status is shown as Normal when closed and Alarm when open, I'm fairly new to Domoticz so not sure if the status could be changed to Open and Closed instead, either way they seem reliable, if used with the kerui alarm system they apparently report low battery too but not had mine long enough to see if thats the case with Domoticz too. Also if you don't like the blue writing on the side a little rubbing with isopropanol alcohol removes its so just plain white goes well with UPC.
Also the D026 model is the newer one, the previous D025 only report an open not a close so don't get that one.

Not tried the below yet but I assume they will work too.

https://www.ebay.co.uk/itm/KERUI-433Mh- ... 3457750875

Hope the info helps

P.S A search for Kerui D026 on amazon will get you some too
renerene
Posts: 350
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

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

Post by renerene »

Those KERU D026 don't last a year with a battery. I'm guessing more like 8 months. I use 3 of them, indoors. Because they use the expensive A23 battery, I was hoping for better.
brjhaverkamp
Posts: 56
Joined: Wednesday 06 December 2017 16:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by brjhaverkamp »

Hi all,

I recently got a bunch of D026 as well.
I operate domoticz on a Rpi with an RFlink gateway attached. This is probably different than your Rfxcon setup.

in my case rflink detects 3 independent switches on the device.
Switch 00 emits off when the door opens
Switch 02 is the tamperswitch on the back and ends an On signal when pressed
Switch 03 emits on when the door closes
There is probably a signal for low battery, but I havent gotten that far.

My question now is, what does it exactly look like when using an Rfxcon? I would rather have one single device. Is this something that is should be done on the rflink/rfxcon side, or is that a config file for the device in domoticz itself?

I have a similar issue with the Keriu P829 PIRs. They show up as 1 switch where the motion is an off signal and the tamper the on signal. Very handy. I solved that for now with 2 dummy devices and some json magic.
But I now have 3 devices in domoticz for each physical one. I would like to clean that up a bit.

Bert
Joep123
Posts: 56
Joined: Monday 26 March 2018 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

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

Post by Joep123 »

brjhaverkamp wrote: Thursday 15 November 2018 21:01 My question now is, what does it exactly look like when using an Rfxcon? I would rather have one single device. Is this something that is should be done on the rflink/rfxcon side, or is that a config file for the device in domoticz itself?
With a RFXCom the D026 sensor shows up as just 1 device.
brjhaverkamp
Posts: 56
Joined: Wednesday 06 December 2017 16:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by brjhaverkamp »

Hi Joep,

Can you give me a bit more detail? Does the device have 3 states then: Open/Close/Tamper/Low battery, or how does that work?
Could you share a screenshot maybe?
Dave21w
Posts: 376
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

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

Post by Dave21w »

I'm at work at the moment but I'll see what I can sort out when I get home, can certainly do some screen shots.

Dave
Dave21w
Posts: 376
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

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

Post by Dave21w »

Here's a few screen grabs of what my sensor reports as and its states, when I added it to my system all i did well tell domoticz to learn a new switch and then activated it by closing the door.
Hope it helps.
Attachments
back door closed devices table.jpg
back door closed devices table.jpg (8.21 KiB) Viewed 3334 times
back door closed.jpg
back door closed.jpg (10.08 KiB) Viewed 3334 times
back door open.jpg
back door open.jpg (9.45 KiB) Viewed 3334 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest