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

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

[插件集成] 云米热水器插件

[复制链接]

1

主题

26

帖子

95

积分

注册会员

Rank: 2

积分
95
金钱
69
HASS币
0
发表于 2020-3-30 23:53:01 | 显示全部楼层
wen_jxpx 发表于 2020-3-25 16:07
云米商城的账号密码

米家的账号吗?
回复

使用道具 举报

9

主题

171

帖子

868

积分

论坛积极会员

积分
868
金钱
697
HASS币
0
发表于 2020-4-1 15:00:45 | 显示全部楼层
大佬,我是云米燃气热水器,能用吗?
回复

使用道具 举报

8

主题

154

帖子

1158

积分

论坛技术达人

积分
1158
金钱
994
HASS币
20
 楼主| 发表于 2020-4-7 14:48:46 | 显示全部楼层
zjmhlxp 发表于 2020-4-1 15:00
大佬,我是云米燃气热水器,能用吗?

应该接口不一样,但controller类应该是通用的。
回复

使用道具 举报

8

主题

68

帖子

329

积分

论坛分享达人

积分
329
金钱
261
HASS币
0
发表于 2020-4-19 22:35:21 | 显示全部楼层
其实可以用本地IP方式控制,只需要token就行
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-6-9 22:05:45 | 显示全部楼层
a74074011 发表于 2020-4-19 22:35
其实可以用本地IP方式控制,只需要token就行

在哪里能找到本地IP控制的呀,
回复

使用道具 举报

0

主题

16

帖子

106

积分

注册会员

Rank: 2

积分
106
金钱
90
HASS币
0
发表于 2020-9-12 17:07:11 | 显示全部楼层
a74074011 发表于 2020-4-19 22:35
其实可以用本地IP方式控制,只需要token就行

其实可以用意念控制,什么都不需要。
回复

使用道具 举报

3

主题

84

帖子

869

积分

高级会员

Rank: 4

积分
869
金钱
785
HASS币
0
发表于 2020-10-24 23:29:03 | 显示全部楼层
我的S1 抓包成功后不报错 但在HA里面啥夜没显示
回复

使用道具 举报

8

主题

154

帖子

1158

积分

论坛技术达人

积分
1158
金钱
994
HASS币
20
 楼主| 发表于 2020-11-11 16:22:08 | 显示全部楼层
rayliu123 发表于 2020-10-24 23:29
我的S1 抓包成功后不报错 但在HA里面啥夜没显示

先直接curl测试能正常控制后,再构造代码更方便点。
回复

使用道具 举报

10

主题

320

帖子

1629

积分

金牌会员

Rank: 6Rank: 6

积分
1629
金钱
1309
HASS币
0
发表于 2020-11-24 00:09:18 来自手机 | 显示全部楼层
client_id: 是几位数字
回复

使用道具 举报

10

主题

320

帖子

1629

积分

金牌会员

Rank: 6Rank: 6

积分
1629
金钱
1309
HASS币
0
发表于 2020-11-30 16:11:07 来自手机 | 显示全部楼层
Logger: homeassistant.components.water_heater Source: custom_components/yunmi_water_heater/water_heater.py:173 Integration: Water Heater (documentation, issues) First occurred: 2020年11月29日 下午7:49:47 (1 occurrences) Last logged: 2020年11月29日 下午7:49:47  Error while setting up yunmi_water_heater platform for water_heater Traceback (most recent call last):   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 243, in yunmi_get_access_token     self._access_token_exp_time = int(res_list['result']['expiresIn']) KeyError: 'result'  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 222, in yunmi_login     tk_arr = self.yunmi_get_access_token(self._refresh_token, self._client_id)   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 246, in yunmi_get_access_token     _LOGGER.error('get access token failed:'+e.__context__) TypeError: can only concatenate str (not "NoneType") to str  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 169, in __init__     self.yunmi_login()   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 231, in yunmi_login     _LOGGER.error('login failed:'+e.__context__) TypeError: can only concatenate str (not "KeyError") to str  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform     await asyncio.shield(task)   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 128, in async_setup_platform     yunmi_wh = YunmiWaterHeater(hass, name, phone_number, password, client_id)   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 411, in __init__     self._controller = YunmiWaterHeaterController(hass, phone_number, password, client_id)   File "/config/custom_components/yunmi_water_heater/water_heater.py", line 173, in __init__     _LOGGER.error("update fail"+e.__context__) TypeError: can only concatenate str (not "TypeError") to str
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-26 01:33 , Processed in 2.614879 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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