Jump to content

Recommended Posts

Добрый вечер, встал вопрос такого характера, есть HA установленный в одном keenetic 1, есть второй keenetic 2 на даче, в котором нет HA, интернет получает он через модем Huawei, в keenetic 1 установлена интеграция Huawei LTE, данные о скорости загрузки канала в, время сессии поступают от keenetic 2. (правда не понятно почему в бит/сек, а время сессии в секундах, ну это ладно). На модеме падает периодически скорость, после перезагрузки модема, скорость восстанавливается. Есть идея в HA на keenetic 1 подключатся по SSH к CLI keenetic и выполнять команду bwmeter run ISP, которая в конце выведет скорость загрузки. И вот по этой информации принимать решение в HA перезагружать модем автоматически или нет . Но пока не могу понять как получить данные от ssh user@host bwmeter run ISP и потом их использовать. Возможно конечно это вообще не реально, но если есть идеи, буду рад вашему ответ. спасибо.

p.s. возможно скорость можно замерить не через CLI keenetic? а через сам модем по telnet на 23 порт, но как потом это применить пока не представляю.

Edited by alex1
Link to comment
Share on other sites

  • 2 weeks later...

Добрый день, пытаюсь автоматизироваться в Xiaomi_miio, указываю логин, пароль, сервер... и после повержения выскакивает: Unknown error occurred

а в логах пишет:

Logger: aiohttp.server
Source: deps/lib/python3.9/site-packages/tzlocal/unix.py:156
First occurred: 12:15:26 (6 occurrences)
Last logged: 12:26:01

Error handling request
Traceback (most recent call last):
  File "/opt/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
  File "/opt/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
  File "/opt/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
  File "/opt/lib/python3.9/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
  File "/opt/lib/python3.9/site-packages/homeassistant/components/http/forwarded.py", line 77, in forwarded_middleware
  File "/opt/lib/python3.9/site-packages/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
  File "/opt/lib/python3.9/site-packages/homeassistant/components/http/ban.py", line 78, in ban_middleware
  File "/opt/lib/python3.9/site-packages/homeassistant/components/http/auth.py", line 144, in auth_middleware
  File "/opt/lib/python3.9/site-packages/homeassistant/components/http/view.py", line 135, in handle
  File "/opt/lib/python3.9/site-packages/homeassistant/components/config/config_entries.py", line 155, in post
  File "/opt/lib/python3.9/site-packages/homeassistant/components/http/data_validator.py", line 63, in wrapper
  File "/opt/lib/python3.9/site-packages/homeassistant/helpers/data_entry_flow.py", line 109, in post
  File "/opt/lib/python3.9/site-packages/homeassistant/data_entry_flow.py", line 202, in async_configure
  File "/opt/lib/python3.9/site-packages/homeassistant/data_entry_flow.py", line 260, in _async_handle_step
  File "/opt/lib/python3.9/site-packages/homeassistant/components/xiaomi_miio/config_flow.py", line 232, in async_step_cloud
  File "/opt/var/lib/homeassistant/deps/lib/python3.9/site-packages/micloud/micloud.py", line 38, in __init__
    timezone = datetime.datetime.now(tzlocal.get_localzone()).strftime('%z')
  File "/opt/var/lib/homeassistant/deps/lib/python3.9/site-packages/tzlocal/unix.py", line 165, in get_localzone
    _cache_tz = _get_localzone()
  File "/opt/var/lib/homeassistant/deps/lib/python3.9/site-packages/tzlocal/unix.py", line 156, in _get_localzone
    return pytz.tzfile.build_tzinfo('local', tzfile)
  File "/opt/lib/python3.9/site-packages/pytz/tzfile.py", line 28, in build_tzinfo
struct.error: unpack requires a buffer of 44 bytes

Помогите советом, что может быть не так. Заранее спасибо.

 

Edited by al12s
Link to comment
Share on other sites

Господа, подскажите, что не так?

~ # hass
2021-08-08 17:02:49 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //opt/root/.homeassistant/home-assistant_v2.db was shutdown cleanly
/opt/lib/python3.9/site-packages/jose/backends/cryptography_backend.py:18: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
 

HA ставится, запускается, работает. добавляю всякое, все работает. Перезагружаю роутер, стартует, но как будто все в ноль. нет интеграций, сценариев, зон.  Есть только один пользователь и интерфейс весь по умолчани.. Спасает только остановка HA, заливка бакапа и последующий старт...

"Закат солнца вручную" получается... так же не должно быть? Почему не сохраняется конфигурация?

Имеет ли ошибка к этому отношение? или это другой косяк..

Link to comment
Share on other sites

10 минут назад, neomatic сказал:

Господа, подскажите, что не так?

Как запускаете, так и работает... )))

Цитата

~ # hass --help

...

  -c path_to_config_dir, --config path_to_config_dir
                        Directory that contains the Home Assistant configuration

...

 

 

 

см. стартовый скрипт

Link to comment
Share on other sites

В 08.08.2021 в 13:46, TheBB сказал:
hass --debug -c /opt/var/lib/homeassistant
Скрытый текст

 

~ # hass --debug -c /opt/var/lib/homeassistant
2021-08-08 17:51:23 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-10' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:279> cb=[<TaskWakeupMethWrapper object at 0x1dc09d0>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.231 seconds
2021-08-08 17:51:25 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.9/site-packages/homeassistant/runner.py:94> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x1e740b8>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[_run_until_complete_cb() at /opt/lib/python3.9/asyncio/base_events.py:184] created at /opt/lib/python3.9/asyncio/base_events.py:621> took 0.370 seconds
2021-08-08 17:51:25 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.9/site-packages/homeassistant/runner.py:94> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x1e65d38>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[_run_until_complete_cb() at /opt/lib/python3.9/asyncio/base_events.py:184] created at /opt/lib/python3.9/asyncio/base_events.py:621> took 0.192 seconds
2021-08-08 17:51:32 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-93' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x267ebb0>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x1e40850>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 6.666 seconds
2021-08-08 17:51:32 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-97' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x268a950>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[<TaskWakeupMethWrapper object at 0x267fde8>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.322 seconds
2021-08-08 17:51:33 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.9/site-packages/homeassistant/runner.py:94> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x26bf7d0>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[_run_until_complete_cb() at /opt/lib/python3.9/asyncio/base_events.py:184] created at /opt/lib/python3.9/asyncio/base_events.py:621> took 0.148 seconds
2021-08-08 17:51:34 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-131' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:279> cb=[<TaskWakeupMethWrapper object at 0x26c1180>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.103 seconds
2021-08-08 17:51:34 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-133' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Task pending name='Task-154' coro=<Store._async_load() running at /opt/lib/python3.9/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0x2749198>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> cb=[<TaskWakeupMethWrapper object at 0x26c2888>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.328 seconds
2021-08-08 17:51:34 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-135' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:279> cb=[<TaskWakeupMethWrapper object at 0x26c3720>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.417 seconds
2021-08-08 17:51:35 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-138' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x2758fb0>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[<TaskWakeupMethWrapper object at 0x26c4f60>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.122 seconds
2021-08-08 17:51:35 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-139' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:279> cb=[<TaskWakeupMethWrapper object at 0x26c5770>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.288 seconds
2021-08-08 17:51:37 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-161' coro=<async_setup.<locals>.setup_panel() done, defined at /opt/lib/python3.9/site-packages/homeassistant/components/config/__init__.py:46> result=None created at /opt/lib/python3.9/asyncio/tasks.py:361> took 1.628 seconds
2021-08-08 17:51:37 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-162' coro=<async_setup.<locals>.setup_panel() done, defined at /opt/lib/python3.9/site-packages/homeassistant/components/config/__init__.py:46> result=None created at /opt/lib/python3.9/asyncio/tasks.py:361> took 0.132 seconds
2021-08-08 17:51:37 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-168' coro=<async_setup.<locals>.setup_panel() done, defined at /opt/lib/python3.9/site-packages/homeassistant/components/config/__init__.py:46> result=None created at /opt/lib/python3.9/asyncio/tasks.py:361> took 0.117 seconds
2021-08-08 17:51:38 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-129' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Task pending name='Task-204' coro=<Store._async_load() running at /opt/lib/python3.9/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0x29250c0>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> cb=[<TaskWakeupMethWrapper object at 0x26bf7e8>(), <TaskWakeupMethWrapper object at 0x26c5fc0>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.258 seconds
2021-08-08 17:51:40 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-134' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Task pending name='Task-205' coro=<Store._async_load() running at /opt/lib/python3.9/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0x2a86c20>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> cb=[<TaskWakeupMethWrapper object at 0x26c2f00>(), <TaskWakeupMethWrapper object at 0x26c72c8>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 1.945 seconds
2021-08-08 17:51:41 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-127' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Task pending name='Task-223' coro=<Store._async_load() running at /opt/lib/python3.9/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0x2b35468>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> cb=[<TaskWakeupMethWrapper object at 0x26bf770>(), <TaskWakeupMethWrapper object at 0x26c91e0>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.152 seconds
/opt/lib/python3.9/site-packages/jose/backends/cryptography_backend.py:18: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
2021-08-08 17:51:45 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-126' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Task pending name='Task-229' coro=<Store._async_load() running at /opt/lib/python3.9/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0x3237fe8>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> cb=[<TaskWakeupMethWrapper object at 0x26af950>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 4.690 seconds
2021-08-08 17:51:46 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-126' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x32cecd0>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[<TaskWakeupMethWrapper object at 0x26af950>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.707 seconds
2021-08-08 17:51:47 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-132' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:193> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x32df118>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x26c1938>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.114 seconds
2021-08-08 17:51:48 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.9/site-packages/homeassistant/runner.py:94> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x3302078>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[_run_until_complete_cb() at /opt/lib/python3.9/asyncio/base_events.py:184] created at /opt/lib/python3.9/asyncio/base_events.py:621> took 0.279 seconds
2021-08-08 17:51:57 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-303' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:279> cb=[<TaskWakeupMethWrapper object at 0x26e78c8>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 9.153 seconds
2021-08-08 17:51:57 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-306' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:279> cb=[<TaskWakeupMethWrapper object at 0x3304320>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.225 seconds
2021-08-08 17:51:58 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-312' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:193> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x39d9318>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x3306980>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.220 seconds
2021-08-08 17:51:58 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-320' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x3a1e2c8>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x330aa08>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.214 seconds
2021-08-08 17:51:58 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-321' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x3a2d0e0>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x330b228>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.179 seconds
2021-08-08 17:51:59 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-325' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x3a52f50>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x330d338>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.185 seconds
2021-08-08 17:51:59 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-326' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x3a6e170>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x330dda8>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.292 seconds
2021-08-08 17:52:01 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-314' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:209> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x3b05478>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[<TaskWakeupMethWrapper object at 0x3307948>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.398 seconds
2021-08-08 17:52:02 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-314' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x39dea48>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[<TaskWakeupMethWrapper object at 0x3307948>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.245 seconds
2021-08-08 17:52:04 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-329' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:193> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x3bc40d0>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x330f608>(), <TaskWakeupMethWrapper object at 0x39cf460>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.117 seconds
2021-08-08 17:52:06 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-329' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<Task pending name='Task-619' coro=<Store._async_load() running at /opt/lib/python3.9/site-packages/homeassistant/helpers/storage.py:110> cb=[<TaskWakeupMethWrapper object at 0x3c80138>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> cb=[<TaskWakeupMethWrapper object at 0x330f608>(), <TaskWakeupMethWrapper object at 0x39cf460>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.589 seconds
2021-08-08 17:52:11 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-330' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:249> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x3c48c60>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x330fe28>(), <TaskWakeupMethWrapper object at 0x39d48c8>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 5.685 seconds
2021-08-08 17:52:16 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-480' coro=<ConfigEntry.async_setup() done, defined at /opt/lib/python3.9/site-packages/homeassistant/config_entries.py:239> result=None created at /opt/lib/python3.9/asyncio/tasks.py:825> took 3.747 seconds
2021-08-08 17:52:16 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-322' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:193> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0x3cdedc0>()] created at /opt/lib/python3.9/asyncio/tasks.py:704> cb=[<TaskWakeupMethWrapper object at 0x330ba48>(), <TaskWakeupMethWrapper object at 0x39d2930>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.191 seconds
2021-08-08 17:52:17 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-649' coro=<_async_setup_component() done, defined at /opt/lib/python3.9/site-packages/homeassistant/setup.py:163> result=True created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.342 seconds
2021-08-08 17:52:17 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-322' coro=<_async_setup_component() running at /opt/lib/python3.9/site-packages/homeassistant/setup.py:279> cb=[<TaskWakeupMethWrapper object at 0x330ba48>(), <TaskWakeupMethWrapper object at 0x39d2930>()] created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.519 seconds
2021-08-08 17:52:18 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-1' coro=<setup_and_run_hass() running at /opt/lib/python3.9/site-packages/homeassistant/runner.py:102> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x3f79d20>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> cb=[_run_until_complete_cb() at /opt/lib/python3.9/asyncio/base_events.py:184] created at /opt/lib/python3.9/asyncio/base_events.py:621> took 0.151 seconds
2021-08-08 17:52:19 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-695' coro=<AsyncZeroconf._async_broadcast_service() running at /opt/lib/python3.9/site-packages/zeroconf/asyncio.py:179> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x1e58548>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> created at /opt/lib/python3.9/site-packages/zeroconf/asyncio.py:200> took 0.122 seconds
2021-08-08 17:52:20 WARNING (MainThread) [asyncio] Executing <Handle _SelectorDatagramTransport._read_ready() created at /opt/lib/python3.9/asyncio/selector_events.py:259> took 0.133 seconds
2021-08-08 17:52:20 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-697' coro=<NetworkWatcher.async_discover() running at /opt/lib/python3.9/site-packages/homeassistant/components/dhcp/__init__.py:200> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x28aff08>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.118 seconds
2021-08-08 17:52:21 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-697' coro=<NetworkWatcher.async_discover() running at /opt/lib/python3.9/site-packages/homeassistant/components/dhcp/__init__.py:200> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x3b209c8>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.254 seconds
2021-08-08 17:52:41 WARNING (MainThread) [asyncio] Executing <Task pending name='Task-697' coro=<NetworkWatcher.async_discover() running at /opt/lib/python3.9/site-packages/homeassistant/components/dhcp/__init__.py:200> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x26d18b0>()] created at /opt/lib/python3.9/asyncio/base_events.py:424> created at /opt/lib/python3.9/site-packages/homeassistant/core.py:392> took 0.101 seconds
2021-08-08 17:52:46 WARNING (MainThread) [asyncio] Executing <TimerHandle when=3690.786316585578 _ServiceBrowserBase._async_send_ready_queries_schedule_next() created at /opt/lib/python3.9/site-packages/zeroconf/_services/browser.py:483> took 0.124 seconds
^[[5~


 

Edited by TheBB
Link to comment
Share on other sites

Спасибо, проблема решена.

После запуска сценария добавил все настройки заново ручками а не из бэкапа и все начало сохраняться

Link to comment
Share on other sites

И снова здравствуйте.

 

Не могу разобраться как подключить HA к яндексу

https://github.com/dmitry-k/yandex_smart_home

Предлагается установить в HA репозиторий сообщества (HACS) и уже из него загружать Yandex_Smart_Home

кто нибудь может подсказать куда рыть?

Link to comment
Share on other sites

53 минуты назад, neomatic сказал:

И снова здравствуйте.

 

Не могу разобраться как подключить HA к яндексу

https://github.com/dmitry-k/yandex_smart_home

Предлагается установить в HA репозиторий сообщества (HACS) и уже из него загружать Yandex_Smart_Home

кто нибудь может подсказать куда рыть?

https://sprut.ai/client/article/1404

Link to comment
Share on other sites

bump to 2021.8.5

screen_2021-08-10_09:29:01_ha.png

Интеграции "HomeKit"/"HomeKit Controller" вырезаны из осн. пакета ("homeassistant") и завёрнуты в метапак "homekit":

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

 

~ # opkg info homekit
Package: homekit
Version: 0.0.1-2
Depends: python3-aiohomekit, python3-base36, python3-fnvhash, python3-ha-ffmpeg, python3-pyhap, python3-pyqrcode, python3-pyturbojpeg
Status: unknown ok not-installed
Section: lang
Architecture: mipsel-3.4
Size: 765
Filename: homekit_0.0.1-2_mipsel-3.4.ipk
Description: Metapackage of integration HomeKit.

~ #

 

Link to comment
Share on other sites

В 23.07.2021 в 19:37, alex1 сказал:

Добрый вечер, встал вопрос такого характера, есть HA установленный в одном keenetic 1, есть второй keenetic 2 на даче, в котором нет HA, интернет получает он через модем Huawei, в keenetic 1 установлена интеграция Huawei LTE, данные о скорости загрузки канала в, время сессии поступают от keenetic 2. (правда не понятно почему в бит/сек, а время сессии в секундах, ну это ладно). На модеме падает периодически скорость, после перезагрузки модема, скорость восстанавливается. Есть идея в HA на keenetic 1 подключатся по SSH к CLI keenetic и выполнять команду bwmeter run ISP, которая в конце выведет скорость загрузки. И вот по этой информации принимать решение в HA перезагружать модем автоматически или нет . Но пока не могу понять как получить данные от ssh user@host bwmeter run ISP и потом их использовать. Возможно конечно это вообще не реально, но если есть идеи, буду рад вашему ответ. спасибо.

p.s. возможно скорость можно замерить не через CLI keenetic? а через сам модем по telnet на 23 порт, но как потом это применить пока не представляю.

К cli никак. там нет механизма ключей и надо ручками вводить пароль.

Link to comment
Share on other sites

Поставил напосмотреть. Забавно. Какой, оказывается, HA шустрый, когда голый.
А когда там 100500 автоматизаций у меня и 100500 устройств.. ))
Но все равно - прикольно.

Link to comment
Share on other sites

15 часов назад, Leader Leader сказал:

Нужен каталог www

Создаю его, но HA его не видит и ругается.

Что-то вырезано?

Каталог www у меня нормально работает, может с правами доступа чего не так?

Link to comment
Share on other sites

В 16.08.2021 в 14:05, Олег Осипов сказал:

Каталог www у меня нормально работает, может с правами доступа чего не так?

Там же один пользователь - root

Link to comment
Share on other sites

Да, так

Пытался настроить интеграцию favicon changer

Что только не прописывал, в логах ругань, что такой путь не найден.

/opt/var/lib/homeassistant/www/favicons/fire-orange/

DeepinScreenshot_выберите-область_20210820174658.png

Edited by Leader Leader
Link to comment
Share on other sites

В 20.08.2021 в 17:50, Leader Leader сказал:

Да, так

Пытался настроить интеграцию favicon changer

Что только не прописывал, в логах ругань, что такой путь не найден.

/opt/var/lib/homeassistant/www/favicons/fire-orange/

DeepinScreenshot_выберите-область_20210820174658.png

Внезапно. После очередного спонтанного ребута (похоже, все-таки, не вытягивает роутер всякие Adguard-ы и прочие HA - иконка стала оранжевой. Интергация заработала!

Link to comment
Share on other sites

В 22.08.2021 в 23:40, Leader Leader сказал:

Внезапно. После очередного спонтанного ребута (похоже, все-таки, не вытягивает роутер всякие Adguard-ы и прочие HA - иконка стала оранжевой. Интергация заработала!

У меня стабильно работает, правда есть раздел подкачки и всё на ssd установлено. Без подкачки тоже плохо было, озу маленькое у роутера.

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.

 Share

  • Recently Browsing   1 member

×
×
  • Create New...