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

紅外風扇控制問題 #879

Closed
kei81131 opened this issue Nov 14, 2022 · 4 comments
Closed

紅外風扇控制問題 #879

kei81131 opened this issue Nov 14, 2022 · 4 comments
Labels
bug Something isn't working device: fan fixed bug fixed

Comments

@kei81131
Copy link
Contributor

你好
我將紅外風扇添加後, 發現只有風扇的開關實體
其他的操作, 需要點進去才能進行, 如下圖

請問有辦法把其他的操作都添加實體嗎?

ir fan2
ir fan1

@al-one
Copy link
Owner

al-one commented Nov 15, 2022

HA的风扇实体就是这样,如果你想把操作作为单独的实体,可以自定义设备

# configuration.yaml
xiaomi_miot:
  device_customizes:
    miir.fan.ir01:
      button_actions: turn_on,turn_off,fan_speed_up,fan_speed_down,horizontal_swing_on,horizontal_swing_off

@kei81131
Copy link
Contributor Author

謝謝回覆 <(_ _)>

修改configuration.yaml 後, 情況沒有變化

以此思路, 也去修改了一下device_customizes.py, 結果也是沒有變化 ..... >_<

@kei81131
Copy link
Contributor Author

kei81131 commented Dec 2, 2022

請問有沒有方法可以添加實體?
謝謝

或者是我的操作出了問題?

miir fan

@al-one al-one added the bug Something isn't working label Dec 2, 2022
@al-one
Copy link
Owner

al-one commented Dec 2, 2022

已修复,请更新至master分支后重试。

@al-one al-one added the fixed bug fixed label Dec 2, 2022
@al-one al-one closed this as completed Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working device: fan fixed bug fixed
Projects
None yet
Development

No branches or pull requests

2 participants