Page 2 of 3

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

Posted: Friday 01 December 2017 1:55
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.

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

Posted: Sunday 07 January 2018 19:21
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

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

Posted: Saturday 13 January 2018 15:08
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

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

Posted: Saturday 13 January 2018 18:41
by bjacobse
How long batterylifetime have you experienced?

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

Posted: Saturday 13 January 2018 19:15
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.

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

Posted: Wednesday 14 February 2018 14:43
by JelteV
bjacobse wrote: Saturday 13 January 2018 18:41 How long batterylifetime have you experienced?
Still running on the original battery.

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

Posted: Wednesday 28 March 2018 9:59
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 :(

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

Posted: Wednesday 11 April 2018 21:02
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
}

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

Posted: Monday 10 September 2018 9:10
by harolds
Super cool script! Working like a charm 8-)

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

Posted: Wednesday 26 September 2018 18:15
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 "$".

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

Posted: Saturday 03 November 2018 14:02
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 😁

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

Posted: Tuesday 06 November 2018 4:36
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

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

Posted: Wednesday 07 November 2018 15:30
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

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

Posted: Wednesday 07 November 2018 20:43
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

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

Posted: Thursday 08 November 2018 7:20
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.

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

Posted: Thursday 15 November 2018 21:01
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

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

Posted: Thursday 15 November 2018 22:15
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.

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

Posted: Friday 16 November 2018 8:59
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?

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

Posted: Thursday 22 November 2018 14:28
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

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

Posted: Thursday 22 November 2018 20:05
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.