Page 1 of 1

Message to a unique user?

Posted: Thursday 09 January 2020 0:42
by Peterus
Hi all

Is there any way I can write a script to send a message (GCM) to a unique user (UUID or Name of device?) and not to all?
I would like to set up so my neighbor gets a notification in case my alarm triggers.
He don't want to see any other notifications from my system.

Kind regards
Peter

Re: Message to a unique user?

Posted: Thursday 09 January 2020 15:10
by waaren
Peterus wrote: Thursday 09 January 2020 0:42 Is there any way I can write a script to send a message (GCM) to a unique user (UUID or Name of device?) and not to all?
I would like to set up so my neighbor gets a notification in case my alarm triggers.
He don't want to see any other notifications from my system.
I guess this is only possible if you know a url that would do that for you. I don't know of such an option in GCM but maybe others?
Does it have to be GCM or can it be one of the other notification subsystems ?

Re: Message to a unique user?

Posted: Thursday 09 January 2020 16:04
by Peterus
A unique subsystem would solve it but it should be possible don't you think?
If you can send a test message for just one user/device it should be possible even in Dzvents?!

Re: Message to a unique user?  [Solved]

Posted: Monday 06 July 2020 16:53
by Peterus
I just found out how to do it:

domoticz.notify('headline', 'message', domoticz.PRIORITY_NORMAL, '', 'midx_1', domoticz.NSS_FIREBASE)
midx being the mobile phone listed in the Mobile Devices section.

Thank you waaren