Jump to content

Recommended Posts

В 10.04.2022 в 20:41, Fiodor сказал:

Все здравствуйте!

Поставил версию 2022.3.5. создаю автоматизацию через пользовательский интерфейс. В файле automations.yaml они появляются, а в интерфейсе - нет. Ну и конечно же не работает. Может кто подсказать направление движения?

На всякий случай уточню: Ctrl+F5 вы нажимали? Это банально, но бывает помогает. В остальном - надо проверить в настройках, что HA вообще ищет автоматизации в этом файле, а не в каком-нибудь другом.

Edited by SenatoR
Link to comment
Share on other sites

22 часа назад, SenatoR сказал:

На всякий случай уточню: Ctrl+F5 вы нажимали? Это банально, но бывает помогает. В остальном - надо проверить в настройках, что HA вообще ищет автоматизации в этом файле, а не в каком-нибудь другом.

Спасибо за участие! Вроде разобрался. В файле configuration я вписал 

wake_on_lan: # enables `wake_on_lan` integration

automation:
  - alias: "Turn On Living Room TV with WakeOnLan"
    trigger:
      - platform: webostv.turn_on
        entity_id: media_player.lg_webos_smart_tv
    action:
      - service: wake_on_lan.send_magic_packet
        data:
          mac: aa:bb:cc:dd:ee:ff

для возможности включения телевизора LG. Видимо из-за этого автоматизации и не появлялись в интерфейсе. Как только я удалил это из configuration сразу все автоматизации появились. Теперь никак не разберусь как вернуть wake on line для телевизора LG

Link to comment
Share on other sites

Здравствуйте,
установил  Home Assistant, но столкнулся с проблемой добавления моста(хаба) в Дом (Homekit)
Также не добавляются устройства проброшенные через HA (тв)

Вопрос – есть ли у кого опыт успешного решения этого вопроса или все пользуются для управления приложением HA или через веб


устройство Giga KN1011
дома для опытов стоит HA на raspberry PI и на Homebridge на Debian – все работает хорошо, но хочу уйти от множества устройств

спасибо
 

Link to comment
Share on other sites

В 12.04.2022 в 21:08, Fiodor сказал:

Спасибо за участие! Вроде разобрался. В файле configuration я вписал 

wake_on_lan: # enables `wake_on_lan` integration

automation:
  - alias: "Turn On Living Room TV with WakeOnLan"
    trigger:
      - platform: webostv.turn_on
        entity_id: media_player.lg_webos_smart_tv
    action:
      - service: wake_on_lan.send_magic_packet
        data:
          mac: aa:bb:cc:dd:ee:ff

для возможности включения телевизора LG. Видимо из-за этого автоматизации и не появлялись в интерфейсе. Как только я удалил это из configuration сразу все автоматизации появились. Теперь никак не разберусь как вернуть wake on line для телевизора LG

Все. Разобрался. В configuration нужно оставлять только

wake_on_lan: # enables `wake_on_lan` integration

Все остальное переносить в automations со всеми правилами. Все сразу встало на свои места.

Link to comment
Share on other sites

bump to 2022.4.4

screen_2022-04-15_17:12:18_ha.png

^ KN-2110 (DUO)

---

NB или кто-то сломал, или не доделал, или... пофиг

1. всем

откатить pip

python -m pip install pip==21.2.4

2. всем / mips (BE)

отключить нафих zram - `no system zram` (в морде или CLI) и использовать swap

Скрытый текст

mips(BE) DSL/DUO/...

echo 'src/gz hass http://bin.entware.net/mipssf-k3.4/test/HA' >> /opt/etc/opkg.conf

screen_2022-04-15_17:13:35_ha.png

 

Edited by TheBB
Link to comment
Share on other sites

echo "src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA" >> /opt/etc/opkg.conf
opkg update
opkg install homeassistant
opkg install python3-pyturbojpeg
opkg update
python -m pip install pip==21.2.4
/opt/etc/init.d/S99hass start
~ # /opt/bin/hass -c /opt/var/lib/homeassistant --debug
Traceback (most recent call last):
  File "/opt/bin/hass", line 33, in <module>
    sys.exit(load_entry_point('homeassistant==2022.4.4', 'console_scripts', 'hass')())
  File "/opt/lib/python3.10/site-packages/homeassistant/__main__.py", line 281, in main
  File "/opt/lib/python3.10/site-packages/homeassistant/__main__.py", line 64, in get_arguments
  File "/opt/lib/python3.10/site-packages/homeassistant/config.py", line 54, in <module>
  File "/opt/lib/python3.10/site-packages/homeassistant/helpers/config_validation.py", line 83, in <module>
  File "/opt/lib/python3.10/site-packages/homeassistant/helpers/script_variables.py", line 9, in <module>
  File "/opt/lib/python3.10/site-packages/homeassistant/helpers/template.py", line 56, in <module>
  File "/opt/lib/python3.10/site-packages/homeassistant/util/thread.py", line 2, in <module>
  File "/opt/lib/python3.10/ctypes/__init__.py", line 8, in <module>
ImportError: libffi.so.8: cannot open shared object file: No such file or directory

Ставлю в нуля, 2 дня бьюсь, никак не поднимается. 

в ноябре игрался, не зашло, ради одного датчика не стал крутить HA на роутере, удалил, восстановил все с предыдущего бекапа.  

после этого вапще ничего не менял в OPKG пакетах. 

куда копать, что делать? 

Edited by batonskij
Link to comment
Share on other sites

1 час назад, batonskij сказал:

куда копать, что делать? 

искать, где потерялось

~ # 
~ # opkg list-upgradable | grep ffi
~ # 
~ # opkg list-installed | grep ffi
libffi - 3.4.2-2
python3-cffi - 1.15.0-1
python3-sniffio - 1.2.0-2
~ # 
~ # ls -1 /opt/lib/libffi.so*
/opt/lib/libffi.so
/opt/lib/libffi.so.8
/opt/lib/libffi.so.8.1.0
~ # 
~ # ldconfig -p | grep ffi
	libffi.so.8 (libc6) => /opt/lib/libffi.so.8
	libffi.so (libc6) => /opt/lib/libffi.so
~ #

 

Link to comment
Share on other sites

Обновился через opkg upgrade, в итоге;

~ # hass -c /opt/var/lib/homeassistant --debug
Traceback (most recent call last):
  File "/opt/bin/hass", line 33, in <module>
    sys.exit(load_entry_point('homeassistant==2022.4.4', 'console_scripts', 'hass')())
  File "/opt/bin/hass", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration

 

Edited by al12s
Link to comment
Share on other sites

21 минуту назад, al12s сказал:

Обновился через opkg upgrade, в итоге;

very very verbose aka "-vvv" (`hass -c /opt/var/lib/homeassistant -vvv --debug`)?

Link to comment
Share on other sites

Только что, TheBB сказал:

very very verbose aka "-vvv" (`hass -c /opt/var/lib/homeassistant -vvv --debug`)?

~ # hass -c /opt/var/lib/homeassistant -vvv --debug
Traceback (most recent call last):
  File "/opt/bin/hass", line 33, in <module>
    sys.exit(load_entry_point('homeassistant==2022.4.4', 'console_scripts', 'hass')())
  File "/opt/bin/hass", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration

Link to comment
Share on other sites

если сейчас выполнить еще раз opkg upgrade, выводит:

Package homeassistant-cli version 0.9.4-3 has no valid architecture, ignoring.
Package homeassistant version 2022.4.4-1 has no valid architecture, ignoring.
Package homekit version 0.0.1-7 has no valid architecture, ignoring.
Package libturbojpeg version 2.1.2-1 has no valid architecture, ignoring.
Package python3-acme version 1.22.0-1 has no valid architecture, ignoring.
Package python3-aiodiscover version 1.4.8-1 has no valid architecture, ignoring.
Package python3-aiohomekit version 0.7.16-1 has no valid architecture, ignoring.
Package python3-aiohttp-cors version 0.7.0-2 has no valid architecture, ignoring.
Package python3-aiohttp version 3.8.1-1 has no valid architecture, ignoring.
Package python3-aiosignal version 1.2.0-1 has no valid architecture, ignoring.
Package python3-anyio version 3.5.0-1 has no valid architecture, ignoring.
Package python3-astral version 2.2-1 has no valid architecture, ignoring.
Package python3-async-timeout version 4.0.2-1 has no valid architecture, ignoring.
Package python3-async-upnp-client version 0.27.0-1 has no valid architecture, ignoring.
Package python3-atomicwrites version 1.4.0-1 has no valid architecture, ignoring.
Package python3-authlib version 0.15.5-1 has no valid architecture, ignoring.
Package python3-awesomeversion version 22.2.0-1 has no valid architecture, ignoring.
Package python3-base36 version 0.1.1-2 has no valid architecture, ignoring.
Package python3-bidict version 0.21.2-1 has no valid architecture, ignoring.
Package python3-boto3 version 1.16.52-1 has no valid architecture, ignoring.
Package python3-botocore version 1.19.52-1 has no valid architecture, ignoring.
Package python3-btlewrap version 0.1.0-1 has no valid architecture, ignoring.
Package python3-charset-normalizer version 2.0.4-2 has no valid architecture, ignoring.
Package python3-ciso8601 version 2.2.0-1 has no valid architecture, ignoring.
Package python3-click-log version 0.3.2-2 has no valid architecture, ignoring.
Package python3-click version 8.0.3-1 has no valid architecture, ignoring.
Package python3-colorlog version 6.6.0-1 has no valid architecture, ignoring.
Package python3-commentjson version 0.9.0-2 has no valid architecture, ignoring.
Package python3-contextvars version 2.4-2 has no valid architecture, ignoring.
Package python3-coverage version 6.2-1 has no valid architecture, ignoring.
Package python3-cryptography version 36.0.0-1 has no valid architecture, ignoring.
Package python3-dateparser version 1.0.0-3 has no valid architecture, ignoring.
Package python3-dateutil version 2.8.2-1a has no valid architecture, ignoring.
Package python3-decorator version 4.4.2-1 has no valid architecture, ignoring.
Package python3-didl-lite version 1.3.2-1 has no valid architecture, ignoring.
Package python3-dns version 2.2.0-1 has no valid architecture, ignoring.
Package python3-docutils version 0.14-2b has no valid architecture, ignoring.
Package python3-ecdsa version 0.16.0-2 has no valid architecture, ignoring.
Package python3-engineio version 4.1.0-1 has no valid architecture, ignoring.
Package python3-envs version 1.3-4 has no valid architecture, ignoring.
Package python3-fnvhash version 0.1.0-2 has no valid architecture, ignoring.
Package python3-frozenlist version 1.2.0-1 has no valid architecture, ignoring.
Package python3-greenlet version 1.1.2-1 has no valid architecture, ignoring.
Package python3-grpcio-tools version 1.45.0-1 has no valid architecture, ignoring.
Package python3-grpcio version 1.45.0-1 has no valid architecture, ignoring.
Package python3-h11 version 0.12.0-2 has no valid architecture, ignoring.
Package python3-ha-ffmpeg version 3.0.2-3 has no valid architecture, ignoring.
Package python3-hass-nabucasa version 0.54.0-1 has no valid architecture, ignoring.
Package python3-httpcore version 0.14.7-1 has no valid architecture, ignoring.
Package python3-httplib2 version 0.20.4-1 has no valid architecture, ignoring.
Package python3-httpx version 0.22.0-1 has no valid architecture, ignoring.
Package python3-hyperframe version 6.0.1-1 has no valid architecture, ignoring.
Package python3-ifaddr version 0.1.7-1 has no valid architecture, ignoring.
Package python3-immutables version 0.14-2 has no valid architecture, ignoring.
Package python3-jinja2 version 3.1.0-1 has no valid architecture, ignoring.
Package python3-jmespath version 0.9.3-2a has no valid architecture, ignoring.
Package python3-jose version 3.3.0-1 has no valid architecture, ignoring.
Package python3-josepy version 1.9.0-1 has no valid architecture, ignoring.
Package python3-jsonpath-ng version 1.5.2-1 has no valid architecture, ignoring.
Package python3-lark-parser version 0.7.8-2 has no valid architecture, ignoring.
Package python3-libcst version 0.3.23-1 has no valid architecture, ignoring.
Package python3-lru-dict version 1.1.7-1 has no valid architecture, ignoring.
Package python3-multidict version 6.0.2-1 has no valid architecture, ignoring.
Package python3-mutagen version 1.45.1-2 has no valid architecture, ignoring.
Package python3-mypy-extensions version 0.4.3-1 has no valid architecture, ignoring.
Package python3-netdisco version 3.0.0-1 has no valid architecture, ignoring.
Package python3-netifaces version 0.11.0-1 has no valid architecture, ignoring.
Package python3-numpy version 1.21.5-1 has no valid architecture, ignoring.
Package python3-paho-mqtt version 1.6.1-1 has no valid architecture, ignoring.
Package python3-protobuf version 3.19.3-1 has no valid architecture, ignoring.
Package python3-psutil version 5.9.0-1a has no valid architecture, ignoring.
Package python3-pycognito version 2022.1.0-1 has no valid architecture, ignoring.
Package python3-pyhap version 4.4.0-1 has no valid architecture, ignoring.
Package python3-pyjwt version 2.3.0-1 has no valid architecture, ignoring.
Package python3-pymetno version 0.9.0-1 has no valid architecture, ignoring.
Package python3-pynacl version 1.5.0-1 has no valid architecture, ignoring.
Package python3-pyopenssl version 21.0.0-1a has no valid architecture, ignoring.
Package python3-pyotp version 2.6.0-1 has no valid architecture, ignoring.
Package python3-pypng version 0.0.20-2 has no valid architecture, ignoring.
Package python3-pyqrcode version 1.2.1-2 has no valid architecture, ignoring.
Package python3-pyrfc3339 version 1.1-2 has no valid architecture, ignoring.
Package python3-pyroute2 version 0.5.18-1 has no valid architecture, ignoring.
Package python3-pyserial version 3.5-1 has no valid architecture, ignoring.
Package python3-pyturbojpeg version 1.6.6-1 has no valid architecture, ignoring.
Package python3-pyudev version 0.22.0-2 has no valid architecture, ignoring.
Package python3-requests-toolbelt version 0.9.1-2 has no valid architecture, ignoring.
Package python3-requests version 2.27.1-1 has no valid architecture, ignoring.
Package python3-requires version 0.4.1-2 has no valid architecture, ignoring.
Package python3-rfc3986 version 1.4.0-2 has no valid architecture, ignoring.
Package python3-rsa version 4.6-1 has no valid architecture, ignoring.
Package python3-ruamel-yaml version 0.17.17-1 has no valid architecture, ignoring.
Package python3-s3transfer version 0.3.3-1 has no valid architecture, ignoring.
Package python3-slugify version 4.0.1-1 has no valid architecture, ignoring.
Package python3-sniffio version 1.2.0-2 has no valid architecture, ignoring.
Package python3-snitun version 0.31.0-1 has no valid architecture, ignoring.
Package python3-socketio version 5.2.1-1 has no valid architecture, ignoring.
Package python3-speedtest-cli version 2.1.3-1 has no valid architecture, ignoring.
Package python3-sqlalchemy version 1.4.32-1 has no valid architecture, ignoring.
Package python3-tabulate version 0.8.9-2 has no valid architecture, ignoring.
Package python3-terminaltables version 3.1.0-2 has no valid architecture, ignoring.
Package python3-text-unidecode version 1.3-2 has no valid architecture, ignoring.
Package python3-typing-extensions version 3.10.0.2-1 has no valid architecture, ignoring.
Package python3-typing-inspect version 0.7.1-1 has no valid architecture, ignoring.
Package python3-tzdata version 2021.5-1 has no valid architecture, ignoring.
Package python3-tzlocal version 3.0-1 has no valid architecture, ignoring.
Package python3-urllib3 version 1.26.5-1 has no valid architecture, ignoring.
Package python3-voluptuous-serialize version 2.5.0-1 has no valid architecture, ignoring.
Package python3-voluptuous version 0.12.2-1 has no valid architecture, ignoring.
Package python3-websocket-client version 1.3.1-1 has no valid architecture, ignoring.
Package python3-websockets version 10.2-1 has no valid architecture, ignoring.
Package python3-xmltodict version 0.12.0-2 has no valid architecture, ignoring.
Package python3-yarl version 1.7.2-1 has no valid architecture, ignoring.
Package python3-zeroconf version 0.38.4-1 has no valid architecture, ignoring.
Package scapy version 2.4.5-1a has no valid architecture, ignoring.

 

Edited by al12s
Link to comment
Share on other sites

~ # 
~ # cat /opt/etc/opkg.conf 
src/gz entware http://bin.entware.net/mipselsf-k3.4
src/gz keendev http://bin.entware.net/mipselsf-k3.4/keenetic
src/gz hass http://bin.entware.net/mipselsf-k3.4/test/HA
dest root /
lists_dir ext /opt/var/opkg-lists
arch all 100
arch mipsel-3.4 150
arch mipsel-3.4_kn 200
~ # 
~ # hass -c /opt/var/lib/homeassistant -vvv --debug
2022-04-20 14:16:58 INFO (MainThread) [homeassistant.bootstrap] Config directory: /opt/var/lib/homeassistant
2022-04-20 14:16:58 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:101> 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:429> cb=[_run_until_complete_cb() at /opt/lib/python3.10/asyncio/base_events.py:184] created at /opt/lib/python3.10/asyncio/tasks.py:636> took 0.130 seconds
2022-04-20 14:16:58 INFO (MainThread) [asyncio] execute program '/opt/bin/python3': <_UnixSubprocessTransport pid=27445 running stdin=<_UnixWritePipeTransport fd=10 idle bufsize=0> stdout=<_UnixReadPipeTransport fd=11 polling>>
2022-04-20 14:16:58 INFO (MainThread) [asyncio] <_UnixReadPipeTransport fd=11 polling> was closed by peer
2022-04-20 14:16:59 INFO (MainThread) [asyncio] <_UnixWritePipeTransport fd=10 idle bufsize=0> was closed by peer
2022-04-20 14:16:59 INFO (MainThread) [asyncio] <_UnixSubprocessTransport pid=27445 running stdin=<_UnixWritePipeTransport closed fd=10 closed> stdout=<_UnixReadPipeTransport closed fd=11 closed>> exited with return code 0
2022-04-20 14:16:59 INFO (SyncWorker_0) [homeassistant.loader] Loaded homeassistant from homeassistant.components.homeassistant
2022-04-20 14:16:59 INFO (SyncWorker_1) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2022-04-20 14:16:59 INFO (MainThread) [homeassistant.setup] Setting up homeassistant
...
^C
2022-04-20 14:18:45 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.upnp
2022-04-20 14:18:45 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.upnp
~ #

 

Link to comment
Share on other sites

~ # cat /opt/etc/opkg.conf
src/gz entware http://bin.entware.net/mipselsf-k3.4
src/gz keendev http://bin.entware.net/mipselsf-k3.4/keenetic
dest root /
lists_dir ext /opt/var/opkg-lists
arch all 100
arch mipsel-3.4 150
arch mipsel-3.4_kn 200
src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA
src/gz hass http://bin.entware.net/mipssf-k3.4//test/HA

 

похоже это из-за src/gz hass http://bin.entware.net/mipssf-k3.4//test/HA, да?
и как теперь вернуть все :)

Edited by al12s
Link to comment
Share on other sites

9 минут назад, TheBB сказал:

ага (просили для mips(BE) - DSL/DUO/LTE/... etc.), удалить строку, и обновить.


~ # opkg update
Downloading http://bin.entware.net/mipselsf-k3.4/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/keendev
Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/ha
~ # opkg upgrade
~ # hass -c /opt/var/lib/homeassistant -vvv --debug
Traceback (most recent call last):
  File "/opt/bin/hass", line 33, in <module>
    sys.exit(load_entry_point('homeassistant==2022.4.4', 'console_scripts', 'hass')())
  File "/opt/bin/hass", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration
 

Link to comment
Share on other sites

1 час назад, al12s сказал:

Сделал так:

#opkg list-installed | grep -E '^(home|python|scapy)' | cut -f1 -d' ' | xargs opkg remove --force-depends

#opkg install homeassistant

не помогло 
 

плюнул на это дело и переустанови с "0". :)

Link to comment
Share on other sites

30 минут назад, al12s сказал:

плюнул на это дело и переустанови с "0".

грусть-печаль... пытался раза три переставить, не воспроизводится, стартует "штатно".

будем пытать исчё раз (см. ниже) )))

Link to comment
Share on other sites

В 15.04.2022 в 17:39, TheBB сказал:

1. всем

откатить pip

python -m pip install pip==21.2.4

на примере "gTTS" (из лога, интеграция м.б. любой)

...
2022-04-20 19:30:05 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package gTTS==2.2.4: ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/lib/python3.10'
...

или в НА "не допилили" под новый `pip` (т.к. сам по себе он (pip) рабочий), или ...

 

В 15.04.2022 в 17:39, TheBB сказал:

2. всем / mips (BE)

отключить нафих zram - `no system zram` (в морде или CLI) и использовать swap

DUO "вставал колом", пока не отключил `zram` (для нативной сборки, zram - зло).

Link to comment
Share on other sites

40 минут назад, al12s сказал:

Обновился, полет нормальны, правда там опять выкатили новую версию

бывает... )))

screen_2022-04-21_09:53:19_ha.png

Link to comment
Share on other sites

Подскажите, а собсна как? Ставить homeassistant, потом откатывать pip и только потом /opt/etc/init.d/S99hass start?

404 вместо страницы homeassistant притомила. Ставил месяц назад на один кинетик - как-то обошёл, теперь на второй ставлю - опять оно. Предполагаю что-то недовстает. Сейчас подумает пару часов и перезапущено с —debug.

Edited by iN1KEL
Link to comment
Share on other sites

  • 2 weeks later...
19 часов назад, TheBB сказал:

bump to 2022.5.2 (прим. те же, см. выше)

спасибо, обновился.

Дополнительно пришлось установить (вырезали?):

  • pip install wakeonlan
  • pip install dicttoxml (для huawei_lte)
  • pip install stringcase (для huawei_lte)
  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...