Send email notifications when someone ring at the door

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
florfilla19
Posts: 8
Joined: Friday 18 October 2019 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Send email notifications when someone ring at the door

Post by florfilla19 »

Hello Team,

I'm requesting your help regarding a Ziglint Doorbell which I used with a homemade Rflink.
Actually the doorbell is detected like a Mertik_GV60 device.
Email sending is allready configured and works well

Good news, I have a new line created under the logs when someone is pressing the button.
Can you help me to send an email notification when this event happen ?

Link to the used Doorbell: https://www.amazon.co.uk/ZIGLINT-Waterp ... B07JGNXGL6

Logs from domoticz:

Code: Select all

2020-11-28 22:29:26.724 Sunrise: 07:19:00 SunSet: 15:58:00
2020-11-28 22:29:26.725 Day length: 08:39:00 Sun at south: 11:39:00
2020-11-28 22:29:26.725 Civil twilight start: 06:43:00 Civil twilight end: 16:34:00
2020-11-28 22:29:26.725 Nautical twilight start: 06:04:00 Nautical twilight end: 17:13:00
2020-11-28 22:29:26.725 Astronomical twilight start: 05:26:00 Astronomical twilight end: 17:51:00
2020-11-28 22:29:26.553 Status: Domoticz V2020.2 (c)2012-2020 GizMoCuz
2020-11-28 22:29:26.553 Status: Build Hash: b63341bc0, Date: 2020-04-26 12:47:55
2020-11-28 22:29:26.554 Status: Startup Path: /home/pi/domoticz/
2020-11-28 22:29:27.066 Active notification Subsystems: email (1/13)
2020-11-28 22:29:27.163 Starting shared server on: :::6144
2020-11-28 22:29:27.051 Status: PluginSystem: Started, Python version '3.6.8'.
2020-11-28 22:29:27.087 Status: WebServer(HTTP) started on address: :: with port 8080
2020-11-28 22:29:27.109 Status: WebServer(SSL) started on address: :: with port 443
2020-11-28 22:29:27.163 Status: TCPServer: shared server started...
2020-11-28 22:29:27.164 Status: RxQueue: queue worker started...
2020-11-28 22:29:29.166 Status: EventSystem: reset all events...
2020-11-28 22:29:29.167 Status: NotificationSystem: thread started...
2020-11-28 22:29:29.172 Status: EventSystem: reset all device statuses...
2020-11-28 22:29:29.245 Status: PluginSystem: Entering work loop.
2020-11-28 22:29:29.316 Status: Python EventSystem: Initalizing event module.
2020-11-28 22:29:29.317 Status: EventSystem: Started
2020-11-28 22:29:29.317 Status: EventSystem: Queue thread started...
2020-11-28 22:29:29.368 Status: RFLink: Using serial port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
2020-11-28 22:29:30.293 Status: RFLink: Controller Initialized!...
2020-11-28 22:29:30.369 Status: RFLink Detected, Version: 1.1 Revision: 48 Build: 4
2020-11-29 00:00:00.723 Sunrise: 07:21:00 SunSet: 15:57:00
2020-11-29 00:00:00.723 Day length: 08:37:00 Sun at south: 11:39:00
2020-11-29 00:00:00.723 Civil twilight start: 06:45:00 Civil twilight end: 16:33:00
2020-11-29 00:00:00.723 Nautical twilight start: 06:05:00 Nautical twilight end: 17:13:00
2020-11-29 00:00:00.723 Astronomical twilight start: 05:27:00 Astronomical twilight end: 17:51:00
2020-11-29 00:00:00.724 Status: EventSystem: reset all events...
2020-11-29 11:09:43.149 Status: Incoming connection from: 192.168.1.111
2020-11-30 00:00:00.671 Sunrise: 07:22:00 SunSet: 15:57:00
2020-11-30 00:00:00.671 Day length: 08:35:00 Sun at south: 11:39:00
2020-11-30 00:00:00.671 Civil twilight start: 06:46:00 Civil twilight end: 16:33:00
2020-11-30 00:00:00.671 Nautical twilight start: 06:06:00 Nautical twilight end: 17:12:00
2020-11-30 00:00:00.671 Astronomical twilight start: 05:28:00 Astronomical twilight end: 17:50:00
2020-11-30 00:00:00.672 Status: EventSystem: reset all events...
2020-11-30 09:24:52.347 Status: Incoming connection from: 192.168.1.11
[b]2020-11-30 12:30:15.549 (RFLink433) Light/Switch (DoorBell)[/b]
2020-11-30 12:32:17.833 Status: Incoming connection from: 192.168.1.74
[b]2020-11-30 16:52:38.998 (RFLink433) Light/Switch (DoorBell)[/b]
2020-12-01 00:00:00.791 Sunrise: 07:23:00 SunSet: 15:56:00
2020-12-01 00:00:00.791 Day length: 08:33:00 Sun at south: 11:40:00
2020-12-01 00:00:00.791 Civil twilight start: 06:47:00 Civil twilight end: 16:32:00
2020-12-01 00:00:00.791 Nautical twilight start: 06:07:00 Nautical twilight end: 17:12:00
2020-12-01 00:00:00.791 Astronomical twilight start: 05:29:00 Astronomical twilight end: 17:50:00
2020-12-01 00:00:00.792 Status: EventSystem: reset all events...
2020-12-01 13:17:38.819 Status: Incoming connection from: 192.168.1.11
[b]2020-12-01 15:42:57.447 (RFLink433) Light/Switch (DoorBell)[/b]
2020-12-01 16:35:30.368 Status: Incoming connection from: 192.168.1.11
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Send email notifications when someone ring at the door

Post by waaren »

florfilla19 wrote: Tuesday 01 December 2020 21:39 Email sending is already configured and works well

Code: Select all

2020-12-01 15:42:57.447 (RFLink433) Light/Switch (DoorBell)
If you goto the switches tab and press [Notifications] on the DoorBell device, you get a new page like below
Doorbell.png
Doorbell.png (81.35 KiB) Viewed 1008 times
set the values as per the above screen and press press [Add] The next time the device is activated you should receive an Email.

Code: Select all

2020-12-01 22:03:13.931  Status: Notification: Someone at the door
2020-12-01 22:03:13.933  (RFtrx433) Lighting 2 (Doorbell)
2020-12-01 22:03:16.293  Notification sent (email) => Success
Doorbell 2.png
Doorbell 2.png (4.95 KiB) Viewed 1008 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
florfilla19
Posts: 8
Joined: Friday 18 October 2019 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Send email notifications when someone ring at the door

Post by florfilla19 »

@waaren Thanks for your reply

I have modified the notification according to your recommandations.



Image

Image

Will see if working tomoorow morning, It is too late for testing now :)
florfilla19
Posts: 8
Joined: Friday 18 October 2019 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Send email notifications when someone ring at the door

Post by florfilla19 »

Hello,

Tested today and no notifications received after pressing the doorbell.

Still able to find it in the logs btw
2020-12-03 08:32:53.789 (RFLink433) Light/Switch (DoorBell) :cry:
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Send email notifications when someone ring at the door

Post by AllesVanZelf »

This setup is working well here. But I'm using telegram and did not select the ignore interval.
Image

In my opinion Telegram is more faster and reliable then a message by mail.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Send email notifications when someone ring at the door

Post by EddyG »

florfilla19 wrote: Thursday 03 December 2020 21:01 Hello,

Tested today and no notifications received after pressing the doorbell.

Still able to find it in the logs btw
2020-12-03 08:32:53.789 (RFLink433) Light/Switch (DoorBell) :cry:
Did you configure Setup -> Settings -> Email ? AND press 'Test' to confirm sending email is working?
florfilla19
Posts: 8
Joined: Friday 18 October 2019 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Send email notifications when someone ring at the door

Post by florfilla19 »

@EddyG Yes I have allready configure setting email for gmail and test email is received properly.

I change parameter "ignore interval" to disable

Can you verify the setting for your notifications interval at the end of Notification Tab ?
I have sensor 12hours and switches direct.
Under switches 'Doorbell Status is stop'
Log / Edit / Timers buttons below are blue only notifications button is purple

Did I need to change something from this switches tab ?
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Send email notifications when someone ring at the door

Post by AllesVanZelf »

sensors 12 hours, switches direct

Just to make sure:
On the settings pages, tab other (overige in dutch) doorbell command: group on.
In my case.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Send email notifications when someone ring at the door

Post by EddyG »

florfilla19 wrote: Friday 04 December 2020 9:15 Under switches 'Doorbell Status is stop'
Mine is type Doorbell
2020-12-04_19-09-19.png
2020-12-04_19-09-19.png (14.42 KiB) Viewed 930 times
I use dzVents to send a message with picture, default to Telegram. Email is to slow.
Rest of settings is as yours.
florfilla19
Posts: 8
Joined: Friday 18 October 2019 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Send email notifications when someone ring at the door

Post by florfilla19 »

Hello mates,

Allready Doorbell Command : Command Group On

On the other hand device type is light/switch
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: Send email notifications when someone ring at the door

Post by AllesVanZelf »

Switchtype is doorbell here.
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
florfilla19
Posts: 8
Joined: Friday 18 October 2019 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Send email notifications when someone ring at the door

Post by florfilla19 »

Finnaly we made it ! Thanks all for your help.

So the clue was switching to DoorBell rather than Light Switch and creating a second Alert for Switch On or Off.
Don't remember which one it was.


RFLink433 000355C8 19 DoorBell Light/Switch Mertik_GV60 Stop -

Will now look to connect something else because this raspberry + rflink is supposed to work a little more.

If you have any ideas to make life more simple with it I'm really interested.

I used this one: https://projetsdiy.fr/mini-gateway-rfli ... oitier-3d/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests