LASER-Yi / homebridge-mi-acpartner

XiaoMi AC Partner plugins for HomeBridge(https://github.com/nfarina/homebridge).
MIT License
263 stars 36 forks source link

IR switches maintain status #97

Open TJT-JTJ opened 2 years ago

TJT-JTJ commented 2 years ago

I've set up your plugin and it works great - except for one issue.

I've set up an additional IR switch to turn on/off the TV.

However, the plugin doesn't have logic to know the status of the TV. Please add an option in the config so that it immediately forgets the status, or maybe there's a HomeKit device mode that's simply a 'button'.

Workaround + issue: I've got a Shortcut set so when I ask Siri to turn off the TV, no matter whether it's turned on or off the shortcut logic will cause the button to trigger. However, if I ask Siri to turn off ALL devices, it can cause some issues where everything is turned off but the TV is turned on because the switch was already 'off'.

It would be great if an option could be added so that the switch can be forced not to remember it's state and that a few moments after it being turned on, the switch can default back to the 'off' state.

Thanks!