If you have a multi-line text field saved as a variable, you can use that variable in the pushover message and it will do the carriage returns.
If you are going to have to write a script to build the variable first, either include sending the pushover message from that script or add a slight delay to allow the script to run before the pushover plugin fires.
Most of my pushover actions are currently done via python script outside of the plugin so I can segregate my notifications by type. I've created Application APIs for various subjects (Climate, Security, Network, Motion, Access Control, etc.)
This is one I use with the Fing plugin to notify me via email, pushover and indigo log entry when a new device joins my network. (I stole this from someone else on the forum... credit to that guy

)
- Code: Select all
ipDev = indigo.variables["ipDevsNewDeviceNo"]
ipDevVarNumber = ipDev.value.split(";")[0]
devName = ipDev.value.split(";")[1]
dev = indigo.devices[devName]
st = dev.states # shortcut
theSubject = "New device on network: " + st["ipNumber"]
theBody = "New device on network: " + st["ipNumber"] +"\n"
theBody += "MACNumber: " +st["MACNumber"] +"\n"
theBody += "hardwareVendor: " +st["hardwareVendor"] +"\n"
theBody += "indigoID: " +str(dev.id) +"\n"
theBody += "Name : " +devName +"\n"
indigo.server.log(theBody)# also send it to the indigo log file
indigo.server.sendEmailTo("YourEmail@gmail.com", subject=theSubject, body=theBody)
import requests
r = requests.post("https://api.pushover.net/1/messages.json", data = {
"token": "ApplicationToken", #your application token, I used a specific one for network
"user": "YourPushoverUserNumber",
"message": theBody
})
print(r.text)
I hope that helps. FYI, I never figured out how to do a pushover subject line via python.... my script only captures the subject line for the email part of my script.