Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switches auch als Pushbutton #121

Closed
monza258 opened this issue Jan 29, 2021 · 1 comment
Closed

Switches auch als Pushbutton #121

monza258 opened this issue Jan 29, 2021 · 1 comment

Comments

@monza258
Copy link

Hi, derzeit nutze ich im Plugin pushbuttons sowie switches. Ich würde gerne einen Switch kombinieren. So das ein Switch schaltet aber auch gleichzeitig eine Pushurl auslöst. Lässt sich das umsetzen?

So quasi:

{
                    "id": "switch1",
                    "name": "athome Switch",
                    "rejectUnauthorized": false,
                    "on_url": "https://url:3333/interface?atHome=true&username=XXX&password=XXX",
                    "on_method": "GET",
                    "push_url": "https://api.pushcut.io/XXXXXX/athome",
                    "push_method": "POST",
                    "push_body": "{ \"title\": \"Kameras\" , \"text\": \"Kameras eingeschaltet\" , \"image\": \"http://url:5050/web/tmpfs/snap.jpg\" , \"devices\":[\"iPhone12\"]}",
                    "push_headers": "{ \"Content-Type\": \"application/json\"}",
                    "off_url": "url:3333/interface?atHome=false&username=XXX&password=XXX",
                    "off_method": "GET"
                }
@benzman81
Copy link
Owner

Mehrfach urls werd ich nicht unterstützen. Du kannst aber einfach einen switch und einen pushbutton machen und über automation das erreichen, was du willst.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants