Hello,
I’ve been fiddling with an automation for a while that I can’t get to work.
I have a Tesla charging station in my driveway at home that is freely accessible to everyone. This means that everyone can hang their car on the charger with me. Now my goal is to have the camera in the driveway email a snapshot every time my charging station is connected.
Now I have the following in my automations.yaml:
- id: '1642845327204'
alias: Car Charging Snapshot
description: ''
trigger:
- type: plugged_in
platform: device
device_id: b15e751c3d2b2be3a731124d5c52f3c1
entity_id: binary_sensor.tesla_wall_connector_vehicle_connected
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
target:
device_id: 1631028497b102ea052763252a958a4d
entity_id: camera.hikvision_ds_2cd2085fwd_i_b_mainstream_2
data:
filename: laden auto
mode: single
- data:
data:
images:
- /tmp/snapshot1.jpg
message: Who is this ?
title: Someone has enter!
service: notify.mail
shell_command:
delete_snapshots: 'rm -f /tmp/*.jpg'
- delay:
seconds: 10
- service: shell_command.delete_snapshots
In my configuration.yaml I have the following:
notify:
- name: "mail"
platform: smtp
server: "smtp.hostnet.nl"
port: 587
timeout: 1
sender: "xxxxxxxxx"
encryption: starttls
username: "xxxxxxxxx"
password: "xxxxxxxxx"
recipient:
- "xxxxxxxx"
sender_name: "Camera oprit"
But the emails don’t come through, I can’t see where it goes wrong. Anyone have any idea what mistake I’m making?