Thanks. I’d already made my own while waiting for your reply haha.
Noticed a couple of things which you might want to look at.
The ‘light.yeelight_white’ has a typo (I assume) for the icon. Additionl ‘l’: llight.yeelight_white
If you change your ‘if’ statement to the following, you won’t need to keep referencing the entity: {% if is_state(entity, 'on') %}
Hi, I would like to put a gradient outline around the template card icon, I have tried with the following code but it is not what I wanted, is it possible to do it?
type: custom:mushroom-template-card
primary: ''
secondary: |-
{% if is_state('alarm_control_panel.allarme', 'armed_away')%}
Attivo
{% else %}
Fuori casa
{% endif %}
icon: |
{% if is_state('alarm_control_panel.allarme', 'armed_away')%}
mdi:shield-home
{% elif is_state('alarm_control_panel.allarme', 'disarmed')%}
mdi:shield-home-outline
{% endif %}
entity: alarm_control_panel.allarme
layout: vertical
picture: ''
icon_color: |-
{% if is_state('alarm_control_panel.allarme', 'armed_away')%}
green
{% elif is_state('alarm_control_panel.allarme', 'disarmed')%}
white
{% endif %}
badge_color: ''
badge_icon: ''
card_mod:
style: |
ha-card {
background: none;
--ha-card-box-shadow: 0px;
--ha-card-box-shadow: {{ "0px 0px 20px red" if is_state('binary_sensor.lumi_lumi_sensor_magnet_c2049c03_on_off', 'on') }};
}
Has anyone got a nice format for setting their heating duration using input_select? This is as far as I’ve gotten but it looks crap. I’d prefer the boost button to be longer and the time buttons to be as narrow as possible.
@piitaya QQ: would it be difficult or run counter to your vision to allow templates in the content: section of template chips? Lots of words there, sorry Maybe an example:
Note this does not work but is an example of a use for templating content. I believe by using auto-entities, I can populate a bunch of chips dynamically and apply a card_mod/style to them for effects such as glowing based on state, etc. But I’d like to be able to see the actual name of the entity. I’ll go look at the code in a bit to see if it’s straightforward, but wanted to check to see whether I was missing something or there’s a better approach.
I’ve also tried to replace content with a few different variations, e.g. content: {{ state_attr(this.entity_id, 'friendly_name') }}
Few visual examples of what I’d like to accomplish:
It shows the selected time (icon shows 3 o’clock for 15mins, 6 o’clock for 30mins etc) and keeps things simple. Doesn’t look great but it works the way I want. Maybe some styling later.
Anyone knows how to default the temperature of a thermostat to the floor temperature. The device itself is outside of the room so its not much use right now. The generic thermostat defaults to floor temperature, but not mushroom climate card.
Hi guys. Do you need to use a style in a popup card generated by browser_mod? My mushroom cards in the popup loose their style if I put them in a popup.
Good morning everyone. As family is still asleep i have some time to tinker.
The climate card is actually my favorite. If i tap on the card my thermostat is switches of and if i tap again the thermostat is set to heating. So far so good, but my Thermostat has no heating mode. it has only an auto mode and a manual mode. So i selected Auto an Off and my expectation was that the card sets one of these two states.
Would someone please enlighten me how this all works togehter.