plamish / xcomfort

Eaton xComfort SHC integration for Home Assistant
18 stars 5 forks source link

Error setting up entry XComfort for xcomfort #4

Closed mrtobs1 closed 3 years ago

mrtobs1 commented 3 years ago

I am very happy to see that there is a component for xcomfort, thank you very much! Unfortunately i am not getting it to work. Have always this error:

Logger: homeassistant.config_entries
Source: custom_components/xcomfort/xcomfortAPI.py:36
Integration: XComfort SHC (documentation, issues)
First occurred: 13:56:52 (1 occurrences)
Last logged: 13:56:52

Error setting up entry XComfort for xcomfort
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/xcomfort/__init__.py", line 27, in async_setup_entry
    await coordinator.xc.connect()
  File "/config/custom_components/xcomfort/xcomfortAPI.py", line 36, in connect
    if not self.is_connected:
AttributeError: 'xcomfortAPI' object has no attribute 'is_connected'

When adding the integration, what do I have to insert at URL? The local IP in my network? Username/password: I created a new user for home assistant, or do i have to use the admin? Where can i find these zone-numbers? I only have roller shutters, so do I have to fill out the heating_zones?

Thank you very much for your help.

plamish commented 3 years ago

Please download updated version of xcomfortAPI.py file and try again.

The url should be http://ip_address_of_your_integration. It's sufficient to use separate user, not necessarily admin account. To find zone numbers log in to SHC via web console using this address http://ip_address_of_your_integration/system/console/config, go to Configuration Status -> Home Devices and use search function to search for 'hz'. Number following hz is the zone number. The SHC zone numbers starting usually from 1. You can also try testing 1,2,3. etc. Leave heating_zones empty

mrtobs1 commented 3 years ago

You are great, it works in my HA! Thank you very much for your fast help.

There is another problem: I have groups of shutters in my SHC and in HA the groups ar not "cover", they are "climate" and have others buttons in the lovelace (not up/stop/down). How can I change this into "cover" with the up/stop/down-buttons?

plamish commented 3 years ago

I guess what happened is HA setup heating_zone radiators, but missed to find your covers. Try to remove the integration, add again, but leave all heating fields empty for zones and radiators. All empty. And for default zone start testing from 'hz_1', then try 'hz_2', etc.

mrtobs1 commented 3 years ago

Great! Removing the integration, add again and leaving all heating fields empty solved the problem. Now all shutters and groups ar "cover". Thank you very much!