Skip to content
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

Fix Packet Acknowledgment & Retry Mechanism #232

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

htht2001
Copy link

@htht2001 htht2001 commented Dec 5, 2024

πŸ“„ Description

What does this Pull Request do?

  • 🐞 Bug Fix
  • ✨ New Feature
  • πŸ”¨ Code Improvement
  • πŸ“š Documentation Update

✨ Key Changes

This is a draft retry mechanism fix, on the way to implementing all the changes addressed in #93

  1. fix command resending when retrying.
  2. Doubles the delay between each attempt, inorder to moderate the load (Exponential backoff).
  3. Increases the number of retries to 8.
  4. Portions are removed after maximum attempts.

πŸ”— Related Issues

Fixes: #229
Related: #206


βœ… Checklist

Please ensure the following before submitting your PR:

  • Code compiles without errors πŸ§‘β€πŸ’»
  • All tests pass successfully βœ…
  • Changes have been tested on relevant devices πŸ› οΈ
  • Documentation has been updated (if necessary) πŸ“–
  • This PR is ready for review πŸ”

🌐 Environment Information

πŸ”’ Versions

  • ESPHome Version: 2024.11.2
  • Home Assistant Version: 2024.11.3

🧩 Devices

  • Air Conditioner Type:
    • NASA
    • NON-NASA
    • Other
  • Air Conditioner Model: Global Mini4Way, 360CST, Fresh Out
  • Outdoor Unit Model: (e.g., AJ050TXJ2KH/EA)
  • ESP Device Model: WT32-ETH01 + Grove-RS485
  • Wiring Configuration: F1/F2

πŸ§ͺ Test Plan

How were these changes tested?

πŸ” Logs


πŸ› οΈ YAML Configuration

# Please provide the relevant YAML configuration you used for testing this PR

Fixed retry mechanism
Doubles the delay between each attempt to moderate the load (Exponential backoff)
Increases the number of retries to 8
Portions are removed after maximum attempts
@htht2001 htht2001 closed this Dec 10, 2024
@htht2001 htht2001 deleted the correction-Packet-Acknowledgment-&-Retry-Mechanism branch December 10, 2024 06:58
@htht2001 htht2001 restored the correction-Packet-Acknowledgment-&-Retry-Mechanism branch December 10, 2024 11:30
@htht2001
Copy link
Author

I accidentally closed the request

@htht2001 htht2001 reopened this Dec 10, 2024
@htht2001 htht2001 marked this pull request as ready for review December 10, 2024 12:02
@htht2001 htht2001 marked this pull request as draft December 10, 2024 12:02
@htht2001 htht2001 marked this pull request as ready for review December 10, 2024 12:02
@omerfaruk-aran omerfaruk-aran self-requested a review December 28, 2024 13:23
@omerfaruk-aran omerfaruk-aran self-assigned this Dec 28, 2024
@omerfaruk-aran omerfaruk-aran added the bug Something isn't working label Dec 28, 2024
@omerfaruk-aran
Copy link
Owner

Hi @htht2001,

Thank you for your contribution and for addressing the retry mechanism in this PR! πŸš€

We wanted to inform you that we have just released an update to ensure compatibility with the latest ESPHome version. This update includes some changes to the code structure that may impact your implementation.

To align your PR with the new updates:

  1. Please review the latest changes we published in the repository.
  2. Update the code in your PR to reflect these changes while keeping your retry mechanism improvements intact.

Let us know if you need any assistance with this process. We truly appreciate your work and look forward to merging this PR after testing and adjustments are completed. πŸ™Œ

Thank you again for your efforts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug [Samsung_HVAC]: commands are not executed
2 participants