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

refactor: refactor miot device and spec #592

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

topsworld
Copy link
Contributor

@topsworld topsworld commented Jan 7, 2025

We have collected user questions during a period of time. According to the current problems and user needs, the existing code cannot meet the relevant needs, so it is decided to refactor miot_spec and miot_device in order to support more functions, tentatively as follows:

  • Support the translation of bool type attributes into text entities or binary entities.
  • Support value conversion, such as some bool value states being reversed.
  • Standardize the event name, and it is possible to choose to display the event name as the translated text or the standardized event name.
  • Optimize the experience of the entity filtering function.
  • Optimize the experience of the entity multilingual configuration.
  • Support custom spec or spec modification, such as spec unit.

我们收集了一段时间内的用户问题,根据现在的问题以及用户需求,现有代码满足不了相关需求,所以决定重构miot_spec和miot_device,以便支持更多功能,暂定如下:

  • 支持bool类型属性翻译成文本实体或者二进制实体
  • 支持值转换,如有些bool值状态是反的
  • 事件名称标准化,可以选择事件名称展示为翻译文本或者标准化事件名称
  • 优化实体过滤功能的体验
  • 优化实体多语言配置的体验
  • 支持自定义spec或者spec修改,如spec单位

@nuomi1
Copy link

nuomi1 commented Jan 8, 2025

No wonder I saw binary_sensor in the code before but it didn't actually work.

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

Successfully merging this pull request may close these issues.

2 participants