this show very nice, but unfortunately takes out the 3d effect of the button (ie the shadow at the bottom and right side (and to a lesser extent the left side?))
can I bring that back with yet another css option?
I’ve tried it with:
hello you would be kind to publish the code of the fan that turns, I succeeded in part that is I can not bring the text to the right and the fan on the left all remains in the center and overlapped …
trying to order my buttons like we could before with a card (now each button is a card…) I tried this, and made a non-clickable button, which I’d like to re-use for all sets of buttons throughout the configuration.
Probably feel it coming, but the question is, can we create a template like this for a set of stacks, and have eg only the name and colors set in the actual config?
header button: when no entity is given this button show as posted. However when I configure an entity there, in this case the group.all_ceiling_spots, the name shifts outside the button… Since I want to show Name and label later on I have not disabled these. Cant this be done?
button borders shift with color temperature: though I have set auto-no-temperature, the border does shift with temp, making it invisible when close to the button color temp. using:
icon_name and name_icon: Id would really love to mirror the left /right buttons. Left hand side show icon_name, right hand side name_icon. Is this already possible, if not, would you consider creating that option?
to switch name and icon. But made an error and double quoted both. using the above no indeed switches the icon, cool! It does enlarge the rightside icon though.
yes, thanks. Really feel a bit troubled asking so much, but CSS still holds many secrets… eg, why would I need 40% , and not 30% as I have set for the icon in the template?
also, I do want to show an icon using the entity in the button, so I made id use layout: icon_name. No icon displayed… because I suspected the color to have the same color as the background and not be visible, Ive talen out that too, but still no icon? Ive checked and the entity has an icon in HA.
The aligning is a bit unexpected also, since I believed it to default to center?
using
styles:
card:
- color: '#F0C209'
should color the icon too should it?
even explicitly using show_icon: true doesn’t reveal the icon:
I am having mind bending issues here: how to get the middle button (of 3) the have the same height, but 4 times the width of the 2 outer buttons… no matter what I try, the horizontal_stack is divided into 3 equal parts…while the 2 outer buttons should remain small, as the rest of the posts buttons:
Even tried to nest horizontal stacks, but no difference. Only filling the stack with 4 empty cards will put the outer 2 buttons in the correct spacing and size.
would be really useful if somehow the aspect ratio could be maintained , while using a stack division over the stack members somehow.
I can’t change that, that’s how it works in HA core, you have to put an equal number of blank cards or use lovelace-layout-card, or maybe use a vertical-stack-in-card with 4 buttons inside
Can you force the icon using icon: mdi:your_icon please? If it displays by forcing the icon, it means your entity doesn’t have an icon (or the button can’t find it)
I have a group of buttons, that I like to behave like a radio-button-list. If I press one button, the others go “off”. When I press another button “on” in the group, the other goes “off”. I have the above functionality working with an automation.
But if I press the button that is “on” to “off” my radio-button-functionality breaks, - the pressed button goes “off”. And all other buttons are “off”.
I have a second automation setting the Home-button to “on” in this case, but its not perfect. The best would be that the buttons only could be set to “on” (other functionality/automation could then set the buttons to “off”).
Is it possible to configure a button to only be set to “on” in the GUI?
UPDATE:
#######################################################################
# HA MODE SET
#######################################################################
- alias: HA Mode set
initial_state: true
trigger:
platform: state
entity_id: input_boolean.ha_mode_home,
input_boolean.ha_mode_away,
input_boolean.ha_mode_holiday,
input_boolean.ha_mode_night
to: 'on'
action:
- service: input_boolean.turn_off
data_template:
entity_id: >
{% set booleans = [ 'input_boolean.ha_mode_home', 'input_boolean.ha_mode_away', 'input_boolean.ha_mode_holiday', 'input_boolean.ha_mode_night' ] | reject('equalto', trigger.entity_id) %}
{{ booleans | list | join(', ') }}
- alias: HA Mode default
initial_state: true
trigger:
platform: template
value_template: "{% if is_state('input_boolean.ha_mode_home', 'off') and is_state('input_boolean.ha_mode_away', 'off') and is_state('input_boolean.ha_mode_holiday', 'off') and is_state('input_boolean.ha_mode_night', 'off')%}true{% endif %}"
action:
- service: input_boolean.turn_on
data_template:
entity_id: input_boolean.ha_mode_home