Add device mapping for PDPH1H1HAW100 (FW 539176)#22
Merged
lmaertin merged 1 commit intolmaertin:mainfrom Mar 13, 2026
Merged
Conversation
This pH-only model variant was missing a mapping file, causing UNKNOWN_ERROR when fetching instant values via the client or Home Assistant integration.
Owner
|
Thanks for this additional mapping file! |
21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The PoolDose pH device reports
PDPH1H1HAW100as itsPRODUCT_CODEwith firmware code539176, but no mapping file exists for this model/firmware combination.This causes
MappingInfo.load()to fail because it looks formodel_PDPH1H1HAW100_FW539176.jsonwhich does not exist. Without the mapping,instant_values()returnsUNKNOWN_ERROR.Error in Home Assistant:
Error in Python client:
Solution
Add a new mapping file
model_PDPH1H1HAW100_FW539176.jsonfor this pH-only device variant.Widget keys were identified using the built-in device analyzer (
python -m pooldose --host <ip> --analyze-all) against a live device. Many widget keys are shared withPDPR1H1HAW100_FW539187, but with notable differences:w_1eomiide3vsw_1eommf39k)w_1eklj12vvvsw_1eo1s18s8)orp_calibration_type,orp_calibration_offset,orp_level_alarm,flow_rate_alarm, etc.)PDPH1H1HAW100_FW539176Changes
mappings/model_PDPH1H1HAW100_FW539176.json: New mapping file with sensors, binary sensors, numbers, switches, and selects for this deviceDevice info
Tested on real device
Verified with a PoolDose pH device (PRODUCT_CODE: PDPH1H1HAW100, FW code: 539176).
Before fix:
After fix (
python -m pooldose --host 192.168.107.201):Test suite