I use this in scripting.
Code:
local action = event["payloads"][2]
--print (action)
local msg = "Security system mode changed to " .. action
-- setup the three required fields of the request table:
local request = {
message = msg -- your message
}
-- Some optional parameters may be included: device, title, url, url_title, priority, timestamp, sound
-- Read more about the parameters on: https://pushover.net/api
-- send the request, don't forget to check the return values
pushover.backend.instance:sendmsg(request)