[Custom Component] Pool Math sensors for pool chemicals and operations

Try 2.0.1 release, there was a change that was committed but not pushed to the final release which didn’t notify HA of the updated sensor values.

2 Likes

How do we install 2.01? The link in the github instructions just reinstalls 2.0

Go to hacs, click the three dots on the integration, choose redownload, there you see the last version.

Works!


Thanks!!

1 Like

Same, working here. Thank you!

1 Like

Brilliant. Works like a charm. And thanks to Christian_Hollbjar for the recommendation on the “Pool Monitor Card”. A great layout that works perfectly with this setup.

1 Like

Could you rename the last_updated to last_logged or something along those lines?

Unless I’m misinterpreting, I think this causes issues with state.last_updated vs state.attributes.last_updated

type: heading
icon: mdi:test-tube
heading: Test Results
heading_style: title
badges:
  - type: entity
    show_state: true
    show_icon: true
    entity: sensor.tfp_pool_cc
    state_content: last_updated
    icon: mdi:update

As an example, trying to use the above card would show the state.last_updated instead of the attribute (state.attributes.last_updated). I am trying to display the time since last log of test result versus the last_updated.

HA docs describe last_updated as “Time the state or state attributes changed in the state machine in UTC time. This is not updated if neither state nor state attributes changed. Example: `2013-09-17 07:32:51.715874+00:00” which this last_updated is not from what I can tell.

Unless someone knows how to display the attribute?

Thanks

So just to clarify, if the test result stays the same the last_updated does not change, so it would be good to have a last_tested/logged or something along those lines. Per HA docs last_updated doesn’t change if the state or state attributes don’t change.