现在还是按照这个方法来处理吗?
1.删除config里面的 custom_components 和 .storage 两个文件夹里面中的 HACS文件夹;
2.手动到github下载最新版本并在“custom_components/hacs”文件夹下解压;
3.重启homeassistant;
4.尝试按通过 集成 添加hacs。
1.删除config里面的 custom_components 和 .storage 两个文件夹里面中的 HACS文件夹;
2.手动到github下载最新版本并在“custom_components/hacs”文件夹下解压;
3.重启homeassistant;
4.尝试按通过 集成 添加hacs。
我晚些给你一条命令吧。我写命令操作,这样不出错。
已经删除了两个文件夹中的hasc,重新下载并上传了最新版的压缩文件到,HA各方面都正常。但是试着在集成中安装它,就报错。求指导
进入盒子的ssh,输入下面命令
1. docker exec -it homeassistant bash
2. wget -q -O - https://install.hacs.xyz | bash -
3. exit
4. docker restart homeassistant
我想要在HA里配置一个虚拟开关,应该写到那个文件夹里面
在packages文件夹,新建xxx.yaml文件,然后在里面配置。凡是自定义的配置,最好都在packages操作。
补充日志!!@
Logger: aiohttp.server
Source: components/hassio/init.py:518
First occurred: 19:28:37 (9 occurrences)
Last logged: 19:46:01
Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request
resp = await self._request_handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 76, in forwarded_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 24, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 78, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 144, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 135, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/api/init.py”, line 376, in post
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1491, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1526, in _execute_service
await handler.job.target(service_call)
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 518, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Invalid config for [switch.wake_on_lan]: [mac_address] is an invalid option for [switch.wake_on_lan]. Check: switch.wake_on_lan->mac_address. (See ?, line ?).
你把你的代码贴上来,我改一下看看
switch:
platform: wake_on_lan
mac_address: “38:D5:47:1A:D7:3C”
host: “192.168.31.85”
turn_off:
service: shell_command.turn_off_pc
shell_command:
turn_off_pc: ‘curl -X GET http://192.168.31.85:8000/?action=System.Shutdown’
重新改了一下,标点符号,记得英文输入状态。别中文
switch:
- platform: wake_on_lan
mac_address: "38:d5:47:1a:d7:3c"
host: "192.168.31.85"
turn_off:
service: shell_command.turn_off_pc
shell_command:
turn_off_pc: 'curl -X GET http://192.168.31.85:8000/?action=System.Shutdown'
我们是改了密码,但到使用网页进入控制盒子后台操作时,密码必须abc123456才行,难道没真正改过来。
你改的是ssh或者是homeassistant的密码吧。abc123456是webssh这个工具的密码
请问盒子有IPV6地址吗?在哪查看?家里电脑能分配到IPV6的公网地址。想通过IPV6地址在外面访问HA
你搜一下,debian如何查询设备ip6?
把download.py上传到指定位置替换掉原来的下载插件
这个插件不能下载了?