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

 找回密码
 立即注册
楼主: yinjiong

多M1支持来了!斐讯空气检测仪M1插件for HA 3.0.1

  [复制链接]

1

主题

15

帖子

110

积分

论坛积极会员

积分
110
金钱
95
HASS币
0
发表于 2018-5-4 22:52:06 | 显示全部楼层
谢谢 分享
回复

使用道具 举报

1

主题

80

帖子

482

积分

中级会员

Rank: 3Rank: 3

积分
482
金钱
402
HASS币
0
发表于 2018-5-5 09:12:42 | 显示全部楼层




回复

使用道具 举报

0

主题

14

帖子

226

积分

中级会员

Rank: 3Rank: 3

积分
226
金钱
212
HASS币
0
发表于 2018-5-5 13:11:21 | 显示全部楼层
上车了个M1,来看看怎么接入,谢谢大神!
回复

使用道具 举报

3

主题

55

帖子

372

积分

论坛积极会员

积分
372
金钱
317
HASS币
0
发表于 2018-5-5 18:35:47 | 显示全部楼层
还是大神多
回复

使用道具 举报

13

主题

187

帖子

1221

积分

金牌会员

Rank: 6Rank: 6

积分
1221
金钱
1034
HASS币
0
发表于 2018-5-5 20:39:09 | 显示全部楼层
终于成功了,好开心
回复

使用道具 举报

0

主题

7

帖子

40

积分

新手上路

Rank: 1

积分
40
金钱
33
HASS币
0
发表于 2018-5-5 22:40:32 | 显示全部楼层
感谢有您
回复

使用道具 举报

0

主题

24

帖子

445

积分

中级会员

Rank: 3Rank: 3

积分
445
金钱
421
HASS币
0
发表于 2018-5-6 01:17:56 | 显示全部楼层
好牛的感觉,很不错
回复

使用道具 举报

4

主题

46

帖子

352

积分

中级会员

Rank: 3Rank: 3

积分
352
金钱
306
HASS币
0
发表于 2018-5-6 10:52:21 | 显示全部楼层
来学习一下 十分感谢
回复

使用道具 举报

4

主题

118

帖子

445

积分

中级会员

Rank: 3Rank: 3

积分
445
金钱
327
HASS币
0
发表于 2018-5-6 21:05:07 | 显示全部楼层
传感器没数据  日志提示这个什么意思
1.png
回复

使用道具 举报

8

主题

270

帖子

1341

积分

金牌会员

Rank: 6Rank: 6

积分
1341
金钱
1071
HASS币
0
发表于 2018-5-6 22:35:12 | 显示全部楼层
提示这个错误是什么情况?
Log Details (ERROR)
Sun May 06 2018 22:33:06 GMT+0800 (中国标准时间)

Update for sensor.tokengetter fails
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
    conn = self._new_conn()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fbb100a90>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='accountsym.phicomm.com', port=443): Max retries exceeded with url: /v1/accountDetail (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fbb100a90>: Failed to establish a new connection: [Errno -3] Try again',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.async_device_update()
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/sensor/PhicommTokenGetter.py", line 111, in update
    control_resp = requests.get('https://accountsym.phicomm.com/v1/accountDetail', headers=headers,timeout=10)
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='accountsym.phicomm.com', port=443): Max retries exceeded with url: /v1/accountDetail (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fbb100a90>: Failed to establish a new connection: [Errno -3] Try again',))
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-25 09:00 , Processed in 0.135417 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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