8000 netatmo not working · Issue #37257 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
netatmo not working  #37257
Closed
Closed
@timmornYE

Description

@timmornYE

The problem

I set up netatmo like described in https://www.home-assistant.io/integrations/netatmo/ in the following steps:

  • no netatmo extension was configured
  • add entries in configuration.yaml
  • restart hass
  • on hass got to settings - integrations and add netatmo extension
  • select "configuration.yaml"
  • restart hass

Until restart all was ok and netatmo says it is configured. But wenn home assistant starts, the exception "Error while setting up netatmo platform for sensor" is thrown and netatmo does not detect my devices.

Environment

Home assistant Version: 0.111.4 running in docker with following docker-compose.yml

version: '2'
services:
    mqtt:
        container_name: mqtt
        image: eclipse-mosquitto:1.5.4
        restart: always
        ports: 
            - 1883:1883
            - 9001
    hassdb:
        container_name: hassdb
        image: mysql
        command: mysqld --default-authentication-plugin=mysql_native_password 
        restart: always
        ports:
            - 3306:3306
        environment:
            MYSQL_ROOT_PASSWORD: 'xxx' 
            MYSQL_DATABASE: 'homeassistant'
            MYSQL_USER: 'hass'
            MYSQL_PASSWORD: 'xxx' 
    homeassistant:
        depends_on:
            - hassdb
            - mqtt
        restart: always
        container_name: hass
        image: homeassistant/home-assistant
        volumes:
            - ./hass-config:/config
            - /etc/localtime:/etc/localtime:ro
        ports:
            - 8123:8123

Problem-relevant configuration.yaml

http:
  base_url: https://myid.ui.nabu.casa

netatmo:
  client_id: myclientid
  client_secret: mysecret

Traceback/Error logs

hass             | 2020-06-30 15:48:04 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up netatmo platform for sensor
hass             | Traceback (most recent call last):
hass             |   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
hass             |     await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
hass             |   File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
hass             |     return fut.result()
hass             |   File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 146, in async_setup_entry
hass             |     async_add_entities(await hass.async_add_executor_job(get_entities), True)
hass             |   File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
hass             |     result = self.fn(*self.args, **self.kwargs)
hass             |   File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 142, in get_entities
hass             |     entities.extend(find_entities(data))
hass             |   File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 117, in find_entities
hass             |     all_module_infos = data.get_module_infos()
hass             |   File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 545, in get_module_infos
hass             |     return self.station_data.getModules()
hass             |   File "/usr/local/lib/python3.7/site-packages/pyatmo/weather_station.py", line 89, in getModules
hass             |     "module_name": m["module_name"],
hass             | KeyError: 'module_name'

Additional information

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0