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
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm for open Doors

Post by timop »

How about this and some push notification
https://www.domoticz.com/wiki/Get_Doors_Status
I made for my own garage door, there is swiitvh in esp8266 which communicates to my domotocz and alarms at evening if its forgotten open.
Also notificates always when someone opens it thru switch own notification.
AntoonvdOetelaar
Posts: 15
Joined: Thursday 24 August 2017 14:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Holland
Contact:

Re: Alarm for open Doors

Post by AntoonvdOetelaar »

I'm still surprissed that checks are allways done on open doors...
Not on locked ones. I'm going to add a switch to my front door lock, so I can monitor if it was not forgotten to lock.
RPI3B, Z-WAVE AEOTEC GEN5, Zigbee2Mqtt, Xiaomi gateway, GPIO, I2C, 1-wire, DS18B20, P1 meter, Growatt, Buienradar, Harmony hub, Domoticz 2020.2
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Alarm for open Doors

Post by curious »

AntoonvdOetelaar wrote:I'm still surprissed that checks are allways done on open doors...
Not on locked ones. I'm going to add a switch to my front door lock, so I can monitor if it was not forgotten to lock.
I'm curious how you're going to do that. Open or close does not seem that difficult. Locked or unlocked is more difficult i think. What kind of hardware are you going to use?

Sent from my SM-G930F using Tapatalk

User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Alarm for open Doors

Post by felix63 »

Hi,

I use a different (dzvents) script to check for doors left open. If a given door has been left open for more time than the threshold defined I am send a message on my phone. I can set different thresholds for each door I want to check. Currently the script stops sending notifications for open doors after 3 times.

Cheers,
Lex

Code: Select all

local devicesToCheck = {
	{ ['name'] = 'Voordeur', ['threshold'] = 11 },
	{ ['name'] = 'Garagedeur', ['threshold'] = 15 },
	{ ['name'] = 'Achterdeur', ['threshold'] = 11 },
	{ ['name'] = 'Provisiekast deur', ['threshold'] = 45 },
	{ ['name'] = 'Bergingdeur', ['threshold'] = 30 },
}

return {
	active = true,
    on = {
        timer = {'every 10 minutes'},
    },
    logging = {
        level = domoticz.LOG_DEBUG,
        marker = "POR"
    },    

	execute = function(domoticz)
	    local times = 3
		for i, deviceToCheck in pairs(devicesToCheck) do
			local name = deviceToCheck['name']
			local threshold = deviceToCheck['threshold']
			local state = domoticz.devices(name).state
			local minutes = domoticz.devices(name).lastUpdate.minutesAgo

			if ( state == 'Open') then 
			    if (minutes > threshold) and (minutes < 3 * threshold) then
    			    domoticz.notify('Device ' .. name .. ' staat al langer dan ' .. minutes .. ' minuten open.', domoticz.PRIORITY_HIGH)
                end
			end
		end
	end
}
AntoonvdOetelaar
Posts: 15
Joined: Thursday 24 August 2017 14:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Holland
Contact:

Re: Alarm for open Doors

Post by AntoonvdOetelaar »

curious wrote: Sunday 20 May 2018 16:10
AntoonvdOetelaar wrote:I'm going to add a switch to my front door lock, so I can monitor if it was not forgotten to lock.
I'm curious how you're going to do that. Open or close does not seem that difficult. Locked or unlocked is more difficult i think. What kind of hardware are you going to use?
Micro switch mounted behind the frame of the closing plate, connected to a xiaomi door contact. (Remove reedswitch)
RPI3B, Z-WAVE AEOTEC GEN5, Zigbee2Mqtt, Xiaomi gateway, GPIO, I2C, 1-wire, DS18B20, P1 meter, Growatt, Buienradar, Harmony hub, Domoticz 2020.2
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest