Created
May 16, 2024 14:11
-
-
Save and7ey/79a725e93a90e3a34d0bde9bc652a406 to your computer and use it in GitHub Desktop.
Sublime Build system to test Home Assistant plugins / integrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// https://developers.home-assistant.io/docs/api/rest | |
// http://www.sublimetext.com/docs/3/build_systems.html | |
{ | |
"keyfiles": ["manifest.json"], | |
"quiet": true, | |
"syntax": "Packages/ShellScript/Bash.sublime-syntax", | |
"variants": | |
[ | |
{ | |
"name": "Restart Server", | |
"shell_cmd": "curl -X POST -H \"Authorization: Bearer <YOUR-TOKEN>\" -H \"Content-Type: application/json\" http://192.168.1.111:8123/api/services/homeassistant/restart" | |
}, | |
{ | |
"name": "Get logs", | |
"shell_cmd": "curl -H \"Authorization: Bearer <YOUR-TOKEN>\" -H \"Content-Type: application/json\" http://192.168.1.111:8123/api/error_log" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment