Google Maps Card Not Working

Morning All,

So I have a Google maps card that hasn’t worked since Google introduced the requirement of an API key (only recently got round to looking into it as it was a less used feature of my setup).

I have gone through the documentation and have changed my camera to the following:

platform: generic
name: Parked
still_image_url: https://maps.googleapis.com/maps/api/staticmap?center={{ states.sensor.carmail.attributes.subject }}&zoom=13&size=500x500&maptype=roadmap&markers=color:blue%7Clabel:P%7C{{ states.sensor.carmail.attributes.subject }}&key=MYAPIKEYREDACTED
limit_refetch_to_url_change: true

Now my location is set by email in a subject when I park and is valid. I know this for two reasons:

  1. It’s shown in my states tab
  2. If I copy paste straight from my camera (ie the URL above) and use notify.knottyboy from the services tab it gives me a clickable link in Pushbullet that takes me to the image I want displayed in home assistant. Which in turn makes me think the still_image_url is correct.

Any ideas?

Same here, non of my cards show an image either.
image

Sorry should have come back here. I asked the same question on reddit and if you revert back to the old way (without API key) it should work, well at least it did for me.

I haven’t changed my config to include the API Key, still on the original config

Post your configuration details for the card and I’ll have a look tonight after work.

camera:

### Chevy ###
  - platform: generic
    name: CHEVY
    still_image_url: https://maps.googleapis.com/maps/api/staticmap?center={{ states.device_tracker['2014_chevrolet_express_cargo_van'].attributes.latitude }},{{ states.device_tracker['2014_chevrolet_express_cargo_van'].attributes.longitude }}&zoom=18&size=500x500&maptype=roadmap&markers=color:blue%7Clabel:P%7C{{ states.device_tracker['2014_chevrolet_express_cargo_van'].attributes.latitude }},{{ states.device_tracker['2014_chevrolet_express_cargo_van'].attributes.longitude }}
    limit_refetch_to_url_change: true

### Bruce ###
  - platform: generic
    name: BRUCE
    still_image_url: https://maps.googleapis.com/maps/api/staticmap?center={{ states.device_tracker['2008_gmc_yukon_xl_denali'].attributes.latitude }},{{ states.device_tracker['2008_gmc_yukon_xl_denali'].attributes.longitude }}&zoom=18&size=500x500&maptype=roadmap&markers=color:blue%7Clabel:P%7C{{ states.device_tracker['2008_gmc_yukon_xl_denali'].attributes.latitude }},{{ states.device_tracker['2008_gmc_yukon_xl_denali'].attributes.longitude }}
    limit_refetch_to_url_change: true

hmm the only difference between yours and mine is “zoom=15” instead of “zoom=18”.

Does your state resolve to a valid location?

{{ states.device_tracker['2014_chevrolet_express_cargo_van'].attributes.latitude }},{{ states.device_tracker['2014_chevrolet_express_cargo_van'].attributes.longitude }}

If you stuck that in a notify what do you get?