UsbDisconnect
Triggers when given usb drive is disconnected. Currently it simply checks that the file /dev/disk/by-id/$deviceId exists.
Example:
{
"type": "UsbDisconnect",
"name": "Example Trigger",
"options": {
"deviceId": "ata-Samsung_SSD_860_EVO_1TB_S4AALKWJDI102",
"waitTillConnected": true
},
"actions": [
]
}
Options:
waitTillConnected
Only trigger when device was connected before
Type: bool
Default: true
deviceId
Name of device under /dev/disk/by-id/
Type: string
Default: ""