『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: 27hh

[进阶教程] 闲置安卓手机安装HA变身智能家居中枢,及网关接入教程

  [复制链接]

13

主题

289

帖子

1966

积分

金牌会员

Rank: 6Rank: 6

积分
1966
金钱
1677
HASS币
0
发表于 2018-3-17 21:43:49 | 显示全部楼层
MAPGPS 发表于 2018-3-17 21:42
请把出错信息贴上来看看。

我是这样用的,可以呀!

lixm@localhost:~$ sudo passwd lixm
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
lixm@localhost:~$ passwd lixm
Changing password for lixm.
(current) UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged
回复

使用道具 举报

13

主题

289

帖子

1966

积分

金牌会员

Rank: 6Rank: 6

积分
1966
金钱
1677
HASS币
0
发表于 2018-3-17 21:48:59 | 显示全部楼层
MAPGPS 发表于 2018-3-17 21:42
请把出错信息贴上来看看。

我是这样用的,可以呀!

su root 提示输入root密码, 但刚进入还没设置root密码啊
回复

使用道具 举报

3

主题

159

帖子

587

积分

高级会员

Rank: 4

积分
587
金钱
428
HASS币
0
发表于 2018-3-17 22:01:39 | 显示全部楼层
riyue0000 发表于 2018-3-17 21:43
lixm@localhost:~$ sudo passwd lixm
sudo: effective uid is not 0, is /usr/bin/sudo on a file system ...

在Linux Deploy下的Ubuntu不能这样改lixm的口令的。
你应该在安装Linux Deploy是设置好lixm的口令。

如果事后想更改口令,也得在Linux Deploy里改:
界面上点击右下角的箭头里改口令,再点击右上角里的“安装”,让其生效。放心,这个“安装”不会破坏已有的东东,而只是更新系统配置而已。
回复

使用道具 举报

0

主题

30

帖子

106

积分

注册会员

Rank: 2

积分
106
金钱
76
HASS币
0
发表于 2018-3-17 23:31:04 | 显示全部楼层
1、
Welcome to Ubuntu 16.04 LTS (GNU/Linux 3.4.0-perf-g6f3bfd0 armv7l)

* Documentation:  https://help.ubuntu.com/
Ubuntu 16.04 LTS [running via Linux Deploy]
Last login: Sat Mar 17 17:11:10 2018 from 192.168.1.3
android@localhost:~$ netstat -t -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp6       0      0 :::38517                :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 :::3880                 :::*                    LISTEN     
android@localhost:~$


2、
(homeassistant) homeassistant@localhost:/home/android$ hass
Config directory: /home/homeassistant/.homeassistant
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=check_config>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=reload_core_config>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=create>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=dismiss>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loaderoaded frontend from homeassistant.components.frontend
INFO:homeassistant.loaderoaded api from homeassistant.components.api
INFO:homeassistant.loaderoaded http from homeassistant.components.http
INFO:homeassistant.loaderoaded websocket_api from homeassistant.components.websocket_api
INFO:homeassistant.loaderoaded system_log from homeassistant.components.system_log
INFO:homeassistant.loaderoaded introduction from homeassistant.components.introduction
INFO:homeassistant.setup:Setting up introduction
INFO:homeassistant.components.introduction:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        Hello, and welcome to Home Assistant!

        We'll hope that we can make all your dreams come true.

        Here are some resources to get started:

         - Configuring Home Assistant:
           https://home-assistant.io/getting-started/configuration/

         - Available components:
           https://home-assistant.io/components/

         - Troubleshooting your configuration:
           https://home-assistant.io/gettin ... ting-configuration/

         - Getting help:
           https://home-assistant.io/help/

        This message is generated by the introduction component. You can
        disable it in configuration.yaml.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

INFO:homeassistant.loaderoaded persistent_notification from homeassistant.components.persistent_notification
INFO:homeassistant.setup:Setup of domain introduction took 0.0 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=introduction>
INFO:homeassistant.loaderoaded history from homeassistant.components.history
INFO:homeassistant.loaderoaded recorder from homeassistant.components.recorder
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=3048837616-1, domain=persistent_notification, service_data=title=Welcome Home!, message=
Here are some resources to get started:

- [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
- [Available components](https://home-assistant.io/components/)
- [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
- [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component.
, service=create>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.notification=notifying; title=Welcome Home!, message=Here are some resources to get started:

- [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
- [Available components](https://home-assistant.io/components/)
- [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
- [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component. @ 2018-03-17T23:24:13.607207+08:00>, old_state=None, entity_id=persistent_notification.notification>
INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=3048837616-1>
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.6.0
ERROR:homeassistant.util.package:Unable to install package aiohttp_cors==0.6.0: Could not find a version that satisfies the requirement aiohttp_cors==0.6.0 (from versions: )
No matching distribution found for aiohttp_cors==0.6.0
ERROR:homeassistant.requirements:Not initializing http because could not install requirement aiohttp_cors==0.6.0
ERROR:homeassistant.setup:Setup failed for http: Could not install all requirements.
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=3048837616-2, domain=persistent_notification, service_data=notification_id=invalid_config, title=Invalid config, message=The following components and platforms could not be set up:

- [http](https://home-assistant.io/components/http/)

Please check your config., service=create>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [http](https://home-assistant.io/components/http/)

Please check your config. @ 2018-03-17T23:24:16.030053+08:00>, old_state=None, entity_id=persistent_notification.invalid_config>
INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=3048837616-2>
ERROR:homeassistant.setup:Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for websocket_api: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of api. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for api: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of system_log. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for system_log: Could not setup all dependencies.
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=3048837616-3, domain=persistent_notification, service_data=notification_id=invalid_config, title=Invalid config, message=The following components and platforms could not be set up:

- [websocket-api](https://home-assistant.io/components/websocket_api/)
- [http](https://home-assistant.io/components/http/)

-----------省略很多行Please check your config.--------------


Please check your config., service=create>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [conversation](https://home-assistant.io/components/conversation/)
- [tts](https://home-assistant.io/components/tts/)
- [frontend](https://home-assistant.io/components/frontend/)
- [http](https://home-assistant.io/components/http/)
- [discovery](https://home-assistant.io/components/discovery/)
- [updater](https://home-assistant.io/components/updater/)
- [config](https://home-assistant.io/components/config/)
- [websocket-api](https://home-assistant.io/components/websocket_api/)
- [logbook](https://home-assistant.io/components/logbook/)
- sensor.yr
- [cloud](https://home-assistant.io/components/cloud/)
- [api](https://home-assistant.io/components/api/)
- [system-log](https://home-assistant.io/components/system_log/)
- [recorder](https://home-assistant.io/components/recorder/)
- [history](https://home-assistant.io/components/history/)

Please check your config. @ 2018-03-17T23:24:16.030053+08:00>, entity_id=persistent_notification.invalid_config>
INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=3048837616-16>
INFO:homeassistant.setup:Setup of domain sensor took 7.1 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=sensor>
INFO:homeassistant.bootstrap:Home Assistant initialized in 13.13s
INFO:homeassistant.core:Starting Home Assistant core loop
INFO:homeassistant.core:Starting Home Assistant
INFO:homeassistant.core:Bus:Handling <Event homeassistant_start[L]>
INFO:homeassistant.core:Timer:starting




回复

使用道具 举报

0

主题

30

帖子

106

积分

注册会员

Rank: 2

积分
106
金钱
76
HASS币
0
发表于 2018-3-17 23:32:07 | 显示全部楼层
MAPGPS 发表于 2018-3-17 19:05
请把"Please check your config"之前的那一段日志信息贴上来。

你可在另外一个终端窗口里输以下命令来查 ...

十分感谢,耐心指点我。
回复

使用道具 举报

26

主题

304

帖子

1670

积分

金牌会员

Rank: 6Rank: 6

积分
1670
金钱
1366
HASS币
0
发表于 2018-3-17 23:47:30 | 显示全部楼层
来试一下~
回复

使用道具 举报

3

主题

159

帖子

587

积分

高级会员

Rank: 4

积分
587
金钱
428
HASS币
0
发表于 2018-3-18 00:07:29 | 显示全部楼层
jackwang99 发表于 2018-3-17 23:31
1、
Welcome to Ubuntu 16.04 LTS (GNU/Linux 3.4.0-perf-g6f3bfd0 armv7l)

看出错信息, aiohttp_cors的版本要求是0.6.0,可在homeassistant用户环境下指定版本装一下:
pip3 install --trusted-host mirrors.ustc.edu.cn aiohttp_cors==0.6.0
回复

使用道具 举报

1

主题

27

帖子

85

积分

注册会员

Rank: 2

积分
85
金钱
58
HASS币
0
发表于 2018-3-18 00:07:49 | 显示全部楼层
前面还有好多行就不复制了
bash: /srv/homeassistant/bin/activatepip3: No such file or directory
homeassistant@localhost:/home/1$ hass
bash: hass: command not found
我输入hass退出失败是什么意思

我忽略这个问题继续安装出现
[sudo] password for homeassistant:
Sorry, try again.
回复

使用道具 举报

3

主题

159

帖子

587

积分

高级会员

Rank: 4

积分
587
金钱
428
HASS币
0
发表于 2018-3-18 00:12:59 | 显示全部楼层
polofun 发表于 2018-3-18 00:07
前面还有好多行就不复制了
bash: /srv/homeassistant/bin/activatepip3: No such file or directory
homeas ...

那条命令是 "source /srv/homeassistant/bin/activate"
你怎么把后面那条命令"pip3 ..."给拼一起了? (变成了"activatepip3")
回复

使用道具 举报

1

主题

27

帖子

85

积分

注册会员

Rank: 2

积分
85
金钱
58
HASS币
0
发表于 2018-3-18 00:17:10 | 显示全部楼层
MAPGPS 发表于 2018-3-18 00:12
那条命令是 "source /srv/homeassistant/bin/activate"
你怎么把后面那条命令"pip3 ..."给拼一起了? (变 ...

那怎么搞,从哪里开始重做?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-22 04:46 , Processed in 0.426561 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表