entity: sensor.eskom_gridfreq
icon: |2
{% if is_state(entity, '0.0') %}
mdi:transmission-tower-off
{% else %}
mdi:transmission-tower
{% endif %}
icon_color: |2-
{% if not is_state(entity, '0.0') %}
0c0
{% else %}
red
{% endif %}
layout: vertical
primary: |2-
{% if not is_state(entity, '0.0') %}
Eskom
{% else %}
Eskom
{% endif %}
secondary: |2-
{% if not is_state(entity, '0.0') %}
Supply Is On!
{% else %}
Supply Is Dead!
{% endif %}
tap_action:
action: toggle
type: custom:mushroom-template-card
entity: sensor.solar_watts
icon: |2-
{% if is_state(entity, '0.0') %}
mdi:weather-sunset-down
{% else %}
mdi:solar-power
{% endif %}
icon_color: |2-
{% if not is_state(entity, '0.0') %}
0c0
{% else %}
red
{% endif %}
layout: vertical
primary: |2-
{% if not is_state(entity, '0.0') %}
Solar
{% else %}
Solar
{% endif %}
secondary: |2-
{% if not is_state(entity, '0.0') %}
Generating Power!
{% else %}
Is it night time?
{% endif %}
tap_action:
action: toggle
type: custom:mushroom-template-card
Could you please advise why the below blueprint does not work on the dashboard?
`blueprint: custom_cards:
cards:
cards:
0c0
layout: vertical primary: |2- {% if not is_state(entity, '0.0') %} Eskom {% else %} Eskom {% endif %} secondary: |2- {% if not is_state(entity, '0.0') %} Supply Is On! {% else %} Supply Is Dead! {% endif %} tap_action: action: toggle type: custom:mushroom-template-card
0c0
layout: vertical primary: |2- {% if not is_state(entity, '0.0') %} Solar {% else %} Solar {% endif %} secondary: |2- {% if not is_state(entity, '0.0') %} Generating Power! {% else %} Is it night time? {% endif %} tap_action: action: toggle type: custom:mushroom-template-card
entity: sensor.eskom_loadshedding_stage icon: |2+ {% if is_state(entity, '0') %} mdi:check-circle {% else %} mdi:alert-circle {% endif %}
icon_color: |2- {% if is_state(entity, '0') %}
0c0
layout: vertical primary: |2- {% if is_state(entity, '0') %} Loadshedding {% else %} LoadShedding {% endif %} secondary: |2- {% if is_state(entity, '0.0') %} None {% else %} Stage {{
states('sensor.eskom_loadshedding_stage')}} {% endif %} tap_action: action: toggle type: custom:mushroom-template-card
type: horizontal-stack