JeroenVdb / homebridge-daikin-cloud

This Homebrige plugin connects to the Daikin Cloud and loads all your devices to be controled via Homebridge and Homekit.
https://www.npmjs.com/package/homebridge-daikin-cloud
Apache License 2.0
39 stars 11 forks source link

"When I Leave Home, Turn Off", turns it on instead. #22

Closed GeorgePetri closed 1 year ago

GeorgePetri commented 1 year ago

Describe The Bug: Enabling "When I Leave Home, Turn Off" from the Home app, causes the AC to reset to auto and 25 degrees when triggered by leaving home.

Environment:

JeroenVdb commented 1 year ago

@GeorgePetri can you post the logs of what happens at the time you leave the house? I guess we should see some “sets” happening. I don’t know if this has anything to do with the plug-in.

GeorgePetri commented 1 year ago

I'm not completely sure myself that the issue is in the plugin or somewhere else in the stack, but I hope to figure it out. See logs below:

[10/13/2022, 9:36:05 AM] [DaikinCloud] [kitchen] GET HeatingThresholdTemperature, temperature: 28 [10/13/2022, 11:12:16 AM] [DaikinCloud] UPDATED Daikin Cloud tokenset, use for future and wrote to /volume1/homebridge/daikincloudtokenset.json [10/13/2022, 11:12:16 AM] [DaikinCloud] UPDATED Daikin Cloud tokenset, use for future and wrote to /volume1/homebridge/daikincloudtokenset.json [10/13/2022, 11:12:17 AM] [DaikinCloud] [kitchen] GET TargetHeaterCoolerState, operationMode: heating [10/13/2022, 11:12:17 AM] [DaikinCloud] [kitchen] GET ActiveState, state: off [10/13/2022, 11:12:17 AM] [DaikinCloud] [kitchen] SET ActiveState, state: 0 [10/13/2022, 11:12:17 AM] [DaikinCloud] [kitchen] SET TargetHeaterCoolerState, OperationMode to: 0 [10/13/2022, 11:12:17 AM] [DaikinCloud] [kitchen] SET TargetHeaterCoolerState, daikinOperationMode to: auto

JeroenVdb commented 1 year ago

@GeorgePetri I did try this myself and I'm can reproduce this.

The problems seems like HomeKit sending 2 events to "turn off" the AC

  1. Set ActiveState to 0 and
  2. set TargetHeaterCoolerState to auto.

In return, in the plugin I send 2 command to the AC:

  1. OperationMode to 0, turn the AC off
  2. daikinOperationMode to auto, set the operation mode to auto

It seems like the Daikin internals turn the AC on automatically when the operation mode changes.

I don't immediately have an answer on how to fix this. You could try to make a Shortcut yourself. Maybe if you create it yourself it will only change the ActiveState.

GeorgePetri commented 1 year ago

Oh man, it seems like homekit and Daikin don't mesh well together.

JeroenVdb commented 1 year ago

Yes I am afraid so, I hope you can solve it via a Shortcut.