• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
action: pushover
#1
Please post anything you want to ask or tell about the pushover action in this thread.
 
Reply
#2
Hi there,

i´m trying to unse the Pushover Rule Element.

My Rule is:

"LichtschalterEin": {
"rule": "IF contact.state IS opened THEN pushover TITLE Haustür MESSAGE "Tür wurde geöffnet" TOKEN umJSytLkp71HJZqXxBDJCt8W6B7rxx",
"active": 1
},

But it is not working, pilight doesn´t start.

Where is my mistake?
 
Reply
#3
Please use code tags.


You have to escape all quatation marks inside the rule. Also TITLE and TOKEN must be strings.

so change the rule to:

Code:
"IF contact.state IS opened THEN pushover TITLE \"Haustür\"  MESSAGE \"Tür wurde geöffnet\" TOKEN \"umJSytLkp71HJZqXxBDJCt8W6B7rxx\""
 
Reply
#4
Hi Niek,

if i copy&paste your edited rule in my Config, pilight is not able to start.

Code:
"rules": {
                "LichtschalterEin": {
                        "rule": "IF contact.state IS opened THEN switch DEVICE tuer TO on",
                        "active": 1
                },
                "LichtschalterAus": {
                        "rule": "IF contact.state IS closed THEN switch DEVICE tuer TO off",
                        "active": 1
                },
                "Alarmmeldung": {
                        "rule": "IF contact.state IS opened THEN pushover TITLE \"Haustür\"  MESSAGE \"Tür wurde geöffnet\" TOKEN \"umJSytLkp71HJZqXxBDJCt8W6B7rxx\"",
                        "active": 1
                }

Where is my mistake?
 
Reply
#5
Did you try to start pilight with
Code:
pilight-daemon -D
to see why pilight is not starting?
 
Reply
#6
See the log file, that will help you out.
 
Reply
#7
Thanks Folks!!

Problem was a double-Space in the rule...
 
Reply
#8
hi,

what needs to be set at pushover?
it doesn´t work.
log file: pushover action failed (400) with message: {"user":"invalid","errors":["user identifier is not a valid user, group, or subscribed user key"],"status":0,"request":"70a3ef13f9aef0b699fe432cb5115c53"}
 
Reply
#9
Please be more verbose and use code tags.
 
Reply
#10
config:
Code:
    {
    "devices": {
        "Licht1": {
            "protocol": [ "mumbi" ],
            "id": [{
                "systemcode": 19,
                "unitcode": 4
            }],
            "state": "on"
        }
    },
    "rules": {
        "rule9": {
            "rule": "IF Licht1.state IS on THEN pushover TITLE \"Licht 1\" MESSAGE \"Licht 1 ist an\" TOKEN \"**************qee\" USER \"test\"",
            "active": 1
        }
    },
    "gui": {
        "Licht1": {
            "name": "Licht 1",
            "group": [ "Lichter" ],
            "media": [ "all" ],
            "readonly": 0
        }
    },
    "settings": {
        "log-level": 4,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "send-repeats": 10,
        "receive-repeats": 1,
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/",
        "webserver-port": 5001,
        "webserver-cache": 1,
        "firmware-update": 0
    },
    "hardware": {
        "433gpio": {
            "sender": 0,
            "receiver": 1
        }
    },
    "registry": {
        "pilight": {
            "version": {
                "current": "6.0"
            }
        }
    }
}

result is:
Code:
ERROR: pushover action failed (400) with message: {"user":"invalid","errors":["user identifier is not a valid user, group, or subscribed user key"],"status":0,"request":"b5333e25e566c55869e0feab6a61d

i don´t know where the error is!Unsure


Attached Files Thumbnail(s)
   
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  _VARSTORE_ set action fourty2 1 773 05-19-2019, 09:07 PM
Last Post: curlymo
  skipping overridden action switch do1eh 2 518 01-19-2019, 05:25 PM
Last Post: do1eh
  http action Niek 21 3,550 08-12-2018, 11:44 AM
Last Post: rorie
  Pushover no longer working Alex 6 748 07-09-2018, 06:25 AM
Last Post: curlymo
  action: Pushbullet bazb 24 10,720 01-04-2018, 08:38 PM
Last Post: curlymo
  action: file Niek 14 3,691 06-23-2016, 04:02 PM
Last Post: Niek
  Pushover unformatted timestamp Pik 2 1,327 05-08-2016, 08:48 AM
Last Post: Pik
  action: switch Niek 54 18,967 03-31-2016, 06:24 PM
Last Post: jjj
  action: program bazb 16 7,525 03-31-2016, 09:14 AM
Last Post: Niek
  action: toggle Niek 1 2,404 02-19-2016, 03:04 PM
Last Post: Joeks

Forum Jump:


Browsing: 1 Guest(s)