Announcement

Collapse
No announcement yet.

HS3 Pushover Plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mrhappy
    replied
    Originally posted by Freddan101 View Post
    I finally got around to test the setting and it works great. Sending glance message with 5 mins between is no problem but I've been careful not to send too many.

    My idea is to send a new glance message when the house is armed or unarmed. If this hasn't happened in 30 min an update with outdoor temperature and other data is sent. Just need to figure out what kind of info I would like to see.

    Is it possible to send html code, like setting the text to green if the house is unarmed?
    Some HTML tags are supported including text colours, see here - https://pushover.net/api#html - so just put the HTML in the message field.

    I am not sure how they follow through to the watch glance messages though, I can't test them.

    Originally posted by ez1976 View Post
    Hey guys.
    i am trying to add a pushover message to an event i am creating via script.
    the idea is when i set a timer from the app, it will add the event and send a push to notify the event has been created.

    i tried using
    hs.PluginFunction("Pushover 3P", "", "Pushscript", New Object() {"All Clients", pir_name & " Offline","Circle Problem", "emergency", "Tug Boat", Nothing, Nothing, "A.I Emergency"})
    but i get this message in the log:

    Running script(2) &hs.PluginFunction("Pushover 3P", "", "Pushscript", New Object() {"All Clients", pir_name & " Offline","Circle Problem", "emergency", "Tug Boat", Nothing, Nothing, "A.I Emergency"}), init error: Expected end of statement


    i am running this via immediate script
    when am i missing?
    As said by others try &nhs but be aware that pir_name is a variable and you are trying to send it by immediate script command which will not have that variable declared. This works for me,

    &nhs.PluginFunction("Pushover 3P", "", "Pushscript", New Object() {"All Clients", "Offline","Circle Problem", "emergency", "Tug Boat", Nothing, Nothing, "A.I Emergency"})

    Leave a comment:


  • donstephens
    replied
    no, sorry to be unclear.

    nhs.plugin not hs.plugin.

    Leave a comment:


  • ez1976
    replied
    Originally posted by donstephens View Post
    I can't remember the exact syntax but try nhs.hs.PluginFunction("Pushover 3P", "", "Pushscript", New Object() {"All Clients", pir_name & " Offline","Circle Problem", "emergency", "Tug Boat", Nothing, Nothing, "A.I Emergency"})
    hs.hs.PluginFunction? is this correct?

    Leave a comment:


  • donstephens
    replied
    I can't remember the exact syntax but try nhs.hs.PluginFunction("Pushover 3P", "", "Pushscript", New Object() {"All Clients", pir_name & " Offline","Circle Problem", "emergency", "Tug Boat", Nothing, Nothing, "A.I Emergency"})

    Leave a comment:


  • ez1976
    replied
    Add pushover message to event via script

    Hey guys.
    i am trying to add a pushover message to an event i am creating via script.
    the idea is when i set a timer from the app, it will add the event and send a push to notify the event has been created.

    i tried using
    hs.PluginFunction("Pushover 3P", "", "Pushscript", New Object() {"All Clients", pir_name & " Offline","Circle Problem", "emergency", "Tug Boat", Nothing, Nothing, "A.I Emergency"})
    but i get this message in the log:

    Running script(2) &hs.PluginFunction("Pushover 3P", "", "Pushscript", New Object() {"All Clients", pir_name & " Offline","Circle Problem", "emergency", "Tug Boat", Nothing, Nothing, "A.I Emergency"}), init error: Expected end of statement


    i am running this via immediate script
    when am i missing?

    Leave a comment:


  • Freddan101
    replied
    Originally posted by mrhappy View Post
    It is possible, the entry is

    MessageDelay = Convert.ToByte(hs.GetINISetting("Settings", "GlanceDelay", "20", gINIFILE))

    So adding the GlanceDelay=30 under the [Settings] key should work (you would need to restart the plugin). Be advised that Pushover advice concerning this is - "When sending data to the Apple Watch, we recommend at least 20 minutes between each call. If you have pushed too much data and WatchOS stops processing updates, this resets overnight." which is why I set it to 20, it might be unpredictable if set lower.
    I finally got around to test the setting and it works great. Sending glance message with 5 mins between is no problem but I've been careful not to send too many.

    My idea is to send a new glance message when the house is armed or unarmed. If this hasn't happened in 30 min an update with outdoor temperature and other data is sent. Just need to figure out what kind of info I would like to see.

    Is it possible to send html code, like setting the text to green if the house is unarmed?

    Leave a comment:


  • andyf
    replied
    Thanks mrhappy. My problem is resolved with .35 on my SEL running Linux.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by andyf View Post
    This is probably something simple. I've updated to HS3 to v379. There were changes made to the .INI API calls I think. I just noticed while trying to change a devices name by removing a device and adding it with a new name that the list contained some garbage which I couldn't get rid of using the Config section. Disabling and re-enabling the plug-in showed it finding weird devices. I had to edit the .INI file to remove the erroneous entries.

    There should be only AJF-iPad & AJF-iPhone6. The goal was to change AJF-iPhone to AJF-iPhone6.


    Nov-03 6:49:48 AM Pushover 3P Glance Message Delay Value 20
    Nov-03 6:49:48 AM Pushover 3P Starting Flood Control Timer
    Nov-03 6:49:46 AM Pushover 3P Clients - : -
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPhone6 : Nothing
    Nov-03 6:49:46 AM Pushover 3P Clients :
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPad : Nothing
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPhone : AJF-iPhone
    Nov-03 6:49:46 AM Pushover 3P Attempting To Produce a Client/Group List

    It also resulted in the device AJF-iPhone6 showing as Offline in Pushover web site and will not receive notifications although it will receive the message. I've asked Pushover about that.

    Current Date/Time: 11/3/2017 7:38:23 AM
    HomeSeer Version: HS3 Standard Edition 3.0.0.379
    Linux version: Linux hometrollerSEL 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:56:17 UTC 2014 i686 i686 i686 GNU/Linux System Uptime: 1 Day 14 Hours 46 Minutes 53 Seconds
    IP Address: 10.0.1.11
    Number of Devices: 173
    Number of Events: 141
    Available Threads: 199
    HSTouch Enabled: True
    Event Threads: 0
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    Plugin Callback Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed:

    Enabled Plug-Ins
    2.0.22.0: BLOccupied
    0.0.0.27: drhsIpPlugIn
    3.0.0.39: EasyTrigger
    3.0.6.22: Insteon
    3.0.1.109: PHLocation
    0.0.0.34: Pushover 3P
    3.0.1.152: Z-Wave
    I've fixed this I think in version .35 (I've not checked Linux as that might be an issue), changed it so the client gets marked as removed in the ini file and when the plugin loads back up it does not attempt to put the client in again. That is the only change so anyone that does not need to fix that does not need to worry.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by fksk View Post
    This plugin is FANTASTIC, gonna send a donation!

    Here's one question/idea -> can you drop variable values into the messages?

    For example, start a counter when a door is opened. The plug sends the following once the door is closed:

    "The front door has been closed. It was open for 3:42."
    Thanks for the feedback, the plugin supports HomeSeers own replacement variables in the message title, body and the URL. One of those replacement variables is to get the name of a timer (http://help.homeseer.com/help/HS3/st...ment_variables) - so in the message you would do;

    Code:
    The front door has been closed. It was open for $$TIMER:door_timer:
    Where door timer was the name of your timer, you will have to check the formatting of these as from memory the formatting was a bit longer than you wish for. If so might be worthwhile checking the option in HS to create devices from counters/timers, then in the message instead of $$TIMER you could do $$DSR which gets the device status of a given device reference.

    Leave a comment:


  • fksk
    replied
    This plugin is FANTASTIC, gonna send a donation!

    Here's one question/idea -> can you drop variable values into the messages?

    For example, start a counter when a door is opened. The plug sends the following once the door is closed:

    "The front door has been closed. It was open for 3:42."

    Leave a comment:


  • mrhappy
    replied
    Originally posted by mbg0333 View Post
    I have tried to search thru the 40 pages of responses but cant find my answer.


    Can you respond to a pushover notification?

    For example, if I use BLLAN to track my phone wifi connectivity.

    Can I send a pushover notification when I connect asking do I want to open the garage and be able to answer YES or NO?

    Any ideas?
    No - thats really outside the ability of pushover itself which does not allow for that, the only response you can do is from an emergency message and that is only to ack the receipt of that message. I'd suggest a look at Pushbullet as I think that may have at some point allowed something similar.

    Leave a comment:


  • mbg0333
    replied
    I have tried to search thru the 40 pages of responses but cant find my answer.


    Can you respond to a pushover notification?

    For example, if I use BLLAN to track my phone wifi connectivity.

    Can I send a pushover notification when I connect asking do I want to open the garage and be able to answer YES or NO?

    Any ideas?

    Leave a comment:


  • mrhappy
    replied
    Originally posted by andyf View Post
    This is probably something simple. I've updated to HS3 to v379. There were changes made to the .INI API calls I think. I just noticed while trying to change a devices name by removing a device and adding it with a new name that the list contained some garbage which I couldn't get rid of using the Config section. Disabling and re-enabling the plug-in showed it finding weird devices. I had to edit the .INI file to remove the erroneous entries.

    There should be only AJF-iPad & AJF-iPhone6. The goal was to change AJF-iPhone to AJF-iPhone6.


    Nov-03 6:49:48 AM Pushover 3P Glance Message Delay Value 20
    Nov-03 6:49:48 AM Pushover 3P Starting Flood Control Timer
    Nov-03 6:49:46 AM Pushover 3P Clients - : -
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPhone6 : Nothing
    Nov-03 6:49:46 AM Pushover 3P Clients :
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPad : Nothing
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPhone : AJF-iPhone
    Nov-03 6:49:46 AM Pushover 3P Attempting To Produce a Client/Group List

    It also resulted in the device AJF-iPhone6 showing as Offline in Pushover web site and will not receive notifications although it will receive the message. I've asked Pushover about that.

    Current Date/Time: 11/3/2017 7:38:23 AM
    HomeSeer Version: HS3 Standard Edition 3.0.0.379
    Linux version: Linux hometrollerSEL 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:56:17 UTC 2014 i686 i686 i686 GNU/Linux System Uptime: 1 Day 14 Hours 46 Minutes 53 Seconds
    IP Address: 10.0.1.11
    Number of Devices: 173
    Number of Events: 141
    Available Threads: 199
    HSTouch Enabled: True
    Event Threads: 0
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    Plugin Callback Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed:

    Enabled Plug-Ins
    2.0.22.0: BLOccupied
    0.0.0.27: drhsIpPlugIn
    3.0.0.39: EasyTrigger
    3.0.6.22: Insteon
    3.0.1.109: PHLocation
    0.0.0.34: Pushover 3P
    3.0.1.152: Z-Wave
    Thanks for reporting this - I think you are correct and there has been mention of it but forgot that I actually use the method that has probably broken. It is because I split the line on Chr(0) and I think that character has changed so I probably need to look at it again. I'll pop it on the list to fix.

    Leave a comment:


  • andyf
    replied
    This is probably something simple. I've updated to HS3 to v379. There were changes made to the .INI API calls I think. I just noticed while trying to change a devices name by removing a device and adding it with a new name that the list contained some garbage which I couldn't get rid of using the Config section. Disabling and re-enabling the plug-in showed it finding weird devices. I had to edit the .INI file to remove the erroneous entries.

    There should be only AJF-iPad & AJF-iPhone6. The goal was to change AJF-iPhone to AJF-iPhone6.


    Nov-03 6:49:48 AM Pushover 3P Glance Message Delay Value 20
    Nov-03 6:49:48 AM Pushover 3P Starting Flood Control Timer
    Nov-03 6:49:46 AM Pushover 3P Clients - : -
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPhone6 : Nothing
    Nov-03 6:49:46 AM Pushover 3P Clients :
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPad : Nothing
    Nov-03 6:49:46 AM Pushover 3P Clients AJF-iPhone : AJF-iPhone
    Nov-03 6:49:46 AM Pushover 3P Attempting To Produce a Client/Group List

    It also resulted in the device AJF-iPhone6 showing as Offline in Pushover web site and will not receive notifications although it will receive the message. I've asked Pushover about that.

    Current Date/Time: 11/3/2017 7:38:23 AM
    HomeSeer Version: HS3 Standard Edition 3.0.0.379
    Linux version: Linux hometrollerSEL 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:56:17 UTC 2014 i686 i686 i686 GNU/Linux System Uptime: 1 Day 14 Hours 46 Minutes 53 Seconds
    IP Address: 10.0.1.11
    Number of Devices: 173
    Number of Events: 141
    Available Threads: 199
    HSTouch Enabled: True
    Event Threads: 0
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    Plugin Callback Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed:

    Enabled Plug-Ins
    2.0.22.0: BLOccupied
    0.0.0.27: drhsIpPlugIn
    3.0.0.39: EasyTrigger
    3.0.6.22: Insteon
    3.0.1.109: PHLocation
    0.0.0.34: Pushover 3P
    3.0.1.152: Z-Wave

    Leave a comment:


  • mrhappy
    replied
    Originally posted by Freddan101 View Post
    Sorry if this already has been answered but is it possible to override "Glance Message Delay Value 20" by adding an entry to the ini file?
    It is possible, the entry is

    MessageDelay = Convert.ToByte(hs.GetINISetting("Settings", "GlanceDelay", "20", gINIFILE))

    So adding the GlanceDelay=30 under the [Settings] key should work (you would need to restart the plugin). Be advised that Pushover advice concerning this is - "When sending data to the Apple Watch, we recommend at least 20 minutes between each call. If you have pushed too much data and WatchOS stops processing updates, this resets overnight." which is why I set it to 20, it might be unpredictable if set lower.

    Leave a comment:

Working...
X