mirror of
https://github.com/Andre0512/hon.git
synced 2026-07-06 22:10:33 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9870de2a42 | |||
| 2a5be2e657 | |||
| 15bf996404 |
@@ -7,7 +7,7 @@ from homeassistant.components.climate import (
|
||||
)
|
||||
|
||||
DOMAIN: str = "hon"
|
||||
UPDATE_INTERVAL: int = 10
|
||||
UPDATE_INTERVAL: int = 60
|
||||
|
||||
PLATFORMS: list[str] = [
|
||||
"sensor",
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
"requirements": [
|
||||
"pyhOn==0.15.15"
|
||||
],
|
||||
"version": "0.11.0-beta.1"
|
||||
"version": "0.12.0"
|
||||
}
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user