Replies: 18 comments 49 replies
-
got some progress, i managed to decode most of the info coming from and to the unit , i made a spreadsheet to summarize some captured frames, here attached. i first took the approach to make a serial to tcp brigde , i f i get time and knowledge i ll integrate airton wifi protocol somewhere in tasmota. |
Beta Was this translation helpful? Give feedback.
-
Hey, did anyone try the ESPHome Tuya MCU / Tuya climate components to see if thoes would work ? Does anyone know at what logical voltages are the TX and RX outputs ? |
Beta Was this translation helpful? Give feedback.
-
i did sniff the serial frames and they dont have tuya headers, see attached ods sheet.
Le 3 décembre 2023 19:46:18 GMT+01:00, "Tom.exe" ***@***.***> a écrit :
…Hey, dyd anyone try the ESPHome Tuya MCU / Tuya climate components to see if thoes would work ?
--
Reply to this email directly or view it on GitHub:
#17328 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
hi, not yet, just made a small update on the excel shhet i ll post it while back home. i expext to have some time during my december time off to begin programming something in berry, actually i found a code snippet to make the crc calculation, and i stopped there.
Le 16 décembre 2023 19:50:15 GMT+01:00, extazy173 ***@***.***> a écrit :
…Hi, do you have any progress?
--
Reply to this email directly or view it on GitHub:
#17328 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
[airton.decode.ods](https://github.com/arendst/Tasmota/files/13716973/airton.decode.ods)
hi, back home now. i ll be available for help if you want. the only things i have are on the excel file.
Le 19 décembre 2023 15:27:04 GMT+01:00, TheMiNuS ***@***.***> a écrit :
…Let me know when you are back I will spend some time on coding so if you have the full protocol analyse it will save my time.
--
Reply to this email directly or view it on GitHub:
#17328 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
some update on this subject, with @TheMiNuS we had a decoding sessions that was completing the initial job based on tests and guessings, we ll soon be able to bring to life the definition of the protocol . @TheMiNuS is coding a monolithic system to drive the AC unit with MQTT from an esp8266 and a dedicaded OS , from my side i choose to stay on the Tasmota side of the force , and i coded a berry script that works. first version is attached in this comment. ill try to publish this on github. coments welcome , i m not a coder at all so its very far from being perfect but at least if it could attract some people around this subject. the homeassistan setup :
the berry code
|
Beta Was this translation helpful? Give feedback.
-
hi all, the berryton (berry+airton) code is published here :-) |
Beta Was this translation helpful? Give feedback.
-
no, its not , its running nice since this winter and i have motivation to improve the code and give / recieve comments.
for berryton you shall use esp32 to leverage the berry language available only on esp32 builds of tasmota. (and yes since airton is a franch rebrand , je suis français, its a bit much like some topics about the linky, the risk of seing french users is high :-)
Le 28 février 2024 20:22:37 GMT+01:00, psailleko ***@***.***> a écrit :
…Hi, sorry to bug you again,
Could you please tell us that this project is not a dead-end ^^
And sorry to OuinOuin (t'es pas un François à tout hasard toi ^^), but i have plenty esp8266 to use for this kind of project.
--
Reply to this email directly or view it on GitHub:
#17328 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
pas de soucis.
habe also a look to pingus project when it will be published.
dont hesitate to open issues on berryton.
i m happy to see one user of my code :-).
dont worry for english, keep the topic in english as it can be valuable for some other skyworth variants users.
regards.
Le 28 février 2024 20:39:01 GMT+01:00, psailleko ***@***.***> a écrit :
…Thanks for providing this really cool code for our Aitron AC brand o7
(dur-dur d'écrire en US sans passer pour un sale type, clairement merci à toi OuinOuin, ton code fonctionne super bien et c'est top, mais comme j'ai tenté de l'expliquer maladroitement vu que j'ai plein de esp8266 à utiliser ^^, j'ai un peu le cul entre deux chaises, m'en veut pas si je pollue pour un autre projet que le tien)
--
Reply to this email directly or view it on GitHub:
#17328 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply @s-hadinger @ouinouin First of all, I'll use the scripts available in the homey pro 2023, which allow you to match commands directly with the thermostat. |
Beta Was this translation helpful? Give feedback.
-
Hi, there, |
Beta Was this translation helpful? Give feedback.
-
Hi,there I have feedback that the script was well received. but nothing happens. (Temperaturesetpoint stay at NIL) on the other hand if I put the thermostat function off (internal thermostat = 0) , the script stops with an error any idea to make it all work? Thanks for your help |
Beta Was this translation helpful? Give feedback.
-
thanks for your trial,
first the esp32 must wait some frame from the unit to know all the state of the unit. ( seems to be the vase here but just keep this in mind).
as per the attached log, the esp32 received the temperature setpoint, but i guess the unit cannot receive a setpoint while its in off mode. try to change the mode to heat or cool and then the setpoint. i would like to have the homeassistant ac panel to send all the values at once but unfortunately its noth the behavior of the mqtt ac component which is a shame but i alreadey discussed this with ha maintainer and they couldnt understand the need for sending all the values at once just like in an ac unit remote.
for the thermostat off nil error, i ll have a look.
Le 20 juin 2024 00:15:22 GMT+02:00, EricBerdah ***@***.***> a écrit :
…Hi,there
i m trying your script on a esp32-C3
the air conditioner seems to connect well because I receive frames from the AC, but I cannot send a command.
for example if I send to the tasmota console: publish cmnd/Newclim/temperature/set 21
I have feedback that the script was well received. but nothing happens. (Temperaturesetpoint stay at NIL)
[berrylog.txt](https://github.com/user-attachments/files/15906274/berrylog.txt)
on the other hand if I put the thermostat function off (internal
thermostat = 0) , the script stops with an error
[ErrorLog.txt](https://github.com/user-attachments/files/15906333/ErrorLog.txt)
any idea to make it all work?
Thanks for your help
--
Reply to this email directly or view it on GitHub:
#17328 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
hello, thanks for your rapid answer, |
Beta Was this translation helpful? Give feedback.
-
i think i have find the problem ensure we received a fisrt feedback from the AC unitif ACmode == nil || FanSpeedSetpoint == nil || OscillationModeSetpoint == nil || TemperatureSetpoint == nil
end if you don't have previous value in the flash crash the script in mode thermostat 0 and and does not allow mqtt commands to be taken into account. Thank you very much for your work |
Beta Was this translation helpful? Give feedback.
-
hi, thnaks for digging, just to be sure you use the latest version, pull the script from berryton on github.
<https://github.com/ouinouin/Berryton>
the main has been updated to support heat and cool mode with internal thermosat and several issues fixed. feel free to post issues there, its more than welcome.
you can also try the object branch, but its yet untested.
Le 20 juin 2024 12:07:54 GMT+02:00, EricBerdah ***@***.***> a écrit :
…i think i have find the problem
the test :
# ensure we received a fisrt feedback from the AC unit
if ACmode == nil || FanSpeedSetpoint == nil || OscillationModeSetpoint == nil || TemperatureSetpoint == nil
print("function MQTTSubscribeDispatcher : Some of the variables are not yet received , escaping")
return
end
if you don't have previous value in the flash crash the script in mode thermostat 0 and and does not allow mqtt commands to be taken into account.
for it to work I had to comment out this portion, then restart the esp32 and everything was back to normal.
after the first launch I uncommented the test and it worked perfectly
Thank you very much for your work
--
Reply to this email directly or view it on GitHub:
#17328 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello, 00:00:04.924 RUL: SYSTEM#BOOT performs 'br load('Berryton.be')' |
Beta Was this translation helpful? Give feedback.
-
Dear ouinouin, I have keep an official Airton wifi module at home for a futur reverse engineering but somebody informed me that you are already working on this topic. That is why if my wifi module can help you, I'm open to give you this module for free (only shopping cost) during your developpement time. Don't hesitate to contact me if your are interrested. Good luck. |
Beta Was this translation helpful? Give feedback.
-
Hi,
i ll use this discussion to try to reverse the protocol of airton internal air conditioning units, i hooked up a setup to sniff the frames , and was disappointed to not see the tuya headers , since the module is a WR1 module by tuya.
the module has 4 pins : 12V , GND and TX AND RX (wich are mislabeled from the point of view of the module since tx is going to the rx pin of the wr1 module)... the serial signal coming from the air conditioner is 5volts, then in the module two small transistors rectifies signal to the 3.3v supported by the WR1 module.
some big test poitns are available on the boards : wifi tx wifi rx , corresponding to pin 2 and 3 of the module, and log tx ang log rx , corresponding with pins of the same name (supposedly for debugind purposes, it seems to replicate all frames passing by the module).
frames looks like this : (thanks to tasmota serial bridge function).
7A7AD5211C0000A60A0A00000000000000000000000000000000520B
7A7AD1210D0000A40A0A002525
7A7AD521220000A30A0A12000004400088000000000464004744423131333730C56C
first something is clear, the protocol starts with a 7A7A header.
second thing, the protocol ends with a CRC16 , endianness being little endian (thanks : https://www.scadacore.com/tools/programming-calculators/online-checksum-calculator/).
third, most likely on one ot thos frames will appear the setpoint : 16 degres Celcius, and the actual value : 18.
actual value can show on the app a 0,5 degres step , so expect to have a trick like value multiplied by 10 , or value multiplied by two.
edit : found the actual temperature position :
on the below frame the actual temp is represented by 1905 the decoding is : 0x19 = 25 the trailing 05 means 0,5 , 1B00 would mean 27 , 1B05 would mean 27,5
7A7A D521 2200 00A3 0A0A 1905 000C 4F00 9800 0000 0004 6400 5744 4231 3133 3730 951E
on the same frame, at 4F00 , the F represents the value of 31°C , the air conditionner can only be set from 16°C to 31°C so the values are mapped one to one : 0x0 = 16°C 0xF =31°C
if everyone wants to add his two cents on this subject, it might look having nothing to do with tasmota but first , i decided to use tasmota as my serial debug solution.
pictures of the setup might come
Beta Was this translation helpful? Give feedback.
All reactions