Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netatmo camera.py error Presence URL is none #32643

Closed
dietlman opened this issue Mar 1, 2020 · 16 comments
Closed

Netatmo camera.py error Presence URL is none #32643

dietlman opened this issue Mar 1, 2020 · 16 comments
Assignees

Comments

@dietlman
Copy link

dietlman commented Mar 1, 2020

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

@vasseurf
Copy link

vasseurf commented Mar 8, 2020

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"

@dietlman
Copy link
Author

dietlman commented Mar 8, 2020

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

@cgtobi
Copy link
Contributor

cgtobi commented Mar 8, 2020

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

@egoetz-zz
Copy link

egoetz-zz commented Mar 10, 2020

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).

@bramkragten bramkragten transferred this issue from home-assistant/frontend Mar 10, 2020
@cgtobi
Copy link
Contributor

cgtobi commented Mar 10, 2020

@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

@dietlman
Copy link
Author

@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

@cgtobi
Copy link
Contributor

cgtobi commented Mar 10, 2020

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.

@dietlman
Copy link
Author

Thanks now it works perfect.

@cgtobi
Copy link
Contributor

cgtobi commented Mar 11, 2020

Can this be closed?

@dietlman
Copy link
Author

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

@cgtobi cgtobi closed this as completed Mar 11, 2020
@egoetz-zz
Copy link

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

@pilnikk
Copy link

pilnikk commented May 3, 2020

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.

@cgtobi
Copy link
Contributor

cgtobi commented May 3, 2020

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

@pilnikk
Copy link

pilnikk commented May 3, 2020

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).

@pilnikk
Copy link

pilnikk commented May 4, 2020

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.

@cgtobi
Copy link
Contributor

cgtobi commented May 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants