FreshlyBrewedCode / hacs-homee

a Home Assistant custom component to integrate the homee smart home platform
MIT License
17 stars 6 forks source link

No entities generated #18

Closed pissten closed 1 year ago

pissten commented 1 year ago

Type of problem

I have a question.

Version

Latest

Detailed description

No sensors generated. I only have 2 garage doors in my homee app, from hormann. When setting up homee integration I check the boxes for my groups containing the garage doors, but no entities are generated.

Error log

image image


2022-10-17 12:17:38.432 INFO (MainThread) [homeassistant.setup] Setting up homee
2022-10-17 12:17:38.433 INFO (MainThread) [homeassistant.setup] Setup of domain homee took 0.0 seconds
2022-10-17 12:17:57.685 INFO (MainThread) [homeassistant.components.light] Setting up light.homee
2022-10-17 12:17:57.690 INFO (MainThread) [homeassistant.components.climate] Setting up climate.homee
2022-10-17 12:17:57.694 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.homee
2022-10-17 12:17:57.699 INFO (MainThread) [homeassistant.components.switch] Setting up switch.homee
2022-10-17 12:17:57.703 INFO (MainThread) [homeassistant.components.cover] Setting up cover.homee
2022-10-17 12:17:57.707 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.homee
2022-10-17 12:17:57.813 ERROR (MainThread) [homeassistant.components.cover] Error adding entities for domain cover with platform homee
File "/config/custom_components/homee/__init__.py", line 205, in attribute
File "/config/custom_components/homee/__init__.py", line 152, in device_info
File "/config/custom_components/homee/__init__.py", line 207, in attribute
custom_components.homee.AttributeNotFoundException: 45
2022-10-17 12:17:58.320 ERROR (MainThread) [homeassistant.components.cover] Error while setting up homee platform for cover
File "/config/custom_components/homee/__init__.py", line 205, in attribute
File "/config/custom_components/homee/__init__.py", line 152, in device_info
File "/config/custom_components/homee/__init__.py", line 207, in attribute
custom_components.homee.AttributeNotFoundException: 45
FreshlyBrewedCode commented 1 year ago

Thank you for reporting!

Looks like an issue with the device_info. Apparently, not every homee node has the SOFTWARE_REVISION attribute: https://github.com/FreshlyBrewedCode/hacs-homee/blob/ebf7d09bf5b2bf1101fdca4dd8a9f27f0ae5d6a0/custom_components/homee/__init__.py#L152 @Stklingner I think we should just check if the attribute exists and return unknown as a fallback. Or do you have another idea?

Stklingner commented 1 year ago

@FreshlyBrewedCode that's the best solution I think; will splice it in this evening

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 2.0.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: