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

Add preset mappings for Comfort/ECO/Antifrost and GH-20E-APP level-ba… #1956

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

w-itidea
Copy link

…sed heaters

This commit adds two new preset mappings to improve compatibility with Tuya-based climate devices:

  1. "Comfort/ECO/Antifrost"

    • For heaters using literal preset values like "Comfort", "ECO", and "Antifrost".
    • Common in many Tuya-powered electric radiators.
  2. "Cool (level_3) / Low (level_2) / High (level_1)"

    • For GH-20E-APP and similar devices that use enum values "level_1", "level_2", and "level_3" (via DPS 5).
    • Provides mapping to:
      • level_1 → PRESET_HOME (High / Comfort)
      • level_2 → PRESET_ECO (Low / Eco) - level_3 → PRESET_AWAY (Cool / Antifrost)

These additions ensure correct preset behavior in Home Assistant when integrating Tuya-based heaters via localtuya. Tested and validated on real hardware.

…sed heaters

This commit adds two new preset mappings to improve compatibility with Tuya-based climate devices:

1. "Comfort/ECO/Antifrost"  
   - For heaters using literal preset values like "Comfort", "ECO", and "Antifrost".
   - Common in many Tuya-powered electric radiators.

2. "Cool (level_3) / Low (level_2) / High (level_1)"  
   - For GH-20E-APP and similar devices that use enum values "level_1", "level_2", and "level_3" (via DPS 5).
   - Provides mapping to:
     - level_1 → PRESET_HOME (High / Comfort)
     - level_2 → PRESET_ECO  (Low / Eco)
     - level_3 → PRESET_AWAY (Cool / Antifrost)

These additions ensure correct preset behavior in Home Assistant when integrating Tuya-based heaters via localtuya.
Tested and validated on real hardware.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant