I have a camera, that's integrated via the Frigate addon, that the rtsp feed keeps crashing on. I created the following automation so that if it changes to "Unavailable" it should run a shell command that ssh's in and restarts the service. I can run the actions manually (three dots, run actions) and it restarts the service fine. But it does not fire off automatically when the camera feed changes to "Unavailable" Any ideas?
description: Reset Backyard Camera
triggers:
- trigger: state
entity_id:
- camera.backyard
to: unavailable
actions:
- action: shell_command.restart_backyard_cam_rtsp
data: {}
mode: single```