Exposing my camera to google home hub

Hi

I want to be able to cast my amcrest wifi camera to my google hub.

I have the camera setup (and working in home assistant web interface) using the following:

amcrest:
  - host: xxxxxxxx
    username: xxxxxx
    password: xxxxxx
    binary_sensors:
      - motion_detected
      - online
    stream_source: snapshot
    sensors:
      - ptz_preset

I have added my camera to google assistant using

google_assistant:
  project_id: xxxxxxxxxxxxxxxxx
  api_key: xxxxxxxxxxxxx
  expose_by_default: false
  entity_config:
    camera.amcrest_camera:
      name: Baby Camera
      expose: true
      room: Babyroom

I can see my camera in the google home hub, but when I click on the camera on the google hom hub I get the message “It looks like the stream is currently unavailable from the Baby Camera”

My end goal is to cast the camera to my google home hub triggered by an automation. I already have the automation setup using ffmpeg audio detection.

I have also tried the following:

script:
  babycamera:        
    sequence:
      - service: media_player.play_media
        data:
          entity_id: media_player.lounge_display
          media_content_id: rtsp://xxxx:[email protected]:80/cam/realmonitor?channel=1&subtype=00&authbasic=[AUTH]
          media_content_type: 'image/jpeg'   

However the google home hub just has the cast symbol on it, but doesn’t show any actual video.

If I load the url
rtsp://xxxx:[email protected]:80/cam/realmonitor?channel=1&subtype=00&authbasic=[AUTH]
inside VLC it works ok.

have you found the way how to stream rtsp to Google Hub? I have the same issue, I see only cast symbol, in VLC works perfect. I think maybe I need ffmpeg installed to enable streaming…

Yes my amcrest camera is working fine I can stream to Chromecast using Google home. I’m also able to stream the amcrest IP camera in box and also stream to Chromecast from vlc on my PC.

Do you have amcrest camera that won’t stream?

I use home assistant in docker. It has ffmpeg but not sure if required (it probably is)

First I was trying to stream Synology IP camera’s with service: media_player.play_media, but it didn’t worked. In the end removed Synology camera’s integration and using generic camera with direct rtsp, so now with service: camera.play_stream I am able to stream to Google Hub. I am also running HA on Synology in docker, as I can remember without ffmpeg.