Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95314

Conditional Card Entity show Different Value

$
0
0

@Markus99 wrote:

With the cold weather having arrived in TX, I’d like to have a conditional card show if my pool pump freeze protection is activated. I’d also like to see the underlying temperature from the pool pump triggering it. Both of these values are coming from individual sensors already created by the iAqualink integration.

I am able to display both entities in two lines, but trying to see if instead of the freeze_protection sensor showing ‘Cold’ having it show the air_temp temperature. Not a huge deal, but would prefer this on one line instead of two.

Current card:
image

Current code:

      - type: conditional
        conditions:
          - entity: binary_sensor.freeze_protection
            state_not: 'off'
        card:
          type: entities
          entities:
            - entity: binary_sensor.freeze_protection
              name: Pool Freeze Protection
              secondary_info: last-changed
            - entity: sensor.air_temp
              name: Air Temp
              icon: mdi:thermometer
              secondary_info: last-changed

What I’d like it to look like:
image

Guessing I can create a new sensor combining these values, but also guessing this new sensor might use the last-changed property of the temperature vs. the freeze_protection sensor value. Anyhow, thanks in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>