Add dynamic parameters to notifications

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
Post Reply
DomoJev
Posts: 23
Joined: Friday 16 June 2017 23:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Add dynamic parameters to notifications

Post by DomoJev » Saturday 02 September 2017 23:20

I have a binary sensor that is being used in a doorbell detection system. When the doorbell rings, I should get a notification on my phone. I noticed however Android's notification system is quite unreliable. Notifications sometimes are delayed for up to several hours. On the phone, you'll see a notification popup marked "2 hour ago", but this may be 120 minutes ago, but also 150 minutes or maybe 91 minutes ago.

I would like to propose to add dynamic parameters in the optional "Custom message" notification strings. For example: adding "%t" in the string should be replaced by the time the notification was created by domoticz. Other flags could translate to date, day of week, counters, values, whatever.

Number8
Posts: 261
Joined: Friday 23 May 2014 7:55
Target OS: Raspberry Pi
Domoticz version: 3.5103
Location: Saint Pierre de Jards
Contact:

Re: Add dynamic parameters to notifications

Post by Number8 » Sunday 03 September 2017 7:05

I support this request. Would be great to add to the message the current value of the sensor that triggered the notification

rickvanakkeren
Posts: 33
Joined: Thursday 03 December 2015 14:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Add dynamic parameters to notifications

Post by rickvanakkeren » Sunday 03 September 2017 9:44

Yup, this one I like also!

roblom
Posts: 565
Joined: Wednesday 26 February 2014 16:28
Target OS: Raspberry Pi
Domoticz version:
Location: the Netherlands
Contact:

Re: Add dynamic parameters to notifications

Post by roblom » Wednesday 13 September 2017 20:53

This is possible already, only not the time if I'm right.

$name = device name
$value = the value

It is somewhere in a wiki but I can't find it. The above does work but maybe there are more.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests