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

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

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

[复制链接]

0

主题

7

帖子

66

积分

注册会员

Rank: 2

积分
66
金钱
59
HASS币
0
发表于 2021-1-31 14:16:01 | 显示全部楼层
作者的我用起来好像有点问题,已经忘了哪里有问题了,修改了一下,一直忘了发,其他朋友要我刚好想起来就发出来。功能都差不多,基于他们的几个改的,刚好也学习了下整个工作过程。

WX20210131-141506@2x.png

yummi2.zip

3.92 KB, 下载次数: 52

回复

使用道具 举报

0

主题

5

帖子

17

积分

新手上路

Rank: 1

积分
17
金钱
12
HASS币
0
发表于 2021-2-19 20:33:41 | 显示全部楼层
springjk 发表于 2021-1-31 14:16
作者的我用起来好像有点问题,已经忘了哪里有问题了,修改了一下,一直忘了发,其他朋友要我刚好想起来就发 ...

不知为何没法用,没反应
回复

使用道具 举报

0

主题

5

帖子

17

积分

新手上路

Rank: 1

积分
17
金钱
12
HASS币
0
发表于 2021-2-19 20:36:10 | 显示全部楼层
Soloist_lrp 发表于 2021-1-16 22:17
才看到,研究了一下,已更新,你试试。

请问下homeassistance页面正常,为何到HomeKit里面不行,只有温度呢?
回复

使用道具 举报

0

主题

5

帖子

17

积分

新手上路

Rank: 1

积分
17
金钱
12
HASS币
0
发表于 2021-2-19 22:47:48 | 显示全部楼层
Soloist_lrp 发表于 2020-4-18 21:03
一键即热可以自己写一个开关   面板里面可以开 但是无法关闭   调用服务失败不用管他  操作模式我自己改 ...

请问下这个怎么操做? 为什么我只在homekit里面看到温度调节,并且不会开启一键即热式?
回复

使用道具 举报

0

主题

5

帖子

17

积分

新手上路

Rank: 1

积分
17
金钱
12
HASS币
0
发表于 2021-2-19 23:06:10 | 显示全部楼层
请教下云米热水器的配置问题? 怎么写开关? 目前我就是ha页面能用,ios不行
回复

使用道具 举报

0

主题

7

帖子

66

积分

注册会员

Rank: 2

积分
66
金钱
59
HASS币
0
发表于 2021-2-22 15:15:47 | 显示全部楼层
smart2 发表于 2021-2-19 20:33
不知为何没法用,没反应
water_heater:
  - platform: yunmi
    host: 192.168.31.180
    token: xxx
    name: 云米热水器

我这测试没啥问题 你再看看配置文件
回复

使用道具 举报

1

主题

40

帖子

286

积分

中级会员

Rank: 3Rank: 3

积分
286
金钱
246
HASS币
0
发表于 2021-3-16 15:12:49 | 显示全部楼层
云米热水器添加一键预热功能是很有用的。
回复

使用道具 举报

5

主题

259

帖子

1604

积分

金牌会员

Rank: 6Rank: 6

积分
1604
金钱
1345
HASS币
0
发表于 2021-6-24 23:27:45 | 显示全部楼层
springjk 发表于 2021-1-31 14:16
作者的我用起来好像有点问题,已经忘了哪里有问题了,修改了一下,一直忘了发,其他朋友要我刚好想起来就发 ...

你好,用你的配置报错,求指导,谢谢

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/yunmi/water_heater.py:208
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 23:22:16 (3 occurrences)
Last logged: 23:24:09

[281472695506592] {'code': -9999, 'message': 'undefined command'}
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 760, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
    await result
  File "/config/custom_components/yunmi/water_heater.py", line 208, in async_set_operation_mode
    self._device.send('set_power', [1])
  File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 178, in send
    return self._protocol.send(
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 214, in send
    self._handle_error(payload["error"])
  File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 274, in _handle_error
    raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'undefined command'}
回复

使用道具 举报

5

主题

259

帖子

1604

积分

金牌会员

Rank: 6Rank: 6

积分
1604
金钱
1345
HASS币
0
发表于 2021-6-25 21:51:36 | 显示全部楼层
你好楼主,实体有了,但是报错啊无法启用
2021-06-25 21:48:09 WARNING (MainThread) [homeassistant.loader] You are using a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-06-25 21:48:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-06-25 21:48:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-06-25 21:48:13 WARNING (MainThread) [homeassistant.loader] You are using a custom integration konke which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-06-25 21:48:16 WARNING (MainThread) [homeassistant.loader] You are using a custom integration yunmi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-06-25 21:48:55 ERROR (MainThread) [pyhap.characteristic] TargetHeatingCoolingState: value=0 is an invalid value.
2021-06-25 21:49:50 ERROR (MainThread) [custom_components.yunmi.water_heater] Fail to get_prop from Yunmi Water Heater
Traceback (most recent call last):
File "/config/custom_components/yunmi/water_heater.py", line 120, in async_update
state = self._device.send('get_prop', ["washStatus","velocity","waterTemp","targetTemp","errStatus"])
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 177, in send
return self._protocol.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 214, in send
self._handle_error(payload["error"])
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 274, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'undefined command'}
2021-06-25 21:49:50 ERROR (MainThread) [homeassistant.helpers.entity] Update for water_heater.yun_mi_re_shui_qi fails
Traceback (most recent call last):
File "/config/custom_components/yunmi/water_heater.py", line 120, in async_update
state = self._device.send('get_prop', ["washStatus","velocity","waterTemp","targetTemp","errStatus"])
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 177, in send
return self._protocol.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 214, in send
self._handle_error(payload["error"])
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 274, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'undefined command'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 292, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 490, in async_device_update
raise exc
File "/config/custom_components/yunmi/water_heater.py", line 135, in async_update
raise PlatformNotReady
homeassistant.exceptions.PlatformNotReady
2021-06-25 21:49:57 ERROR (MainThread) [custom_components.yunmi.water_heater] Fail to get_prop from Yunmi Water Heater
Traceback (most recent call last):
File "/config/custom_components/yunmi/water_heater.py", line 120, in async_update
state = self._device.send('get_prop', ["washStatus","velocity","waterTemp","targetTemp","errStatus"])
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 177, in send
return self._protocol.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 214, in send
self._handle_error(payload["error"])
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 274, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'undefined command'}
2021-06-25 21:49:57 ERROR (MainThread) [homeassistant.helpers.entity] Update for water_heater.yun_mi_re_shui_qi fails
Traceback (most recent call last):
File "/config/custom_components/yunmi/water_heater.py", line 120, in async_update
state = self._device.send('get_prop', ["washStatus","velocity","waterTemp","targetTemp","errStatus"])
File "/usr/local/lib/python3.8/site-packages/miio/device.py", line 177, in send
return self._protocol.send(
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 214, in send
self._handle_error(payload["error"])
File "/usr/local/lib/python3.8/site-packages/miio/miioprotocol.py", line 274, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -9999, 'message': 'undefined command'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 292, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 490, in async_device_update
raise exc
File "/config/custom_components/yunmi/water_heater.py", line 135, in async_update
raise PlatformNotReady
homeassistant.exceptions.PlatformNotReady

回复

使用道具 举报

2

主题

49

帖子

700

积分

论坛技术达人

积分
700
金钱
646
HASS币
20
 楼主| 发表于 2021-6-28 11:03:06 | 显示全部楼层
damp521 发表于 2021-6-25 21:51
你好楼主,实体有了,但是报错啊无法启用

你的啥型号?估计是不支持
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-22 23:40 , Processed in 0.055832 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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