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
Message to a unique user? [Solved]
Moderator: leecollings
- 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?
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?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.
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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?
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?!
If you can send a test message for just one user/device it should be possible even in Dzvents?!
-
- 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]
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
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
Who is online
Users browsing this forum: No registered users and 1 guest