kmaehashi / homebridge-nature-remo-cloud-aircon

Homebridge Plug-in for Air Conditioner Managed by Nature Remo
36 stars 19 forks source link

Skip command request if it actually changes nothing (iOS 13 optimization) #22

Closed yujinakayama closed 4 years ago

yujinakayama commented 5 years ago

The Home app on iOS 13 always sends command requests to Homebridge every time opening a thermostat control panel even without actual user operations. This causes unnecessary requests to Nature Remo and annoying beep sound with most ACs.

With this patch, any requests from HomeKit that change nothing will be skipped. If some users need to preserve the old behavior (because they use both Nature Remo and hardware remote in their home), they need to set new configuration option skip_command_request_if_no_change to false.

Please watch this video for the actual behavior: https://www.youtube.com/watch?v=kqR1Yg93SAA