hllhll / HomeAssistant-EKON-iAircon

EKON iAircon / Tadiran climate component written in Python3 for Home Assistant. On the bases of Gree Climate component for easier interfacing with HASS
GNU General Public License v3.0
14 stars 7 forks source link

Handle default `on` state paramaters #13

Closed hllhll closed 4 years ago

hllhll commented 4 years ago

Describe the bug When turning on the AC, Data shows up as default values for tempeture etc. (25 deg Celsius) However, the AC may turn on in the latesest temp that it was turned off<>25, this takes a couple of second to get updated

To Reproduce Steps to reproduce the behavior:

  1. Set ac to 22 deg
  2. Turn it off
  3. Turn on using the app or integration
  4. Initially the temp say 25deg, after a few seconds it would get updated

Expected behavior Data in HA should represent real settings and should be trusted (as possible)

Additional context Total Guess that needs to be verified: I Think that Ekon-server state is 25deg by default whilst the actual AC has it's own temp, when the component identifies that it was turned on, it understands that it should update the server with the current applied settings. only after it does it is when Ekon server sent out the proper message over the Websocket to the client (App/Integration)

How to solve

hllhll commented 4 years ago

Not relevant, I Think this issue arose from a failure of the code to connect with WS and then falling back to HTTP. Fixed as part of PR #10