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

add light mode for yeelink.bhf_light.v1/v2 #1278

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

detecti1
Copy link
Contributor

No description provided.

"access": ["read", "write"],
"value-list": [
{"value": 1, "description": "daylight"},
{"value": 5, "description": "nightlight"}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议这里的描述使用Day/Night,能够支持本地化翻译。

"light": {
"light": {
"state_attributes": {
"effect_list": {
"state": {
"Day": "日光",
"Night": "夜光",
"Color": "彩光",
"Scene": "场景",
"Music": "音乐"
}
}
}
}
},

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,多谢修正。

我之前理解有误,以为这里只能填经由 miio_props 拿到的 light_mode 的值

@al-one al-one merged commit 0e811f4 into al-one:master Aug 24, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants