Jump to content

Pushover with variables possible?


Go to solution Solved by maxnorth,

Recommended Posts

Posted

Hi there everyone!!

 Yes.. I am way behind the times with notifications and at the end of trying to keep e-mail to text working with any carrier (currently T-Mobile). So I have started to finally convert to Pushover after dabbling with it some 7 years ago and not following through.

So far I have most of my notifications working with Pushover the way I like, but my old notification from e-mail I used for the leak sensor / on-off modules status alerts. I searched for answers but didn't seem to find what I'm looking for and the Pushover API options didn't seem to offer more insight or I'm just not advanced enough. 

Is it possible to have a variable customization sent using Pushover? Here is the e-mail customization I'm looking to use with Pushover:

A problem has been detected with a leak or on-off sensor. Details below:

Basement Leak: ${var.2.7}
Bath Down Leak: ${var.2.8}
Bath Down Leak Sink: ${var.2.9}
Kitchen Sensor Leak: ${var.2.10}
Laundry Sensor Leak: ${var.2.11}
Master Bath Leak: ${var.2.12}
Master Sink Leak: ${var.2.13}
Bath Up Sink Leak: ${var.2.14}
Bath Up Leak: ${var.2.15}
Kitchen Water Heater Leak: ${var.2.29}
Furnace Heater System Leak: ${var.2.28}
Utility Sink Leak: ${var.2.3}
Refrigerator Leak: ${var.2.25}
Water Cooler Leak: ${var.2.26}
Washing Machine Leak: ${var.2.27}
Furnace Water Heater Leak: ${var.2.30}
On Off Basement French Door: ${var.2.17}
On Off Dining Room Slider: ${var.2.18}
On Off Family Room Slider: ${var.2.19}
On Off Front Door: ${var.2.20}
On Off Side Garage Door: ${var.2.21}
On Off Small Garage Overhead Door: ${var.2.22}
On Off Basement Door: ${var.2.23}
On Off Hallway Closet Door: ${var.2.24}

---Status Key---
1 = Heartbeat OK (normal status)
2 = Heartbeat missed
3 = Heartbeat check program not running
9 = Leak detected
----------------

Note 1: It may take up to 36 hours for a "heartbeat missed" signal to clear.

Note 2: Status Code 3 indicates the "Variable Control 2" program is not running for some reason.

  • Solution
Posted

It is. Here is the body of one of my pushover messages: "message=The garage door state is ${var.1.7} where 0 is closed"

  • Thanks 1
Posted
9 minutes ago, maxnorth said:

It is. Here is the body of one of my pushover messages: "message=The garage door state is ${var.1.7} where 0 is closed"

You Sir are awesome!! I didn't think to just put it right in the message like that!!

Just have to see if I can make one message or need to make all individual.. regardless it is possible :) !!

Thank you!!

Posted

Thanks again Maxnorth.. 

Just wanted to share the entire message is working just as it was with e-mail. I thought maybe it could create a limit issue but doesn't seem that way.

I should have done this a long time ago!

  • Like 1
Posted

Here is one of mine.....

 

Date    =  ${sys.date}
Time    =  ${sys.time}
Sunrise =  ${sys.sunrise}    
Sunset  =  ${sys.sunset}

Program Name       ${sys.program.#.name}
Program Status     ${sys.program.#.status}
Alert
Alert Details      ${alert.details}
Alert Event        ${alert.event}
Alert Date         ${alert.date}
Alert Time         ${alert.time}
Sys Node # Name    ${sys.node.#.name}
# Addr             ${sys.node.#.addr}
Sys Group # Name   ${sys.group.#.name}
# Addr             ${sys.group.#.addr}
Category           ${alert.category}
Type               ${alert.type}
Action             ${alert.action}
control            ${alert.control}
sVacant =  ${var.2.4}
sMotionOn = ${var.2.5}
sMotionOff = ${var.2.6}
iVacant =  ${var.1.28}
iMvacant = ${var.1.13}
iVacation = ${var.1.30}
iGarageAlertStatus = ${var.1.37}
iDeparture = ${var.1.39}
LeakDetectorWet = ${var.1.17}
1 - Kitchen, 2 - GuestHalfBath,  
3 - GuestBathroom, 4 - MasterBathroom
Living Room Motion     ${var.1.40}
Hall Motion            ${var.1.42}
Garage Closed          ${var.1.41}
AdjustedGarageClosed   ${var.1.50}
Program =              ${var.1.47}
${sys.program.#.status}
${alert.category}
${alert.details}

  • Like 1
Posted
Just now, Jim P said:

Here is one of mine.....

 

Date    =  ${sys.date}
Time    =  ${sys.time}
Sunrise =  ${sys.sunrise}    
Sunset  =  ${sys.sunset}

Program Name       ${sys.program.#.name}
Program Status     ${sys.program.#.status}
Alert
Alert Details      ${alert.details}
Alert Event        ${alert.event}
Alert Date         ${alert.date}
Alert Time         ${alert.time}
Sys Node # Name    ${sys.node.#.name}
# Addr             ${sys.node.#.addr}
Sys Group # Name   ${sys.group.#.name}
# Addr             ${sys.group.#.addr}
Category           ${alert.category}
Type               ${alert.type}
Action             ${alert.action}
control            ${alert.control}
sVacant =  ${var.2.4}
sMotionOn = ${var.2.5}
sMotionOff = ${var.2.6}
iVacant =  ${var.1.28}
iMvacant = ${var.1.13}
iVacation = ${var.1.30}
iGarageAlertStatus = ${var.1.37}
iDeparture = ${var.1.39}
LeakDetectorWet = ${var.1.17}
1 - Kitchen, 2 - GuestHalfBath,  
3 - GuestBathroom, 4 - MasterBathroom
Living Room Motion     ${var.1.40}
Hall Motion            ${var.1.42}
Garage Closed          ${var.1.41}
AdjustedGarageClosed   ${var.1.50}
Program =              ${var.1.47}
${sys.program.#.status}
${alert.category}
${alert.details}

Awesome.. guess I have been living in a cave.. LOL

Guest
This topic is now closed to further replies.

×
×
  • Create New...