How to send a push-notification with image out of Domoticz
Download & Install
The Pushsafer Notification-Plugin is preinstalled from version 3.5687.
the transmission and display of an image in a push-notification needs version >=3.7153
Usage
available from Version >3.7502
To customize your notification to your fit, you can enter Pushsafer parameters in the Custom Message
field.
The following parameters are available and must always be entered separately in this order by a PIPE character!
The domoticz priority
is passed throught the pr
parameter of pushsafer!
PrivateOrAliasKey|DeviceID|Icon|Sound|Vibration|Title|Message|ImageURL|URL|URLTitle|Time2Live
Examples
XXXXXXXXXXXXXXXXXXXX|269|82|6|3|Domoticz|Switch on|http://user:pass@192.168.2.28:8080/snapshot.cgi|http://www.pushsafer.com|Open Pushsafer|1000
XXXXXXXXXXXXXXX||83|7|1|Domoticz|Switch off|http://user:pass@192.168.2.28:8080/snapshot.cgi|||0
return { on = { devices = { 'Switch' --Device Name } }, logging = { level = domoticz.LOG_DEBUG, marker = 'PushsaferLog', }, execute = function(domoticz, device) domoticz.notify("subject","PrivateOrAliasKey|DeviceID|Icon|Sound|Vibration|Title|Message|ImageURL|URL|URLTitle|Time2Live", domoticz.PRIORITY_NORMAL,nil,nil,domoticz.NSS_PUSHSAFER) end }
return { on = { devices = { 'Switch' --Device Name } }, logging = { level = domoticz.LOG_DEBUG, marker = 'PushsaferLog', }, execute = function(domoticz, device) domoticz.notify("subject","PrivateOrAliasKey|DeviceID|11|12|3|dzVents " .. device.name .. " is " .. device.state .. "|Test Message|http://admin:ks1605@192.168.2.222:8088//tmpfs/snap.jpg|https://www.pushsafer.com|Open Pushsafer|0", domoticz.PRIORITY_NORMAL,nil,nil,domoticz.NSS_PUSHSAFER) end }