Giter Site home page Giter Site logo

dmamontov / hass-tattelecom-intercom Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 3.0 252 KB

Таттелеком Домофон для Home Assistant

Home Page: https://community.home-assistant.io/t/tattelecom-intercom-integration-component/455565

License: Apache License 2.0

Python 100.00%
audio intercom tattelecom hacs homeassistant homeassistant-integration video

hass-tattelecom-intercom's People

Contributors

dmamontov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kzvdar42 sxpso

hass-tattelecom-intercom's Issues

[BUG] Не меняется состояние entity - CallState

Добрый вечер! Спасибо за интеграцию, все подвзялось отлично, кроме звонков.
Может кто подсказать, присутствует ли у кого-нибудь такая же проблема и чем можно попробовать решить. Порты для SIP и RSTP открыл.

  • HASS version: 2024.3.3
  • Component version 2.0.0
Screenshot 2024-03-30 at 00 00 53

Не удалось настроить: ImportError: Using http2=True, but the 'h2' package is not installed. Make sure to install httpx using `pip install httpx[http2]`.

Инеграция успешно устанавливается, авторизуется по SMS при добавлении, затем переходит в состояние "Не удалось настроить".

В логах ошибка:

Logger: homeassistant.config_entries
Source: helpers/httpx_client.py:66
First occurred: 22:01:31 (1 occurrences)
Last logged: 22:01:31

Error setting up entry 79xxxxxxxxx for tattelecom_intercom
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/tattelecom_intercom/__init__.py", line 48, in async_setup_entry
    _updater: IntercomUpdater = IntercomUpdater(
  File "/config/custom_components/tattelecom_intercom/updater.py", line 96, in __init__
    create_async_httpx_client(
  File "/usr/src/homeassistant/homeassistant/helpers/httpx_client.py", line 66, in create_async_httpx_client
    client = HassHttpXAsyncClient(
  File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1386, in __init__
    raise ImportError(
ImportError: Using http2=True, but the 'h2' package is not installed. Make sure to install httpx using `pip install httpx[http2]`.

Пробовал удалить и установить HACS, этот компонент - видно, что не хватает зависимости, но ошибка не решается. как доустановить пакет не понятно - стандартно установлены HassOS 9.0, Homeassistant 2022.9.7, Supervisor 2022.09.1, HACS 1.27.2 (последние доступные версии всего). другие интеграции из HACS работают.

Обновление до Home Assistant 2024.2.1 [BUG]

Describe the bug
Logger: homeassistant.setup
Source: setup.py:404
First occurred: 11 февраля 2024 г. в 19:35:10 (1 occurrences)
Last logged: 11 февраля 2024 г. в 19:35:10

Unable to prepare setup for platform 'tattelecom_intercom.camera': Platform not found (cannot import name 'DEFAULT_CONTENT_TYPE' from 'homeassistant.components.generic.camera' (/usr/src/homeassistant/homeassistant/components/generic/camera.py)).

  • Home Assistant
  • Supervisor 2024.01.1
  • Operating System 11.5
  • Пользовательский интерфейс 20240207.1
  • Component version 2.0.0

Please report issue to the custom integration author for tattelecom_intercom

Describe the bug
Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for tattelecom_intercom using this method at custom_components/tattelecom_intercom/init.py, line 75: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

Please complete the following information:

  • HASS version: [2023.2.2]
  • Component version [1.1.0]

Обновление до Home Assistant 2023.6.X

Describe the bug
После обновления интеграция перестала работать, повторный вход не происходит.

[custom_components.tattelecom_intercom.client] Successful request (https://domofon.tattelecom.ru/ApiVersion.V1/subscriber/signin): b'An internal server error occurred.'
[custom_components.tattelecom_intercom.client] Connection error (https://domofon.tattelecom.ru/ApiVersion.V1/subscriber/signin): Expecting value: line 1 column 1 (char 0)

image

Откатился назад на версию Home Assistant 2023.5 все работает исправно

Please complete the following information:

  • HASS version: 2023.6.1
  • Component version v2.0.0

Обновление до Home Assistant 2023.9.Х [BUG]

Describe the bug

Logger: aiohttp.server
Source: custom_components/tattelecom_intercom/updater.py:19
Integration: Таттелеком Домофон (documentation, issues)
First occurred: 08:22:08 (1 occurrences)
Last logged: 08:22:08

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 87, in delete
    result = await hass.config_entries.async_remove(entry_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1080, in async_remove
    await entry.async_remove(self.hass)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 578, in async_remove
    component = integration.get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/tattelecom_intercom/__init__.py", line 30, in <module>
    from .updater import IntercomUpdater
  File "/config/custom_components/tattelecom_intercom/updater.py", line 19, in <module>
    from homeassistant.helpers.entity import DeviceEntryType, DeviceInfo
ImportError: cannot import name 'DeviceEntryType' from 'homeassistant.helpers.entity' (/usr/src/homeassistant/homeassistant/helpers/entity.py)

Please complete the following information:

  • Home Assistant
  • Supervisor 2023.09.2
  • Operating System 10.5
  • Пользовательский интерфейс 20230911.0 - latest
  • Component version 2.0.0

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.