Coder Social home page Coder Social logo

homeassistant-atrea's People

Contributors

jbicik avatar jurajnyiri avatar omikr0n avatar slesinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

homeassistant-atrea's Issues

Unable to set up integration [cloud][BB160]

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

IP address is not a supported Atrea unit

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.

Can't change Presets

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

Cannot configure presets

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']

How to reproduce:

  1. Add Atrea integration
  2. Go to Settings -> Integrations -> select box Atrea.
  3. Click [Configure] button
  4. All presents are selected by default. Select any combination of presets
  5. Click [Submit] button

Device info

EC 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

Not loading after last HA update.

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"}

New sensor values

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.

Incompatible fan speeds

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.
image

Here are all possible combinations for my unit:
image

Unit: R-5 RA5
sw RD5 ver.: 2.03.25

Does not work with Home Assistant 2022.07.0

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.

Cannot load after update from 5.0.1 to 6.0.3

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.