Chemistry Monitoring Features & Multi-Pool Support
New Features
-
Binary Sensors for Out-of-Range Detection
binary_sensor.poolmath_{pool}_fc_problem,ph_problem,ta_problem, etc.- Device class: Problem (on = chemistry out of range)
- Attributes:
current_value,target_min,target_max,deviation
-
Enhanced Sensor Attributes
target_min,target_max,target(ideal value)in_range(boolean indicating if value is within target range)last_logged(ISO datetime string of when measurement was taken)
-
Chemistry Change Events
poolmath_chemistry_out_of_range- fired when a value goes out of rangepoolmath_chemistry_in_range- fired when a value returns to range- Event data includes: measurement, value, target_min, target_max, pool_id, pool_name
-
Expanded Target Ranges
- Added TFP target ranges for all chemistry sensors (FC, CC, pH, TA, CH, CYA, Salt, Borate, CSI)
-
Multi-Pool Support
- Updated unique ID scheme to include user_id, preventing entity collisions
- Backwards compatible migration for existing installations
-
Options Flow: Force Data Refresh
- Menu option to manually refresh Pool Math data
Improvements
- Block pool identity changes in options flow to prevent orphaned entities
- Better handling of pool-specific targets from API data
Compatibility
- Existing installations will automatically migrate entity unique IDs
- No manual reconfiguration required