Hi, not sure if this is possible. I’ve added the Amcrest camera to the configuration file and I can see the camera in HA. How would I create a blue print, when motion is detected, then it turns on the Kasa switch?
big fan of your work, frank
I’d recommend the Dahau integration via HACS, you’ll get the entities needed to trigger an automation that way.
If for some reason you cannot use the Dahau integration, look into using FFMPEG motion. That’s the solution I currently use to get motion detection via a rtsp feed from my Wyze cameras. I plan on eventually replacing this with a custom hardware solution but I simply don’t have time at the moment. It works well enough. In my config I have it defined like the below template:
ffmpeg:
binary_sensor:
- platform: ffmpeg_motion
name: Livingroom motion
input: FEEDHERE
changes: 1
reset: 1
You can then set up an automation to monitor the binary sensor for state changes.