There's also CHDK (for some Canon camera models) which has an auto trigger mode that can capture lightning strikes.
https://chdk.fandom.com/wiki/CHDK
"Motion detection trigger - automatically fires camera on motion detection.
Ability to capture lightning strikes.'
https://chdk.fandom.com/wiki/CHDK_1.6_User_Manual