Skip to content

[Bug]: iot.switch.padw2p 浦安达单相智能保护开关没有当日耗电量、当月耗电量数据 #89

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

Closed
mickey50 opened this issue Dec 17, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@mickey50
Copy link

Describe the bug / 描述问题

没有每日、当月耗电量数据,功耗参数 耗电量数据不更新

To Reproduce / 复现步骤

image

Expected behavior / 预期结果

得到相应的数据

Home Assistant Logs / 系统日志

No response

Home Assistant Core version / Home Assistant Core 版本

2024.11.0

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

13.0

Xiaomi Home integration version / 米家集成版本

v0.10

Additional context / 其他说明

Xiaomi Miot Auto 集成可以得到相应的数据
image

@mickey50 mickey50 added the bug Something isn't working label Dec 17, 2024
@yizhaoyiximh
Copy link

你这是缺少参数,我那单位都不对。

@mickey50
Copy link
Author

mickey50 commented Dec 17, 2024

参考https://mijia.wiki/products/iot.switch.padw2p,厂商并没有定义当日耗电量、当月耗电量数据的属性。如需该参数作为属性上报请联系厂商。

hass-xiaomi-miot/ 集成应该是通过小米云服务的数据统计接口取得的数据,可否考虑用同样的方式实现?
image

@413505805
Copy link

我的里面电压是mv自己修改后正常,缺少当月用电,当日用电等效(有一个功耗一直不更新不知道是不是这个),希望更新解决一下
Uploading Screenshot_2024-12-18-08-13-46-367_io.homeassistant.companion.android.jpg…

@qleehao
Copy link

qleehao commented Dec 18, 2024

暂时可以自己添加一个辅助元素,用积分传感器计算电功率,可以得到kWh的耗电量

@olonglongo
Copy link

暂时可以自己添加一个辅助元素,用积分传感器计算电功率,可以得到kWh的耗电量

Hello, could you share an example? I'd really appreciate it for reference.

@qleehao
Copy link

qleehao commented Jan 8, 2025

暂时可以自己添加一个辅助元素,用积分传感器计算电功率,可以得到kWh的耗电量

Hello, could you share an example? I'd really appreciate it for reference.

屏幕截图 2025-01-08 153751

@olonglongo
Copy link

暂时可以自己添加一个辅助元素,用积分传感器计算电功率,可以得到kWh的耗电量

Hello, could you share an example? I'd really appreciate it for reference.

屏幕截图 2025-01-08 153751

It's very good, but it would be even better if there were YAML files!

@qleehao
Copy link

qleehao commented Jan 8, 2025

It's very good, but it would be even better if there were YAML files!

sensor:

  • platform: integration
    source: sensor.current_power
    name: energy_spent
    unit_prefix: k
    round: 2
    max_sub_interval:
    minutes: 5

This should work, but I haven't tested it.

see: https://www.home-assistant.io/integrations/integration/

@smresultwithout
Copy link

目前还未修复,有同样问题

@leafyelin
Copy link

我的也是同样获取不到用电量

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

9 participants