Door Contact after a certain time to turn on a lamp ?

Moderator: leecollings

Post Reply
ProjektC
Posts: 67
Joined: Sunday 17 December 2017 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

Door Contact after a certain time to turn on a lamp ?

Post by ProjektC »

Hi

Have a Door Contact
I would like that at a time after 60 seconds a lamp turns on.
When the freezer is open for 60 seconds, I want a lamp to turn on in the living room.
Unfortunately I do not get that.
Selly recognizes correctly open and closed.
I can also connect a lamp to it, but not only after a certain time.
If only briefly the door is opened and closed, no message should come, hence the 60 seconds.
Attachments
Selly.png
Selly.png (38.63 KiB) Viewed 525 times
JonyBCN
Posts: 39
Joined: Tuesday 24 May 2016 22:39
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Door Contact after a certain time to turn on a lamp ?

Post by JonyBCN »

That code won't work. There is no timer there.

I ran into the problem in a similar case and solved it with another dummy switch. For example, you can call it "freezer Timer"

You make it turn on 60 seconds after opening the door. And if the timer is on and the fridge opens, then you turn on the light. Of course, remember to turn off the dummy switch when closing the fridge.

Attached example made with devices that I already had, replace "puerta lavabo"with "freezer door", "modo ducha" with "freezer Timer" and "luz comedor" with "living room"
Attachments
Screenshot_6.png
Screenshot_6.png (30.9 KiB) Viewed 483 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest