-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Bug
[Samsung_HVAC]: commands are not executed
#229
Comments
Hi @omerfaruk-aran, I figured out the issue with the code in #206 and managed to resolve it. However, I’m hesitant to continue down that path because I believe @atanasenko's approach in #93 is far superior. The strategy of creating a packet queue, sending each packet only after receiving an acknowledgment (with retries as needed), and transmitting only during quiet periods is far more effective. It’s incomparable—commands never fail, and the air conditioners respond much faster, with minimal need for retries. Unfortunately, I don’t have programming experience, so I’m unable to help resolve the merge conflicts in #93 or reapply the changes. I’m awaiting your your answer on how we should proceed from here. Thank you for your contributions to the project! |
I have the same issue with commands not being ackd. I tried to resolve the merge conflicts in #93, but I think too many commits have been made since this pull request was made |
Hi, Thank you for bringing up the issue and for the references to PR #93. It seems that the code in PR #93 was implemented in a way that bypasses ESPHome and directly uses a custom implementation. While this may work for specific use cases, integrating such code directly into the main project would leave many users unable to benefit, especially those relying on ESPHome’s standard structure and support. To address this issue, I plan to create a new implementation based on the ideas and requirements outlined in PR #93 but fully integrated into the ESPHome framework. This way, the functionality can be standardized, tested, and made accessible to all users without compromising the project’s compatibility. Once I have a working solution, I’ll update this issue and open a PR for review. In the meantime, if you have any additional insights or requirements, feel free to share them here. Thank you for your patience and for contributing to improving the project! Best regards, |
@omerfaruk-aran - this sounds great and I am more than happy to test on my heat pump. I have the MIM-H04EN Wifi Receiver connected so am able to see the modbus payloads being sent from anything I can control/read via SmartThings. I am currently using the LILYGO® T-RSS3 ESP32-S3 development board which has dual RS232 and RS485 capability with 5V/12V DC input - perfect for this project. I couldn't figure out the YAML to switch heating & hot water on/off using codes 4000 & 4065 or other control commands so hence my trying out @brazoayeye's fork but would prefer to use the original repo. If I can configure the correct sensors and switches with the NASA codes my heat pump uses then I can configure a standard ESPHome climate control rather than have to use a custom climate config. But there is no example of how to do this in the example.yaml. Here's what I see in the logs when I use SmartThings: Heating Zone Off:
Heating Zone On:
DHW On:
DHW Temp Down to 49C:
DHW Temp Up to 50C:
DHW Off:
Cheers |
🚧 Community Feedback Requested on PR #242 🚧Dear community members, Thank you for your continued support and contributions to this project. In response to Issue #229, PR #242 has been created to address the retry mechanism concerns. We would greatly appreciate your help in testing the proposed changes in PR #242. Here's how you can assist:
Your feedback will play a crucial role in determining if the changes in PR #242 can be safely merged into the main branch. Thank you for your valuable contributions! 🙌 |
Hi @omerfaruk-aran The converters that worked for me until they broke: These two didn’t work straight out of the box: Now I’m waiting for more simple converters to arrive from AliExpress, If anyone knows of a good, durable converter, I’d love to hear about it. Thank you for all the effort and help! |
Hello, it is not normal for it to break down once a month. I have been using the ATOMIC RS485 in the link for more than 1 year and I have never had any problems. |
The first one I had was ATOMIC RS485, and after a month it broke. |
Hello, the frequent failure of your RS-485 adapters is quite unusual. The issue might not be with the RS-485 adapters themselves but possibly with the M5Stack ATOM Lite ESP32 device you are using. If there is a hardware issue with the M5Stack device, it could cause the connected RS-485 adapters to fail over time. To verify this, I recommend the following steps:
After performing these tests, we can better identify the root cause and look for a more specific solution. I hope these suggestions are helpful! |
Thank you for your help! I forgot to mention that when my RS-485 to TTL converters malfunctioned, they didn’t completely stop working. They were still able to read data from the air conditioners but could no longer send data. However, in a lab environment, when I connected a USB-to-RS-485 converter to the TTL-to-RS-485 converter, I found that it could both send and receive data without any issues. I also tried using the WT32-ETH01, but the same problem persisted. When I connected the converters to a computer using a TTL-to-USB converter and used S-NET, I was again only able to read data, not send it. |
Do you know where the problem could be? |
The problem
that I give orders to several air conditioners at the same time
every time Some air conditioners do not accept the command
(different air conditioners each time)
When a command fails, it creates endless messages of
[21:32:01][W][samsung_ac:902]: Packet 54 failed after 3 attempts.
[21:32:01][W][samsung_ac:902]: Packet 55 failed after 3 attempts.
[21:32:01][W][samsung_ac:902]: Packet 6 failed after 3 attempts.
[21:32:01][W][samsung_ac:902]: Packet 26 failed after 3 attempts.
[21:32:01][W][samsung_ac:902]: Packet 28 failed after 3 attempts.
But apparently he doesn't really send a command again
Because if I give them command separately, The air conditioners do carry out the orders
The situation has significantly improved since the merge of Pull Request #206
Only further improvement to the mechanism is required
It should be noted that when using the fork of atanasenko, The commands work fine
If you need further tests I am so for you
Thank you for your work for the project
ESPHome Version
2024.11.2
Samsung HVAC Component Version
30/11/2024
Home Assistant Version
2024.11.3
AC Type
NASA
Indoor AC Unit Model
Global Mini4Way, 360CST, Fresh Ouct
Outdoor AC Unit Model
unknown
ESP Device Model
WT32-ETH01 + Grove-RS485
Connection Points
F1/F2
ESPHome Logs
logs_1_logs.txt
logs_1_logs (1).txt
Samsung AC Logs
No response
YAML Configuration
Additional Details
No response
The text was updated successfully, but these errors were encountered: