Hello. I’m just getting started on Home Assistant. Since this is all new to me, I have what is probably a set of N00Bish questions about automations and scripting.
Starting with the project at hand: I have several Reolink cameras connected to an NVR. The Reolink iPhone app is OK, but it doesn’t send a picture along with the PUSH notifications (for easy diagnosis of person detection). It also does not support the idea of a “temporary mute” on motion, e.g. don’t want to see a bunch of messages if I’m in my back yard.
I’m starting to test automations to detect motion and to send a snapshot via a push notification when that happens.
This has led to two high-level questions:
-
What to do about persistent variables? Would this be a template sensor possibly? The goal would be to store whether I have called for a “mute” for a particular period of time or not. This variable should stay active beyond any single automation.
-
What about modular programming? Can I call a script including an input parameter? I will have multiple automations (one for each camera) and it would be nice to call a script and pass the snapshot filename as the only thing that changes across cameras.
Sorry for the basic questions, and guidance very much appreciated.