Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Issue with off_cmd using Pushed #72

@mschieszl

Description

@mschieszl

Hey there, really hoping for some help. Here is part of my conf (I did remove creds):

{
"platform": "cmdSwitch2",
"name": "cmdSwitch2",
"switches": [
{
"name": "SDL ALERT",
"on_cmd": "curl -X POST -s --form-string 'app_key=XXX' --form-string 'app_secret=XXX' --form-string 'target_type=channel' --form-string 'target_alias=XXX' --form-string 'content=This is a test AN from Alert.' https://api.pushed.co/1/push",
"off_cmd": "curl -X POST -s --form-string 'app_key=XXX' --form-string 'app_secret=XXX' --form-string 'target_type=channel' --form-string 'target_alias=XXX' --form-string 'content=This is a test AUS from Alert.' https: //api.pushed.co/1/push" }
]
}

As you can see the on_cmd is almost identical to the off_cmd. on_cmd gets executed perfectly when I turn the switch on but when I turn it off homebridge simply gives a log that it failed to turn off SDL ALERT.

If I change the off_cmd to a simple ping 8.8.8.8 I have no trouble turning the switch off an back again sending myself tons of push notifications.

Any help is much appreciated, thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions