Core: Netatmo camera.py error Presence URL is none

Created on 1 Mar 2020  Â·  16Comments  Â·  Source: home-assistant/core

The problem

I get the following error after integration of Netatmo Presence camera. in Lovelace it shows no picture of preview of the livestream, the error in log is decribed below. Integration of Netatmo worked fine, the other Netatmo Sensors are working perfect.

Environment

  • Home Assistant release with the issue: 0.106.5
  • Last working Home Assistant release (if known): not known, was installed with current release
  • Operating environment (Hass.io/Docker/Windows/etc.): Docker on Synology NAS
  • Integration causing this issue: Netatmo
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/netatmo/

Problem-relevant configuration.yaml

 netatmo:
      client_id: secret_id
      client_secret: secret_secret

Traceback/Error logs

Welcome/Presence VPN URL is None
7:40:30 AM – netatmo (ERROR) - message first occurred at 7:40:00 AM and shows up 8 times
Update for camera.netatmo_dw24 fails
7:39:24 AM – components/netatmo/camera.py (ERROR)
Update of camera.netatmo_dw24 is taking over 10 seconds
netatmo: Error on device update!
7:13:06 AM – Binary sensor (ERROR)
netatmo: Error on device update!
7:13:06 AM – Binary sensor (ERROR)
netatmo: Error on device update!
7:13:06 AM – Binary sensor (ERROR)
netatmo: Error on device update!
7:13:06 AM – Binary sensor (ERROR)

Additional information

netatmo

Most helpful comment

yes please close it, thank you very much for your support

All 16 comments

Hello. Same problem here. Just moved from 0.104 to 0.106 and use the new netatmo auth via integrations page. Sensors are working OK. But cameras (Presence & Welcome) show no picture (but exist as entities). Same error : "[homeassistant.components.netatmo.camera] Welcome/Presence VPN URL is None"

Good to know that I am not the only one having this issue. Looks like there is a bug in the integration.

Please use the right bug tracker for this and fill out the issue template over at https://github.com/home-assistant/core/issues.

Hello. Got exactly the same problem here!
Maybe a scope should be explicitly provided during the authorization process.
https://dev.netatmo.com/apidocumentation/oauth#scopes
The default scope is "read_station". We also need "access_camera" (and potentially more).

@egoetz-zz Depending on what method you used when setting up the integration the scope is set accordingly. Right now for use with Netatmo cameras, only the configuration.yaml method is working. In case you used the HA Cloud option you have to remove the integration, restart HA and add it back in using the other option. Please also be sure to only add the following lines in configuration.yaml before adding the integration.

netatmo:
  client_id: !secret netatmo_client_id
  client_secret: !secret netatmo_client_secret

@egoetz-zz Depending on what method you used when setting up the integration the scope is set accordingly. Right now for use with Netatmo cameras, only the configuration.yaml method is working. In case you used the HA Cloud option you have to remove the integration, restart HA and add it back in using the other option. Please also be sure to only add the following lines in configuration.yaml before adding the integration.

netatmo:
  client_id: !secret netatmo_client_id
  client_secret: !secret netatmo_client_secret

when you say use "the other option" to integrate what do you mean with this? Might be a stupid question, but how can I integrate it other than adding the lines you described in your thread and then add it in HA. Maybe you could give me a hint.
thanks

Remove everything Netatmo related but the following lines from configuration.yaml

netatmo:
  client_id: !secret netatmo_client_id
  client_secret: !secret netatmo_client_secret

Remove the integration from the configuration menu.
Then restart HA and add the the integration back in. Be sure to select configuration.yaml instead of HA Cloud.

Thanks now it works perfect.

Can this be closed?

yes please close it, thank you very much for your support

I had to re-generate the keys (error message from netatmo server: "invalid client"). But it works fine now.
Thanks for the help @cgtobi !

Sorry for the newbie question, but I just installed HA, added netatmo integration via HA Cloud and got all the devices recognized - thermostat fully working and 3 cameras there, but giving me no preview on the dashboard.
Following the conversation here, I added my client_id and secret to configuration.yaml, removed cloud integration and added it again via configuration.yaml script. What's the next step because after restart I lost all netatmo devices from the dashboard and the configuration page shows no devices for netatmo integration.

@pilnikk Did you actually add the integration again via the UI selecting configuration.yaml? And did you restart after removing the HA cloud link?

I did. While adding it via UI, I had to log into netatmo, got the OK info and the new netatmo integration is now visible as Netatmo:configuration.yaml. However previously when i was using cloud integration i saw all my netatmo devices there, now it's just empty.
To give more info about my setup, i'm running nginx proxy, which allows 443 traffic only. I'm able to see my HA from the internet and my other devices can also see it locally. No base_url present in http: tag because nginx is taking care of it (at least I assume so).

Not sure what went wrong yesterday, but the old school of repeating everything sa,me way again worked ;-)
I removed netatmo integration, removed netatmo entry from yaml script, rebooted HA, updated yaml, rebooted HA, added integration again and this time it worked.

Could be that the Netatmo backend is still a bit flaky.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aweb-01 picture aweb-01  Â·  3Comments

coolriku picture coolriku  Â·  3Comments

neonandu picture neonandu  Â·  3Comments

TheZoker picture TheZoker  Â·  3Comments

Elmardus picture Elmardus  Â·  3Comments