Compare commits

...

3 Commits

Author SHA1 Message Date
Andre Basche 9870de2a42 Bump version 2024-01-29 19:46:18 +01:00
Andre Basche 2a5be2e657 Set polling to 60 seconds 2024-01-29 19:44:05 +01:00
Chad Wilson 15bf996404 Trivial typo fix 2024-01-25 15:36:33 +01:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ from homeassistant.components.climate import (
)
DOMAIN: str = "hon"
UPDATE_INTERVAL: int = 10
UPDATE_INTERVAL: int = 60
PLATFORMS: list[str] = [
"sensor",
+1 -1
View File
@@ -11,5 +11,5 @@
"requirements": [
"pyhOn==0.15.15"
],
"version": "0.11.0-beta.1"
"version": "0.12.0"
}
+1 -1
View File
@@ -41,7 +41,7 @@ Haier sells home appliances with internet connection and offers the free hOn app
The connection only works with the Haier servers, so your appliance sends data to the cloud and the hOn app communicates with it, there is no direct connection.
### How was the plugin created?
I used [HTTP Tookit](https://httptoolkit.com/) to monitor the HTTP requests between hOn and the Haier servers and then rebuilt the requests in Python (with aiohttp). I have tried to make the requests in the same way as the app does, except for the ones we don't need.
I used [HTTP Toolkit](https://httptoolkit.com/) to monitor the HTTP requests between hOn and the Haier servers and then rebuilt the requests in Python (with aiohttp). I have tried to make the requests in the same way as the app does, except for the ones we don't need.
The pretty complex login can be found in [auth.py](https://github.com/Andre0512/pyhOn/blob/main/pyhon/connection/auth.py) and the API requests that I have adopted as relevant for the integration are these [api.py](https://github.com/Andre0512/pyhOn/blob/main/pyhon/connection/api.py).
Beyond that, there is no communication with the hOn servers in the code.