Netatmo integration, Presence camera not working

:point_right: Netatmo integration, Presence camera not working
Did you check that?

Yes definitely using the configuration.yaml within the integrations page.

i’m using cloud access

That’s probably your issue then as has been mentioned your meant to be using the configuration.yaml

1 Like

ah i see, that’s my bad, i’ll try that, thanks

1 Like

ok, i’ve changed it to configuration.yml but got the same result. only my weather related products are visible, none of my presence camera nor my welcome is shown

Sounds like your in a similar situation as me then. Do you also have the error while setting up netatmo platform for camera, in your logs, and a similar one for the lights? Looks like HA can see there are cameras there, but doesn’t integrate them.

There appear to be some server issues with netatmo at present, which may be related, but strange how both our weather stations are recognised.

Netatmo has sever issues. See this thread for further information.

Thanks Tobi, the cameras just came back of their own accord so was certainly Netatmo’s server issue, musty have been going on for a bit longer than they had acknowledged. Thanks for everything!

1 Like

Hi all,

I’m still having issues related to this. I tried @cgtobi script found here: https://gist.github.com/cgtobi/5601aa88efba2cce30a98aeae50582a2

To test wether the script is able to detect the Netatmo camera. The script locates all of my Netatmo units including the camera. Home assistant still doesn’t find the camera. I tried once again removing the integration, restarting the server and including again using configuration.yaml.
Still the same thing.

In the logs I get the following:

Logger: homeassistant.components.camera
Source: components/netatmo/data_handler.py:117
Integration: Kamera (documentation, issues)
First occurred: 20:42:57 (1 occurrences)
Last logged: 20:42:57

Error while setting up netatmo platform for camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/camera.py", line 94, in async_setup_entry
    async_add_entities(await get_entities(), True)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/camera.py", line 53, in get_entities
    await data_handler.register_data_class(
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 149, in register_data_class
    await self.async_fetch_data(
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 117, in async_fetch_data
    self.data[data_class_entry] = await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/pyatmo/camera.py", line 122, in __init__
    self.update_camera_urls(camera_id)
  File "/usr/local/lib/python3.8/site-packages/pyatmo/camera.py", line 179, in update_camera_urls
    self.cameras[home_id][camera_id]["local_url"] = check_url(
  File "/usr/local/lib/python3.8/site-packages/pyatmo/camera.py", line 175, in check_url
    return resp.get("local_url")
AttributeError: 'NoneType' object has no attribute 'get'

same error for me

10 posts were split to a new topic: Netatmo integration can’t be added

A post was merged into an existing topic: Netatmo integration can’t be added

Hello, I have issue with my Netatmo indoor camera. I’ve added the Netatmo dev IDs into configuration.yaml file, reset HA and add Netatmo integration. Indoor camera was discovered fine, but I can’t see any entities to work with.

Do you have any idea why, or how I can refresh/force the data to see the available entities for Netatmo indoor camera? For other Netatmo products (weather…) I see so many entities, but for the cam zero :frowning:

Have you checked the logs? Maybe raise the log level for the Netatmo integration to info or debug.

Hey @cgtobi!

My Presence cameras dropped out of my HA from one moment to the other. I tried to remove the integration and put it back in but I get only the lights to control.

This is the log

Protokolldetails (FEHLER)
Logger: homeassistant.components.camera
Source: components/netatmo/data_handler.py:149
Integration: Kamera (documentation, issues)
First occurred: 23:22:27 (1 occurrences)
Last logged: 23:22:27

Error while setting up netatmo platform for camera
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1056, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1041, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 955, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 502, in sock_connect
    return await fut
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 537, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 101] Connect call failed ('169.254.228.67', 80)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/camera.py", line 62, in async_setup_entry
    await data_handler.register_data_class(
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 192, in register_data_class
    await self.async_fetch_data(data_class_entry)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 149, in async_fetch_data
    await self.data[data_class_entry].async_update()
  File "/usr/local/lib/python3.9/site-packages/pyatmo/camera.py", line 607, in async_update
    await self._async_update_all_camera_urls()
  File "/usr/local/lib/python3.9/site-packages/pyatmo/camera.py", line 617, in _async_update_all_camera_urls
    await self.async_update_camera_urls(camera_id)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/camera.py", line 696, in async_update_camera_urls
    self.cameras[home_id][camera_id]["local_url"] = await async_check_url(
  File "/usr/local/lib/python3.9/site-packages/pyatmo/camera.py", line 682, in async_check_url
    resp = await self.auth.async_post_request(url=f"{url}/command/ping")
  File "/usr/local/lib/python3.9/site-packages/pyatmo/auth.py", line 306, in async_post_request
    async with self.websession.post(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1117, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 169.254.228.67:80 ssl:default [Connect call failed ('169.254.228.67', 80)]

I´m currently still on Version 6.9.2021.

Hope you can help.

The have been firmware updates recently for Netatmo cameras which caused some trouble. Please reboot your cameras. I’d also highly recommend upgrading to the latest version of HA. If that issue persists please raise an issue so I can investigate this.

Ok will do tomorrow. Restart requires to switch the fuse :slight_smile: Will let you know

1 Like

Jeez Tobi. I´m so sorry .Just wanted to give you feedback almost 4 months later :smiley:

Everything is working now again. Reboot was the magic trick.

1 Like

Haha, as long as the reboot didn’t take that long. Glad that it’s fixed.