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

如何禁用掉homekit里面的制热模式,只保留制冷模式? #61

Open
howedeng123 opened this issue Aug 1, 2023 · 7 comments

Comments

@howedeng123
Copy link

目前的情况:
1、金制空气app里面有4种模式:制冷、制热、除湿、送风
2、home assistant里面有3种模式:制冷、除湿、送风
3、homekit里面只有2种模式:制冷、制热

问题:由于身处广东,没有制热需求,为了减少家人误操作,有没有什么方法可以在homekit只保留制冷模式?

@Necroneco
Copy link
Contributor

方法应该有很多,你可以试试 HA 的 customize,直接重定义这些 climate 的 hvac_modes

参考文档:
https://www.home-assistant.io/docs/configuration/customizing-devices/#manual-customization

参考示例:

homeassistant:
  customize:
    climate.ke_ting:
      hvac_modes:
        - cool
        - dry
        - fan_only
        - 'off'

@howedeng123
Copy link
Author

非常感谢,我在configuration.yaml添加了上述customize,确实可以实现空调实体只保留制冷模式,但奇怪的是homekit里面某些分机仍然有制热模式,而某些分机没有模式(其实这种情况在我添加customize之前就一直存在)

@Necroneco
Copy link
Contributor

中央空调的话,如果有一台已经选择了制冷或制热,那么其他机器是不能改变它的,只有关到只剩最后一台才能换模式。
你看看是不是这个原因?

@howedeng123
Copy link
Author

确实是这个原因,但我奇怪的是,为什么HA的customize只对HA起作用,不对homekit产生任何影响?

@Necroneco
Copy link
Contributor

按理说是有用的,试试重载一下HomeKitBridge?

@howedeng123
Copy link
Author

整个HA都重启了,对homekit就是不生效,我查了资料也问了GPT4,好像说homekit走的是单独的通道,设备有什么模式就全展示出来,HA的customize对homekit无效。我也不知道是不是这样

@Necroneco
Copy link
Contributor

还可以试一下,把这个空调从HKB里移除掉,等HK里消失之后,再重新添加。
看代码,HKB 是读了 climate 的 hvac_mdoes 字段的

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

No branches or pull requests

2 participants