Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NWT 18L 除湿机缺少水箱状态传感器实体 #912

Open
MeowRay opened this issue Dec 2, 2022 · 15 comments
Open

NWT 18L 除湿机缺少水箱状态传感器实体 #912

MeowRay opened this issue Dec 2, 2022 · 15 comments

Comments

@MeowRay
Copy link

MeowRay commented Dec 2, 2022

Device model

nwt.derh.wdh318efw1

Component version

No response

HA core version

No response

Integrated mode

Automatic (自动模式)

The problem

缺少水箱传感器实体
米家中会在上方显示水箱满水或者不存在

Entity attributes

image

Home Assistant Logs

No response

@al-one
Copy link
Owner

al-one commented Dec 5, 2022

请通过开发者工具执行服务,并从侧边栏获取结果:

service: xiaomi_miot.send_command
data:
  entity_id: humidifier_wdh318efw1_xxxx
  method: get_prop
  params: [on_off, mode, auto, defrost_status, tank_full, fan_speed, child_lock, led, buzzer, fan_st, humidity]
  throw: true

@MeowRay
Copy link
Author

MeowRay commented Dec 7, 2022

service: xiaomi_miot.send_command
data:
  entity_id: humidifier_wdh318efw1_xxxx
  method: get_prop
  params: [on_off, mode, auto, defrost_status, tank_full, fan_speed, child_lock, led, buzzer, fan_st, humidity]
  throw: true

侧边栏没东西,log里有报错
2022-12-07 23:05:21.137 ERROR (SyncWorker_2) [custom_components.xiaomi_miot.humidifier] 除湿机(nwt.derh.wdh318efw1): Send miio command: get_prop(['on_off', 'mode', 'auto', 'defrost_status', 'tank_full', 'fan_speed', 'child_lock', 'led', 'buzzer', 'fan_st', 'humidity']) failed: {'code': -5000, 'message': 'invalid operation'}

@al-one
Copy link
Owner

al-one commented Dec 7, 2022

再次尝试以下服务:

service: xiaomi_miot.send_command
data:
  entity_id: humidifier_wdh318efw1_xxxx
  method: get_prop
  params: [on_off]
  throw: true
service: xiaomi_miot.send_command
data:
  entity_id: humidifier_wdh318efw1_xxxx
  method: get_prop
  params: [mode]
  throw: true
service: xiaomi_miot.send_command
data:
  entity_id: humidifier_wdh318efw1_xxxx
  method: get_prop
  params: [on_off, mode]
  throw: true

@MeowRay
Copy link
Author

MeowRay commented Dec 7, 2022

service: xiaomi_miot.send_command
data:
  entity_id: humidifier_wdh318efw1_xxxx
  method: get_prop
  params: [on_off, mode]
  throw: true

off
auto
auto
最后一个除湿机有提示音

@al-one
Copy link
Owner

al-one commented Dec 8, 2022

看到你的实体属性中有环境温度,但是我从该设备的米家插件源码中未找到温度相关属性,因此该设备适配本地接入后会丢失温度属性。

nwt.derh.wdh318efw1.js

@al-one
Copy link
Owner

al-one commented Dec 8, 2022

已适配该设备的本地接入,并添加目标湿度和水箱状态传感器。请更新至master分支后重试。

@MeowRay
Copy link
Author

MeowRay commented Dec 8, 2022

已适配该设备的本地接入,并添加目标湿度和水箱状态传感器。请更新至master分支后重试。

image
已更新master,现在似乎直接不可用了

@MeowRay
Copy link
Author

MeowRay commented Dec 8, 2022

已适配该设备的本地接入,并添加目标湿度和水箱状态传感器。请更新至master分支后重试。

现在只有除湿机开关是可用的了,其他实体不可用,并且除湿机一直每几分钟滴滴提示音

@al-one
Copy link
Owner

al-one commented Dec 8, 2022

再次更新master。

@MeowRay
Copy link
Author

MeowRay commented Dec 13, 2022

再次更新master。

可以用了,但是现在每隔一段时间(几个小时?),除湿机会有滴一声提示音,并且状态没有变化。

@al-one
Copy link
Owner

al-one commented Dec 13, 2022

看些实体日志中是否有不可用的记录,以及系统日志中是否有该设备相关的报错日志。可能是持续轮询设备导致的设备内部重启。

@MeowRay
Copy link
Author

MeowRay commented Dec 19, 2022

看些实体日志中是否有不可用的记录,以及系统日志中是否有该设备相关的报错日志。可能是持续轮询设备导致的设备内部重启。

是的
image

@al-one
Copy link
Owner

al-one commented Dec 20, 2022

该报错由设备返回,插件对此无能为力。

@MeowRay
Copy link
Author

MeowRay commented Dec 25, 2022

该报错由设备返回,插件对此无能为力。

现在每隔一段时间滴一声,,无解了吗,似乎在local后出现的

@al-one
Copy link
Owner

al-one commented Dec 27, 2022

也许你可以尝试自定义interval_seconds: 120以增加对设备的轮询间隔,或者添加自定义miot_cloud: true云端接入。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants