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

如何指定自定义实体中switch_properties的对应值呢? #1503

Closed
micturkey opened this issue Jan 16, 2024 · 2 comments
Closed

如何指定自定义实体中switch_properties的对应值呢? #1503

micturkey opened this issue Jan 16, 2024 · 2 comments

Comments

@micturkey
Copy link

micturkey commented Jan 16, 2024

yeelink.bhf_light.v10 浴霸中有一个干燥功能,只有在ptc_bath_heater.mode=1时才可以启动
为了方便在ha中开关这一功能,我把ptc_bath_heater.mode放到了自定义实体中switch_properties里。
但是始终无法通过这一个开关打开干燥功能,我检查了一下,发现在ptc_bath_heater实体中开启干燥功能,是将ptc_bath_heater.mode设为1,而switch_properties则是设置为true,因此导致了问题的发生,后面我也用Xiaomi Miot Auto: Set miot property服务试了一下,确实如此。
所以,请问有没有办法指定自定义实体中开关实体的可选值呢?

@al-one
Copy link
Owner

al-one commented Mar 15, 2024

更新到master分支,并且添加自定义:

descriptions_for_on: Dry
descriptions_for_off: Idle

@micturkey
Copy link
Author

micturkey commented Mar 15, 2024

更新到master分支,并且添加自定义:

descriptions_for_on: Dry

descriptions_for_off: Idle

感谢!更新至v0.7.17并按提示设置实体后正常了。

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

No branches or pull requests

2 participants