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

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

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

  [复制链接]

2

主题

49

帖子

218

积分

中级会员

Rank: 3Rank: 3

积分
218
金钱
169
HASS币
0
发表于 2018-4-10 18:56:10 来自手机 | 显示全部楼层
小白新来学习一下
回复

使用道具 举报

0

主题

64

帖子

389

积分

中级会员

Rank: 3Rank: 3

积分
389
金钱
325
HASS币
0
发表于 2018-4-11 10:44:02 | 显示全部楼层
都是大神,小白膜拜
回复

使用道具 举报

6

主题

106

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
373
HASS币
0
发表于 2018-4-11 14:43:38 | 显示全部楼层
哈哈哈哈,支持作者,我以为只有树莓派这些可以实现呢,你救了我
回复

使用道具 举报

175

主题

2967

帖子

7606

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7606
金钱
4614
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2018-4-11 14:58:40 | 显示全部楼层
ahsyon 发表于 2017-8-28 13:20
不错,这样就可以把旧手机利用起来了,最想拿旧手机做个魔镜出来

咋弄???
回复

使用道具 举报

6

主题

106

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
373
HASS币
0
发表于 2018-4-11 15:53:28 | 显示全部楼层
本帖最后由 marshmallow 于 2018-4-11 16:01 编辑

楼主,我安装HA的时候到最后一步,提示出错了,这个怎么破
  The repository located at mirrors.ustc.edu.cn is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host mirrors.ustc.edu.cn'.
  Could not find a version that satisfies the requirement homeassistant (from versions: )
No matching distribution found for homeassistant

QQ截图20180411155938.jpg

回复

使用道具 举报

32

主题

986

帖子

4233

积分

论坛元老

Rank: 8Rank: 8

积分
4233
金钱
3207
HASS币
110

教程狂人论坛风云人物

 楼主| 发表于 2018-4-11 16:11:00 来自手机 | 显示全部楼层
换源的里面http改成https
回复

使用道具 举报

32

主题

986

帖子

4233

积分

论坛元老

Rank: 8Rank: 8

积分
4233
金钱
3207
HASS币
110

教程狂人论坛风云人物

 楼主| 发表于 2018-4-11 16:11:01 来自手机 | 显示全部楼层
换源的里面http改成https
回复

使用道具 举报

6

主题

106

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
373
HASS币
0
发表于 2018-4-11 16:25:17 | 显示全部楼层
27hh 发表于 2018-4-11 16:11
换源的里面http改成https

还是不行。。。
* Documentation:  https://help.ubuntu.com/
Ubuntu 16.04 LTS [running via Linux Deploy]
Last login: Wed Apr 11 16:18:34 2018 from 192.168.2.218
saturday@localhost:~$ sudo mkdir /srv/homeassistant
mkdir: cannot create directory '/srv/homeassistant': File exists
saturday@localhost:~$ sudo chown homeassistant:homeassistant /srv/homeassistant
saturday@localhost:~$ sudo mkdir /home/homeassistant/.pip
mkdir: cannot create directory '/home/homeassistant/.pip': File exists
saturday@localhost:~$ sudo sh -c "echo '[global]\nindex-url = https://mirrors.ustc.edu.cn/pypi/web/simple/' > /home/homeassistant/.pip/pip.conf"
saturday@localhost:~$ sudo chown -R homeassistant:homeassistant /home/homeassistant/.pip
saturday@localhost:~$ sudo su -s /bin/bash homeassistant
homeassistant@localhost:/home/saturday$ virtualenv -p python3 /srv/homeassistant
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /srv/homeassistant/bin/python3
Not overwriting existing python script /srv/homeassistant/bin/python (you must use /srv/homeassistant/bin/python3)
Installing setuptools, pip, wheel...done.
homeassistant@localhost:/home/saturday$ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@localhost:/home/saturday$ pip3 install -U homeassistant
Collecting homeassistant
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b06f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b0050>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b0450>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b0d90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b06d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Could not find a version that satisfies the requirement homeassistant (from versions: )
No matching distribution found for homeassistant
回复

使用道具 举报

6

主题

106

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
373
HASS币
0
发表于 2018-4-11 16:29:15 | 显示全部楼层
27hh 发表于 2018-4-11 16:11
换源的里面http改成https

提示这个
QQ截图20180411162429.jpg
回复

使用道具 举报

0

主题

88

帖子

269

积分

中级会员

Rank: 3Rank: 3

积分
269
金钱
181
HASS币
0
发表于 2018-4-11 16:36:54 | 显示全部楼层
前来学习
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-9-23 22:37 , Processed in 0.087199 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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