Update: I’m not using gmail, I’m using my own SMTP server so this isn’t a login\authentication issue. My issue is that I’m not able to call the notification service, it returns the error message “unable to find service”.
I’m an extremely new user setting up their first HAOS server. I don’t really understand programming, I’ve read the documentation but it’s just confusing me even more as I can’t get my head around some of the basic concepts like syntax, and where to put the code.
I have several CCTV camera and want to take a snapshot from all of the camera and send it to an email address using SMTP when a event is triggered.
For example, when a motion sensor on the rear entrance is triggered it takes a snapshot of whoever is at the door from one camera, while another camera takes a wide angle picture to see if anyone is hiding around the corner, and another camera takes a picture of the fence line to see if there are any vehicles waiting out there. Then it sends all three to an email address so that the pictures are stored somewhere that doesn’t require you to have the camera app on your phone to access (For example, from a laptop).
I have managed to take the snapshots and store them locally, but I can’t even seem to trigger the SMTP notification, let alone send it out.
Could someone please explain in the simplest way possible why I’m receiving the error below. I can deal with the actual message later on, right now I just want to know why I can’t even call the notification.
I don’t understand what the documentation is telling me, so please dumb it down as much as possible rather than linking to it, as I’ve been trying to get my head around it for a week and I’m still stuck.
This is my configuration. Yaml, the notification that I’m trying to create is called VMAIL. I don’t know if any of the contents are correct as I can’t even trigger it yet.
I’ve tried restarting my config files, powering down the server and restarting it that way, and changing the case on the names in case that was the problem.
This is the trigger automation. The automation triggers OK (Please ignore the disabled action, it functions OK when enabled). I’m trying to call notification.VMAIL from my configuration file.
When I trigger the automation, if says that it cannot find the notification
Please ignore the change in case from VMAIL to vmail. I tried both in case it was case sensitive, but only took the screenshot when it was on lower case.
Could someone please explain to me why it can’t find the notification that I set up?
I understand that this code won’t send my actual snapshots as it is currently written, as I’ve not yet added any content to the SMTP message. That comes later once I’ve managed to even trigger it.