I made a script in /etc/udev/rules.d/local.rules
SUBSYSTEM=="usb", SYSFS{idVendor=="b58e"}, SYSFS{idProduct=="9e84"}, ACTION=="add", RUN+="notify-send USB"
Then I reload udev with
sudo udevadm control --reload-rules
I tried to delete everything except the subsystem and run. I tried running '=' instead of '+ =', I'm tired of ATTR instead of SYSFS. I tried "sudo service udev restart" and "sudo reload udev". I disconnect the device, then reconnect it and do not start the action. I tried to rename it to 70-local.rules and change the permissions to + x. I tried to change the "subsystem" to the "bus". I tried setting the "/path/test.sh" parameter, which has the same command.
source share