-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathshell-script.json
More file actions
10 lines (10 loc) · 663 Bytes
/
Copy pathshell-script.json
File metadata and controls
10 lines (10 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
{
"_description": "Use the file:// URL prefix to run a shell command instead of issuing an HTTP request. Useful for MQTT publishes, serial commands, or any non-HTTP transport. The command runs through the system shell so quoting/escaping rules apply. Standard out is captured for use with pos_url.",
"accessory": "BlindsHTTP",
"name": "MQTT Blind",
"up_url": "file:///usr/local/bin/mosquitto_pub -t 'home/blind/cmd' -m 'OPEN'",
"down_url": "file:///usr/local/bin/mosquitto_pub -t 'home/blind/cmd' -m 'CLOSE'",
"stop_url": "file:///usr/local/bin/mosquitto_pub -t 'home/blind/cmd' -m 'STOP'",
"motion_time": 14000,
"verbose": true
}