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

state history not updating #8

Closed icherfas closed 4 years ago

icherfas commented 4 years ago

Describe the bug state history of the entity not getting updated

To Reproduce Steps to reproduce the behavior: at first the integration stopped working with this error: Failed to call service climate/set_hvac_mode. HTTPSConnectionPool(host='www.airconet.xyz', port=443): Max retries exceeded with url: /dev/switchHvac/5CCF7F4F46FB?on=False (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xa9315c90>: Failed to establish a new connection: [Errno 22] Invalid argument')) after reboot hassio the integration started to work but the history is not updating (I have tried to reboot a couple of times)

Configuration

climate:
- platform: ekon
  # This currently unused:
  name: Main account
  # Specify the name and password for your account
  username: **********@gmail.com
  password: *********
  # This specifies the server that the component would work with, I have only tried it with EKON server (Airconet APP)
  # Optional, defults to Airconet server
  # Use this if you are using "Airconet" app - EKON main server
  base_url: https://www.airconet.xyz/
  name_mapping:
  - id : ****
    name: Living_Room_AC

Expected behavior I would expect for the history to work :) Screenshots

image

Platform:

Additional context from the logfile:

Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 12:30:34 PM (1 occurrences)
Last logged: 12:30:34 PM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for ekon doing I/O at custom_components/ekon/climate.py, line 318: result = self._http_session.get(url)
hllhll commented 4 years ago

As I understand, Airconet is deprecated, instead they are using Airconet+ There's a PR by ronen waiting here to support Airconet+ you can try it https://github.com/hllhll/HomeAssistant-EKON-iAircon/pull/10

Personally, I'm using Tadiran-connect, currently, no ssl or protocol issues for me there...

hllhll commented 4 years ago

Airconet is dead as I Understand, Airconet+ is used instead (activate-ac.com); The integration was updated to support it NOT TH OROUGHLY TESTED, please read readme. If any issues please post logs in another ticket, thanks.