cbrandlehner / homebridge-daikin-local

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

Fan Symbol does not turn off cooling engine anymore #159

Open irenaeusbecker opened 3 years ago

irenaeusbecker commented 3 years ago

Hi

I’m using the Homebridge plugin in an multi split environment with four Emura devices.

All device could be shutdown in parallel by just one click on active fan symbol, see attached. I today made the update on latest of plug-in and the feature does not work anymore.

Even the fan symbol within each room does not deactivate the individual cooling engine.

C885D644-FACA-4B2E-BFF9-9AC7E660A9F7

Thanks in advance.

Greets, Irenaeus

cbrandlehner commented 3 years ago

Please enable debug mode and provide debug log for analysis.

irenaeusbecker commented 3 years ago

[7/6/2021, 2:47:08 PM] [Emilia Klima] setFanStatus: HomeKit requested FAN operation state is: false [7/6/2021, 2:47:08 PM] [Emilia Klima] attempting request: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] queuing (append) request: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] executing queued request: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] requesting from cache: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] cache SKIP: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] _doSendGetRequest: requesting from API: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] _doSendGetRequest: set cache: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] _doSendGetRequest: response from API: ret=OK,pow=1,mode=3,adv=,stemp=22.5,shum=0,dt1=25.0,dt2=M,dt3=22.5,dt4=25.0,dt5=25.0,dt7=25.0,dh1=0,dh2=50,dh3=0,dh4=0,dh5=0,dh7=0,dhh=50,b_mode=3,b_stemp=22.5,b_shum=0,alert=255,f_rate=3,f_dir=1,b_f_rate=3,b_f_dir=1,dfr1=3,dfr2=5,dfr3=3,dfr4=5,dfr5=5,dfr6=3,dfr7=3,dfrh=5,dfd1=1,dfd2=0,dfd3=1,dfd4=0,dfd5=0,dfd6=1,dfd7=1,dfdh=0,dmnd_run=0,en_demand=1 [7/6/2021, 2:47:08 PM] [Emilia Klima] queued request finished: path: http://192.168.1.87/aircon/get_control_info [7/6/2021, 2:47:08 PM] [Emilia Klima] setFanStatus: HomeKit requested to turn the FAN off. [7/6/2021, 2:47:08 PM] [Emilia Klima] setFanStatus: HomeKit requested a new state of: false [7/6/2021, 2:47:08 PM] [Emilia Klima] setFanStatus: Current Power is: 1. 0=Off, 1=On [7/6/2021, 2:47:08 PM] [Emilia Klima] setFanStatus: Current Mode is: 3. 1=Auto, 2=Dehumidification, 3=Cool, 4=Heat, 6=FAN [7/6/2021, 2:47:08 PM] [Emilia Klima] setFanStatus: targetMode = 6 [7/6/2021, 2:47:08 PM] [Emilia Klima] setFanStatus: Already in cooling mode, ignoring setFanStatus

Pharaoas commented 3 years ago

Hi irenausbecker,

this is by a change I made (sorry for that). The problem I saw is, that when you are in cooling mode and you change the fan status the device completely switch off. (My understanding was that the cooling device and the fan shall be completely independed) I see your use case now, I guess it‘s possible to change the functionality, when the fan is switched off (not only a speed change) and the device is in cooling mode or fan mode to switch the device off completely. I do not know if that is, what is wished? Same is the other way: when the cooling device is switched off, should this also shut off the fan?

best regards Pharaoas

irenaeusbecker commented 3 years ago

Good Morning.

Yes, exactly. From my (personal) perspective it does not make any sense to have independent functionality for fan in cooling mode. It will need at least ~10% to bring cold air into the room. But you may convince me with other use cases.

Greets

Pharaoas commented 3 years ago

Hi irenausbecker,

the problem I fixed was, when you changed the fan speed while cooling mode the complete devices has been switched off. Btw. I just detected, that you can only "press" the fan icon in the state area, when you tell home to handle them as separate devices - a little bit funny because you want them to act as one device :-).

But I would like to have more people giving their opinion before changing that code again.

For me there are still several questions when combining both devices. I.E. what happen when you turn on the fan? (Btw. also the daikin app handles both parts completely independent.) My Proposal for change: 1.) When the device is on

Btw.: As I already told Home will send intermediate settings when using sliders, that can always lead to unexpected results...

best regards Pharaoas

irenaeusbecker commented 3 years ago

Hi,

you're right. In the home section, the number of running fans is shown and you cannot control them. I also used it only to turn off all devices. This is much faster dann choosing each room and turn off all devices manually. As a workaround i configured a scene to turn off all four devices.

Regarding your proposals... sure, would be nice. But on the other side mode and fan speed can also be configured as a scene.

I only created this bug as the click-on-fan-button does not disable all fans anymore ;-)