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

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

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

  [复制链接]

9

主题

334

帖子

1291

积分

金牌会员

Rank: 6Rank: 6

积分
1291
金钱
957
HASS币
0
发表于 2018-5-13 15:40:39 | 显示全部楼层
谢谢分享了
回复

使用道具 举报

0

主题

59

帖子

397

积分

中级会员

Rank: 3Rank: 3

积分
397
金钱
338
HASS币
0
发表于 2018-5-15 12:59:02 | 显示全部楼层
好用吗????
回复

使用道具 举报

9

主题

358

帖子

3123

积分

论坛元老

Rank: 8Rank: 8

积分
3123
金钱
2765
HASS币
0
发表于 2018-5-15 13:42:12 | 显示全部楼层
看看學習token
回复

使用道具 举报

175

主题

2967

帖子

7608

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7608
金钱
4616
HASS币
398

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

QQ
发表于 2018-5-15 21:40:17 | 显示全部楼层
2018-05-15 14:23:15 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.tokengetter fails
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 337, in connect
    cert = self.sock.getpeercert()
  File "/usr/lib/python3.6/ssl.py", line 897, in getpeercert
    self._check_connected()
  File "/usr/lib/python3.6/ssl.py", line 861, in _check_connected
    self.getpeername()
OSError: [Errno 107] Socket not connected

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 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  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 337, in connect
    cert = self.sock.getpeercert()
  File "/usr/lib/python3.6/ssl.py", line 897, in getpeercert
    self._check_connected()
  File "/usr/lib/python3.6/ssl.py", line 861, in _check_connected
    self.getpeername()
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError(107, 'Socket not connected'))

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 490, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', OSError(107, 'Socket not connected'))


求更新下~~~
回复

使用道具 举报

0

主题

90

帖子

495

积分

中级会员

Rank: 3Rank: 3

积分
495
金钱
405
HASS币
0
发表于 2018-5-16 10:13:39 | 显示全部楼层
谢谢!!!
回复

使用道具 举报

6

主题

269

帖子

1074

积分

论坛积极会员

积分
1074
金钱
804
HASS币
0
发表于 2018-5-16 15:54:21 | 显示全部楼层
楼主,你好。我想问下我M1插件都添加好了 数据正常显示。但是老是会提示

OSError: HTTPSConnectionPool(host='aircat.phicomm.com', port=443): Read timed out. (read timeout=3)

这个错误请他是什么问题呢?
回复

使用道具 举报

0

主题

11

帖子

60

积分

注册会员

Rank: 2

积分
60
金钱
49
HASS币
0
发表于 2018-5-16 19:22:45 | 显示全部楼层
非常感谢,很需要这个
回复

使用道具 举报

0

主题

18

帖子

132

积分

注册会员

Rank: 2

积分
132
金钱
114
HASS币
0
发表于 2018-5-17 23:28:58 | 显示全部楼层
多M1支持来了!斐讯空气检测仪M1插件for HA 3.0.
回复

使用道具 举报

0

主题

22

帖子

136

积分

注册会员

Rank: 2

积分
136
金钱
114
HASS币
0
发表于 2018-5-19 21:10:34 | 显示全部楼层
小白学习中
回复

使用道具 举报

0

主题

10

帖子

56

积分

注册会员

Rank: 2

积分
56
金钱
46
HASS币
0
发表于 2018-5-20 00:15:11 | 显示全部楼层
谢谢你经验的分享,虽然还没看明白,但我会好好学习的
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-25 21:37 , Processed in 0.244288 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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