yinjiong 发表于 2018-1-30 11:07:43

billy1101 发表于 2018-1-29 22:08
我的现在也是不显示数据,只有一个屏幕亮度调节,而且还不起作用,数据显示全是null
一直显示OSError:

你ha的配置路径要配置到tokenPath

billy1101 发表于 2018-1-30 11:31:41

本帖最后由 billy1101 于 2018-1-30 13:46 编辑

yinjiong 发表于 2018-1-30 11:07
你ha的配置路径要配置到tokenPath
应该怎么配置,小白一枚,不太懂,简单指导下吧
确认了下hassio系统下有这个config文件夹,hassbian下没有这个文件夹,所有文件都在根目录下。但是phicomm_token.txt格式的文件没有,只是自建一个空白文件吗?

iciness 发表于 2018-1-30 11:37:40

/config/phicomm_token.txt 这文件要不要自己建?

billy1101 发表于 2018-1-30 19:27:51

路径应该没问题了,这样的:
'/home/homeassistant/.homeassistant/phicomm_token.txt'
tokengetter显示是:true

又出现了这个错误提示:
OSError: HTTPSConnectionPool(host='aircat.phicomm.com', port=443): Max retries exceeded with url: /connectserverv1/lightControl?deviceId=1-B0%3AF8%3A93%3A1D%3A7C%3A73 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x68b94c50>: Failed to establish a new connection: Connection refused',))
下午7:24 custom_components/sensor/PhicommAirDetector.py (ERROR)

billy1101 发表于 2018-1-30 19:37:24

按照这个做HA接入不上

billy1101 发表于 2018-1-30 19:50:30

本帖最后由 billy1101 于 2018-1-31 09:27 编辑

Escape 发表于 2018-1-26 17:17
我现在电脑端可以看见这些数据 但是手机端不行 亮度调节一直都是失效的
之前是哪里有问题?我的hassio可以显示了,ha怎么都不行

luox 发表于 2018-1-30 21:42:56

积累学习资料,感谢楼主分享

billy1101 发表于 2018-1-31 09:27:11

iciness 发表于 2018-1-30 11:37
/config/phicomm_token.txt 这文件要不要自己建?

自动生成

wind0021 发表于 2018-1-31 20:42:46

感谢楼主刚需啊:lol

dodojie 发表于 2018-1-31 20:50:53

感谢大神
页: 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 19 20 21
查看完整版本: 多M1支持来了!斐讯空气检测仪M1插件for HA 3.0.1