When updating a subset of measurement parameters from the Pool Lab device (e.g., measuring only 2 out of 6 active entities on a given day), the integration updates the state timestamp for all configured entities—including those that were not freshly measured.
As a result, historical data in Home Assistant gets skewed because entities that were measured days ago (such as Cyanuric Acid / CYA) display today's timestamp, making it appear as if they were measured daily.
Expected Behavior
Only updated entities should receive a timestamp update / new state event.
Unchanged / unmeasured entities should retain their previous measurement value along with their original timestamp (last changed / last updated).
Current Behavior
Whenever any measurement is recorded and synced via the integration, all 6 entities are updated with the current timestamp, regardless of whether a new reading was actually taken for that specific parameter.
Steps to Reproduce
Integrate a Pool Lab setup with multiple active entities (e.g., pH, Free Chlorine, Total Chlorine, Alkalinity, Cyanuric Acid).
Measure all parameters on Day 1.
On Day 2, take a measurement for pH and Free Chlorine only.
Check the state history / timestamp for CYA.
Observation:
The CYA entity shows the current timestamp from Day 2, even though no new CYA measurement was taken.
Impact
Inaccurate history tracking and graphs in Home Assistant.
Difficulties in setting up automated reminders (e.g., "Remind me if CYA hasn't been measured in 7 days"), as the integration resets the "last updated" timer for unmeasured entities.
When updating a subset of measurement parameters from the Pool Lab device (e.g., measuring only 2 out of 6 active entities on a given day), the integration updates the state timestamp for all configured entities—including those that were not freshly measured.
As a result, historical data in Home Assistant gets skewed because entities that were measured days ago (such as Cyanuric Acid / CYA) display today's timestamp, making it appear as if they were measured daily.
Expected Behavior
Only updated entities should receive a timestamp update / new state event.
Unchanged / unmeasured entities should retain their previous measurement value along with their original timestamp (last changed / last updated).
Current Behavior
Whenever any measurement is recorded and synced via the integration, all 6 entities are updated with the current timestamp, regardless of whether a new reading was actually taken for that specific parameter.
Steps to Reproduce
Integrate a Pool Lab setup with multiple active entities (e.g., pH, Free Chlorine, Total Chlorine, Alkalinity, Cyanuric Acid).
Measure all parameters on Day 1.
On Day 2, take a measurement for pH and Free Chlorine only.
Check the state history / timestamp for CYA.
Observation:
The CYA entity shows the current timestamp from Day 2, even though no new CYA measurement was taken.
Impact
Inaccurate history tracking and graphs in Home Assistant.
Difficulties in setting up automated reminders (e.g., "Remind me if CYA hasn't been measured in 7 days"), as the integration resets the "last updated" timer for unmeasured entities.