Iām working on a stack-in card for my AC Filters. I have it mostly sorted out, except I want to change the way the date is shown under the āInstalledā sensor. Iād like it to be May 19th, 2023 rather than 2023-05-19. This is probably not specifically Mushroom Card related, but since it is a mushroom template card, nothing I found on a quick search seemed to work.
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:mushroom-title-card
title: Basement AC Filter
card_mod:
style: |
ha-card {
padding: 7px 0px 0px 10px !important;
height: 45px !important;
box-shadow: none;
}
- type: horizontal-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Installed
secondary: '{{ states(''input_datetime.air_filter_date_installed_basement'') }}'
icon: >-
{% if is_state('sensor.basement_ac_filter_install_date_color',
'Green') %} mdi:calendar-check {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Yellow')
%} mdi:calendar-check {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Orange')
%} mdi:calendar-alert {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Red') %}
mdi:calendar-alert {% else %} mdi:help-circle {% endif %}
entity: input_datetime.air_filter_date_installed_basement
icon_color: >-
{% if is_state('sensor.basement_ac_filter_install_date_color',
'Green') %} green {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Yellow')
%} yellow {% elif
is_state('sensor.basement_ac_filter_install_date_color',
'Orange') %} orange {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Red') %}
red {% else %} white {% endif %}
layout: horizontal
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-card
primary: Remaining
secondary: '{{ states(''sensor.basement_air_filter_life_remaining'') }}'
icon: >-
{% if is_state('sensor.basement_ac_filter_install_date_color',
'Green') %} mdi:calendar-check {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Yellow') %}
mdi:calendar-check {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Orange') %}
mdi:calendar-alert {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Red') %}
mdi:calendar-aler {% else %} mdi:help-circle {% endif %}
entity: sensor.basement_air_filter_life_remaining
icon_color: >-
{% if is_state('sensor.basement_ac_filter_install_date_color',
'Green') %} green {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Yellow') %}
yellow {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Orange') %}
orange {% elif
is_state('sensor.basement_ac_filter_install_date_color', 'Red') %} red
{% else %} white {% endif %}
layout: horizontal
tap_action:
action: more-info
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-template-card
primary: Door
secondary: >-
{% if
is_state('binary_sensor.aqara_contact_ac_filter_door_basement','off')
%} Closed {% elif
is_state('binary_sensor.aqara_contact_ac_filter_door_basement',
'on')%} Open {% else %} {{
states('binary_sensor.aqara_contact_ac_filter_door_basement') }} {%
endif %}
icon: |2-
{% if is_state('binary_sensor.aqara_contact_ac_filter_door_basement', 'off') %}
phu:aqara-contact
{% elif is_state('binary_sensor.aqara_contact_ac_filter_door_basement', 'on' ) %}
mdi:bell-alert
{% else %}
mdi:help-circle
{% endif %}
entity: automation.test_actionalble_ac_cover
icon_color: >-
{% if
is_state('binary_sensor.aqara_contact_ac_filter_door_basement','off')
%} green {% elif
is_state('binary_sensor.aqara_contact_ac_filter_door_basement', 'on')
%} red {% else %} orange {% endif %}