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

[Bug]: 米家智能插座3 耗电量始终为1 开关次数始终为0 且未显示日/月用电量 #164

Open
ZnDong opened this issue Dec 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ZnDong
Copy link
Contributor

ZnDong commented Dec 18, 2024

Describe the bug / 描述问题

cuco.plug.v3 耗电量始终为1,开关次数始终为0。且不支持显示日和月用电量,该属性在米家APP及hass-xiaomi-miot中均支持

To Reproduce / 复现步骤

image

Expected behavior / 预期结果

正确显示耗电量及日/月用电量

Home Assistant Logs / 系统日志

No response

Home Assistant Core version / Home Assistant Core 版本

2024.12.4

Home Assistant Operation System version / Home Assistant Operation System 版本

null

Xiaomi Home integration version / 米家集成版本

v0.1.0

Additional context / 其他说明

No response

@ZnDong ZnDong added the bug Something isn't working label Dec 18, 2024
@ZnDong
Copy link
Contributor Author

ZnDong commented Dec 18, 2024

下图为米家APP中显示的用电信息
6748a3cec1b37123d5699fb30c31d3f

以下为 hass-xiaomi-miot 关于cuco.plug.v3 日/月用电量的定义

'cuco.plug.v3': {
    'sensor_attributes': 'power_cost_today,power_cost_month',
    'stat_power_cost_key': '11.1',
},
'cuco.plug.v3:power_cost_today': {
    **ENERGY_KWH,
    'value_ratio': 0.01,
},
'cuco.plug.v3:power_cost_month': {
    **ENERGY_KWH,
    'value_ratio': 0.01,
}

@zacharywell
Copy link

同样的问题

@YerongAI
Copy link

YerongAI commented Dec 19, 2024

似乎官方没有把这种统计放在工作首位,现阶段我看他们一直在修复各种连不上和控制不了的问题。

类似的问题还有 #30 ,PR 也有了 #101 ,但就是没见合并。

我用 HA 除了控制,很多时候就是想看统计,比米家 APP 看起来方便,但统计不出来就很鸡肋。

@DoraTiger
Copy link

我看了spec,默认没有日月用电量相关参数,得自己基于累计用电量,结合自定义服务进行计算。另外PR我交了,本地测试单位啥的都正常了,但是部分数据就是不更新,我也交了新的issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants