jurajnyiri / homeassistant-atrea Goto Github PK
View Code? Open in Web Editor NEWCustom component allowing control of Atrea ventilation units
License: Apache License 2.0
Custom component allowing control of Atrea ventilation units
License: Apache License 2.0
Hello,
I'm trying to set up this integration.
I'm using the Atreas cloud (I'm living in apartment not in house) and unit BB160. Probably the problem could be also that in cloud the username is required, but I can't find a way how to pass it. I guess that name in configuration bellow is for climate name (e.g. prefix).
my config is as follows:
climate:
- platform: atrea
host: !secret atrea_host
password: !secret atrea_password
#name: !secret atrea_user
customize:
presets:
- 'Off'
- 'Automat'
- 'Ventilation'
- 'Disbalance'
when I restart the HA I'm getting following error:
Error adding entities for domain climate with platform atrea
Error while setting up atrea platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 613, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 540, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 302, in state_attributes
data[ATTR_PRESET_MODE] = self.preset_mode
File "/config/custom_components/atrea/climate.py", line 196, in preset_mode
if self._current_preset.name and self._current_preset.name in self._userLabels:
AttributeError: 'NoneType' object has no attribute 'name'
could you please help me to resolve the issue if possible?
Thanks
po aktualizaci na 6.0.5. se nelze znovu připojit k jednotce EC370.
Po zadání adresy oznámí: IP address is not a supported Atrea unit
Po přidání "http://" před adresu oznámí: Connection failed
Složka ATREA odstraněna a vytvořena nová, HA restartován, v "/config/configuration.yaml" záznam o Atrea vymazán.
How to reproduce
In Integration entries click on configure. If I change fan modes and click on Submit, it works. But if I change for example D1 preset (have it selected) it doesn't appear in frontend and also I can't set it using Developer tools service call climate.set_preset_mode. It gives me:
Preset mode D1 is not valid. Valid preset modes are: Off, Automatic, Ventilation, Night precooling.
Home assistant
Core
2024.1.3
Supervisor
2023.12.1
Operating System
11.4
Frontend
20240104.0
Atrea unit
ECV380 RD5
Integration
2.3.25
Hello,
I want to select only certain presets but it is not possible to save it du to following error:
User input malformed: value must be one of [] for dictionary value @ data['presets']
[Configure]
button[Submit]
buttonEC ECV380
by ATREA s.r.o.
Firmware: 2.3.19
Hardware: 35B183824
Component version: 6.1.0
HA version: Home Assistant 2022.7.6
In spite many presets are available, only those actually supported by the unit are offered in climate widget drop-down. -> low priority issue for me.
Thank you
Honza
Hello.
The integration stopped working. If I try to add the Atrea unit from Integrations after installation, I get error:
Config flow could not be loaded: {"message":"Invalid handler specified"}
Hi, will be possible add list of sensors, for example Atrea attributes for example(IZT-temp-Up="I10247", IZT-temp-Middle="I10248",IZT-temp-FirePlace="I10249") as entity value data list.
I need it for do automatization with heating IZT. :)
Problem is that I am new at Python and have problem upgrade you project for return this data. :(
I checked params.xml file and xml.xml files and values are there.
If you do any short list of this atributes, I could do update with alll this values which I know.
It is nice that you are using Climante object, but there will need have this valees accessible as list of parameters.
Thanks for help.
Hi,
thanks for the integration. I have 1 issue with the fan speed.
I’m usint the Atrea RA5 unit, and I don’t have 15%, 20%…100% speeds there, but this:
for circulation:
Off, Min-Circ, Norm-Circ, max-Circ
for ventilation:
Off, Min-vent,Norm-vent, Max-vent
If I use the percentages, i get ‘undefined’ error.
Here are all possible combinations for my unit:
Unit: R-5 RA5
sw RD5 ver.: 2.03.25
Hi, just bought Atrea unit Atrea DUPLEX 360 Pro-V.aM.CF, fw. aMCE-v.2.0.3 and not able to connect to HA.
Working on fix
/usr/local/opt/[email protected]/bin/pip3 install pyatrea
Collecting pyatrea
Downloading pyatrea-0.9.4-py3-none-any.whl (6.3 kB)
Collecting demjson
Downloading demjson-2.2.4.tar.gz (131 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.5/131.5 kB 2.2 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in demjson setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
The extension was working fine in 5.0.1, but doesn't load with 6.0.3. I've deleted the configuration in Home Assistant config file and used UI to set it up again and it doesn't show any devices/entities. The log file has following error message:
Error while setting up atrea platform for climate
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/atrea/climate.py", line 66, in async_setup_entry
hass.data[DOMAIN][entry.entry_id]["climate"] = AtreaDevice(
File "/config/custom_components/atrea/climate.py", line 103, in __init__
self.manualUpdate(False)
File "/config/custom_components/atrea/climate.py", line 269, in manualUpdate
self._model = self.atrea.getModel()
File "/config/deps/lib/python3.9/site-packages/pyatrea/__init__.py", line 152, in getModel
configDir = self.getConfigDir()
File "/config/deps/lib/python3.9/site-packages/pyatrea/__init__.py", line 132, in getConfigDir
response = requests.get(
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.9/http/client.py", line 1296, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 173, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 161, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()` at custom_components/atrea/climate.py, line 269: self._model = self.atrea.getModel()
HomeAssistant version: 2022.5.5
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.