Giter VIP home page Giter VIP logo

Comments (7)

Necroneco avatar Necroneco commented on June 16, 2024

方法应该有很多,你可以试试 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'

from ha-dsair.

howedeng123 avatar howedeng123 commented on June 16, 2024

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

from ha-dsair.

Necroneco avatar Necroneco commented on June 16, 2024

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

from ha-dsair.

howedeng123 avatar howedeng123 commented on June 16, 2024

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

from ha-dsair.

Necroneco avatar Necroneco commented on June 16, 2024

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

from ha-dsair.

howedeng123 avatar howedeng123 commented on June 16, 2024

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

from ha-dsair.

Necroneco avatar Necroneco commented on June 16, 2024

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

from ha-dsair.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.