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

 找回密码
 立即注册
查看: 5793|回复: 9

[求助] 斐讯体脂秤S7插件 for HomeAssistant无法正常运行

[复制链接]

12

主题

188

帖子

785

积分

高级会员

Rank: 4

积分
785
金钱
597
HASS币
0
发表于 2018-11-20 11:36:05 | 显示全部楼层 |阅读模式
从看到囧大的这个插件后,欣喜万分,好不容易能下载下来了,但是无法正常用,日志报错,希望囧大或者其他大神,能帮小弟看下,谢谢
我的是
0.82.0
版的,不知道有没有影响

2018-11-20 09:01:40 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/token to 172.30.32.2 (auth: False)

2018-11-20 09:01:40 INFO (MainThread) [homeassistant.components.http.view] Serving /api/ to 172.30.32.2 (auth: True)

2018-11-20 09:02:21 WARNING (MainThread) [homeassistant.components.sensor] Updating phicomm_balance sensor took longer than the scheduled update interval 0:03:20

2018-11-20 09:03:27 ERROR (SyncWorker_19) [custom_components.sensor.phicomm_balance] get token failed

2018-11-20 09:03:27 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 240, in async_update_ha_state

    device_attr = self.device_state_attributes

  File "/config/custom_components/sensor/phicomm_balance.py", line 97, in device_state_attributes

    'weight': self._detail['weight'],

KeyError: 'weight'

2018-11-20 09:05:42 INFO (SyncWorker_16) [custom_components.sensor.phicomm_balance] Updating the sensor...

2018-11-20 09:05:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.phicomm_balance is taking over 10 seconds

2018-11-20 09:06:40 INFO (MainThread) [homeassistant.components.http.view] Serving /api/ to 172.30.32.2 (auth: True)

2018-11-20 09:07:53 ERROR (SyncWorker_16) [custom_components.sensor.phicomm_balance] get token failed

2018-11-20 09:09:03 WARNING (MainThread) [homeassistant.components.sensor] Updating phicomm_balance sensor took longer than the scheduled update interval 0:03:20

2018-11-20 09:10:06 ERROR (SyncWorker_16) [custom_components.sensor.phicomm_balance] get token failed

2018-11-20 09:10:07 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 240, in async_update_ha_state

    device_attr = self.device_state_attributes

  File "/config/custom_components/sensor/phicomm_balance.py", line 97, in device_state_attributes

    'weight': self._detail['weight'],

KeyError: 'weight'

2018-11-20 09:11:40 INFO (MainThread) [homeassistant.components.http.view] Serving /api/ to 172.30.32.2 (auth: True)

2018-11-20 09:12:23 INFO (SyncWorker_14) [custom_components.sensor.phicomm_balance] Updating the sensor...

2018-11-20 09:12:33 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.phicomm_balance is taking over 10 seconds

2018-11-20 09:14:32 ERROR (SyncWorker_14) [custom_components.sensor.phicomm_balance] get token failed

2018-11-20 09:15:44 WARNING (MainThread) [homeassistant.components.sensor] Updating phicomm_balance sensor took longer than the scheduled update interval 0:03:20

回复

使用道具 举报

7

主题

1974

帖子

5657

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
5657
金钱
3683
HASS币
145

灌水之王

发表于 2018-11-20 12:04:57 | 显示全部楼层
服务器都挂了  肯定不能用了啊  等大神做局域网离线版
但是这玩意估计玩的人不多
回复

使用道具 举报

12

主题

188

帖子

785

积分

高级会员

Rank: 4

积分
785
金钱
597
HASS币
0
 楼主| 发表于 2018-11-20 12:20:16 | 显示全部楼层
xieahui 发表于 2018-11-20 12:04
服务器都挂了  肯定不能用了啊  等大神做局域网离线版
但是这玩意估计玩的人不多  ...

感觉不是服务器的问题,看日志是程序有问题。我手机登陆,看数据都没问题
回复

使用道具 举报

7

主题

1974

帖子

5657

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
5657
金钱
3683
HASS币
145

灌水之王

发表于 2018-11-20 12:34:23 | 显示全部楼层
get token failed……
回复

使用道具 举报

123

主题

4626

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16009
金钱
11298
HASS币
45
发表于 2018-11-20 14:32:09 | 显示全部楼层
这个我自己都好久没有用了,我也说不清原因了。
回复

使用道具 举报

12

主题

188

帖子

785

积分

高级会员

Rank: 4

积分
785
金钱
597
HASS币
0
 楼主| 发表于 2018-11-20 15:02:01 | 显示全部楼层
Jones 发表于 2018-11-20 14:32
这个我自己都好久没有用了,我也说不清原因了。

挺好的一个东西,可惜了
回复

使用道具 举报

123

主题

4626

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16009
金钱
11298
HASS币
45
发表于 2018-11-20 15:23:50 | 显示全部楼层
douzs 发表于 2018-11-20 15:02
挺好的一个东西,可惜了

这东西意义不大。。
回复

使用道具 举报

5

主题

186

帖子

946

积分

高级会员

Rank: 4

积分
946
金钱
760
HASS币
10
发表于 2018-11-22 10:04:37 | 显示全部楼层
难怪。。我手上也有一台~~也是好不容易可以下载了,结果~~
回复

使用道具 举报

0

主题

7

帖子

32

积分

新手上路

Rank: 1

积分
32
金钱
25
HASS币
0
发表于 2018-12-12 13:55:00 | 显示全部楼层
但是这玩意估计玩的人不多
回复

使用道具 举报

0

主题

5

帖子

30

积分

新手上路

Rank: 1

积分
30
金钱
25
HASS币
0
发表于 2019-5-27 18:24:09 | 显示全部楼层
盼望我也能试试!!!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-19 21:09 , Processed in 0.084531 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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