Apollon77 / ioBroker.daikin

Control Daikin Air Conditioner devices
MIT License
14 stars 10 forks source link

Adapter doesn't maintain Powerstate properly #141

Closed lxffm closed 2 years ago

lxffm commented 2 years ago

Describe the bug
I want to read the powerstate of my Daikin airconditioner to determine whether the device is turned on or off. I assume thats represented by controlInfo.modeB as it returns the current mode the device is operating in. If I turn off the device, it holds the last value, whereas I was expecting it will turn to "OFF" or "FALSE" etc.

I couldn't find any better datapoint as I was assuming the control.power is just a setter, as it's state is always true for me, but I can properly set the device on and off with it.

To Reproduce
Steps to reproduce the behavior:

  1. Turn on device with any mode.
  2. Observe controlInfo.modeB to switch to the actual mode
  3. Turn off the device
  4. Observe controlInfo.modeB

Expected behavior
controlInfo.modeB stays with the last value and is not turning to an state which indicates that the device is turned off

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

Additional context
Add any other context about the problem here.

lxffm commented 2 years ago

I could solve the problem by updating to v1.4.0. Sorry for raising the issue Now control.power maintains the state of the device.

Apollon77 commented 2 years ago

exacly :-) I love issues that solve itself