andrei123 Posted December 14, 2021 Share Posted December 14, 2021 В 05.11.2021 в 22:34, dancom сказал: 1. Установить на роутер opkg: https://help.keenetic.com/hc/ru/articles/360000948719-OPKG https://help.keenetic.com/hc/ru/articles/360021214160 2.Зайти в SSH и выполнить по очереди четыре команды: echo "src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA" >> /opt/etc/opkg.conf opkg update opkg install homeassistant /opt/etc/init.d/S99hass start 3. В любом браузере перейти по адресу: http://192.168.XX.XX:8123/ где XX.XX - ваша подсеть. 4. Наслаждаться. Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 15, 2021 Share Posted December 15, 2021 12 часа назад, andrei123 сказал: но с homekit не проходит это. все требования выполнены? https://github.com/Entware/Entware/wiki/Self-installation-of-python-modules https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation и т.д. Скрытый текст Quote Link to comment Share on other sites More sharing options...
al12s Posted December 15, 2021 Share Posted December 15, 2021 (edited) 16 часов назад, TheBB сказал: "прибит гвоздями" к cryptography >= 35 (в НА был =35.0.0), текущая версия =3.4.8^ требует для сборки "rust" собсна, "финт ушами", если повезёт, то "взлетит" (можно и руками накатить, но долго рассказывать) `pip uninstall python-miio` `pip uninstall cryptography` `opkg install --force-reinstall python3-cryptography` накатываем "python3-miio" (пакет без зависимостей, только пропатчен на версию 3.4.8 cryptography) Сделал следующее: pip uninstall python-miio pip uninstall cryptography opkg install --force-reinstall python3-cryptography opkg install /home/python3-miio_0.5.9.1-1_mipsel-3.4.ipk HA долго грузился, в лог появилась ошибка: Logger: homeassistant.setup Source: setup.py:153 First occurred: 09:43:37 (1 occurrences) Last logged: 09:43:37 Setup failed for xiaomi_miio: Unable to import component: cannot import name 'RoborockVacuum' from 'miio' (/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/miio/__init__.py) устройства который использовали эту интеграцию не активные. Roborock Vacuum - у меня нет Edited December 15, 2021 by al12s Quote Link to comment Share on other sites More sharing options...
al12s Posted December 15, 2021 Share Posted December 15, 2021 (edited) Еще вылезла ошибка которой раньше не замечал, она появился после последнего обновления: Logger: aiohttp.server Source: components/homekit_controller/const.py:53 First occurred: 09:57:39 (2 occurrences) Last logged: 09:58:12 Error handling request Traceback (most recent call last): File "/opt/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request File "/opt/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle File "/opt/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl File "/opt/lib/python3.10/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/ban.py", line 78, in ban_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/auth.py", line 181, in auth_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/view.py", line 137, in handle File "/opt/lib/python3.10/site-packages/homeassistant/components/config/config_entries.py", line 130, in post File "/opt/lib/python3.10/site-packages/homeassistant/components/http/data_validator.py", line 62, in wrapper File "/opt/lib/python3.10/site-packages/homeassistant/helpers/data_entry_flow.py", line 71, in post File "/opt/lib/python3.10/site-packages/homeassistant/data_entry_flow.py", line 203, in async_init File "/opt/lib/python3.10/site-packages/homeassistant/data_entry_flow.py", line 221, in _async_init File "/opt/lib/python3.10/site-packages/homeassistant/config_entries.py", line 718, in async_create_flow File "/opt/lib/python3.10/site-packages/homeassistant/loader.py", line 530, in get_platform File "/opt/lib/python3.10/site-packages/homeassistant/loader.py", line 535, in _import_platform File "/opt/lib/python3.10/importlib/__init__.py", line 126, in import_module File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/__init__.py", line 21, in <module> File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/config_flow.py", line 18, in <module> File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/connection.py", line 21, in <module> File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/const.py", line 53, in <module> AttributeError: type object 'Vendor' has no attribute 'HAA_SETUP' При попытки установить интеграцию "homekit_controller" выдает ошибку. Edited December 15, 2021 by al12s Quote Link to comment Share on other sites More sharing options...
andrei123 Posted December 15, 2021 Share Posted December 15, 2021 1 час назад, TheBB сказал: все требования выполнены? https://github.com/Entware/Entware/wiki/Self-installation-of-python-modules https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation и т.д. Скрыть содержимое дык там по английски. попробую ))) Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 15, 2021 Share Posted December 15, 2021 7 часов назад, al12s сказал: /opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/miio/__init__.py ? у мну такого нет ~ # ls -1d /opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/mi* /opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/micloud /opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/micloud-0.4-py3.10.egg-info ~ # 7 часов назад, al12s сказал: При попытки установить интеграцию "homekit_controller" выдает ошибку. установка "HomeKit Controller" выше (в картинках) логи (as is): ~ # ~ # cat /opt/var/lib/homeassistant/home-assistant.log 2021-12-14 23:00:11 ERROR (MainThread) [homeassistant.components.speedtestdotnet] Error fetching speedtestdotnet data: Unable to connect to servers to test latency. 2021-12-15 09:22:29 ERROR (MainThread) [homeassistant.components.homekit.util] media_player.tv_samsung_led49 does not support any media_player features 2021-12-15 09:33:16 ERROR (MainThread) [homeassistant.components.upnp] Error requesting Keenetic Gateway data: [Errno 104] Connection reset by peer 2021-12-15 13:14:01 ERROR (MainThread) [homeassistant.components.upnp] Timeout fetching Keenetic Gateway data ~ # ~ # cat /opt/var/lib/homeassistant/home-assistant.log.1 ~ # ~ # cat /opt/var/lib/homeassistant/home-assistant.log.fault ~ # Quote Link to comment Share on other sites More sharing options...
OlegOs Posted December 16, 2021 Share Posted December 16, 2021 (edited) Ещё одна проблема (с предыдущими разобрался) после обновления перестала работать интеграция с телевизором LG. Работает только включение через magic packet, остальное нет. У кого-нибудь есть проблема с LG TV после обновления? В логе вот что: Скрытый текст 2021-12-16 12:27:47 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.tv_eth fails Traceback (most recent call last): File "/opt/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 487, in async_update_ha_state File "/opt/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 691, in async_device_update File "/opt/lib/python3.10/site-packages/homeassistant/components/webostv/media_player.py", line 226, in async_update File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/aiopylgtv/webos_client.py", line 152, in connect return await self.connect_result File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/aiopylgtv/webos_client.py", line 180, in connect_handler ws = await asyncio.wait_for( File "/opt/lib/python3.10/asyncio/tasks.py", line 447, in wait_for File "/opt/lib/python3.10/asyncio/tasks.py", line 648, in _wrap_awaitable File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/websockets/legacy/client.py", line 622, in __await_impl__ transport, protocol = await self._create_connection() File "/opt/lib/python3.10/asyncio/base_events.py", line 1080, in create_connection File "/opt/lib/python3.10/asyncio/base_events.py", line 1098, in _create_connection_transport File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/websockets/legacy/client.py", line 160, in __init__ super().__init__(**kwargs) File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 154, in __init__ self._drain_lock = asyncio.Lock( File "/opt/lib/python3.10/asyncio/locks.py", line 77, in __init__ File "/opt/lib/python3.10/asyncio/mixins.py", line 17, in __init__ TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary Здесь https://github.com/home-assistant/core/issues/60064 пишут про похожую проблему после перехода на python 3.10, и предлагают обновить websockets до 10.1. Edited December 16, 2021 by Олег Осипов скорректировал Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 16, 2021 Share Posted December 16, 2021 3 часа назад, Олег Осипов сказал: Здесь https://github.com/home-assistant/core/issues/60064 пишут про похожую проблему после перехода на python 3.10, и предлагают обновить websockets до 10.1. улыбнуло... Цитата Just a small little note: We don't support Python 3.10 yet (but good we have this as an issue logged!). дык и обновите, делов-то Скрытый текст ~ # pip install websockets==10.1 Collecting websockets==10.1 Downloading websockets-10.1.tar.gz (83 kB) |████████████████████████████████| 83 kB 212 kB/s Using legacy 'setup.py install' for websockets, since package 'wheel' is not installed. Installing collected packages: websockets Running setup.py install for websockets ... done Successfully installed websockets-10.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available. You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command. ~ # ~ # grep -Er '^#!.*python' /opt/lib/python3.10/site-packages/websockets/ ~ # ~ # ls -al /opt/lib/python3.10/site-packages/websockets/ drwxr-xr-x 5 root root 4096 Dec 16 13:40 . drwxr-xr-x 262 root root 20480 Dec 16 13:40 .. -rw-r--r-- 1 root root 3436 Nov 14 23:04 __init__.py -rw-r--r-- 1 root root 7255 Nov 14 23:04 __main__.py drwxr-xr-x 2 root root 4096 Dec 16 13:40 __pycache__ -rw-r--r-- 1 root root 147 Nov 14 23:04 auth.py -rw-r--r-- 1 root root 11820 Nov 14 23:04 client.py -rw-r--r-- 1 root root 23408 Nov 14 23:04 connection.py -rw-r--r-- 1 root root 5086 Nov 14 23:04 datastructures.py -rw-r--r-- 1 root root 10049 Nov 14 23:04 exceptions.py drwxr-xr-x 3 root root 4096 Dec 16 13:40 extensions -rw-r--r-- 1 root root 12229 Nov 14 23:04 frames.py -rw-r--r-- 1 root root 16120 Nov 14 23:04 headers.py -rw-r--r-- 1 root root 644 Nov 14 23:04 http.py -rw-r--r-- 1 root root 12350 Nov 14 23:04 http11.py -rw-r--r-- 1 root root 2790 Nov 14 23:04 imports.py drwxr-xr-x 3 root root 4096 Dec 16 13:40 legacy -rw-r--r-- 1 root root 0 Nov 14 23:04 py.typed -rw-r--r-- 1 root root 17972 Nov 14 23:04 server.py -rw-r--r-- 1 root root 5835 Nov 14 23:04 speedups.c -rwxr-xr-x 1 root root 7080 Dec 16 13:40 speedups.cpython-310.so -rw-r--r-- 1 root root 4038 Nov 14 23:04 streams.py -rw-r--r-- 1 root root 1384 Nov 14 23:04 typing.py -rw-r--r-- 1 root root 3201 Nov 14 23:04 uri.py -rw-r--r-- 1 root root 1150 Nov 14 23:04 utils.py -rw-r--r-- 1 root root 2598 Nov 14 23:04 version.py ~ # ~ # ldd /opt/lib/python3.10/site-packages/websockets/speedups.cpython-310.so linux-vdso.so.1 (0x776f9000) libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x77690000) libc.so.6 => /opt/lib/libc.so.6 (0x774fd000) libstdc++.so.6 => /opt/lib/libstdc++.so.6 (0x77359000) /opt/lib/ld.so.1 (0x776c7000) libm.so.6 => /opt/lib/libm.so.6 (0x77251000) ~ # Quote Link to comment Share on other sites More sharing options...
OlegOs Posted December 16, 2021 Share Posted December 16, 2021 Обновил, правда speedups.cpython-310.so у меня нет: На проблему это не повлияло, может из-за этого файла? Скрытый текст ~ # pip install websockets==10.1 Collecting websockets==10.1 Downloading websockets-10.1.tar.gz (83 kB) |████████████████████████████████| 83 kB 248 kB/s Using legacy 'setup.py install' for websockets, since package 'wheel' is not installed. Installing collected packages: websockets Running setup.py install for websockets ... done Successfully installed websockets-10.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available. You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command. ~ # grep -Er '^#!.*python' /opt/lib/python3.10/site-packages/websockets/ ~ # ls -al /opt/lib/python3.10/site-packages/websockets/ drwxr-xr-x 5 root root 4096 Dec 16 18:28 . drwxr-xr-x 229 root root 8192 Dec 16 18:28 .. -rw-r--r-- 1 root root 3436 Nov 15 03:04 __init__.py -rw-r--r-- 1 root root 7255 Nov 15 03:04 __main__.py drwxr-xr-x 2 root root 4096 Dec 16 18:28 __pycache__ -rw-r--r-- 1 root root 147 Nov 15 03:04 auth.py -rw-r--r-- 1 root root 11820 Nov 15 03:04 client.py -rw-r--r-- 1 root root 23408 Nov 15 03:04 connection.py -rw-r--r-- 1 root root 5086 Nov 15 03:04 datastructures.py -rw-r--r-- 1 root root 10049 Nov 15 03:04 exceptions.py drwxr-xr-x 3 root root 4096 Dec 16 18:28 extensions -rw-r--r-- 1 root root 12229 Nov 15 03:04 frames.py -rw-r--r-- 1 root root 16120 Nov 15 03:04 headers.py -rw-r--r-- 1 root root 644 Nov 15 03:04 http.py -rw-r--r-- 1 root root 12350 Nov 15 03:04 http11.py -rw-r--r-- 1 root root 2790 Nov 15 03:04 imports.py drwxr-xr-x 3 root root 4096 Dec 16 18:28 legacy -rw-r--r-- 1 root root 0 Nov 15 03:04 py.typed -rw-r--r-- 1 root root 17972 Nov 15 03:04 server.py -rw-r--r-- 1 root root 5835 Nov 15 03:04 speedups.c -rw-r--r-- 1 root root 4038 Nov 15 03:04 streams.py -rw-r--r-- 1 root root 1384 Nov 15 03:04 typing.py -rw-r--r-- 1 root root 3201 Nov 15 03:04 uri.py -rw-r--r-- 1 root root 1150 Nov 15 03:04 utils.py -rw-r--r-- 1 root root 2598 Nov 15 03:04 version.py ~ # ldd /opt/lib/python3.10/site-packages/websockets/speedups.cpython-310.so -sh: ldd: not found ~ # opkg install ldd Installing ldd (2.27-11) to root... Downloading http://bin.entware.net/mipselsf-k3.4/ldd_2.27-11_mipsel-3.4.ipk Configuring ldd. ~ # ldd /opt/lib/python3.10/site-packages/websockets/speedups.cpython-310.so ldd: /opt/lib/python3.10/site-packages/websockets/speedups.cpython-310.so: $No such file or directory ~ # Log: Скрытый текст 2021-12-16 18:50:53 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.tv_eth fails Traceback (most recent call last): File "/opt/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 487, in async_update_ha_state File "/opt/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 691, in async_device_update File "/opt/lib/python3.10/site-packages/homeassistant/components/webostv/media_player.py", line 226, in async_update File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/aiopylgtv/webos_client.py", line 152, in connect return await self.connect_result File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/aiopylgtv/webos_client.py", line 180, in connect_handler ws = await asyncio.wait_for( File "/opt/lib/python3.10/asyncio/tasks.py", line 447, in wait_for File "/opt/lib/python3.10/asyncio/tasks.py", line 648, in _wrap_awaitable File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/websockets/legacy/client.py", line 622, in __await_impl__ transport, protocol = await self._create_connection() File "/opt/lib/python3.10/asyncio/base_events.py", line 1080, in create_connection File "/opt/lib/python3.10/asyncio/base_events.py", line 1098, in _create_connection_transport File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/websockets/legacy/client.py", line 160, in __init__ super().__init__(**kwargs) File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 154, in __init__ self._drain_lock = asyncio.Lock( File "/opt/lib/python3.10/asyncio/locks.py", line 77, in __init__ File "/opt/lib/python3.10/asyncio/mixins.py", line 17, in __init__ TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 16, 2021 Share Posted December 16, 2021 чего-то не хватает/не установлено вырезка (не мясная): ... creating build/temp.linux-mips-3.10/src/websockets /opt/bin/gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -pthread -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -pthread -I/opt/include -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float -I/opt/include -fPIC -I/opt/include/python3.10 -c src/websockets/speedups.c -o build/temp.linux-mips-3.10/src/websockets/speedups.o gcc -shared -Wl,--dynamic-linker=/opt/lib/ld.so.1 -Wl,-rpath=/opt/lib -L/opt/lib -L/work/testing/Entware-sync/build_dir/target-mipsel_mips32r2_glibc-2.27/Python-3.10.0 -L/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -Wl,-rpath=/opt/lib -L/opt/lib -L/work/testing/Entware-sync/build_dir/target-mipsel_mips32r2_glibc-2.27/Python-3.10.0 -L/opt/lib -Wl,-rpath=/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -L/opt/lib -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -msoft-float -I/opt/include build/temp.linux-mips-3.10/src/websockets/speedups.o -L/opt/lib -o build/lib.linux-mips-3.10/websockets/speedups.cpython-310.so running install_lib ... full log https://pastebin.com/23tyRxKh Quote Link to comment Share on other sites More sharing options...
OlegOs Posted December 17, 2021 Share Posted December 17, 2021 TheBB, спасибо ! Заработало после того как удалил папку opt\var\lib\homeassistant\deps\lib\python3.10\site-packages\websockets где была старая версия, похоже HA сначала пытается туда обращаться. Заново она не создалась и похоже HA теперь берёт свежую версию отсюда - opt\lib\python3.10\site-packages\websockets, где обновил ! Такая же проблема была у меня со старой версией интерфейса, которую описывал выше, пока не пересоздал профиль удалив opt\var\lib\homeassistant. Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 21, 2021 Share Posted December 21, 2021 bump to 2021.12.4 Quote Link to comment Share on other sites More sharing options...
OlegOs Posted December 23, 2021 Share Posted December 23, 2021 TheBB, спасибо обновился нормально ! По моим ощущениям эта версия меньше проц грузит чем предыдущая ! Quote Link to comment Share on other sites More sharing options...
nomadfromx Posted December 24, 2021 Share Posted December 24, 2021 Добрый день всем! Прошу подсказать, попробовал с нуля поставить HA, но вебморда что-то не работает. Как проверить, почему так? Quote Link to comment Share on other sites More sharing options...
klepan Posted December 24, 2021 Share Posted December 24, 2021 43 минуты назад, nomadfromx сказал: Добрый день всем! Прошу подсказать, попробовал с нуля поставить HA, но вебморда что-то не работает. Как проверить, почему так? Запустить с дебагом и смотреть вывод hass -c /opt/var/lib/homeassistant --debug Quote Link to comment Share on other sites More sharing options...
nomadfromx Posted December 24, 2021 Share Posted December 24, 2021 50 минут назад, klepan сказал: Запустить с дебагом и смотреть вывод hass -c /opt/var/lib/homeassistant --debug Спасибо. Если честно, то не вижу чего-то криминального: ~ # /opt/etc/init.d/S99hass start Starting hass... done. ~ # hass -c /opt/var/lib/homeassistant --debug 2021-12-24 11:48:39 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-9' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:259>cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.161 seconds 2021-12-24 11:48:39 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-10' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:259> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.169 seconds 2021-12-24 11:48:40 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.10/site-packages/homeassistant/runner.py:103> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/lib/python3.10/asyncio/tasks.py:663> cb=[_run_until_complete_cb() at /opt/lib/python3.10/asyncio/base_events.py:184] created at /opt/lib/python3.10/asyncio/tasks.py:638> took 0.278 seconds 2021-12-24 11:48:40 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.10/site-packages/homeassistant/runner.py:103> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/lib/python3.10/asyncio/tasks.py:663> cb=[_run_until_complete_cb() at /opt/lib/python3.10/asyncio/base_events.py:184] created at /opt/lib/python3.10/asyncio/tasks.py:638> took 0.155 seconds 2021-12-24 11:48:47 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-95' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:229> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/lib/python3.10/asyncio/tasks.py:663> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 6.686 seconds 2021-12-24 11:48:47 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //opt/var/lib/homeassistant/home-assistant_v2.db was shutdown cleanly 2021-12-24 11:48:48 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-100' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:229> wait_for=<Task pending name='Task-101' coro=<Store._async_load() running at /opt/lib/python3.10/site-packages/homeassistant/helpers/storage.py:116> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.305 seconds 2021-12-24 11:48:48 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=4 from 2021-12-24 08:48:44.775603) 2021-12-24 11:48:49 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.10/site-packages/homeassistant/runner.py:103> wait_for=<Future pending cb=[Task.task_wakeup()] created at /opt/lib/python3.10/asyncio/base_events.py:424> cb=[_run_until_complete_cb() at /opt/lib/python3.10/asyncio/base_events.py:184] created at /opt/lib/python3.10/asyncio/tasks.py:638> took 0.112 seconds 2021-12-24 11:48:49 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-135' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:229> wait_for=<Future pending cb=[Task.task_wakeup()] created at /opt/lib/python3.10/asyncio/base_events.py:424> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.196 seconds 2021-12-24 11:48:49 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-138' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:259> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.195 seconds 2021-12-24 11:48:49 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-139' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:229> wait_for=<Task pending name='Task-163' coro=<Store._async_load() running at /opt/lib/python3.10/site-packages/homeassistant/helpers/storage.py:116> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.174 seconds 2021-12-24 11:48:51 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-154' coro=<async_setup.<locals>.setup_panel() done, defined at /opt/lib/python3.10/site-packages/homeassistant/components/config/__init__.py:42> result=None created at /opt/lib/python3.10/asyncio/tasks.py:337> took 1.237 seconds 2021-12-24 11:48:51 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-155' coro=<async_setup.<locals>.setup_panel() done, defined at /opt/lib/python3.10/site-packages/homeassistant/components/config/__init__.py:42> result=None created at /opt/lib/python3.10/asyncio/tasks.py:337> took 0.102 seconds 2021-12-24 11:48:52 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-132' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:229> wait_for=<Task pending name='Task-205' coro=<Store._async_load() running at /opt/lib/python3.10/site-packages/homeassistant/helpers/storage.py:116> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> cb=[Task.task_wakeup(), Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.258 seconds 2021-12-24 11:48:54 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-133' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:229> wait_for=<Task pending name='Task-214' coro=<Store._async_load() running at /opt/lib/python3.10/site-packages/homeassistant/helpers/storage.py:116> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> cb=[Task.task_wakeup(), Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 1.974 seconds 2021-12-24 11:48:54 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-131' coro=<_async_setup_component() running at /opt/lib/python3.10/site-packages/homeassistant/setup.py:229> wait_for=<Task pending name='Task-223' coro=<Store._async_load() running at /opt/lib/python3.10/site-packages/homeassistant/helpers/storage.py:116> cb=[Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> cb=[Task.task_wakeup(), Task.task_wakeup()] created at /opt/lib/python3.10/site-packages/homeassistant/core.py:393> took 0.118 seconds 2021-12-24 11:48:55 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-217' coro=<async_get_integration_with_requirements() running at /opt/lib/python3.10/site-packages/homeassistant/requirements.py:85> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/lib/python3.10/asyncio/futures.py:384, Task.task_wakeup()] created at /opt/lib/python3.10/asyncio/base_events.py:424> cb=[gather.<locals>._done_callback() at /opt/lib/python3.10/asyncio/tasks.py:718] created at /opt/lib/python3.10/asyncio/tasks.py:638> took 1.093 seconds Quote Link to comment Share on other sites More sharing options...
nomadfromx Posted December 24, 2021 Share Posted December 24, 2021 Снимаю вопрос. Запустилось. Наверное очень долго базу формировало при первом запуске. Quote Link to comment Share on other sites More sharing options...
al12s Posted December 25, 2021 Share Posted December 25, 2021 (edited) В 15.12.2021 в 17:05, TheBB сказал: установка "HomeKit Controller" выше (в картинках) при попытке добавить интеграцию HomeKit Controller, выдает ошибку: не удалось загрузить мастер настройки при этом интеграция HomeKit работает без проблем. в логах следующее: Logger: aiohttp.server Source: components/homekit_controller/const.py:53 First occurred: 16:12:29 (1 occurrences) Last logged: 16:12:29 Error handling request Traceback (most recent call last): File "/opt/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request File "/opt/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle File "/opt/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl File "/opt/lib/python3.10/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/ban.py", line 78, in ban_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/auth.py", line 181, in auth_middleware File "/opt/lib/python3.10/site-packages/homeassistant/components/http/view.py", line 137, in handle File "/opt/lib/python3.10/site-packages/homeassistant/components/config/config_entries.py", line 130, in post File "/opt/lib/python3.10/site-packages/homeassistant/components/http/data_validator.py", line 62, in wrapper File "/opt/lib/python3.10/site-packages/homeassistant/helpers/data_entry_flow.py", line 71, in post File "/opt/lib/python3.10/site-packages/homeassistant/data_entry_flow.py", line 203, in async_init File "/opt/lib/python3.10/site-packages/homeassistant/data_entry_flow.py", line 221, in _async_init File "/opt/lib/python3.10/site-packages/homeassistant/config_entries.py", line 718, in async_create_flow File "/opt/lib/python3.10/site-packages/homeassistant/loader.py", line 530, in get_platform File "/opt/lib/python3.10/site-packages/homeassistant/loader.py", line 535, in _import_platform File "/opt/lib/python3.10/importlib/__init__.py", line 126, in import_module File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/__init__.py", line 21, in <module> File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/config_flow.py", line 18, in <module> File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/connection.py", line 21, in <module> File "/opt/lib/python3.10/site-packages/homeassistant/components/homekit_controller/const.py", line 53, in <module> AttributeError: type object 'Vendor' has no attribute 'HAA_SETUP' Edited December 25, 2021 by al12s Quote Link to comment Share on other sites More sharing options...
alexm Posted December 29, 2021 Share Posted December 29, 2021 В 14.12.2021 в 21:05, andrei123 сказал: Всем привет! Все установил и запустил по инструкции. Ошибок не наблюдал, но к веб морде по адресу http://192.168.1.1:8123/ не могу подключиться. Не удается получить доступ к сайту Сайт 192.168.1.1 не позволяет установить соединение. Попробуйте сделать следующее: Проверьте подключение к Интернету. Проверьте настройки прокси-сервера и брандмауэра. ERR_CONNECTION_REFUSED Подскажите куда копать? Quote Link to comment Share on other sites More sharing options...
al12s Posted December 30, 2021 Share Posted December 30, 2021 На последней версии у меня тоже наблюдалась аналогичная проблема. Поле полного перезапуска HA и спустя минут 15 запустилась веб морда. Quote Link to comment Share on other sites More sharing options...
al12s Posted December 30, 2021 Share Posted December 30, 2021 (edited) Не могу исправить проблему, в логах постоянная ошибка. Подскажите как исправить если знаете. ЗАРАНЕЕ СПАСИБО! opkg install python3-pyturbojpeg - выполнял. Logger: homeassistant.components.camera.img_util Source: deps/lib/python3.10/site-packages/turbojpeg.py:893 Integration: Камера (documentation, issues) First occurred: 09:28:25 (1 occurrences) Last logged: 09:28:25 Error loading libturbojpeg; Cameras may impact HomeKit performance Traceback (most recent call last): File "/opt/lib/python3.10/site-packages/homeassistant/components/camera/img_util.py", line 96, in __init__ File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/turbojpeg.py", line 286, in __init__ self.__find_turbojpeg() if lib_path is None else lib_path) File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/turbojpeg.py", line 893, in __find_turbojpeg raise RuntimeError( RuntimeError: Unable to locate turbojpeg library automatically. You may specify the turbojpeg library path manually. e.g. jpeg = TurboJPEG(lib_path) Edited December 30, 2021 by al12s Quote Link to comment Share on other sites More sharing options...
alexm Posted December 30, 2021 Share Posted December 30, 2021 37 минут назад, al12s сказал: На последней версии у меня тоже наблюдалась аналогичная проблема. Поле полного перезапуска HA и спустя минут 15 запустилась веб морда. Да, действительно, утром встал, а уже все заработало) Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 30, 2021 Share Posted December 30, 2021 2 часа назад, al12s сказал: Не могу исправить проблему, в логах постоянная ошибка. удалить 2 часа назад, al12s сказал: File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/turbojpeg.py" или править руками (см. патч) 1 Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 30, 2021 Share Posted December 30, 2021 bump to 2021.12.7 1 Quote Link to comment Share on other sites More sharing options...
al12s Posted December 30, 2021 Share Posted December 30, 2021 9 часов назад, TheBB сказал: удалить или править руками (см. патч) Спасибо вариант с патч`ем помог, но после обновления на новую версию (за что отдельное спасибо), в лога вылезло вот это Logger: homeassistant.components.camera.img_util Source: deps/lib/python3.10/site-packages/turbojpeg.py:288 Integration: Камера (documentation, issues) First occurred: 21:04:55 (1 occurrences) Last logged: 21:04:55 Error loading libturbojpeg; Cameras may impact HomeKit performance Traceback (most recent call last): File "/opt/lib/python3.10/site-packages/homeassistant/components/camera/img_util.py", line 96, in __init__ File "/opt/var/lib/homeassistant/deps/lib/python3.10/site-packages/turbojpeg.py", line 288, in __init__ self.__init_decompress = turbo_jpeg.tjInitDecompress File "/opt/lib/python3.10/ctypes/__init__.py", line 387, in __getattr__ File "/opt/lib/python3.10/ctypes/__init__.py", line 392, in __getitem__ AttributeError: /opt/lib/libjpeg.so.62: undefined symbol: tjInitDecompress Quote Link to comment Share on other sites More sharing options...
OlegOs Posted December 31, 2021 Share Posted December 31, 2021 TheBB, спасибо за обновление ! Всех с наступающим Новым Годом !!! 1 Quote Link to comment Share on other sites More sharing options...
TheBB Posted December 31, 2021 Share Posted December 31, 2021 20 часов назад, al12s сказал: в лога вылезло вот это PyTurboJpeg м.б. установлен неск-ми способами... Самим НА (в `/opt/var/lib/homeassistant/deps/...`), как зависимость интеграции; руками - `pip install ...` или `opkg install ...` (в `/opt/lib/python...). Выбирайте что-то одно, чтоб не было конфликтов. 1 Quote Link to comment Share on other sites More sharing options...
al12s Posted December 31, 2021 Share Posted December 31, 2021 2 часа назад, TheBB сказал: PyTurboJpeg м.б. установлен неск-ми способами... Самим НА (в `/opt/var/lib/homeassistant/deps/...`), как зависимость интеграции; руками - `pip install ...` или `opkg install ...` (в `/opt/lib/python...). Выбирайте что-то одно, чтоб не было конфликтов. действительно было установлено два пакета, удалил pip пакет PyTurboJPG и ошибка ушла. Quote Link to comment Share on other sites More sharing options...
al12s Posted December 31, 2021 Share Posted December 31, 2021 В 30.12.2021 в 13:11, TheBB сказал: bump to 2021.12.7 Заметил ошибку еще одну, не знаю появилась она после обновления или нет, но вроде раньше ее не замечал. Logger: pyhap.characteristic Source: deps/lib/python3.10/site-packages/pyhap/characteristic.py:193 First occurred: 20:17:59 (4 occurrences) Last logged: 20:17:59 SecuritySystemCurrentState: value=0 is an invalid value. SecuritySystemTargetState: value=0 is an invalid value. Quote Link to comment Share on other sites More sharing options...
al12s Posted December 31, 2021 Share Posted December 31, 2021 14 часа назад, Олег Осипов сказал: TheBB, спасибо за обновление ! Всех с наступающим Новым Годом !!! Присоединяюсь к поздравлениям! С наступающим Новым Годом 2022! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.