Message to a unique user?  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Peterus
Posts: 15
Joined: Wednesday 09 October 2019 14:34
Target OS: Linux
Domoticz version: 2021.1
Location: Stockholm, Sweden
Contact:

Message to a unique user?

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Message to a unique user?

Post 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 ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Peterus
Posts: 15
Joined: Wednesday 09 October 2019 14:34
Target OS: Linux
Domoticz version: 2021.1
Location: Stockholm, Sweden
Contact:

Re: Message to a unique user?

Post 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?!
Peterus
Posts: 15
Joined: Wednesday 09 October 2019 14:34
Target OS: Linux
Domoticz version: 2021.1
Location: Stockholm, Sweden
Contact:

Re: Message to a unique user?  [Solved]

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest