Just wondering if anyone knows a way to only take camera snapshots when the camera is available.
I have a script set up to take a series of snapshots from the security cameras when the house alarm is triggered but this fails if any of the cameras are unavailable. Is if possible to have an if statement/condition to only include a camera if it is available or for the snapshot to fail softly? All cameras show as idle in HA even when offline so I can’t use their state as a condition.
Have just used the last photo as supplied by the camera rather than using the HA snapshot feature, it seems to fail more gracefully without killing the rest of the process.