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

建议给插座类的功率sensor增加state_class: measurement字段 #477

Open
juzi214032 opened this issue Dec 27, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@juzi214032
Copy link

Describe the Bug / 描述问题

history 卡片显示功率曲线基本处于不可用

How to Reproduce / 复现步骤

建议给插座类的功率sensor增加state_class: measurement字段,以下是有无 state_class 字段在history卡片中的区别
有 state_class 字段,曲线会进行降采样,显示最大、最小、平均值,这样看得比较清洗
没有 state_class字段,所有点会堆叠在一起,曲线完全看不清

image image

Expected Behavior / 预期结果

Reproduce Time / 问题复现的时间点

2025-12-27

Home Assistant Logs / 系统日志

No response

Log Timezone / 日志时区

Asia

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.1.2

Additional Context / 其他说明

No response

@topsworld topsworld added the enhancement New feature or request label Dec 27, 2024
@topsworld topsworld self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants