Entity State does not detect camera Unavailable

Hi
I’m setting up a Telegram notification for when my camera is unavailable, here is the code:

alias: "Telegram - New cam offline "
description: ""
trigger:
  - platform: state
    entity_id:
      - camera.new
    to: unavailable
    for:
      hours: 0
      minutes: 0
      seconds: 5
condition: []
action:
  - service: notify.telegram
    data:
      target: -100004444
      message:  Cam is Offline
mode: single

When I manually run it then I receive the Telegram notification, so that is working, however when the camera goes offline then it does not trigger this automation.

Set unavailable in quotes to: ‘unavailable’.