Announcement

Collapse
No announcement yet.

HS3 Pushover Plugin

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

  • mikee123
    replied
    I just updated the event (as I deleted the defunct clients). This time it did not send to MikeS6 and LoungeTablet, but it did send to JustA3 and SM-T320

    .
    Attached Files

    Leave a comment:


  • mikee123
    replied
    Originally posted by mrhappy View Post
    Can you screenshot your event (when it is saved, not open) please? It should show the client names separated by a comma.

    This is a test event I created. This one does not send to JustA3 nor LoungeTablet, but sends to SM-T320 and MikeS6. JustS5mini and KitchenTablet do not exist any more. I have deleted them from pushover, and tested again (with other events) to see if that was the issue. It wasnt.

    .
    Attached Files

    Leave a comment:


  • SNX
    replied
    Originally posted by mrhappy View Post
    Try to add another parameter on, when Pushover changed their API to support sending messages with attachments I added another parameter.

    This is the path to the attachment which is most cases will be nothing, try;

    Code:
    Public Sub Main(ByVal Parms As Object)
        Try
            Dim CO(8) As Object
    
            CO(0) = "Automation-Group"
            CO(1) = "HomeSeer"
            CO(2) = "Test"
            CO(3) = Nothing
            CO(4) = Nothing
            CO(5) = Nothing
            CO(6) = Nothing
            CO(7) = Nothing
    	CO(8) = Nothing
    
            hs.PluginFunction("PushOver 3P", "", "Pushscript", CO)
          
            Catch ex As Exception
                hs.WriteLog("Error", "Exception in script SendPush.vb " & ex.Message)
    
        End Try
    End Sub

    That did it. Thanks again!

    Leave a comment:


  • mrhappy
    replied
    Originally posted by mikee123 View Post
    First I tried with the picture message. As that was not working as expected, I tried a normal push message without any attachment. I have to set up 2 seperate push actions, one for each client. Which I'm sure should not be necessary. I just cant work out why. All clients doesnt work properly either. It sends to 2 clients but not all. But the clients are set up ok as if I send them just to 1 client all works fine. So its only when I try to send a message to multiple or all clients
    Can you screenshot your event (when it is saved, not open) please? It should show the client names separated by a comma.

    Leave a comment:


  • mikee123
    replied
    Originally posted by mrhappy View Post
    Just to clarify as I might have seen your post before you edited it - you can only send one image per message that is correct, that is a Pushover limitation.

    Are you saying for messages with an attachment image you are sending to more than one client and it is not working? Is it the whole message that is not arriving on the second client or just the image?

    This again could be a Pushover limitation as it says "Note that, like messages, once attachments are downloaded by the device, they are deleted from our servers and only stored on the device going forward" - it could be that indeed things are being removed from the Pushover server so the second or nth client can't access the image. I just wish to make sure that is all before I start playing around.

    First I tried with the picture message. As that was not working as expected, I tried a normal push message without any attachment. I have to set up 2 seperate push actions, one for each client. Which I'm sure should not be necessary. I just cant work out why. All clients doesnt work properly either. It sends to 2 clients but not all. But the clients are set up ok as if I send them just to 1 client all works fine. So its only when I try to send a message to multiple or all clients

    Leave a comment:


  • mrhappy
    replied
    Originally posted by SNX View Post
    Having trouble getting a simple example working. No errors in the logs and the plugin does work perfectly when used via an event. Took this from an early post in the thread:

    Code:
    Public Sub Main(ByVal Parms As Object)
        Try
            Dim CO(7) As Object
            CO(0) = "Automation-Group"
            CO(1) = "HomeSeer"
            CO(2) = "Test"
            CO(3) = Nothing
            CO(4) = Nothing
            CO(5) = Nothing
            CO(6) = Nothing
            CO(7) = Nothing
    	
            hs.PluginFunction("PushOver 3P", "", "Pushscript", CO)
          
            Catch ex As Exception
                hs.WriteLog("Error", "Exception in script SendPush.vb " & ex.Message)
    
        End Try
    End Sub
    When I try executing this with either tenScripting3 or as a script in a dummy event, nothing happens.

    Great plugin BTW. Been using PushOver for years at work.

    Thanks!

    Current Date/Time: 4/26/2018 4:19:30 PM
    HomeSeer Version: HS3 Standard Edition 3.0.0.425
    Operating System: Microsoft Windows 10 Enterprise 2016 LTSB - Work Station
    System Uptime: 1 Day 23 Hours 42 Minutes 37 Seconds
    IP Address: 192.168.50.40
    Number of Devices: 156
    Number of Events: 35
    Available Threads: 200
    HSTouch Enabled: True
    Event Threads: 0
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed: Windows Defender

    Enabled Plug-Ins
    5.0.0.59: Global Cache Pro
    3.0.2.8: OMNI
    0.0.0.38: Pushover 3P
    Try to add another parameter on, when Pushover changed their API to support sending messages with attachments I added another parameter.

    This is the path to the attachment which is most cases will be nothing, try;

    Code:
    Public Sub Main(ByVal Parms As Object)
        Try
            Dim CO(8) As Object
    
            CO(0) = "Automation-Group"
            CO(1) = "HomeSeer"
            CO(2) = "Test"
            CO(3) = Nothing
            CO(4) = Nothing
            CO(5) = Nothing
            CO(6) = Nothing
            CO(7) = Nothing
    	CO(8) = Nothing
    
            hs.PluginFunction("PushOver 3P", "", "Pushscript", CO)
          
            Catch ex As Exception
                hs.WriteLog("Error", "Exception in script SendPush.vb " & ex.Message)
    
        End Try
    End Sub

    Leave a comment:


  • SNX
    replied
    Pushover Scripting

    Having trouble getting a simple example working. No errors in the logs and the plugin does work perfectly when used via an event. Took this from an early post in the thread:

    Code:
    Public Sub Main(ByVal Parms As Object)
        Try
            Dim CO(7) As Object
            CO(0) = "Automation-Group"
            CO(1) = "HomeSeer"
            CO(2) = "Test"
            CO(3) = Nothing
            CO(4) = Nothing
            CO(5) = Nothing
            CO(6) = Nothing
            CO(7) = Nothing
    	
            hs.PluginFunction("PushOver 3P", "", "Pushscript", CO)
          
            Catch ex As Exception
                hs.WriteLog("Error", "Exception in script SendPush.vb " & ex.Message)
    
        End Try
    End Sub
    When I try executing this with either tenScripting3 or as a script in a dummy event, nothing happens.

    Great plugin BTW. Been using PushOver for years at work.

    Thanks!

    Current Date/Time: 4/26/2018 4:19:30 PM
    HomeSeer Version: HS3 Standard Edition 3.0.0.425
    Operating System: Microsoft Windows 10 Enterprise 2016 LTSB - Work Station
    System Uptime: 1 Day 23 Hours 42 Minutes 37 Seconds
    IP Address: 192.168.50.40
    Number of Devices: 156
    Number of Events: 35
    Available Threads: 200
    HSTouch Enabled: True
    Event Threads: 0
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed: Windows Defender

    Enabled Plug-Ins
    5.0.0.59: Global Cache Pro
    3.0.2.8: OMNI
    0.0.0.38: Pushover 3P

    Leave a comment:


  • mrhappy
    replied
    Originally posted by mikee123 View Post
    I did get the pictures to be sent. Looks as if I can only send 1 picture per message ? But thats fine.

    What is strange, I usually only tick 1 recipient on the list of recipients in teh pushover event. Now my wife also wants the messages. So I ticked her phone to as recipient. She will get them, but I dont any more. Even if I tick send to all recipients (I have 6) it only send to a couple of the recipients. If I use a seperate message for each recipient, it sends ok.
    Just to clarify as I might have seen your post before you edited it - you can only send one image per message that is correct, that is a Pushover limitation.

    Are you saying for messages with an attachment image you are sending to more than one client and it is not working? Is it the whole message that is not arriving on the second client or just the image?

    This again could be a Pushover limitation as it says "Note that, like messages, once attachments are downloaded by the device, they are deleted from our servers and only stored on the device going forward" - it could be that indeed things are being removed from the Pushover server so the second or nth client can't access the image. I just wish to make sure that is all before I start playing around.

    Leave a comment:


  • mikee123
    replied
    Message not sending to multiple clients

    I did get the pictures to be sent. Looks as if I can only send 1 picture per message ? But thats fine.

    What is strange, I usually only tick 1 recipient on the list of recipients in teh pushover event. Now my wife also wants the messages. So I ticked her phone to as recipient. She will get them, but I dont any more. Even if I tick send to all recipients (I have 6) it only send to a couple of the recipients. If I use a seperate message for each recipient, it sends ok.
    Last edited by mikee123; April 24, 2018, 03:22 PM.

    Leave a comment:


  • MichaelK
    replied
    Originally posted by gjelsvik View Post
    I get this error when adding a simple event to send a push message:

    "
    Apr-19 15:11:28 Pushover 3P Unknown Exception in Pushmessage Objektreferanse er ikke satt til en objektforekomst.
    Apr-19 15:11:28 Pushover 3P Attachment does not exist - check path/file status and try again - will send plain message"

    In english: Objectreference is not set to an instance of an object.

    It also looks as if its trying to send an attachement.
    I also get that. I don't know what's causing it (haven't had a chance to troubleshoot).

    Leave a comment:


  • mrhappy
    replied
    Originally posted by gjelsvik View Post
    Yes it was only this one event. And I can reproduce it by letting the "Message body" field be empty. (Only contains the placeholder text)

    If i replace the text with my own text it works fine.
    OK I will fix it but this is probably saving you from another error, you cannot send a message without a message body (the title is optional but not the body), it will just get rejected by Pushover. I'll put something in to save you from the error, I'm planning a bit of an update with some new (hopefully nice) new features so it will be fixed then.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by mikee123 View Post
    I have just seen rpade's post with his 'intruder' picture attached to a push notification. How could I do that ? I have cameras which take snapshots and save these for example when my doorbell rings. These get emailed to me via a script (A nice and helpful person wrote it for me, far too complicated for me to understand)
    But that means I have to click on the attachments. I like the idea of sending a push message with a picture attached
    Pushover added a new option in clients to attach an image to a message embedded in the message rather than sent as any kind of link. These images must exist on your PC somewhere as a file (which I guess that they do considering they are being emailed to you), here is some information here - https://updates.pushover.net/post/17...th-pushover-30

    All you need to do is put the path to the file in the event attachment field and the plugin should do the rest.

    Leave a comment:


  • mikee123
    replied
    I have just seen rpade's post with his 'intruder' picture attached to a push notification. How could I do that ? I have cameras which take snapshots and save these for example when my doorbell rings. These get emailed to me via a script (A nice and helpful person wrote it for me, far too complicated for me to understand)
    But that means I have to click on the attachments. I like the idea of sending a push message with a picture attached

    Leave a comment:


  • gjelsvik
    replied
    Originally posted by mrhappy View Post
    That is quite puzzling, are you saying that every other pushover event works OK apart from just this one? What about creating new events - do they work? If other events work OK then I would suggest deleting this event as bad data may have ended up stored in the event properties. This really should not happen however I would like to rule out that being an issue.
    Yes it was only this one event. And I can reproduce it by letting the "Message body" field be empty. (Only contains the placeholder text)

    If i replace the text with my own text it works fine.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by gjelsvik View Post
    I get this error when adding a simple event to send a push message:

    "
    Apr-19 15:11:28 Pushover 3P Unknown Exception in Pushmessage Objektreferanse er ikke satt til en objektforekomst.
    Apr-19 15:11:28 Pushover 3P Attachment does not exist - check path/file status and try again - will send plain message"

    In english: Objectreference is not set to an instance of an object.

    It also looks as if its trying to send an attachement.

    This is the event:
    https://forums.homeseer.com/attachme...1&d=1524144235

    I have other events, that works fine:
    https://forums.homeseer.com/attachme...1&d=1524144235
    That is quite puzzling, are you saying that every other pushover event works OK apart from just this one? What about creating new events - do they work? If other events work OK then I would suggest deleting this event as bad data may have ended up stored in the event properties. This really should not happen however I would like to rule out that being an issue.

    Leave a comment:

Working...
X