Authentication failed to AC #76
Comments
I'm also stuck with rcool (aux product) unit. Probably the first step is to make it work with ac freedom but with no internet connection. |
I'm not sure if it helps, but I realize that on the first connection, the response from AC is less than 38 bytes, so that's why the error "Authentication failed to AC" raised up. |
Hi I checked the code and there no check on auth packet for length (well, not that I could find/recall). Maybe Aux change the protocol , or actually fixed the Auth part of there own products. If you getting a response, is it possible you can do a network sniff (wireshark format) with the internet disabled so I can debug it? |
I just put "print" for debugging inputs and outputs and added some tweaks at local code to get this : bytearray(b'\x00\x00\x00\x00111111111111111\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00Test 1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') Response: bytearray(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xcc\xff\xff*N\xe9\x03\x1a\xdf\xa0C\xb0\xaa\xe6l\x00\x00\x00\x00\xaf\xbe\x00\x00') aes.decrypt on ac_db.py is not feasibly because "Input strings must be a multiple of 16 in length" |
Just try to use AC Freedom app without internet and didn't work |
Looks like AC Freedom communicates with units through cloud (AWS). So without the internet I think remote control is the only way :/ |
half correct, If it can talk local, it does that first. then goes cloud. This library was written using debugging/sniffing traffic from Ac Freedom app using local only traffic (internet off). It just seems like the Aux units are a issue. wonder if one can ask Aux how to control the device if internet is down ... |
I tried sniffing AC Freedom communication with my Aux but couldn't find any local calls. If someone can point me to Aux email for technical issues I can try to ask them about offline/LAN communication. I'm not even sure if these new Aux use MQTT at all - couldn't find anything on MQTT explorer while investigating. |
no, none of the units do mqtt. this script imitates the AC freedom app and then read/write to mqtt. The communication is UDP broadcast port 80 (i think) . so if you sniff, you have to tell your switch to send ALL traffic from the Aux wifi fclient to your sniffer port. The other option is to run wireshark on your android device itself and then remove your device from AC freedom and try re-add it without internet connection. this should force discovery traffic local, and hopefully force rest off comms also local. |
https://www.rcool.hu/elerhetoseg |
always play dumb ..... ;-) would be great if you ccould ask |
I confirm that AC Freedom keeps sending tons of messages on UDP. I haven't
captured or decrypted those hexes yet though.
|
There is actually a http component as well. if you do dump to/from AC only, you will see it talks direct to cloud as well. if the AC freedom can speak direct, it will speak direct first, then the cloud is update from the AC itself , this is so that your Ac freedom app can speak to cloud external and get the latest info even if you use the normal IR remote. I never dug into that part, was never the intention to speak to cloud as then you start messing with other peoples things and can get into trouble. Maybe Aux have a "legal" api one can talk into cloud with, that will be very easy then to integrate into HA. Probably should ask them one day |
I enable now internet and I see packages on UDP, here some examples (I just have 3 AC, tested on 2) 5aa5aa555aa5aa55fcffffffe50715030b030707000000003300a8c06fea0000beca0000000006000000000000000000 I try the last command with packet sender and all three AC response to broadcast, but nothing happens now. Response from all AC was: 5A A5 AA 55 5A A5 AA 55 FC FF FF FF E5 07 0B 03 0B 03 07 07 00 00 00 00 33 00 A8 C0 78 CD 00 00 F3 DA 00 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 2A 4E 2C 00 A8 C0 6C E6 AA B0 43 A0 E5 A5 A5 E5 85 8B E6 96 AF E7 A9 BA E8 B0 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 01 5A A5 AA 55 5A A5 AA 55 FC FF FF FF E5 07 0B 03 0B 03 07 07 00 00 00 00 33 00 A8 C0 78 CD 00 00 77 DA 00 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 2A 4E 2B 00 A8 C0 87 B5 45 B0 43 A0 E5 A5 A5 E5 85 8B E6 96 AF E7 A9 BA E8 B0 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 01 5A A5 AA 55 5A A5 AA 55 FC FF FF FF E5 07 0B 03 0B 03 07 07 00 00 00 00 33 00 A8 C0 78 CD 00 00 D3 D9 00 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 2A 4E 2A 00 A8 C0 78 5E 08 B0 43 A0 E5 A5 A5 E5 85 8B E6 96 AF E7 A9 BA E8 B0 83 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 01 Also receive response from my RMPro RF .... XD |
Hi. You will need to to send the Auth packet first before AC will allow you to send the 2nd command packet. But the fact that you getting comms, means they do speak local .. maybe , it might just be that the Auth part is different If you have some programming (editing) skills, you can hard code the return hex into this script and it can decode it bit better. the RMPRo uses the same base method of communication, (broadlink) , just have different identifier and of course different command set. I will try and decode the packets when I have a gap .. you can hardcode one by one into the script as well if you have any editing skills and love to tinker/are in a hurry. the file is clsases/ac_db.py line 566. and use the -d (full debug) when running monitor.py and will spit out the decoded packet into the logs. |
OK, I used Python control for Broadlink devices and then I realize that the AC are locked by the AC Freedom app by default. I just delete AC from the app, factory reset to AC, added again to the APP for send my Wifi information, but closed the app and I didn't allow to connect to the cloud. With that, the AC is free and unlocked. Then, I used library with hysen class and auth was ok (cool, one step closer), but when I retrieve any information of temperature or status I receive error, but I was able to get a key, I did this simple code to test. I hope this information helps you to get the issue. import broadlink as blk d = blk.hello("192.168.0.254") acreal = blk.hysen(host=("192.168.0.254",80),mac="a043b0XXXXXX",devtype=20010) output: |
Hi, Brilliant .. Sorry, i'm absolutley swamped with work at moment so not had any luck looking into this again.. |
Hi, your procedure was very helpful. After unlock I just run monitor again and for me it just work as expected (without problem with Authentication). Please just be sure if you have all devices unlocked. In my case I had two devices - after unlock first the monitor still shown the |
Can someone write down steps needed to be able to integrate AUX conditioner
from HA (having standard raspberry pi with hassos)? I'm a big python noob,
but I can see guys that you have succeeded :(
śr., 21 lip 2021, 22:40 użytkownik Rafał Gołąb ***@***.***>
napisał:
… OK, I used Python control for Broadlink devices
<https://github.com/mjg59/python-broadlink> and then I realize that the
AC are locked by the AC Freedom app by default. I just delete AC from the
app, factory reset to AC, added again to the APP for send my Wifi
information, but closed the app and I didn't allow to connect to the cloud.
With that, the AC is free and unlocked. Then, I used library with hysen
class and auth was ok (cool, one step closer), but when I retrieve any
information of temperature or status I receive error, but I was able to get
a key, I did this simple code to test. I hope this information helps you to
get the issue.
Hi, your procedure was very helpful. After unlock I just run monitor again
and for me it just work as expected (without problem with Authentication).
Please just be sure if you have all devices unlocked. In my case I had two
devices - after unlock first monitor still shown the Authentication failed
message. After comment the second device configuration everything start
working and I'm able to manage device from HA.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARJWUCBJT4O5GJ72VZYQBE3TY4WC5ANCNFSM47LOTU7Q>
.
|
From my experience these devices are VERY slow. so if you have 2 devices try to talk to them faster then 1-2 seconds apart, they simply never reply. So can you just confirm by unlocking the devices . they work on this script without issue? |
I can confirm my AC work with the
Please contact me - I'll try to help you. |
Please share the process, I'm also interested, thank you. |
Process which work for me:
It works for me only from the MacOS host. I tried to close
so @liaan maybe do you have idea why it randomly work and why I'm not able to run it from docker container? |
I did it this way for my AUX J-SMART device:
iOS+macOS, monitor.py straight out of repo (without Docker). Didn't change a thing in the code. |
Finally I found the problem in my case. I had the The problem is related to the fact that |
If you do a ./monitor.py -S , do you get any output? |
oooooooooo .... now get it .. you have other broadlink devices, and yes, script is to stupid to drop non AC "objects" on auto discovery.. it will try control via the main loop each object, and of course that going to fail on the broadlink as its not right type_id well, something like that probley should drop the objec to the device array if not right type_id |
I also confirm that worked once I restart all AC devices... thanks to all! |
This did work for me as well. Now, has anyone been able to get it to work like this and still be able to use the AC Freedom App? Also it seems to have issues with Home Assistant Cloud and Alexa. It is there can I can control it with my phone app. But the Voice commands dont work. The only other issue is that the values being displayed are clearly in °C but read °F on the HA GUI. It is rather strange. |
i have same problem. Discover working only if break ac freedom pairing procedure in set name step. Then i have success discovered device (BSUI/IN-12HN8) ➜ broadlink_ac_mqtt git:(master) ./monitor.py -S
*********** stop copy above ************ but service not working ;( ➜ broadlink_ac_mqtt git:(master) ./monitor.py My config ➜ broadlink_ac_mqtt git:(master) cat settings/config.yml mqtt: ##Devices
|
i found solution, password must be a string ;) (add quotes in yml file) |
How do you mean? Can you explain how? |
AUX J-Smart after user @luziczek procedure (resetnig wifi) working well . |
I have 2 AUX Air Conditioners (Aux Halo and Aux Halo DeLuxe), both working flawlessly through AC Freedom app, but when I try to use your app I also end up with “Authentication failed to AC” error. Any tips for troubleshooting?
The text was updated successfully, but these errors were encountered: