cbrandlehner / homebridge-daikin-local

Supports Daikin Air Conditioners on HomeBridge
MIT License
99 stars 18 forks source link

Switch the AC on and off with a tap in the home app #24

Closed MichaelMrak closed 5 years ago

MichaelMrak commented 5 years ago

Is it possible to redesign the plugin so that you can switch the AC on and off with a tap in the home app?

cbrandlehner commented 5 years ago

This plugin is based a specific Apple HomeKit characteristic named 'Thermostat'. Unfortunately this characteristic does not support an 'active' state which would show up as a switch.

See line 3440 here

However line 2987 descibes a service HeaterCooler that features an active state. I tried to rewrite the code last weekend but my first attempt failed.

I encourage you to submit a pull request unless I find some time to look into it again.

ghost commented 5 years ago

Does not work for me. After updating your plugin, restarting Homebridge, I saw the new switch in Homekit. Fan was ON - but my Daikin was OFF (I powered it down hours before).

Clicking the switch in Homekit from on to off - and reverse - doesn't do anything in my configuration.

cbrandlehner commented 5 years ago

True, the update that introduced the FAN control is currently only able to change the speed of the FAN. It does not yet allow to turn the device on into FAN. That feature will come in a future version.

ghost commented 5 years ago

Okay, but the fan is spinning despite i am not in fan mode and/or the Daikin is not on

cbrandlehner commented 5 years ago

I rewrote the plugin. Please test with new version and report a defect if problem still exists.