If your S4 came

If your S4 camera/Homebase 3 register a stranger can you integrate with Alexa to turn on lights or run an Apple shortcut?