Skip to content

Hunter Douglas Powerview - Error while setting up cover and sensor #36035

@simurf

Description

@simurf

The problem

The Hunter Douglas Powerview integration is showing a repeating error in the logs for setting up cover and sensor.
The integration seems to add ok from frontend and I can see the scenes as entities, but I'm getting the below error constantly in the logs for cover and sensor.

I'm using a Gen 1 Powerview Hub and in checking the Powerview app the blinds don't return a firmware version. It just to return 'Unavailable'. Which seems like it might be what's causing the error.

IMG_34D8D0D4D943-1

Environment

  • Home Assistant Core release with the issue: 0.110.1
  • Last working Home Assistant Core release (if known): unknown
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker on Synology NAS
  • Integration causing this issue: Hunter Douglas Powerview
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/hunterdouglas_powerview/

Problem-relevant configuration.yaml

Traceback/Error logs

2020-05-23 12:51:29 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up hunterdouglas_powerview platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_add_entity
    device_info = entity.device_info
  File "/usr/src/homeassistant/homeassistant/components/hunterdouglas_powerview/entity.py", line 77, in device_info
    firmware = self._shade.raw_data[FIRMWARE_IN_SHADE]
KeyError: 'firmware'

2020-05-23 12:51:39 ERROR (MainThread) [homeassistant.components.cover] Error while setting up hunterdouglas_powerview platform for cover
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_add_entity
    device_info = entity.device_info
  File "/usr/src/homeassistant/homeassistant/components/hunterdouglas_powerview/entity.py", line 77, in device_info
    firmware = self._shade.raw_data[FIRMWARE_IN_SHADE]
KeyError: 'firmware'

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