Pushover use

Hi Rigpapa,

I’m trying to get the pushover notifications to work. Do I need to create an application token in pushover or can I use the user key?

I’ve tried both, but can’t get it to work yet. What do I put in the “PushoverUser” variable?

I do not see any errors in the logging.

*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
   Version: 3.9develop-20295.1440 config 20263 cdata 20045 ui 20190 pluginDevice 77 LuaXP not loaded
    System: openLuup version 200522 on Linux 3858c2f27237 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64 GNU/Linux; in ./; loadtime 1461088957/1603963967; systemReady 1603963972; ALTUI v2.50
       Env: Lua 5.1; JSON dkjson 2.5; UnsafeLua=nil/2
Local time: 2020-10-29T10:41:19+0100; DST=0; Zwaag, Europe Nederland; formats %d/%m/%Y %H:%M:%S
House mode: plugin 1; system 1; tracking off
  Sun data: {}
  Geofence: not running
        RS: 1603909957,1603910008,1603914890,1603956845,1603956950,1603957159,1603957376,1603959119,1603961034,1603963967
        NS: 1603957080:D,1603957201:U,1603957320:D,1603957380:U,1603957500:D,1603959120:U,1603959240:D,1603961040:U,1603961160:D,1603962122:U
************************************************************************************************************************************
Reactor Hank controller (#78)
    Version 19082.153 10/29/20 10:08:30
    Message/status: Not tripped
    Condition group "Controller" (OR)  false as of 10:40:56 <root>
      |-F-group "Button 1 push" (AND)  false as of 19:37:40 <grplbj35f0>
      |     &-F-service Four Button Scene (10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 1 [13 at 19:37:40; F/F as of 19:37:40/19:37:40] <condld4jqgp>
      |-F-group "Button 1 release" (AND)  false as of 19:37:40 <grplbu4b94>
      |     &-F-service Four Button Scene (10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 11 [13 at 19:37:40; F/F as of 19:37:40/19:37:40] <condldeckvw>
      |-F-group "Button 2 push" (AND)  false as of 19:37:40 <grpldjq10b>
      |     &-F-service Four Button Scene (10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 3 [13 at 19:37:40; F/F as of 19:37:40/19:37:40] <condldjq39z>
      |-F-group "Button 2 release" (AND)  false as of 19:37:40 <grpwlc9n3z>
      |     &-F-service Four Button Scene (10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene = 12 [13 at 19:37:40; F/F as of 19:37:40/19:37:40] <condwlc9pee>
      |-F-group "Rookmelder armed and open" (AND)  false as of 10:40:56 <grpyaqtnn7>
      |     &-F-service DWS02 Rookmelder 1 (10628) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped = 1 [1 => 0 at 10:40:56; F/F as of 10:40:56/10:40:56] <condyaqtp2o>
    Activity grpldjq10b.true
        Device Afzuiging (10483) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="1" )
    Activity grplbu4b94.true
        Run scene 30 User modes - Button Night (via luup)
    Activity grpwlc9n3z.true
        Device Afzuiging (10483) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue="0" )
        Device Afzuiging (10483) action urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget( newLoadlevelTarget="0" )
    Activity grpyaqtnn7.true
        Notify method PO nid 1: message "Er is rook in huis"; index="1"; priority="1"; title="Roolmelder alert"
    Activity grplbj35f0.true
        Run scene 29 User modes - Button Home (via luup)
    Events
        2020-10-29 10:32:47.030: Reactor startup (Luup reload)
        2020-10-29 10:32:47.030: Starting (Luup Startup/Reload)
        2020-10-29 10:32:48.056: Sensor update starting
        2020-10-29 10:32:48.058: Sensor update completed; 0.002s
        2020-10-29 10:34:23.996: Device Four Button Scene (#10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene changed from "13" to "13"
        2020-10-29 10:34:23.996: Sensor update starting
        2020-10-29 10:34:23.996: Sensor update completed; 0.001s
        2020-10-29 10:36:05.886: Device Four Button Scene (#10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene changed from "13" to "13"
        2020-10-29 10:36:05.887: Sensor update starting
        2020-10-29 10:36:05.888: Sensor update completed; 0.001s
        2020-10-29 10:37:48.252: Device Four Button Scene (#10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene changed from "13" to "13"
        2020-10-29 10:37:48.252: Sensor update starting
        2020-10-29 10:37:48.253: Sensor update completed; 0.001s
        2020-10-29 10:39:30.191: Device Four Button Scene (#10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene changed from "13" to "13"
        2020-10-29 10:39:30.191: Sensor update starting
        2020-10-29 10:39:30.192: Sensor update completed; 0.001s
        2020-10-29 10:40:46.237: Device DWS02 Rookmelder 1 (#10628) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "0" to "1"
        2020-10-29 10:40:46.237: Sensor update starting
        2020-10-29 10:40:46.237: Condition condyaqtp2o test state changed from false to true
        2020-10-29 10:40:46.237: Condition condyaqtp2o evaluation state changed from false to true
        2020-10-29 10:40:46.237: Group Rookmelder armed and open test state changed from false to true
        2020-10-29 10:40:46.237: Group Rookmelder armed and open evaluation state changed from false to true
        2020-10-29 10:40:46.237: Group Controller test state changed from false to true
        2020-10-29 10:40:46.237: Group Controller evaluation state changed from false to true
        2020-10-29 10:40:46.238: Preparing Rookmelder armed and open.true (grpyaqtnn7.true) activity
        2020-10-29 10:40:46.238: Launching scene/activity grpyaqtnn7.true
        2020-10-29 10:40:46.238: Starting "grpyaqtnn7.true" group 1 at step 1
        2020-10-29 10:40:47.056: Activity "grpyaqtnn7.true" finished in 0.81800007820129s
        2020-10-29 10:40:47.056: Stopping activity "grpyaqtnn7.true"
        2020-10-29 10:40:47.056: Changing RS tripped state to true
        2020-10-29 10:40:47.056: Sensor update completed; 0.820s
        2020-10-29 10:40:56.371: Device DWS02 Rookmelder 1 (#10628) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "0"
        2020-10-29 10:40:56.371: Sensor update starting
        2020-10-29 10:40:56.371: Condition condyaqtp2o test state changed from true to false
        2020-10-29 10:40:56.371: Condition condyaqtp2o evaluation state changed from true to false
        2020-10-29 10:40:56.371: Group Rookmelder armed and open test state changed from true to false
        2020-10-29 10:40:56.371: Group Rookmelder armed and open evaluation state changed from true to false
        2020-10-29 10:40:56.371: Group Controller test state changed from true to false
        2020-10-29 10:40:56.371: Group Controller evaluation state changed from true to false
        2020-10-29 10:40:56.373: Changing RS tripped state to false
        2020-10-29 10:40:56.373: Sensor update completed; 0.002s
        2020-10-29 10:41:12.053: Device Four Button Scene (#10638) urn:micasaverde-com:serviceId:SceneController1/sl_CentralScene changed from "13" to "13"
        2020-10-29 10:41:12.053: Sensor update starting
        2020-10-29 10:41:12.053: Sensor update completed; 0.001s
    Devices
        ZWave (1) urn:schemas-micasaverde-com:device:ZWaveNetwork:1 (19/0); parent 6; plugin -; mfg Mi Casa Verde model GC100; dev D_ZWaveNetwork.xml impl X
        Afzuiging (10483) urn:schemas-upnp-org:device:DimmableRGBLight:2 (2/4); parent 1; plugin -; mfg  model ; dev D_DimmableRGBLight2.xml impl X
        DWS02 Rookmelder 1 (10628) urn:schemas-micasaverde-com:device:DoorSensor:1 (4/1); parent 1; plugin -; mfg  model ; dev D_DoorSensor1.xml impl X
        Four Button Scene (10638) urn:schemas-micasaverde-com:device:SceneController:1 (14/0); parent 1; plugin -; mfg  model ; dev D_SceneController1.xml impl X
    Watches
        Device #10638 Four Button Scene service urn:micasaverde-com:serviceId:SceneController1 variable sl_CentralScene
        Device #78 Reactor Hank controller service urn:toggledbits-com:serviceId:ReactorSensor variable TestTime
        Device #10628 DWS02 Rookmelder 1 service urn:micasaverde-com:serviceId:SecuritySensor1 variable Tripped
        Device #78 Reactor Hank controller service urn:toggledbits-com:serviceId:ReactorSensor variable TestHouseMode
        Device #78 Reactor Hank controller service urn:toggledbits-com:serviceId:ReactorSensor variable cdata
    Special Configuration
        UseReactorScenes = 1
        Retrigger = 0
        FailOnTrouble = 0
        ContinuousTimer = 0
        WatchResponseHoldOff = -1
    Scenes
        Scene #29 User modes - Button Home
            Group 1
                Device 2 (    openLuup) openLuup/SetHouseMode ( Mode="1" )
        Scene #30 User modes - Button Night
            Group 1
                Device 2 (    openLuup) openLuup/SetHouseMode ( Mode="3" )

LuaLog

2020-10-29 10:40:41.075   luup.variable_set:: 10685.urn:micasaverde-com:serviceId:EnergyMetering1.KWHReading was: 1603964138 now: 1603964440 #hooks:0
2020-10-29 10:40:41.279   openLuup.server:: request completed (33796 bytes, 3 chunks, 4645 ms) tcp{client}: 0x55cfb10aa2e8
2020-10-29 10:40:41.393   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=963991697&Timeout=60&MinimumDelay=1500&_=1603963979159 HTTP/1.1 tcp{client}: 0x55cfb10aa2e8
2020-10-29 10:40:46.136   luup.variable_set:: 10594.urn:micasaverde-com:serviceId:HaDevice1.BatteryDate was: 1603964411 now: 1603964444 #hooks:0
2020-10-29 10:40:46.136   luup.variable_set:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.ArmedTripped was: 0 now: 1 #hooks:0
2020-10-29 10:40:46.136   luup.variable_set:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.LastTrip was: 1603964388 now: 1603964444 #hooks:0
2020-10-29 10:40:46.136   luup.variable_set:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped was: 0 now: 1 #hooks:1
2020-10-29 10:40:46.136   luup.variable_set:: 10685.urn:micasaverde-com:serviceId:EnergyMetering1.Volts was: 229.97 now: 228.25 #hooks:0
2020-10-29 10:40:46.236   luup.watch_callback:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped called [77]reactorWatch() function: 0x55cfafcc7830
2020-10-29 10:40:46.237   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.cstate was: {"grpwlc9n3z":{"evaledge":{"f":1603910260},"stateedge":{"f":1603910260},"id":"grpwlc9n3z","evalstamp":1603910260,"l... now: {"grpwlc9n3z":{"evaledge":{"f":1603910260},"stateedge":{"f":1603910260},"id":"grpwlc9n3z","evalstamp":1603910260,"l... #hooks:0
2020-10-29 10:40:46.237   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.lastacc was: 1603964370 now: 1603964446 #hooks:0
2020-10-29 10:40:46.237   luup.variable_set:: 77.urn:toggledbits-com:serviceId:Reactor.runscene was: {} now: {} #hooks:0
2020-10-29 10:40:46.237   luup.variable_set:: 77.urn:toggledbits-com:serviceId:Reactor.runscene was: {} now: {"ctx78.scgrpyaqtnn7.true":{"starttime":1603964446.238,"scene":"grpyaqtnn7.true","taskid":"ctx78.scgrpyaqtnn7.true"... #hooks:0
2020-10-29 10:40:46.237   luup_log:77: Reactor: "Reactor Hank controller" (#78) Performing "Notify" ("grpyaqtnn7.true" group 1 step 1)
2020-10-29 10:40:47.055   luup.variable_set:: 77.urn:toggledbits-com:serviceId:Reactor.runscene was: {"ctx78.scgrpyaqtnn7.true":{"starttime":1603964446.238,"scene":"grpyaqtnn7.true","taskid":"ctx78.scgrpyaqtnn7.true"... now: {"ctx78.scgrpyaqtnn7.true":{"starttime":1603964446.238,"scene":"grpyaqtnn7.true","taskid":"ctx78.scgrpyaqtnn7.true"... #hooks:0
2020-10-29 10:40:47.055   luup.variable_set:: 77.urn:toggledbits-com:serviceId:Reactor.runscene was: {"ctx78.scgrpyaqtnn7.true":{"starttime":1603964446.238,"scene":"grpyaqtnn7.true","taskid":"ctx78.scgrpyaqtnn7.true"... now: {} #hooks:0
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorGroup.GroupStatus_grpyaqtnn7 was: 0 now: 1 #hooks:0
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorGroup.GroupStatus_root was: 0 now: 1 #hooks:0
2020-10-29 10:40:47.056   luup_log:77: Reactor: "Reactor Hank controller" (#78) now "tripped"
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped was: 0 now: 1 #hooks:0
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:micasaverde-com:serviceId:SecuritySensor1.LastTrip was: 1603962484 now: 1603964447 #hooks:0
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:upnp-org:serviceId:SwitchPower1.Target was: 0 now: 1 #hooks:0
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:upnp-org:serviceId:SwitchPower1.Status was: 0 now: 1 #hooks:0
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.TripCount was: 511 now: 512 #hooks:0
2020-10-29 10:40:47.056   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.Message was: Not tripped now: Tripped #hooks:0
2020-10-29 10:40:47.164   openLuup.server:: request completed (53128 bytes, 4 chunks, 5770 ms) tcp{client}: 0x55cfb10aa2e8
2020-10-29 10:40:47.285   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=963991717&Timeout=60&MinimumDelay=1500&_=1603963979160 HTTP/1.1 tcp{client}: 0x55cfb10aa2e8
2020-10-29 10:40:56.269   luup.variable_set:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.ArmedTripped was: 1 now: 0 #hooks:0
2020-10-29 10:40:56.269   luup.variable_set:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.LastTrip was: 1603964444 now: 1603964453 #hooks:0
2020-10-29 10:40:56.269   luup.variable_set:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped was: 1 now: 0 #hooks:1
2020-10-29 10:40:56.370   luup.watch_callback:: 10628.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped called [77]reactorWatch() function: 0x55cfafcc7830
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.cstate was: {"grpwlc9n3z":{"evaledge":{"f":1603910260},"stateedge":{"f":1603910260},"id":"grpwlc9n3z","evalstamp":1603910260,"l... now: {"grpwlc9n3z":{"statestamp":1603910260,"stateedge":{"f":1603910260},"id":"grpwlc9n3z","evalstamp":1603910260,"lastv... #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.Runtime was: 24546423 now: 24546433 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.lastacc was: 1603964446 now: 1603964456 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorGroup.GroupStatus_grpyaqtnn7 was: 1 now: 0 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorGroup.GroupStatus_root was: 1 now: 0 #hooks:0
2020-10-29 10:40:56.372   luup_log:77: Reactor: "Reactor Hank controller" (#78) now "untripped"
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:micasaverde-com:serviceId:SecuritySensor1.Tripped was: 1 now: 0 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:micasaverde-com:serviceId:SecuritySensor1.LastTrip was: 1603964447 now: 1603964456 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:upnp-org:serviceId:SwitchPower1.Target was: 1 now: 0 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:upnp-org:serviceId:SwitchPower1.Status was: 1 now: 0 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.LastReset was: 1603962484 now: 1603964456 #hooks:0
2020-10-29 10:40:56.372   luup.variable_set:: 78.urn:toggledbits-com:serviceId:ReactorSensor.Message was: Tripped now: Not tripped #hooks:0
2020-10-29 10:40:56.485   openLuup.server:: request completed (28997 bytes, 2 chunks, 9199 ms) tcp{client}: 0x55cfb10aa2e8
2020-10-29 10:40:56.607   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=963991732&Timeout=60&MinimumDelay=1500&_=1603963979161 HTTP/1.1 tcp{client}: 0x55cfb10aa2e8
2020-10-29 10:41:01.374   luup.variable_set:: 1057

Hopefully not stating the obvious . . .

Just downloaded & tried the .stable and tested ok here on openLuup.
You should need 2 tokens. Your user token, and the api token.
In the main (master) reactor device variables, did you enter both?

Obviously not that obvious to me :sweat_smile: That did the trick, both token and userkey. Thnx!

This info was also in the CHANGELOG file for the branch, and the documentation (linked from the Tools tab and in context in various places). I try to be good about keeping these up to date with my work.

WTF, I checked your docs (not the change log) and pushover wasn’t mentioned yet. Are the docs depending on the version of reactor (stable /master)? IOW was I looking in the master docs?

Correct! That’s why I mentioned using the link from the Tools tab… it will always link to the docs that match the version of Reactor you are using. All links in product are qualified with the version, even for development versions.

1 Like

Ah! That’s good to know. Nice. I will use the tools tab next time!

Huh, PushOver directly from Reactor? Did I miss something. Just looked, but I don’t see it under the notify action. at the moment I use PushOver via Veraalert.

You need to install the Github stable branch version of Reactor:

  1. Go to this URL: https://github.com/toggledbits/Reactor/tree/stable
  2. Click the green “Code” button and choose “Download ZIP”
  3. Save the ZIP file, and when it’s done downloading, unzip it.
  4. Open the Luup uploader at Apps > Develop apps > Luup files
  5. Drag the files from the folder (not the folder itself) to the “Upload” button
  6. Hard refresh your browser: https://www.getfilecloud.com/blog/2015/03/tech-tip-how-to-do-hard-refresh-in-browsers/

Additional docs for configuration and usage here: https://www.toggledbits.com/static/reactor/docs/3.9/Notify-Action/#pushover

Aha that makes sense. Will this version be updated automatically in Vera?

If I update now via github, will that also be updated later via Vera? Or do I have to update by hand from that point?

App Marketplace will still update for you when new official releases are published.

1 Like

Great, thank you. Will upload the stable then.

Update: Installed and it’s working!

rigpapa,

The configuration only allows for 1 hard coded API token. I have 3 configured in my pushover account.

Would you consider a variable for the PushoverToken aka similar to PushoverDefaultDevice which can be specified/changed at the reactor Activities page?

Thanks,

ChrisTheC

1 Like

Easily. Give me a bit, I’ve got some errands to run this morning.

Any chance that Telegram’s bot API would be supported in notify action?

Sorry, got distracted by a huge leap in a project, but circling back to this…

OK. Pushover token is now available for override on each notification. You’ll need to re-install the stable branch release to get it: https://github.com/toggledbits/Reactor/tree/stable

I’ll take a look over the weekend.

2 Likes

Thanks rigpapa!
Tested with all my APIs & works great

Feel free to take a look at my telegram plugin. I implemented most of the options.

1 Like

If you have a working plugin, I’d rather people use that than add bloat to Reactor. I’ll take a look and see if I can do something more tightly-integrated, like I did with VeraAlerts (new options/behaviors appear when Reactor sees VeraAlerts is installed).

1 Like

There’s a “Try this action” option for Device action, but not for “Notify” or “Run Lua”. Could it be added to the next version?

Best Home Automation shopping experience. Shop at getvera!

© 2021 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules