plamish / xcomfort Goto Github PK
View Code? Open in Web Editor NEWEaton xComfort SHC integration for Home Assistant
Eaton xComfort SHC integration for Home Assistant
WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.xcomfort.light.xcLight'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/plamish/xcomfort/issues
2024-04-01 21:51:29.095 WARNING (MainThread) [homeassistant.components.light] Entity None (<class 'custom_components.xcomfort.light.xcLight'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 1> and color modes, please create a bug report at https://github.com/plamish/xcomfort/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
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.
hi there,
setup a new home assistant and also did a new firmware update on SHC and not getting it to work on HA
log says:
Home Assistant Core
Error while setting up xcomfort platform for cover
23:07:04 – (FEHLER) Abdeckung
Error while setting up xcomfort platform for button
23:07:04 – (FEHLER) Taste
Error while setting up xcomfort platform for switch
23:07:04 – (FEHLER) Schalter
Error while setting up xcomfort platform for light
23:07:04 – (FEHLER) Licht
Error while setting up xcomfort platform for sensor
23:07:04 – (FEHLER) Sensor
HVAC_MODE_AUTO was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please create a bug report at https://github.com/plamish/xcomfort/issues
23:07:04 – (WARNUNG) Klima - Die Nachricht ist zum ersten Mal am 23:07:04 aufgetreten und erscheint 12 mal
TEMP_CELSIUS was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/plamish/xcomfort/issues
23:07:04 – (WARNUNG) helpers/deprecation.py - Die Nachricht ist zum ersten Mal am 23:07:04 aufgetreten und erscheint 2 mal
SUPPORT_CLOSE was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.CLOSE instead, please create a bug report at https://github.com/plamish/xcomfort/issues
23:07:04 – (WARNUNG) Abdeckung - Die Nachricht ist zum ersten Mal am 23:07:04 aufgetreten und erscheint 10 mal
thanks for help
I installed Hacs as instructed, cleared the cache etc...I see the integration and on my dashboard with status 'Up-to-date'
How can I now add xcomfort devices in, there I am lost, I'm new into HA
I am not able to get the integration working. Please see the below logg fra HA. Any tips on how to solve this is appreciated.
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'
Problem while setting up xcomfort. Seems like the device dictonary is empty. Also scene dict is empty.
2023-07-25 20:53:53.012 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up xcomfort platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xcomfort/sensor.py", line 17, in async_setup_entry
if device['type'].find("Temp") >= 0:
~~~~~~^^^^^^^^
KeyError: 'type'
2023-07-25 20:53:53.016 ERROR (MainThread) [homeassistant.components.light] Error while setting up xcomfort platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xcomfort/light.py", line 14, in async_setup_entry
if device['type'].find("DimAct") >= 0:
~~~~~~^^^^^^^^
KeyError: 'type'
2023-07-25 20:53:53.019 ERROR (MainThread) [homeassistant.components.switch] Error while setting up xcomfort platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xcomfort/switch.py", line 14, in async_setup_entry
if device['type'].find("Switch") >= 0:
~~~~~~^^^^^^^^
KeyError: 'type'
2023-07-25 20:53:53.024 ERROR (MainThread) [homeassistant.components.button] Error while setting up xcomfort platform for button
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xcomfort/button.py", line 14, in async_setup_entry
async_add_entities([xcScene(coordinator, i, scene['id'], scene['name'])])
~~~~~^^^^^^
KeyError: 'id'
2023-07-25 20:53:53.028 ERROR (MainThread) [homeassistant.components.cover] Error while setting up xcomfort platform for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xcomfort/cover.py", line 22, in async_setup_entry
if device['type'].find("Shutt") >= 0:
~~~~~~^^^^^^^^
KeyError: 'type'
Hi,
I recently added one more actuator and now no devices from SHC is discovered in home assistant.
I tried to delet the devices integration and adding it again, without luck.
Please advice i am stuck :)
Hi,
Do you have any plans for adding energy sensors (switching actuators with EMS)?
/Jan
Hi,
I get temperature readings from my old room controllers (With the wheel) but not humidity. It states in the readme that temperature are supported but no mention of humidity. I guess that is not supported?
But it would be nice if it was, any plans for supporting them ?
HASSOS 2023.9.2
Two problems:
Hello,
Using core 2023.9.2 and getting this warning this morning:
Entity light.utelys_hybel_aktuator (<class 'custom_components.xcomfort.light.xcLight'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.
Is it something that can be updated?
Cheers
Hi
I am getting this error on all my devices in the log. In the user interfaces the switch or device gets unavailable.
Here is the log for one device:
Lys gjesterom slått på
07:05:42 - For 38 minutter siden
Lys gjesterom ble utilgjengelig
07:05:36 - For 38 minutter siden
Lys gjesterom slått på
07:04:37 - For 39 minutter siden
Lys gjesterom ble utilgjengelig
07:04:31 - For 39 minutter siden
Lys gjesterom slått på
07:03:34 - For 40 minutter siden
The light is not turned on or off.
I'm a bit new to this and I'm trying to make this work but I'm not quite sure where to copy the files to. Is it to the root directory?
Hi,
Getting those warning after update to 2024.1 regarding deprecated constants in 2025.1:
HVAC_MODE_AUTO was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please create a bug report at https://github.com/plamish/xcomfort/issues
HVAC_MODE_DRY was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.DRY instead, please create a bug report at https://github.com/plamish/xcomfort/issues
HVAC_MODE_FAN_ONLY was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.FAN_ONLY instead, please create a bug report at https://github.com/plamish/xcomfort/issues
SUPPORT_PRESET_MODE was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/plamish/xcomfort/issues
SUPPORT_TARGET_TEMPERATURE was used from xcomfort, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/plamish/xcomfort/issues
I get the following error message after rebooting HA:
2021-07-20 17:07:35 ERROR (SyncWorker_2) [homeassistant.loader] The custom integration ‘xcomfort’ does not have a valid version key (None) in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details
Any idea how to fix this?
Fantastic work!
Works flawless on lighting. I have a complex xcomfort network and almost all units became available in hassio!
Are you able to integrate the new RCT CRCA?
Hi! Being "stuck" with a legacy xComfort solution I can't swap out unless I want to tear down multiple walls, this is a great solution for me. I was able to install the integration, and it reports back success. However, for every device group I get an error:
Logger: homeassistant.components.switch
Source: custom_components/xcomfort/switch.py:14
Integration: Switch (documentation, issues)
First occurred: 17:53:10 (1 occurrences)
Last logged: 17:53:10
Error while setting up xcomfort platform for switch
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 "/config/custom_components/xcomfort/switch.py", line 14, in async_setup_entry
if device['type'].find("Switch") >= 0:
KeyError: 'type'
This one, as you can see, was for switches. All other categories, except buttons, fail the same way. For buttons it's the "id" key:
Logger: homeassistant.components.button
Source: custom_components/xcomfort/button.py:14
Integration: Button ([documentation](https://www.home-assistant.io/integrations/button), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+button%22))
First occurred: 17:53:10 (1 occurrences)
Last logged: 17:53:10
Error while setting up xcomfort platform for button
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 "/config/custom_components/xcomfort/button.py", line 14, in async_setup_entry
async_add_entities([xcScene(coordinator, i, scene['id'], scene['name'])])
KeyError: 'id'
Thoughts?
Hi,
Im trying to install your Xcomfort intregration to use with my newly installed ZIP Screens.
Would like to get the lux value from a HUE outdoor sensor and make the zip screens go down on a value and up on another.
But the issue for me is that I cant login it seems. I provided a screenshot of the error log. But im not able to pinpoint the issue with my lack of code experience.
Ive tried different usernames but does not seems to make a difference.
Installed via HACS
See below, the integration just stopped working.
Any way to fix this?
2021-08-16 17:15:34 ERROR (MainThread) [custom_components.xcomfort] Error fetching xcomfort data: Error API
2021-08-16 17:15:34 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up xcomfort platform for sensor
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 "/config/custom_components/xcomfort/sensor.py", line 15, in async_setup_entry
for device in coordinator.data:
TypeError: 'NoneType' object is not iterable
2021-08-16 17:15:34 ERROR (MainThread) [homeassistant.components.switch] Error while setting up xcomfort platform for switch
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 "/config/custom_components/xcomfort/switch.py", line 13, in async_setup_entry
for device in coordinator.data:
TypeError: 'NoneType' object is not iterable
2021-08-16 17:15:34 ERROR (MainThread) [homeassistant.components.cover] Error while setting up xcomfort platform for cover
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 "/config/custom_components/xcomfort/cover.py", line 19, in async_setup_entry
for device in coordinator.data:
TypeError: 'NoneType' object is not iterable
2021-08-16 17:15:34 ERROR (MainThread) [homeassistant.components.light] Error while setting up xcomfort platform for light
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 "/config/custom_components/xcomfort/light.py", line 13, in async_setup_entry
for device in coordinator.data:
TypeError: 'NoneType' object is not iterable
Thanks!
Hi - tx for a great effort made to make old smart houses last...!
I've bought a house with xcomfort - SHC now in favor of Sensio...
I've installed the work of plamish - but I cannot integrate more than two zones - only "avbrutt" as result ("aborted").
Is the limit two zones? I cannot find LCD-displays or actuators for water in floors as well. Any tricks for this?
Thanks again for making my house cooler than without this awsome work!
Tanks for a great intergration.
Works werry well exept from one issue.
When I turn on light, it turn on with 100% brightnes.
Any idea what to do to get light to turn on with the state they had when turned off?
Hello,
Just wondering if the integration can make the wall switches available in Home Assistant so that we can use them in automations etc..?
Currently I only see my light actuators in HA, not the wall switches even though they are implemented as datapoints in MRF and in the SHC.
Is there something I am missing here?
The integration works fine for devices that are visible in HA, but not all devices turn up in HA. Any tips on how to troubleshoot this?
Getting the following warning after update to 2021.12:
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.kjokken_dimmeaktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.1_etasje_gang_dimmeaktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.2_etasje_trapp_dimmeaktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_terrasse_bak (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_1_etasje_aktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_2_etasje_aktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-11 21:53:24 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.utelys_hybel_aktuator (<class 'custom_components.xcomfort.light.xcLight'>) implements device_state_attributes. Please report it to the custom component author.
It looks like it is just a name change from "device_state_attributes" to "extra_state_attributes" name change.
Anyone knows how to fix this? Is it just to replace all "device_state_attributes" by "extra_state_attributes" in all files?
Since I rebuild my HA server I get the following error:
Error fetching xcomfort data: Error API
Hi, any chance you could adapt/modify this integration to support the xComfort Bridge?
Hi,
Could you give a fast tutorial on how to install?
which files do i have to modify?
I cant get the Xcomfort intregration to work.
When i try to add integration, nothing shows up.
I have installed it thru HACS.
Please help.
Sincerly,
Jonathan
Hi! I really love this integration! Is it possible to get the status of each cover from SHC? In my Home Assistant it is always "unknown". Thanks for your reply.
Hi
My scenarios comes in to HA as flip switches(on/off) any good way to change them to just an activation button. I’ll imagine there will be some extra work programming all intonations to switch off all switches before they can be re activated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.