Notification domoticz app event
Posted: Friday 23 March 2018 13:25
It is possible to send a notifcation to the domoticz app through a script? I tried DZVents, LUA and Blocky, nothing seems to work
Open source Home Automation System
https://forum.domoticz.com/
Can you please elaborate a little bit more what you try to achieve here and with what version of domoticz / dzVents / OS ?roetenbergr wrote: ↑Friday 23 March 2018 13:25 It is possible to send a notifcation to the domoticz app through a script? I tried DZVents, LUA and Blocky, nothing seems to work
Code: Select all
domoticz.notify('Your sub', 'Your text', domoticz.PRIORITY_NORMAL, domoticz.NSS_GOOGLE_CLOUD_MESSAGING)
No idea if Cloud messaging also works with an Iphone but the script could look (in it's most simple form) like belowveerboot007 wrote: ↑Monday 04 May 2020 12:27 I was wondering how you did this. Im olso looking for notifications in de native domoticz app. For example: if the doorbell rings i want to receive a notification in the app...
Could you help me out with sharing the "code" in dzVents..?
Domoticz version 2020-2 on raspberry 3b and Iphone app.
Code: Select all
return
{
on =
{
devices =
{
'Bel',
},
},
execute = function(dz, item)
if item.active then
dz.notify('Bel', 'Someone at the door', dz.PRIORITY_NORMAL,nil,nil,dz.NSS_FIREBASE_CLOUD_MESSAGING)
end
end
}