-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frequent disconnection #21
Comments
if I stop all service and start manual commad ./hisense.py --port 8888 --ip 192.168.1.19 --config config_studio.json --mqtt_host localhost --mqtt_user mqtt_user:pass --mqtt_topic hisense_studio |
Did you rollback your change of _STATUS_UPDATE_INTERVAL? |
I try... |
I put this for now... https://github.com/deiger/AirCon/tree/403dd3e9f2984d5e7fc1136a276913830e90cfbb I'm on testing |
Same problem...not work... |
Can you paste the syslog in Gist? |
yes Sir, see below |
I've changed the code to retry the connection if the A/C resets, please try it out. Note that you'll need to first run |
@deiger thank you for reply, I have installad last Hisense.py and also same problem with manual command: |
The data in status of limited. What appears in syslog? |
Jun 4 16:44:59 ubuntu-server python3[7430]: 192.168.1.19 - - [04/Jun/2020 16:44:59] "POST /local_lan/key_exchange.json HTTP/1.1" 200 - |
Hmm.. That doesn't make sense... |
after send command: |
Is that |
|
OK, found the issue, try downloading again. |
@deiger You are the best! |
@deiger still some small problems |
Connection reset error is a server error, whereby the server drops the connection. I'm not sure why it happened, usually this has to do with the server suspecting the client is overloading it. That's why I added an exponential back off, up to 20sec. |
sure, I used your latest fix in hisense.py. ps. want I must revert? |
It was suggested in #20 to change _STATUS_UPDATE_INTERVAL, please leave it at 600. |
my temperature slider works, but with the latest version of hisense.py I have problems, so I use the previous version with update interval time sets to 60 secs. |
@ck007max |
My services don't start: giu 06 16:38:55 Hassio systemd[1]: cameretta.service: Scheduled restart job, restart counter is at 5. Why? |
Did you |
I've understood the problem. I have to install retry with sudo command. |
@deiger is it possible to disable t set in dry mode in your script? Because in my AC model in dry mode is not possibile set temperature. In dry mode I have two lines on the AC display and with the remote I can change the values from -7 to +7 (no temperature). So I ask you if in your script in dry mode is possible to exclude t set. I try to change the temperature with your script and nothing happens. If I use the HiSense official app is the same, you can't change the temp in dry mode. |
@ck007max please can you send me you HA code ? |
Sure, but how would that work? How would the script notify HA to disable the temperature for dry mode (and fan_only mode)? |
I don't know, It's not possibile to add some lines in your script to disable set temp in these modes? |
climate:
|
@ck007max |
You have to change t min in 16 e t max in 30 values |
@ck007max and temperature_unit: "F" to "C" ? |
No, you try to leave "F" |
@ck007max I change 16 and 30 value but same problem. |
You can try to set "C" instead of "F", or remove that line |
Yes ok. with C work |
The script can easily ignore input for set temp, but the topic will still be there. The issue is that HA is not aware of whether set temp is enabled or not, and I'm not aware of an option to notify it. |
Perfect, a very clear explain. I have a question, if I set mode "cool" and temp "22" and the enviroment temp is 25, will I see the refresh of enviroment temp every 10 mins on HA, right? |
It depends on the AC code. |
I don't understand why my two climate always disconnects, or perhaps the service goes into lockout.
while if I use the application from a smartphone it works. maybe the service for two climates is not working well?
all climate have a static ip and the ping it is ok!
I don't understand how to solve!
The text was updated successfully, but these errors were encountered: