I’ve been looking into the card yaml code to figure out the amazing ways that custom button card has been used. One thing I’m not sure about is the following:
I get that it translates as “if there’s no entity 1, return -24%, else return -10%”, but what does the ? mean after variables but before .entity? i.e. !variables? <-
Can someone help me? In the beginning of using Minimalist my yaml code changes are applied immediately. But since a few HA updates every code change I need to restart HA for the changes to take effect.
How can I fix the installation so I dont need to restart HA everytime I change something?
Hey Guys, I made a custom card for light groups and it works great so far. But I found a issue with larger screen sizes. I did a bunch of debuging on the issue and narrowed it down to grid-area being set (and I cant figure out how to unset it). Does anyone know how to unset the grid-area of a card? I made a separate post with more info but have not had a response so figured I would ask here.
Is an “optional chaining” operator and returns “undefined” instead of an error when the variable or a part is not set.
Read: return entity_2 when not undefined (linking of chains and variables)
Read: if variables.entity_2 is false or undefined → return true (condition)
@Mitssz You should always be able to reload Ui Minimalist from the dev-tools, to see the changes in your dashboard make also sure to reload the dashboard with the 3 dots in the upper-right corner of your dashboard. FAQ - UI Lovelace Minimalist For more info.
@PartemImperium I have took a look at your code. Maybe try changing the full last styles part to something like this:
card: #TODO: Look into if minimalist has any way to have a array of cards in a grid.
type: grid
square: false
columns: 2
styles:
card:
- padding: "0px"
grid:
- grid-template-areas: "lights"
- display: "flex"
- justify-content: "start"
Does anybody else have problems with browser mod popups? In certain, I cannot get Thermostat Popup to work and I’m not sure where to trace this. I already cleared browser cache, restarted browser few times, removed Browser Mod integration, restarted Home Assistant and added integration again, same behavior on all devices, the empty popup:
It works great. No more empty section. Thanks for the help/pointing me in the right direction.
I am running into a new issue now but dont think it will be as easy to fix… In the normal lights card (inside the auto entities on the bottom part) if the name of the light is longer than the width of the card it just overflows (and the slider follows its width). I found that unsetting the overflow on the inline styles for #name fixes it (because it has a ellipsis class on it that has overflow hidden). But because that is a card in a nested custom_field I dont think I can modify the styles like we did here or use card_mod to add a css style. Is it possible to modify these nested custom_fields card styles or will I just have to rename my lights to be shorter?
I’m wondering if I’m the only one with this issue. I use the card_thermostat and the popup that gets loaded seems to mess something up. The slider of the thermostat card (which is just a default card from Home Assistant) is really funky to use. The slider keeps dragging if you click or tap it once until you magically tap somewhere else. If I load that same thermostat card in the normal view, without a popup, it works perfectly and stays on the position when you let go. Is anyone else facing this too?
I already wrote here that I have empty popup. This morning I saw that ui minimalist update is available and updated it. Now when read your post, I checked again and whoala - my popup is not empty any more , but slider behavior is same as yours . When you click the slider and drag it to another position, it keeps following the mouse when you release click as well. It stops once when you click to some other place, and most of the time that temperature position will be applied (sometimes it miss temp apply completely). This is for desktop. I would add on top that behavior on touch screen is little different. Slider will stay in place as soon as you release your finger from touch screen, normally, it has no what to follow any more, but temperature will not be applied ever. Temperature will be applied only if you tap with finger on some position on slider and this have to be very precise tap. I believe that something is messed with drag and drop, i.e. drag isn’t released once when person release left mouse button, instead of that continues dragging.