Alarm for open Doors

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
lumjajo
Posts: 67
Joined: Wednesday 26 April 2017 20:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

Alarm for open Doors

Post by lumjajo »

Hello, all.
I am not so sure about the way how to handle the following event. I have a Garagedoor (side entrance not main door). Sometimes this door is open over night.
I have installed a door sensor which shows me the actuasl status on my tablet. However, sometimes I am not looking at the tablet. Basically I would like to have a more obvious "alarm" to remind me that the door is open.
what are you using as a status message? Lights? blinking lights? Sirene (which I do not really prefer).
This will be more important in the future, where I want to include water sensors in the cellar etc. I am not sure about how the alarm should look like.
Any ideas?
Thanks
fvdl
Posts: 16
Joined: Sunday 07 January 2018 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Location: Deventer NL
Contact:

Re: Alarm for open Doors

Post by fvdl »

Hi,

Why don't you use a notification.
I use for my doorsensors (NeoCoolcam) the notification in the switch tab.
In the settings tab you can choose the way you want to send the notification.
I use PROWL to send the notification to my Iphone.
On your smartphone you can choose the sound for the notification.
There are also alarm devices that have a alarm sound and /or a doorbell sound, so you can choose.
You can also write a blockley script to check the status of the sensors combined with a notification.
User avatar
berny
Posts: 6
Joined: Saturday 17 December 2016 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: belgium
Contact:

Re: Alarm for open Doors

Post by berny »

Hi I use this example ....

Send a warning when the garage door has been open for more than 10 minutes

https://www.domoticz.com/wiki/Event_script_examples
snuiter
Posts: 67
Joined: Saturday 17 June 2017 12:30
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Alarm for open Doors

Post by snuiter »

You could use a simple dzVents scripts that checks the status of your door or in my case a lamp every 30 minutes only based on the lastUpdate time of the device, and then act upon it in this a simple domoticz.notify
Spoiler: show

Code: Select all

return {
	on = {
		timer = {'every 30 minutes'},
	},
	execute = function(domoticz)
	    local garage = domoticz.devices('garage lamp')

 -- garage lampen check  
        if garage.state == 'On' and garage.lastUpdate.minutesAgo > 50 then       
            domoticz.notify('','garage lampen nog niet uit')
        end
        
end
}
or use a script that checks every 5 minutes and repeatedly informs you(repeatTime) that the door is open
Spoiler: show

Code: Select all

return {
	active = true,
	on = {
		timer = {
			'every 5 minutes',
		        },
	    },
	
	execute = function(domoticz)
		local firstMessage = 5
		local repeatTime = 60
		local door2 = domoticz.devices('door2')
		local laaWij2 = domoticz.devices('door2').lastUpdate.minutesAgo
		offset1 = (laaWij2 - firstMessage) % repeatTime

		if (door2.state == 'Open' and laaWij2 > 5) then
	        if (laaWij2 <= 10 ) then 
			    domoticz.notify('', 'voordeur staat open!', domoticz.PRIORITY_HIGH)
			    domoticz.log('ACTION : voordeur open', domoticz.LOG_INFO)
                 else
                 if offset1 > 55 and offset1 <= 60 then
			    domoticz.notify('', 'voordeur open: ' .. laaWij2 .. ' minuten', domoticz.PRIORITY_HIGH)
			    print("voordeur staat nog open na : " .. laaWij2)
                 end
            end
    end
    
     
end
}

I guess the script can be made simpler as I learned more on using dzVents, but they work fine for a long time so have not reviewed them anymore
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Alarm for open Doors

Post by randytsuch »

I also used dzvents to create a simple script to notify me when the garage door is open for too long.

I created an email account just for domoticz email notifications, and set it up so the emails get forwarded to my phone as text messages.
I found that most phone providers will turn emails to texts, you just need to know where to send the emails. I have tmobile, but I think all the large carriers do this.

So I get a text message whenever the garage is open too long. Also when the freezer door is open for too long.

This has proved to be very useful.

Randy
lumjajo
Posts: 67
Joined: Wednesday 26 April 2017 20:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

Re: Alarm for open Doors

Post by lumjajo »

many thanks, thats a good idea via phones..
Does anyone have a kind of alarm lamp in his house?
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alarm for open Doors

Post by philchillbill »

I play a spoken (TTS) message on my Logitech Squeezeboxes around the house to remind me if either the garage door or the front door are left open for longer than 5 minutes. The messages repeat every 10 minutes in case I missed them.

I also have a Philips Bloom lamp in the living room that switches on to a special color to alert me of things that need my attention.

Both methods (spoken text / spontaneous colored lighting) allow feedback to passive users by not requiring a phone or tablet check.


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest