I have an old security camera DVR that cannot be directly connected to HA. But it can send emails. So I have it setup to send an email when there is motion detected i.e. a car has entered the driveway. I want to turn on the z-wave outside light.
In the config yaml I have the following
sensor:
- platform: imap_email_content
server: imap.gmail.com
username: [email protected]
password: my_password
senders:- there_was_motion@my_old_dvr.com
value_template: >-
{% if ‘CAMERA1’ in subject %}
motion
{% endif %}
- there_was_motion@my_old_dvr.com
OK, so now what? I’m a real beginner at HA so I’m hoping someone can point me towards the next step.
Thanks
Bill