Skip to content

Instantly share code, notes, and snippets.

@bassicrob
Last active March 8, 2022 09:28
Show Gist options
  • Save bassicrob/7247065218290bf3551d40b16252132d to your computer and use it in GitHub Desktop.
Save bassicrob/7247065218290bf3551d40b16252132d to your computer and use it in GitHub Desktop.
HA Lovelace Conditional Card
card:
cards:
- entities:
- entity: sensor.beer_name
- entity: sensor.current_abv
icon: 'mdi:percent'
- entity: sensor.current_attenuation
icon: 'mdi:percent'
show_header_toggle: false
title: Beer Stats
type: entities
- cards:
- decimals: 3
entities:
- sensor.beer_specific_gravity
font_size: 75
line_width: 8
more_info: false
name: Beer Gravity
show:
- name: false
- icon: false
- legend: false
- name: true
- extrema: false
- points: false
type: 'custom:mini-graph-card'
- entities:
- sensor.beer_fermentation_temperature
font_size: 75
line_width: 8
lower_bound: 60
name: Beer Temp
show:
- extrema: true
type: 'custom:mini-graph-card'
upper_bound: 76
type: horizontal-stack
- entities:
- entity: sensor.beer_last_reading
- entity: sensor.tilt_signal_strength
- entity: input_number.beer_og
- entity: switch.beer_logging
icon: mdi:beer
type: entities
type: vertical-stack
conditions:
- entity: sensor.beer_name
state_not: unknown
title: Beer Status
type: conditional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment