Hello, this is my first time writing in this community, thanks for sharing all your knowledge, it has helped me to know more about the Home Assistant application.
I have an amcrest camera in the basement, and a group of lights connected to a Tp Link outlet.
I have both devices in Home Assistant, as I have little knowledge on this subject, I need your help.
My idea is that when the camera detects the movement, the tp link outlet will turn on automatically for a period of 5 minutes, after when the camera detects no movement, the power outlet will be turned off again.
Additionally send me an email when the movement is detected.
This is my current configuration in Home Assistant:
configuration.yaml
- name: julio_camera
platform: smtp
server: smtpgmail
port: 587
timeout: 15
sender: test
encryption: starttls
username: test
password: supersecret
recipient:
- formetest
sender_name: My Home Assistant
amcrest:
- host: camera
username: admin
password: supersecret
sensors:
- motion_detector
- sdcard
- ptz_preset
switches:
- motion_detection
- motion_recording
resolution: low
stream_source: mjpeg
camera:
- platform: amcrest
switch:
- platform: tplink
host: plug
name: "Basement Plug"
Thanks for your help.