I have two Dome water sensors. I am looking for ideas as to showing their status on a card. I have tried most of the standard ones for entities. Just curious what others are using for their leak sensor cards. Ideally I would like to show status and battery %.
My sensors are not battery powered so no battery %, just a glance card showing the states:
nothing flash:
battery is handled elsewhere via Howto create battery alert without creating a template for every device
Battery Config
sensor flood:
- platform: template
sensors:
flood_battery:
friendly_name: Flood Detector Battery
unit_of_measurement: "%"
value_template: >-
{{ state_attr("zwave.flood_detector","battery_level") | round }}
Battery Card
- type: gauge
title: Flood Detector Battery
unit_of_measurement: '%'
entity: sensor.flood_battery
severity:
green: 70
yellow: 50
red: 0
Flood Config Template
binary_sensor flood:
- platform: template
sensors:
flood:
device_class: moisture
friendly_name: Flood Sensor
value_template: "{{ states('sensor.flood_detector_flood')|float > 0 }}"
Flood Detector Card:
cards:
- type: entities
show_header_toggle: false
entities:
- binary_sensor.flood
I use a custom:button-card for a hot water tank leak sensor. The sensor flashes Red when the water sensor is tripped.
Hey smish can you share your lovelace info and any custom sensors to make it work?
Hi, sure, sorry haven’t been on here for a bit, but here it is.
- color: green
color_type: card
entity: binary_sensor.water_tank_water_sensor
hold_action:
action: more-info
icon: 'mdi:water-off'
name: Hot Water Tank
state:
- color: red
icon: 'mdi:pipe-leak'
styles:
card:
- animation: blink 2s ease infinite
value: 'on'
tap_action:
action: more-info
type: 'custom:button-card'
- color: green
color_type: card
entity: binary_sensor.kitchen_sink_water_sensor
hold_action:
action: more-info
icon: 'mdi:water-off'
name: Kitchen Sink
state:
- color: red
icon: 'mdi:pipe-leak'
styles:
card:
- animation: blink 2s ease infinite
value: 'on'
tap_action:
action: more-info
type: 'custom:button-card'
Thanks. Have to figure this out. When I use what you shared and put in my own sensors I just get a straight black horizontal line and nothing else at all.
mine flashes the lights in said room until a double click that light switch
Just to confirm, did you install the custom:button_card?