lokorel Posted September 4, 2023 Share Posted September 4, 2023 В 22.07.2023 в 15:12, TheBB сказал: bump to 2023.7.3 Выражаю благодарность TheBB, большое спасибо за ответы в ветке! Завел на KN-1810, также установил интеграцию с dreame-vacuum, полет нормальный Quote Link to comment Share on other sites More sharing options...
Anvar Zalibekov Posted September 8, 2023 Share Posted September 8, 2023 On 3/26/2023 at 7:45 PM, slava.trifonov said: кто-нибудь запускал esphome на entware? я с питоном не дружу, и в этих venv'ах слабо понимаю. может есть какой-то мануал по установке? Получилось найти? Quote Link to comment Share on other sites More sharing options...
TheBB Posted September 8, 2023 Share Posted September 8, 2023 bump to 2023.9.0 1 Quote Link to comment Share on other sites More sharing options...
slava.trifonov Posted September 12, 2023 Share Posted September 12, 2023 В 08.09.2023 в 12:48, Anvar Zalibekov сказал: Получилось найти? Нет, да и смысла в этом не вижу. Собирается долго даже на стационаре, а сколько будет на роутере даже не представляю. У меня другая проблема, как научить роутер видеть есп-шки по их именам, без прописывания статических ip Quote Link to comment Share on other sites More sharing options...
Moon_Light Posted September 14, 2023 Share Posted September 14, 2023 В 24.07.2023 в 19:41, Denis Datsko сказал: падает при попытке установить zigpy-znp==0.11.3 Вы смогли нати решение? У меня интеграция esphome требует данную библиотеку. Тоже поставил rust компилятор но там ошибка при сборке. Что делать не знаю Quote Link to comment Share on other sites More sharing options...
udavst Posted September 14, 2023 Share Posted September 14, 2023 1 час назад, Moon_Light сказал: esphome требует данную библиотеку На keenetic esphome?, лучше на комп поставьте, онаж сутками компилить будет на кинетике. Quote Link to comment Share on other sites More sharing options...
BDV Posted September 14, 2023 Share Posted September 14, 2023 В 12.09.2023 в 08:43, slava.trifonov сказал: У меня другая проблема, как научить роутер видеть есп-шки по их именам, без прописывания статических ip Аналогично, может у кого есть решение? Quote Link to comment Share on other sites More sharing options...
Moon_Light Posted September 14, 2023 Share Posted September 14, 2023 46 минут назад, udavst сказал: На keenetic esphome? Я наверное не так выразился, у меня есть плата esp32 я на компе скомпилил прошивку для нее, к ней подключил разные датчики движения и температуры, и прокидываю через интеграцию в HA. То есть у меня интеграция esphome требует эту либку Quote Link to comment Share on other sites More sharing options...
Kipovez758 Posted September 15, 2023 Share Posted September 15, 2023 Потянет ли keenetic extra старой ревизии home assistant? Quote Link to comment Share on other sites More sharing options...
batonskij Posted September 18, 2023 Share Posted September 18, 2023 (edited) Подскажите пож, как мониторить время работа HA сервера с момента загрузки/перезагрузки? Есть интеграция System Monitor, но параметр last_boot возвращает время с момента включения роутера, что не подходит, т.к. он сидит на бесперебойнике. P.S: разобрался, есть интеграция/сенсор Uptime. Edited September 18, 2023 by batonskij Quote Link to comment Share on other sites More sharing options...
Kipovez758 Posted September 19, 2023 Share Posted September 19, 2023 Можно ли добавить ssh в следующее обновление ha? Quote Link to comment Share on other sites More sharing options...
HuBody Posted September 24, 2023 Share Posted September 24, 2023 (edited) opkg install homeassistant Installing homeassistant (2023.9.0-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/homeassistant_2023.9.0-1_mipsel-3.4.ipk Installing python3-pysnmp-pyasn1 (1.1.3-2) to root... Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-pysnmp-pyasn1_1.1.3-2_mipsel-3.4.ipk Collected errors: * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/ber/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/ber/decoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/ber/encoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/ber/eoo.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/cer/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/cer/decoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/cer/encoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/der/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/der/decoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/der/encoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/native/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/native/decoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/codec/native/encoder.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/compat/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/compat/integer.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/compat/octets.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/debug.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/error.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/__init__.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/base.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/char.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/constraint.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/error.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/namedtype.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/namedval.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/opentype.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/tag.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/tagmap.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/univ.pyc But that file is already provided by package * python3-pyasn1 * check_data_file_clashes: Package python3-pysnmp-pyasn1 wants to install file /opt/lib/python3.11/site-packages/pyasn1/type/useful.pyc But that file is already provided by package * python3-pyasn1 * opkg_install_cmd: Cannot install package homeassistant. При установке HA сыпет ошибками/. Правильно ли я понимаю что пакета pyasn1 в репе HA нет и от этого и ошибки или руки кривые? Edited September 24, 2023 by HuBody Quote Link to comment Share on other sites More sharing options...
TheBB Posted September 24, 2023 Share Posted September 24, 2023 2 часа назад, HuBody сказал: При установке HA сыпет ошибками/. Правильно ли я понимаю что пакета pyasn1 в репе HA нет и от этого и ошибки или руки кривые? https://forum.keenetic.com/topic/9423-home-assistant/?do=findComment&comment=165576 Quote Link to comment Share on other sites More sharing options...
HuBody Posted September 28, 2023 Share Posted September 28, 2023 @TheBB спасибо за ссылку. Переустановил НА, но вебморда не стартанула Хотя приложение запущено В режиме: hass -c /opt/var/lib/homeassistant --debug --verbose грузится долго, ошибок нет. Ругался на пару пакетов - установил Quote Link to comment Share on other sites More sharing options...
TheBB Posted September 29, 2023 Share Posted September 29, 2023 bump to 2023.9.3 "по многочисленным просьбам трудящихся" ... добавлена морда лица (перепаковка оригинала с кастрацией удалением файлов *.map && *.gz) python3-pysnmp-pyasn1 собран без компиляции в байт-код (*.pyc). Quote Link to comment Share on other sites More sharing options...
mezcal Posted September 29, 2023 Share Posted September 29, 2023 3 hours ago, TheBB said: bump to 2023.9.3 "по многочисленным просьбам трудящихся" ... добавлена морда лица (перепаковка оригинала с кастрацией удалением файлов *.map && *.gz) python3-pysnmp-pyasn1 собран без компиляции в байт-код (*.pyc). При установке с нуля есть ошибки 1 Quote Link to comment Share on other sites More sharing options...
TheBB Posted September 29, 2023 Share Posted September 29, 2023 44 минуты назад, mezcal сказал: При установке с нуля есть ошибки уже нет, перезалито ))) Quote Link to comment Share on other sites More sharing options...
HuBody Posted September 29, 2023 Share Posted September 29, 2023 6 часов назад, TheBB сказал: bump to 2023.9.3 "по многочисленным просьбам трудящихся" ... добавлена морда лица (перепаковка оригинала с кастрацией удалением файлов *.map && *.gz) python3-pysnmp-pyasn1 собран без компиляции в байт-код (*.pyc). @TheBB Спасибо большое. Завелась машина! Quote Link to comment Share on other sites More sharing options...
TheBB Posted September 30, 2023 Share Posted September 30, 2023 В 24.07.2023 в 14:41, Denis Datsko сказал: падает при попытке установить zigpy-znp==0.11.3 и rpds-py>=0.7.1. log: Скрытый текст ~ # ~ # wget https://files.pythonhosted.org/packages/52/fa/31c7210f4430317c890ed0c8713093843442a98d8a9cafd0333c0040dda4/rpds_py-0.10.3.tar.gz --2023-10-01 00:00:34-- https://files.pythonhosted.org/packages/52/fa/31c7210f4430317c890ed0c8713093843442a98d8a9cafd0333c0040dda4/rpds_py-0.10.3.tar.gz Resolving files.pythonhosted.org... 151.101.129.55 Connecting to files.pythonhosted.org|151.101.129.55|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 17164 (17K) [application/octet-stream] Saving to: ‘rpds_py-0.10.3.tar.gz’ rpds_py-0.10.3.tar.gz 100%[======================================================================================================>] 16.76K --.-KB/s in 0.004s 2023-10-01 00:00:35 (3.84 MB/s) - ‘rpds_py-0.10.3.tar.gz’ saved [17164/17164] ~ # ~ # tar x -zvf rpds_py-0.10.3.tar.gz rpds_py-0.10.3/Cargo.toml rpds_py-0.10.3/.github/SECURITY.md rpds_py-0.10.3/.github/dependabot.yml rpds_py-0.10.3/.github/release.yml rpds_py-0.10.3/.github/workflows/CI.yml rpds_py-0.10.3/.gitignore rpds_py-0.10.3/.pre-commit-config.yaml rpds_py-0.10.3/LICENSE rpds_py-0.10.3/README.rst rpds_py-0.10.3/noxfile.py rpds_py-0.10.3/pyproject.toml rpds_py-0.10.3/rpds.pyi rpds_py-0.10.3/src/lib.rs rpds_py-0.10.3/tests/requirements.in rpds_py-0.10.3/tests/requirements.txt rpds_py-0.10.3/tests/test_hash_trie_map.py rpds_py-0.10.3/tests/test_hash_trie_set.py rpds_py-0.10.3/tests/test_list.py rpds_py-0.10.3/Cargo.lock rpds_py-0.10.3/PKG-INFO ~ # ~ # cd rpds_py-0.10.3/ ~/rpds_py-0.10.3 # ~/rpds_py-0.10.3 # RUSTFLAGS="-C opt-level=1" maturin build --release 📦 Including license file "/opt/root/rpds_py-0.10.3/LICENSE" 🔗 Found pyo3 bindings 🐍 Found CPython 3.11 at /opt/bin/python3 📡 Using build options features from pyproject.toml Compiling target-lexicon v0.12.9 Compiling autocfg v1.1.0 Compiling once_cell v1.18.0 Compiling proc-macro2 v1.0.66 Compiling unicode-ident v1.0.11 Compiling libc v0.2.147 Compiling syn v1.0.109 Compiling quote v1.0.31 Compiling pyo3-build-config v0.19.2 Compiling lock_api v0.4.10 Compiling parking_lot_core v0.9.8 Compiling memoffset v0.9.0 Compiling scopeguard v1.1.0 Compiling smallvec v1.11.0 Compiling cfg-if v1.0.0 Compiling static_assertions v1.1.0 Compiling archery v1.0.0 Compiling parking_lot v0.12.1 Compiling indoc v1.0.9 Compiling unindent v0.1.11 Compiling rpds v1.0.1 Compiling pyo3-ffi v0.19.2 Compiling pyo3 v0.19.2 Compiling pyo3-macros-backend v0.19.2 Compiling pyo3-macros v0.19.2 Compiling rpds-py v0.10.3 (/opt/root/rpds_py-0.10.3) Finished release [optimized] target(s) in 38m 16s 🐍 Skipping auditwheel because CPython 3.11 at /opt/bin/python3 does not support manylinux/musllinux wheels 📖 Found type stub file at rpds.pyi 📦 Built wheel for CPython 3.11 to /opt/root/rpds_py-0.10.3/target/wheels/rpds_py-0.10.3-cp311-cp311-linux_mips.whl ~/rpds_py-0.10.3 # ~/rpds_py-0.10.3 # unzip target/wheels/rpds_py-0.10.3-cp311-cp311-linux_mips.whl -d /opt/lib/python3.11/site-packages/ Archive: target/wheels/rpds_py-0.10.3-cp311-cp311-linux_mips.whl inflating: rpds_py-0.10.3.dist-info/METADATA inflating: rpds_py-0.10.3.dist-info/WHEEL inflating: rpds_py-0.10.3.dist-info/license_files/LICENSE inflating: rpds/__init__.py inflating: rpds/__init__.pyi inflating: rpds/py.typed inflating: rpds/rpds.cpython-311.so inflating: rpds_py-0.10.3.dist-info/RECORD ~/rpds_py-0.10.3 # ~/rpds_py-0.10.3 # pip show rpds-py Name: rpds-py Version: 0.10.3 Summary: Python bindings to Rust's persistent data structures (rpds) Home-page: Author: Julian Berman Author-email: Julian+rpds@GrayVines.com License: MIT Location: /opt/lib/python3.11/site-packages Requires: Required-by: jsonschema, referencing ~/rpds_py-0.10.3 # Quote Link to comment Share on other sites More sharing options...
TheBB Posted October 1, 2023 Share Posted October 1, 2023 В 24.07.2023 в 14:41, Denis Datsko сказал: Ранее на 2023.5.4 была такая же проблема с rustc, в результате не мог установить zha интеграцию. Quote Link to comment Share on other sites More sharing options...
slava.trifonov Posted October 1, 2023 Share Posted October 1, 2023 esphome ради которого, собственно и нужен НА не запускается вот лог: Скрытый текст 2023-10-01 17:57:16.936 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component homeassistant.components.esphome Traceback (most recent call last): File "/opt/lib/python3.11/site-packages/homeassistant/loader.py", line 818, in get_component File "/opt/lib/python3.11/importlib/__init__.py", line 126, in import_module 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 "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/__init__.py", line 20, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/domain_data.py", line 11, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/bluetooth/__init__.py", line 19, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/bluetooth/client.py", line 43, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/bluetooth/scanner.py", line 5, in <module> File "/opt/lib/python3.11/site-packages/bluetooth_data_tools/__init__.py", line 7, in <module> File "src/bluetooth_data_tools/gap.py", line 99, in init bluetooth_data_tools.gap TypeError: 'type' object is not subscriptable 2023-10-01 17:57:17.027 ERROR (MainThread) [homeassistant.setup] Setup failed for esphome: Unable to import component: Exception importing homeassistant.components.esphome Traceback (most recent call last): File "/opt/lib/python3.11/site-packages/homeassistant/loader.py", line 818, in get_component File "/opt/lib/python3.11/importlib/__init__.py", line 126, in import_module 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 "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/__init__.py", line 20, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/domain_data.py", line 11, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/bluetooth/__init__.py", line 19, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/bluetooth/client.py", line 43, in <module> File "/opt/lib/python3.11/site-packages/homeassistant/components/esphome/bluetooth/scanner.py", line 5, in <module> File "/opt/lib/python3.11/site-packages/bluetooth_data_tools/__init__.py", line 7, in <module> File "src/bluetooth_data_tools/gap.py", line 99, in init bluetooth_data_tools.gap TypeError: 'type' object is not subscriptable The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/opt/lib/python3.11/site-packages/homeassistant/setup.py", line 215, in _async_setup_component File "/opt/lib/python3.11/site-packages/homeassistant/loader.py", line 826, in get_component ImportError: Exception importing homeassistant.components.esphome может опять какой-то модуль не загружен, или не обновился правильно? В остальном, вроде, проблем нет. Quote Link to comment Share on other sites More sharing options...
TheBB Posted October 2, 2023 Share Posted October 2, 2023 15 часов назад, slava.trifonov сказал: esphome ради которого, собственно и нужен НА не запускается Поковыряю, а, пока так: rm -rf /opt/lib/python3.11/site-packages/bluetooth_data_tools* pip install bluetooth-data-tools==1.11.0 1 Quote Link to comment Share on other sites More sharing options...
Anvar Zalibekov Posted October 2, 2023 Share Posted October 2, 2023 21 hours ago, slava.trifonov said: esphome ради которого, собственно и нужен НА не запускается Как и ONVIF. Quote Link to comment Share on other sites More sharing options...
Anvar Zalibekov Posted October 2, 2023 Share Posted October 2, 2023 4 hours ago, TheBB said: rm -rf /opt/lib/python3.11/site-packages/bluetooth_data_tools* pip install bluetooth-data-tools==1.11.0 Это сработало. Спасибо! Quote Link to comment Share on other sites More sharing options...
Anvar Zalibekov Posted October 2, 2023 Share Posted October 2, 2023 On 5/11/2021 at 1:40 AM, Reolin said: Предыдущий пост не актуален, обновился в чистую на 2021.5.1 , теперь получаю 2021-05-11 01:37:35 ERROR (SyncWorker_5) [scapy.runtime] Cannot set filter: libpcap is not available. Cannot compile filter ! 2021-05-11 01:37:37 ERROR (MainThread) [homeassistant.components.dhcp] Cannot watch for dhcp packets without a functional packet filter: libpcap is not available. Cannot compile filter ! libpcap установлен Получилось решить проблему? Quote Link to comment Share on other sites More sharing options...
Великий Кукурузо Posted October 19, 2023 Share Posted October 19, 2023 Можно новую версию?) Quote Link to comment Share on other sites More sharing options...
Pavel2048 Posted October 21, 2023 Share Posted October 21, 2023 В 02.10.2023 в 09:19, TheBB сказал: Поковыряю, а, пока так: rm -rf /opt/lib/python3.11/site-packages/bluetooth_data_tools* pip install bluetooth-data-tools==1.11.0 Спасибо создателю и созидателю Home assistant на Keenetic. Установил на KN-1811. Можно ли надеяться на полную поддержку ESPHOME, есть интересный проект на NSPANEL хочется прикрутить? Quote Link to comment Share on other sites More sharing options...
Руслан З Posted October 25, 2023 Share Posted October 25, 2023 Приветствую! Расскажу, как можно использовать ESPHome на Home Assistant Core, установленном на роутер Keenetic (в моем случае - Giga KN-1011). ESPHome на роутере Полноценный ESPHome на роутере не завелся. Не нашелся модуль platformio/toolchain-xtensa для платформы linux_mips. Устанавливал так: opkg update opkg install gcc rm -rf /opt/lib/python3.11/site-packages/bluetooth_data_tools* pip install bluetooth-data-tools==1.11.0 pip3 install cryptography==2.8 pip3 install mac-vendor-lookup pip3 install wheel pip3 install esphome Проверил версию: esphome version Создал каталог конфига: mkdir config Запустил ESPHome: esphome dashboard config/ Перешел в браузере по адресу http://IP_роутера:6052 . Открылась панель управления ESPHome. В ней создал устройство и отправил на компиляцию. Во время компиляции получил ошибку: UnknownPackageError: Could not find the package with 'platformio/toolchain-xtensa @ ~2.100300.0' requirements for your system 'linux_mips' К сожалению, модуль для mipsel я так и не нашел, не там искал, или просто что-то не понимаю. Решил перейти к другому варианту. Home Assistant нативно поддерживает и понимает устройства ESPHome. Поэтому проблем с интеграцией устройств в умный дом не должно быть. А саму компиляцию, прошивку и необходимые OTA обновления решил выполнять на персональном компьютере. В моём случае это ПК под управлением Windows 10. ESPHome на Windows Качаем с официального сайта питон [ https://www.python.org/downloads/ ] и устанавливаем его. Открываем командную строку от имени администратора и выполняем команды: pip3 install wheel pip3 install esphome Проверяем установку ESPHome: esphome version Запускаем ESPHome: esphome dashboard config/ Командную строку не закрываем!!! Каждый раз, как надо будет создать новое устройство, прошить ESP-шку или обновить прошивку, нужно будет запускать ESPHome из командной строки. Переходим в браузере по адресу http://127.0.0.1:6052/ и попадаем в панель управления ESPHome. Дальше уже по привычному алгоритму: создать устройство, подправить код, запустить заливку, дать доступ браузеру к портам, выбрать нужный порт и дождаться заливки. В дальнейшем обновлять по воздуху через OTA. Как только прошивка залита, передёрнуть питание устройства и Home Assistant самостоятельно определит его. Останется только вписать ключ, который найдете в коде устройства. Quote Link to comment Share on other sites More sharing options...
Pavel2048 Posted October 25, 2023 Share Posted October 25, 2023 спасибо у меня вообще не запустился на роутере ошибки выдал Quote Link to comment Share on other sites More sharing options...
VitalyS Posted October 29, 2023 Share Posted October 29, 2023 Подскажите плиз с установкой HA на Keenetic Giga Обычно ставлю HA такими командами echo "src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA" >> /opt/etc/opkg.conf opkg update opkg install libpcap opkg install homeassistant /opt/etc/init.d/S99hass start Остается ошибка с libpcap, несмотря на то, что libpcap установлен Logger: homeassistant.components.dhcp Source: components/dhcp/__init__.py:474 Integration: DHCP Discovery (documentation, issues) First occurred: 3:33:45 PM (1 occurrences) Last logged: 3:33:45 PM Cannot watch for dhcp packets without a functional packet filter: libpcap is not available. Cannot compile filter ! При попытке установить интеграцию Zigbee, валится с ошибкой Unable to install package zigpy-znp==0.11.4: error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [59 lines of output] Collecting maturin<2.0,>=1.0 Downloading maturin-1.3.1.tar.gz (176 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 176.0/176.0 kB 58.6 kB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: still running... Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: maturin Building wheel for maturin (pyproject.toml): started Building wheel for maturin (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error × Building wheel for maturin (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [35 lines of output] /opt/tmp/pip-build-env-1xc3k21c/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:80: Setuptools Warning: `install_requires` overwritten in `pyproject.toml` (dependencies) corresp(dist, value, root_dir) running bdist_wheel running build running build_py creating build creating build/lib.linux-mips-cpython-311 creating build/lib.linux-mips-cpython-311/maturin copying maturin/import_hook.py -> build/lib.linux-mips-cpython-311/maturin copying maturin/__init__.py -> build/lib.linux-mips-cpython-311/maturin copying maturin/__main__.py -> build/lib.linux-mips-cpython-311/maturin running egg_info creating maturin.egg-info writing maturin.egg-info/PKG-INFO writing dependency_links to maturin.egg-info/dependency_links.txt writing requirements to maturin.egg-info/requires.txt writing top-level names to maturin.egg-info/top_level.txt writing manifest file 'maturin.egg-info/SOURCES.txt' reading manifest file 'maturin.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.json' under directory 'src/python_interpreter' writing manifest file 'maturin.egg-info/SOURCES.txt' running build_ext running build_rust error: can't find Rust compiler If you are using an outdated pip version, it is possible a preb Что можно предпринять? 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.