Poolfilter Status Display Setup Experience

Hi everyone! I wanted to share my recent experience setting up a custom status display for my pool filter on the dashboard. Initially, I was using the wattage reading to determine if the pool filter was on or off, but I thought it would be much cleaner to have a simple ‘ON’ or ‘OFF’ status displayed instead of numbers.

I started by looking at some existing code examples, like the one for the air purifier sensor, and tried to adapt it to my pool filter. Here’s the configuration I ended up with:

yaml
template:

  • sensor:
    • name: “Pool Filter Status”
      unique_id: “pool_filter_status”
      state: >
      {% if state_attr(‘sensor.shelly_plus_1pm_test_power’, ‘W’) < 10 %}
      Pool Filter OFF
      {% elif state_attr(‘sensor.shelly_plus_1pm_test_power’, ‘W’) > 1 %}
      Pool Filter ON
      {% endif %}

It took a bit of trial and error, especially getting the conditional statements right. I had to make sure the wattage thresholds accurately reflected the filter’s operational states. Once it was working, it made the dashboard much more user-friendly!

If anyone else is looking to do something similar, I’d recommend starting with a simple template and gradually adjusting the conditions based on your device’s specific power usage patterns. It’s a great way to make your smart home setup more intuitive!

Happy tinkering! :hammer_and_wrench: