Page 1 of 1

Hisense AEH-W4A1

Posted: Saturday 01 September 2018 14:59
by 10thUnicorn
Hey, folks.
Someone tried to connect air conditioners with WiFi module AEH-W4A1 (Hisense, Ballu, etc)
Looking for any information :)
Spoiler: show
Image

Re: Hisense AEH-W4A1

Posted: Friday 17 May 2019 23:31
by zabinskiwojciech
Hello. Did you manage to do something about Hisense? I have also tried to scan Wireshark network but it did not help. I wrote to support hisense but silence.
Greetings.

Re: Hisense AEH-W4A1

Posted: Tuesday 02 June 2020 20:24
by 10thUnicorn
Hello.
I dropped out of the topic of home automation for a while :(
The other day I accidentally came across "python module and client for Hisense AEH-W4A1 wifi module" by Davide Varricchio https://github.com/bannhead/pyaehw4a1
I tried to write a plugin using it. But apparently Domoticz is not friends with "asyncio", I had to rewrite the module a little.
You can see the result here https://github.com/x-th-unicorn/domoticz-aeh-w4a1
For three days in a row, the plugin worked without failures with my air conditioner "Ballu BSAGI-09HN1-17Y-01".
I invite you to join the test ;)

Re: Hisense AEH-W4A1

Posted: Tuesday 02 June 2020 21:13
by zabinskiwojciech
I will test this weekend, thank you very much.

Re: Hisense AEH-W4A1

Posted: Tuesday 02 June 2020 21:43
by zabinskiwojciech
However, I could not stand and uploaded the plugin today but it is flawing. I have Domoticz 4.11391 so maybe there is a problem. I can't raise to 4.2020 because I have it on Ubuntu 16.04 LTS and my VM does not support higher versions.

2020-06-02 21:35:54.970 Error: (aehw4a1) failed to load 'plugin.py', Python Path used was '/home/zaber/domoticz/plugins/domoticz-aeh-w4a1/:/usr/lib/python35.zip:/usr/lib/python3.5/:/usr/lib/python3.5/plat-x86_64-linux-gnu:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2020-06-02 21:35:54.970 Error: (Klimatyzator) Module Import failed, exception: 'SyntaxError'
2020-06-02 21:35:54.970 Error: (Klimatyzator) Import detail: File: /home/zaber/domoticz/plugins/domoticz-aeh-w4a1/dz_aehw4a1/aehw4a1.py, Line: 40, offset: 60
2020-06-02 21:35:54.970 Error: (Klimatyzator) Error Line ' raise ConnectionError(f"Unknown device {self._host}")
2020-06-02 21:35:54.970 '
2020-06-02 21:37:02.822 Error: Klimatyzator hardware (30) thread seems to have ended unexpectedly
2020-06-02 21:37:16.827 Error: Klimatyzator hardware (30) thread seems to have ended unexpectedly

Re: Hisense AEH-W4A1

Posted: Tuesday 02 June 2020 22:08
by zabinskiwojciech
I've added permissions for the file - chmod + x plugin.py but it didn't help.
maybe i need some python add-on for pip3

Re: Hisense AEH-W4A1

Posted: Wednesday 03 June 2020 7:12
by zabinskiwojciech
However, we have to wait with the tests, I started checking and it turned out that for two months I stopped pinging the air conditioner. I need to check what happened, the air conditioner works, I restarted it but still doesn't respond to pings ...

Re: Hisense AEH-W4A1

Posted: Wednesday 03 June 2020 8:03
by 10thUnicorn
I Rewritten without the use of Literal String Interpolation (PEP 498)
It should now work on Python 3.5
We can continue testing, I think I'm starting to understand python :)

Re: Hisense AEH-W4A1

Posted: Wednesday 03 June 2020 8:15
by 10thUnicorn
zabinskiwojciech wrote: Wednesday 03 June 2020 7:12 However, we have to wait with the tests, I started checking and it turned out that for two months I stopped pinging the air conditioner. I need to check what happened, the air conditioner works, I restarted it but still doesn't respond to pings ...
I also had this happen a couple of times, once it was enough to turn off the power to the air conditioner for a couple of hours, the second time I had to connect it to WiFi again

Re: Hisense AEH-W4A1

Posted: Wednesday 03 June 2020 8:52
by zabinskiwojciech
I only have such a problem that for almost a year I do not want to work this manufacturer's app for pairing, hi-smart life.
I will come home from work and fight this air conditioner ;-)

Re: Hisense AEH-W4A1

Posted: Wednesday 03 June 2020 9:26
by 10thUnicorn
My air conditioner was set up with this app https://play.google.com/store/apps/deta ... d&hl=en_US
But, on Android 9 it can't get data, last time I managed to configure it from an old tablet with Android 4.4 was in December.

Re: Hisense AEH-W4A1

Posted: Thursday 04 June 2020 21:11
by zabinskiwojciech
but I guess I won't be able to do anything because my module refused to work. shows me to pair but doesn't connect to my wifi. the phone connects to the AP emitted by the AC and that's it.

Re: Hisense AEH-W4A1

Posted: Saturday 09 January 2021 0:51
by zabinskiwojciech
Hello. I have been testing for a long time and everything works, I only have a problem with A / C modules because when I have a wifi module and an IR module connected, my wifi freezes. recently after updating linux and Domoticz crashes me errors from the plug from time to time, but everything works.
2021-01-09 00:48:41.956 Error: (Klima) AC (192.168.1.131) unavailable
maybe you know how to disable such logs in plugins because I have two more plugins and they are banging with errors but they work.

Re: Hisense AEH-W4A1

Posted: Thursday 28 January 2021 15:56
by magmac
For now - this plugin doesn't work. Still the same info in log:
2021-01-28 15:52:35.384 Error: (K1) AC (192.168.100.251) unavailable
Original app HiSmart Life is working, I can ping AC, it is in the same subnet.

Plugin installed manually or via Python Plugin Manager.

Domoticz is up to date.

When I set debug mode to on, I receive messages like this:
2021-01-28 15:55:27.269 (K1) Pushing 'onHeartbeatCallback' on to queue
2021-01-28 15:55:27.288 (K1) Processing 'onHeartbeatCallback' message
2021-01-28 15:55:27.289 (K1) Calling message handler 'onHeartbeat'.
2021-01-28 15:55:27.289 (K1) onHeartbeat called
2021-01-28 15:55:27.289 (K1) Poll unit
2021-01-28 15:55:27.387 Error: (K1) AC (192.168.100.251) unavailable
also I did chmod +x on plugin.py and several times restarted domoticz.

Any ideas what is wrong?