#frontend-archived
1 messages · Page 17 of 1
Once I realized that the template chip was an option, I started looking a bit more into mushroom cards. majority of my cards are all custom:button-cards.
I do like card-mod but in this instance, the mushroom-template-chip is ideal.
@cobalt trench I converted your message into a file since it's above 15 lines :+1:
is this even required? shouldnt the card use the state colors of the binary sensor natively?
required if trying to use custom colors different from default (red/green for on/off instead of yellow/blue)
The state color didn't seem to work with binary_sensor with mushroom entity chip. Maybe I have done something wrong elsewhere.
With the entity chip the mdi door open/closed icon does change automatically, whereas with template chip I need to add code to alter it based on state.
chips:
- type: template
entity: binary_sensor.contact_sensor_front_door
content: Front
icon: |
{% if is_state(entity,'on') %} mdi:door-open
{% else %} mdi:door-closed
{% endif %}
icon_color: |
{% if is_state(entity,'on') %} amber
{% else %} grey
{% endif %}```
A little bit simpler syntax to consider (from one of my cards): yaml content: | {{ ((states(entity) | int) > 5) | iif("TV is on", "TV is off") }} icon: | {{ ((states(entity) | int) > 5) | iif("mdi:television", "mdi:television-off") }} icon_color: | {{ ((states(entity) | int) > 5) | iif('green', 'red') }}
I didn't even realize that's what it was called. Just know it works... 😄
EDIT: Reminds me of the ternary operator syntax in C#
Me neither, will google it.
Haven't figured out yet why you sometimes need >- and other times | 🤣
>- is for multiline string in yaml with newline stripping mode. I think | is more like commandline pipes.
same. I just end up using whichever doesn't create errors and just go with it. Though I have noticed each one "reformats" the following code differently (breaks) once saved.
Thanks again. This is working for me...
{{ is_state(entity,'on') | iif('mdi:door-open','mdi:door-closed') }}
icon_color: |
{{ is_state(entity,'on') | iif('amber','grey') }}```
Does anyone know a graphical appealing card to show the temperature 🌡️ in a room? I'm currently using the standard gauge but I'd like to have a nicer looking one
How can I put in a very thin status bar?
For example showing battery state.
Changing value precision updates my entities to what I'd like them to be, but does not change on my dashboard. They remain the defaults on the devices from when I set them up. I've tried reloading yaml and restarting home assistant. Is there something I'm missing?
hey guys, i've got an input number that i want the user to be able to interact with an have it look good - the issue is the default card when you put it on your dashboard looks very meh and not user friendly at all - does anyone have any suggestions for some cards that i can use that'll make it look nicer and easier for people to fill out? if it helps, it's always going to be 4 digits long
(for clarification, i'm not looking for a slider/+- buttons etc, it needs to be something the user can type in a value and exit out of it causing HA to update the value)
Hello, pretty new to HA. I have a question but I can't seem to find a straight answer to it. For a basic card (say a light card for example) what controls the height that it appears on my dashboard as? If I have a brand new dashboard and I add one card to it, what is the easiest way to change its height? I've tried a few things from the forum and feeding google bard the documentation and github but I feel like I am overlooking something very simple.
You've got a valid point. There's never been a proper E14 candle icon in home assistant
This while there's been candle lights since the beginning
Can do nice things with custom:mini-graph-card
How can I target the grid-card, so that I can add:
'background-color: white;
border-radius: 8px;
border: solid 1px gray;'
So all the entities inside of it have one background?
I've tried various selectors via card_mod, but I cannot target the correct element to set those properties in the grid card 😦
If you are simply wanting square buttons, try putting them on a grid card and selecting the square option.
Not sure this is the right place, but I am a bit confused what does state-icon-color actually does? I have tried to add a theme
frontend:
themes:
tube_theme:
# Define colors based on entity states
'state-icon-color': >
[[[
if (state === 'Severe Delays') red;
if (state === 'Minor Delays') orange;
return blue;
]]]
But when I apply it to an entities card, everything is the same white colour 🤔
Should be diff color when state is on. That looks like its missing the entity like if weather_entity state is severe than red
Thanks, I've done this before. The temperature in our rooms is constant for 95% of the times. But I'd like to see just the temperature in a beautiful way
Can you give me please the code of the chip of the battery? I don't know how to put a color to the icon.
Thanks.
hey crew, something odd. i use thomasloven's auto-entities, with an exclude: hidden_by: integration to hide members of a light group but not the group itself. that worked fine on 2023.5.2. I upgraded to 2023.5.3 and suddenly the members are visible again. i checked the release notes and couldn't find anything that would explain this behavior. thoughts?
What would you want it to have? There's sensor card. Any card can be made better visually with card_mod
It has to look sexy without any graphs. We also have the Nest thermostat, but that design is purely for the nest. The other sensors, like the Aqara ones need a seperate and unique, beautiful card that don't exist in Home assistant.
Yes like that. Is that natively in Home assistant and is the 🌡️ icon dynamic?
Yes sensor card, you can makevany icon dynamic, if > 75 then red etc. Another idea is custom button card you can make something really nice and be real creative but not native
https://github.com/wfurphy/creative-button-card-templates has really cool ones
Looks good. Thanks, but I'll wait for home assistant to come with something natively on this part. I've a few hacs things, but I think it's better for Home assistant/ nabu casa to invest in things like visually appealing temperature cards for example, so others can show off their dashboards for marketing purposes.
Untill then I'll be looking into templating and css. But that's not that user friendly, especially for beginners that just start out.
ignore this, somehow it magically fixed itself 🤷♂️
For the icon color of the chip, this is what I used: yaml icon_color: | {% set state = (states(entity) | int) %} {% if state >= 90 %} green {% elif state >= 70 %} light-green {% elif state >= 50 %} orange {% elif state >= 30 %} yellow {% else %} red {% endif %}
You might be waiting a while. There's a potentially endless list of users with their own very bespoke requirements for card content/styling. Home Assistant provides a very extensible platform that a great community has developed lots of additional content/features for already. As others have suggested, it's worth playing with card-mod and the native and mushroom template cards.
@vapid field When you start getting into the realm of customization (whether HA, cars, computers, etc.), one size does not fit all. HA provides you with a way to see the temperature your sensor is reporting, but it is not the way that you want to see it. Having the ability to customize the way you see fit is a big improvement over other automation systems where you may have no customization at all. You are correct to say that it is not "user-friendly". Years ago, I knew nothing about YAML, Python, Jinja, Node-RED and automation and dashboards was very overwhelming. I'm still learning, adapting, improved and adding to my dashboard all the time.
I followed the link @dusky jackal posted and got some ideas that I wanted to incorporate into some of my buttons. For example, the color temperature was shown on a button and I kinda liked that idea. But I adapted it for what I how I wanted to see it.
And, now, I'm going to change the brightness buttons from only being able to control the brightness for just that room with a tap_action but also control brightness for all lights that are on with a hold_action (via Node-RED).
And, now that that is done, I'm going to try to go through and incorporate variables into to the templates I use (since I learned about variables after I made the templates) in an attempt to shorten the YAML. Point is, with a little extra work, you can make your dashboard exactly how you want it.
is it possible to "hide" the unit of measurement of an entity in some card, just in the frontend, without creating a separate template entity?
I have hidden the sidebar of a user but now I don't know how to get it back
depending on the card, you might be able to use something like '{{ states("entity.name_here") }}' or '[[[ return states["entity.name_here"].state; ]]]'
I think I was oversimplifying my problem. I am using a grid template dashboard and I want to directly control the size of the cards but they seem to have a mind of their own and don't listen to grid- commands in the yaml.
I tend to use the Grid card and horizonal and vertical cards to arrange as I am too lazy to maintain multiple dashboards so you will need someone more experienced with the grid template.
Is there a good way to do this with horizontal/ vertical stacks? say to change the height of a horizontal stack card? looked around but didn't find a way to do it.
What are you trying to achieve is it just square cards or something else? You can make all cards the same height and make them square. You could include a custom button card to force taller cards etc
This is sort of what I am trying to do, basically make the second row a bit taller so it doesn't look squished (not square though). I've tried using the Css grid stuff with the layout and just a basic horizontal stack but both of those look exactly like this.
Okay... And where does I have to put it? Because in the mushroom target doesn't appear any colour in the icon.
In my example, the card uses the template type for the mushroom-chips-card. Here's the full code:
@tribal galleon I converted your message into a file since it's above 15 lines :+1:
I'm trying to get my Zen Thermostat to make sense in the mushroom climate card. It's effectively got a separate control for mode (off/heat/cool) and fan (auto/on) and it shows fine in the Simple Thermostat control but I can't figure out how to get the Fan settings to show in Mushroom. Any ideas?
How can I put in a very thin status bar?
For example showing battery state.
I m trying to get my Zen Thermostat to
@frosty flower got the swiper working, but only 2 state-switches deep, Had to do a few card size mods, but good enough for what I am needing (so far🤔 )
What's the equivalent of in template markup please?
I would like to add some white space between the two state values
primary: Bedroom 1
secondary: >-
{{ states.sensor.bedroom_1_meter_temperature.state_with_unit }} {{
states.sensor.bedroom_1_meter_humidity.state_with_unit }}
icon: mdi:thermometer
entity: sensor.bedroom_1_meter_temperature
icon_color: blue```
i'm not 100% sure because i'm still quite new to HA but i'm pretty sure it just reads what you have in the secondary value, whitespace included
so if you wanted more whitespace between the temp and the humidity, change the secondary to something like this (i've just manually added in like 4 extra spaces)
{{ states('sensor.bedroom_1_meter_temperature') | round(1) }} °C {{ states('sensor.bedroom_1_meter_humidity') }} %```
Thank you but it seems to delete repeated white space, similar to HTML.
huh, you're right - i tried it in the dev options tab before sending my message and it works there, but in the actual mushroom card it doesn't!
i don't have any other suggestions unfortunately, but maybe someone else might know something
Appreciate your help though. Thank you.
I gave this a try too.
style: |
.secondary {
white-space: pre;
}```
ah, i just got it!
add this to the bottom of your code (not card mod, in the mushroom template card)
multiline_secondary: true
doing that makes it read the whitespace as whitespace instead of trimming it all down
Awesome, thank you.
I was trying to edit a Home Assistant page and this is the error I get:
Configuration errors detected:
Loading chunk 6469 failed.
(error: http://192.168.50.201:8123/frontend_latest/6469-MlgeZbwNObg.js)
I get this for every item on the page I am trying to edit but I also see it on other pages. Going to the 'settings' tab I get "Error while loading page config". Home assistant still works but I can not do a lot of things. I suspect the latest HA update introduced a bug.
My last resort is to kill the power on the HA machine but I am worried that HA will fail to come up so I thought I would see if anybody else had similar issues recently.
hey guys, i've got a bit of a weird question - there's some api i can access to find the cheapest fuel stations given a postcode which i've got working, but i want to make it a bit better by having a text input on my dashboard to let users choose the postcode they're in, in case we're out and about
i currently have an input_number, but the default card for input number looks terrible and i can't find any alternative cards that allow user input while looking good
the other option is i have a list of suburbs and their postcodes - is there a way to autocomplete the input field based on what the user is typing? so if they start typing a suburb name it shows the available postcodes, but if they start typing a postcode, it shows the available suburbs? hopefully that all made sense?
Does anyone have any experience using a remote image on the frontend? I managed to get it somewhat working using generic camera, but its a little janky
Ideally I would like to use a remote image as a entity icon, I've tested:
customize:
sensor.lost_sector:
entity_picture: "{{ states('sensor.lost_sector_reward') }}"
Doesn't appear to support template elements tho.
I guess my issue is a two parter, remote image on frontend + support templating as its subject to change
Sorry if this has been asked before but I cannot for the life of me figure out what is happening. I have a UI Lovelace Minimalist YAML dashboard for mobile that I have made. I have it set as default on every device. Every now and then on my iPhone (and other iOS devices) I will open the app and it will default to the generic Overview dashboard and change that back to be the default. Why is this happening and how can I prevent it?
Just to follow up on my earlier question - I was unable to find anything at all on the internet and in desperation I decided to just go for a reboot. As it turned out, the computer came up after the reboot and is working just fine again.
Hi all, was hoping for some helping lifting a bit of data from a a local webpage to get oil level in my tank. Really struggling, the garage has a login screen, then need to navigate to a certain page. To get the reading
hey guys, does anyone know of a nice looking input helper (number or text) that i could use that fits in with mushroom theme? i want an input number/text that sits on my dashboard that fits the mushroom design
hi! need some help with apexcharts 🙂 I want to show a 24-hour graph with sensor's hourle averages from one month. I mean, first point on the graph should be an average of first hour of every day in the range. Is this doable?
Anyone know how to get the background color removed from the vacuum map ?
What card would you recommend for a at-glance monitoring of nas drive stats like how full they are, health and the general temperature and status of my nas? I got the entities from the synology integration
Thanks, that looks like what I wanted. Just one question, how do I set the header/legends to the left of the graph like in the images in the link you've sent me?
Look at the "Variables" in the link, everything is explained there 🙂
Ok I've derped out. I just saw that it mentioned the apexchart card, and just installed that :D
Is it possible to include other YAML files with substitutions? I have a very common auto-entities setup where I just get all the lights from a specific area. Ideally I'd love to do something like !include my_file.yaml Bedroom or something like that and then the include will do something vaguely C pre-processor like or so
How can I put in a very thin status bar?
For example showing battery state.
Not really. Includes won't help unless you want exactly the same code, and YAML anchors don't provide much flexibility either. You can override keys in each instance if you use anchors, but it's not an official part of the YAML standard. I would also like CPP like macro functionality
That's very unfortunate. I keep copy-and-pasting blocks around and then having to update every single one if I want to change eg. the look. Guess I'll keep doing that then, thanks a bunch 🙂
Look at YAML anchors. That's the best you'll get
I lamented this limitation here: <#frontend-archived message>
I guess the idea here would be to factor out the common configuration stuff, but leave the parts that need customization?
Yes
What I really wanted were the config templates offered by custom button card, which are basically anchors + parameterization
That'd be fantastic. Although I'd probably spend the majority of my time just refactoring everything instead of improving the dashboard lol
anyone know how i could go about making it so that if either of these 3 are on, you arent able to turn on the other ones?
was trying to use automation but wasnt working so just wondering if theres a way to do it without those
I don't think there's any official 'radio button' functionality, but you can approximate it with a dropdown/input_select and an automation to turn on the selected zone
What if turning on one, automatically turns the others off? It's hard to prevent them from turning on if you're giving raw access to the switch from the frontend.
anyone know how to turn the bulb from black to yellow when the light is on?
the code I am using:
icon_hue: &icon_hue >
[[[ const state = entity.state === 'on' ? 'animate' : null;
return `<svg viewBox="0 0 50 50"><style>@keyframes animate{0%{transform: scale(0.85);}20%{transform: scale(1.1);}40%{transform: scale(0.95);}60%{transform: scale(1.03);}80%{transform: scale(0.97);}100%{transform: scale(1);}}.animate{animation: animate 0.8s; transform-origin: center;}</style>
<path fill="#9da0a2" d="M27.4 47.3h-4.9s-.7.1-.7.8.4.9.7.9h4.9c.3 0 .7-.1.7-.9s-.7-.8-.7-.8zm3.3-2.9H19.3s-.8 0-.8.8.6.9.8.9h11.5c.2 0 .8-.1.8-.9-.1-.8-.9-.8-.9-.8zm0-3H19.3s-.8 0-.8.8.6.9.8.9h11.5c.2 0 .8-.1.8-.9-.1-.8-.9-.8-.9-.8zm0-2.9H19.3s-.8 0-.8.8.6.9.8.9h11.5c.2 0 .8-.1.8-.9s-.9-.8-.9-.8zm5.2-23.2c-3.3-5.3-7-5.6-10.9-5.6-3.8 0-8.4.4-10.9 5.6-.1.1-.1.3.1.7.4.8 3.3 7.2 3.2 18.8 0 1.1-.1 1.6 0 1.7 0 .1 0 .7 1.1.7h13c1 0 1-.5 1.1-.7v-1.7c-.1-11.6 2.8-18 3.2-18.8.1-.4.1-.5.1-.7"/>
<path class="${state}" fill="var(--button-card-light-color-no-temperature)" d="M14.1 15.3c3.4-.3 7-.4 10.9-.4 3.8 0 7.5.2 10.9.4.4-.4.7-.8.9-1.1C39 8.5 38.9 6.5 38.9 6c-.2-4.4-8.4-5-12.1-5h0-3.4c-3.7 0-12 .5-12.1 5 0 .5-.1 2.5 2.1 8.2 0 .3.3.8.7 1.1z"/></svg>`; ]]]
Would also suggest that some stats are probably well suited for a heatmap plotting over time, esp. temp (Disclosure: I made a heatmap card. In my defence, they’re useful ;-))
- Circle graphic for light dimmer * Noob here, moving over from Homeseer...tired of it corrupting my DB. I have spent time looking but am unable to find out how to get the "circle" for my light dimmers like I show here. All of my dimmers show up as the slider I show, but that only shows after I click on the light dimmer original graphic. Thanks in advance
the left image is the "Light" card, which you would add to one of your frontend dashboards
the right image is "More Info", which is what pops up when you select a light entity.
What hardware where you using?
hey guys, does anyone know of a way for users to input text/numbers from the dashboard that fits in with a mushroom theme?
Hello, I'm creating a dashboard for my NSPanelPro. I'd like to know if it's possible to remove the 3 vertical dots upper right and replace them with a digital clock ?
I think I see my issue, I was adding dimmers into an entities card...when I add them as the light card I do get the proper graphic. Many thanks!
The solution of this post should do what you need as an automation, just add in your switches rather than the lights. https://community.home-assistant.io/t/radio-button-like-functionality/496044/5
having a hard time creating a lights popup card.. what I am trying to do is have a double tap popup showing different lights controls... tried simple light card and mushroom card, but cannot seem to get it working... only popup working thus far is the HA light card with one single lamp... any ideas?
btw I am using button card templates in a pictures element type yaml
I have a Markup tekst boks but would like to add a “last triggered or changed” how do I do that
Tried this with no luck
type: markdown content: >- Der er post {{ as_timestamp(binary_sensor.lumi_lumi_vibration_aq1_vibration.last_changed) | timestamp_custom(' %H:%M',true | int)}}
Try states.binary_sensor.lumi_lumi_vibration_aq1_vibration.last_changed
Worked thanks
so i tried this... and its extremely weird, now whenever i turn on any of the sprinkers it just immediately turns off lol
maybe should i add conditions that says that garden/front door need to be on?
will try this
nothing - if i turn on front lawn, then turn on garden, they will both turn off instead of garden going on and front lawn turning off
you should not need to condition the actions with checking if they are already on
Hello, is there any way to insert a simple text in the dashboard? I created a Vertical stack where I put a clock 🕰️ and the city name (I use a text input), I want to insert the name of the city over the clock but I can’t find the way to insert a simple text.
Text input is not correct because user can tap it and modify..
I’m do it wrong? How to simple write some text in the dashboard?
The vertical-stack card can use a title: key.
Or a markdown card
You can also use a markdown card (shown here in a vertical stack with a title). ```yaml
type: vertical-stack
title: Markdown with formatted date/time
cards:
- type: markdown
content: '{{ now().strftime("%m/%d/%Y, %H:%M") }}'```
Oh fantastic It works thanks a lot
I’ll try this option also thanks 🙏
Hey guys, does anyone know of any input number/text helpers that fit in with mushroom theme that can be used directly from the dashboard?
Is it somehow possible to hide views depending on the state of an input Boolean? I have a heating view and an AC view and would like only one to be visible at a time.
Consider using a Conditional card. https://www.home-assistant.io/dashboards/conditional/. Actually, that's for cards, not views. Misread your question.
You mean put inside the conditional card the whole view as a stack?
I misread your question. I was thinking you had a heating card and an AC card. Completely missed the views part.
I (generally) don't see the header on my tablets but I have "hidden" navigation capabilities.
@raw stream you can use an entire page and control it via input_boolean by using https://github.com/thomasloven/lovelace-state-switch and even a combination with layout_card. My setup uses pages instead of changing views. Easier to automate changes when needed for events, especially when using video backgrounds so the view doesn't have to load on every view change. Faster IMO for the frontend
no navigation example here #frontend-archived message
Try using the example I sent. It turns them all off and then turns the one which needs to be on back on. Alternately you can have 3 automations to turn off the other two when the third is turned on. Sometimes it is easier to follow the logic that way.
Hi everybody.. I've configured a local 'media' folder and play files through the "media" panel. I can play files but the player hasn't the ability to seek forward or rewind using the progress bar. Am I doing something wrong?
@upbeat geyser I converted your message into a file since it's above 15 lines :+1:
heyy
how can i display a time value formatted? not 2023-05-21T18:23:04+00:00
Where do you want to display it?
As mentioned before, what card?
I want to display it on my dashboard and if an event is executed it should be sent by telegram, I asked in #templates-archived, was then referred to #general-archived and from there to #frontend-archived...
I try to send it to the right channel but m seemingly always wrong, I'm really sorry
So what type of card on your dashboard do you want to display it on?
Hi everyone, is it possible to use the dark theme on the chromecast dashboard?
I don't really care, either in the "entity" card, in a markdown, in an "entities" or in a glance card, I just want to see it
Look into strftime() as a formatter. That might work, but it really depends what type of card you are trying to show it on. And then sending it to telegram will use another service, which might need different formatting.
It sounds like you need a template sensor to create a new entity with the new format
If you explain it as that then #templates-archived can help - but do see https://www.home-assistant.io/docs/configuration/templating/#time
That link should help you indeed Scarriffle
You can also test templates out in ...
Open your Home Assistant instance and show your template developer tools
Can I do a simple calculation in a card? In my apexchart mentioned above (I've managed to partially solve it), I have a set of items, and I want to know the average of all the items, and put it in a variable. Any tips on how to do that?
I literally just posted an example of formatted time a couple of posts above your question. To understand the syntax of strftime, as @upbeat geyser suggested, take a look at https://www.geeksforgeeks.org/python-strftime-function/#. You do not need to create a template sensor just for displaying the time.
Depending on the card, it should just be a matter of writing a small bit of JavaScript or Jinja to do the math. Here's an example of a calculation comparing the brightness of an entity to the value of a defined brightness percentage. yaml value: >- [[[ return states[variables.var_entity_id].attributes.brightness === Math.round((variables.var_value*255/100)) ]]]
It's an custom template and apexcard, currently working as such:
type: custom:config-template-card
variables:
MOVINGAVERAGE: states['sensor.energyprices'].attributes.average
entities:
- ${MOVINGAVERAGE.entity_id}
card:
type: custom:apexcharts-card
But the new entity I'm using doesn't have an average attribute
Is there a way I can merge the ‘shut off lights automatically’ and ‘when the time is’ cards together, but conditionally show the ‘when the time is’ section? I have a conditional to show that card now, but I’d like to have just one card like the one above it
Basically match the layout of the card above but conditionally show the second half. I’m thinking that may not work though since there’s a time picker
Maybe using a stack-in-card https://github.com/piitaya/stack-in-card with the "shut off" and a conditional card (and then the "time" defined in the conditional).
I’ll take a look - that current approach is a vstack with a entity and a conditional card holding the entity
Basically the same concept. The Stack In Card says it allows to group multiple cards into one card without the borders. By default, it will stack everything vertically.
Sounds like exactly what I need 👍 I’ll test in a few and let you know. Ty
Tim0 suggested an entities card with a conditional. This works: ```yaml
type: entities
entities:
- entity: input_boolean.tester
- type: conditional
conditions:- entity: input_boolean.tester
state: 'on'
row:
entity: input_datetime.automation_nighttime_motion_detection_end```
UPDATE: If you want a second entity to be shown (such as start & stop times), you can copy the conditional section and define the second entity.
- entity: input_boolean.tester
Oh sweet
Oh yeah I did suggest that briefly, but I then subsequently deleted it since I misread the documentation since I got confused and thought it wouldn't work. Thanks for pointing that out 😅
Tim0 I didn't think it would work either. But I went looking and found some examples. Took a minutes to get the conditions to work. Kept saying it needed to be an array. Copied another example (even though it looked identical) and it started working.
Looks great - thanks guys! @vast crane @tribal galleon
Was playing with the stack-in-card and it actually wasn't producing the results that I was thinking it would (although I think the issue is with my theme settings somewhere). The entities card looks a bit better with the conditional applied.
Hey guys, trying to get a custom badge image for my person entity. Not sure what I'm doing wrong here?
My customize.yaml
person.rich:
entity_picture: /config/www/person_rich.png
person.kim:
entity_picture: /config/www/person_kim.jpeg
Hello I've been using the manual alarm panel for a while and it works just fine. (platform: manual). But, I'd now like to publish the sate of the alarm to mqtt so that I can use it in a second HA instance. I've changed the panel to platform: manual_mqtt, but, now I can't change the status of the alarm in the UI/Lovelace. Anyone know if this is possible? Or know perhaps another place to ask?
Guys it will be so ez for you i am sure but i spend more than 1h to figure it out, help me please 🙂
cards:
- type: custom:mushroom-template-card
primary: Bedroom
secondary: |-
{{ states('sensor.temp_humidity_bedroom_temperature') }} °C {{
states('sensor.temp_humidity_bedroom_humidity')
how to add more "spaces" between °C and humidity reading?
making it this way:
cards:
- type: custom:mushroom-template-card
primary: Bedroom
secondary: |-
{{ states('sensor.temp_humidity_bedroom_temperature') }} °C {{ states('sensor.temp_humidity_bedroom_humidity')
didnt do anything
I would do this:
secondary: |-
{{ states('sensor.temp_humidity_bedroom_temperature') ~ ' °C` ~ states('sensor.temp_humidity_bedroom_humidity') }}
Ty, i foudned already workign solution, you have to add multiline_secondary: true in template card and spaces are working 🙂
If you don't want decimals, you can pipe it as an integer. yaml type: custom:mushroom-template-card primary: Bedroom multiline_secondary: true secondary: |- {{ states('sensor.bedroom_temperature')|int }}°F {{states('sensor.bedroom_humidity')|int }}%
Hey folks!
Has it been flagged before that the light round slider button is really hard to use on mobile unless you make the button massive because it tries to drag the screen instead?
Or is this something I should flag with #devs_frontend-archived ?
Did you ever happen to figure this out? As of lately I've started encountering this with the Z-Wave integration daily. Everything is working fine for hours, then randomly stops and the integration has a yellow outline.
Apparently if you inspect the code on that box the class name gives you hints on what’s wrong
It’s BS
I can attest to this
Hey i wanted to ask if it was possible to set the light control ui element back to the old style. It got changed to this when I updated a few days ago
it used to have the color picker and effects shown on the same screen without any submenus
I'm not terribly familiar with HA yet so I dont even know what to really search for on google
i want to make it so that there is no buffer between certain cards and the sides of the ui for a clean overflow effect. is there a way to do this with themes or with card-mod?
this will be a better image to portray what i want to do
for the thermostat card i want no seam between it and the side of the browser window.
maybe i didnt explain it well enough 😅
i want there to be no black portion for this part of the card
Ahh...probably padding or margin. Easy fix would be to change the background color to the card-background color then margins or padding wouldn't matter they would just disappear 🤔
https://www.youtube.com/watch?v=KpJpXrl031A proper small video of buttons I am working on with picture elements card, instead of the pixilated gif I posted, will follow up with a post once I perfect it and guide.
Hello, I use card-mod for my lovelace and it work great, I wanted to make another dashboard for my shopping list only but it doesn't work, or almost don't, it work fine in the editor, but in live view it work only from time to time and stop working if I refresh
If I save again it work live, but again If I refresh it stop working
already tried to restart HA and empty my cache
card_mod:
style: |
ha-card {
background: rgba(50,41,26, 255);
border-radius: 0px;
}
If I refresh it work every 3-5 times
for this view only, it work every time on my default view
I cant see my main dashboard on my phone
2023-05-22 15:44:05.842 ERROR (MainThread) [frontend.js.latest.202305033] https://myhomeassistant.gotdns.ch/frontend_latest/56298-AGkP8D0i0d8.js:2:75015 Uncaught TypeError: Cannot read properties of undefined (reading '0')
If i fiddle with the settings who is allowed to view the page. Every thing works for a short while
i just noticed that the map shows the last time the zone changed instead of the last update event, for every device tracker
It's a nonsense
is there a way to change that?
What part of the map do you mean?
either. I fyou click on a tracked element, you will se the time of the last zone change
it would be far more useful to see last update
It follows the device tracker state which state is zone based and not lon/lat based
i meant the last update, from the android companion. It can be seen, on a browser, hovering mouse over the "3 hours ago"
the last update is way more meaningful than last zone change.
Is there a way to show that, instead of last zone change? or show always both ?
ok yeah that's the "more info" screen
I think i saw a feature request somewhere with that same request, let me see if I can find it
maybe it was this: https://github.com/home-assistant/frontend/issues/14978
To answer your direct question, no there's no option or configuration to change what is shown there.
As to if there should be, that would probably need to be a feature request.
On my install I just made an entities card right below the map with last updated time for the various persons.
I have a MySensors device. It sends battery voltage, humidity and temperature to HA. The temperature data is not changing, but the humidity and battery voltage are. I have 3 other identical devices and they do not have the problem. The data is arriving because I can see it change in Studio Code Server.
Home Assistant 2023.5.2
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest
the voltage data does not get to the HA database config/home-assistant_v2.db and it does not appear in the card on the Dashboard and it does not appear on the device (Settings–>Devices & Services–>n_devices (mqtt MySensors)–>sensorName 130
Does anyone have an idea for a grid-like view of 6 different values with a title above them?
Want to display power usage and costs for "Today", "Yesterday" and total but my current way of just displaying each in a single row takes up 2 phone screens basically...
Thought about it like this but that doesn't really look neat enough tbh and the values on the right are not centered to each other depending on the values they have
Markdown card ?
(perhaps a)silly question: building the latest frontend - 20230503.3 - only english translations built, how to build them all ?
I use this: https://github.com/benct/lovelace-multiple-entity-row. You can't align between rows though.
That's what I'm using in the example yeah
Why not just use a markdown card and make a table?
I didn't even know that works 
You can create HTML directly in markdown cards
or you can make a markdown table
very simple
if you go the HTML route, you can have the table expand the whole card with styling, but it requires a bit of HTML hand holding
the markdown route will make the table but it won't span the whole card
Also, you can create your own grids on a custom button card too
so you ahve alot of options
Hello, does anyone know how to use a grid card inside of a grid card in javascript? Here's my grid card code:
const gridCard = {
type: "grid",
columns: 1,
cards: horizontalareaCards
};
Instead of horizontalareaCards I wanted to insert another grid card with 3 columns where I would then put the horizontalareaCards
@junior sparrow I converted your message into a file since it's above 15 lines :+1:
Hi, 👋
i'm kinda new to HA and was wondering if it was possible to edit / add data in the calendar card like gas & power usage while an event was active? Made an little mockup. But not sure where to look/start to build it myself
How can I change the name of "not_home" and "home" to another language?
What card are you using? that might help here
Thats a template that does what you want, but unfortunatly that doesnt work in frontend cards, you can only use it as a markdown, as far as i know
{{states('person.juani') | replace('home','REPLACEMENT')}}
If youre using mushroom cards for that, just set your language as system language and it will get displayed like that
Question regarding the logbook card, is there a way to use some thing like the name field to present a friendly name? I have my numerous contact sensors named contact ## but then that device is assigned to an area. If I create a logbook card that holds all of the sensors for exterior doors, it would be a lot nicer if the entries stated Front Door - was opened instead of Contact 03 - was opened. I would rather not rename my sensors to make this work.
Similar to how the entities card allows for:
- entity: sensor.name
name: Friendly name here```
Minimalist -> Person Info Card (https://ui-lovelace-minimalist.github.io/UI/usage/custom_cards/custom_card_person_info/)
Just update the template code from github on your local system
I have a sidebar.yaml file, which I'd like to include in my "regular" ui-lovelace.yaml, how to do? 😦
I did it and same result. I restart also the RPI4.
How does the code looks like by the label ?
@unborn venture ui_lovelace_minimalist cards are based off of custom:button-cards; they make use of templates and other resources for the design. Generally, you should be able to take information for the button-cards and adapt it for minimalist.yaml type: custom:button-card entity: person.derek name: >- [[[ if (entity.state === "home") return "At the house"; else return "Not at the house" ]]]
Minimalist uses the translation library of HA itself called Lokalize. So no need to add custom templates for translation 😉
@lyric prairie I converted your message into a file since it's above 15 lines :+1:
@tribal galleon 👍 thanks for the idea.
Yes! That was the solution. Thanks!! I will try to understand that code so one can say I have learned something 🤣 Thanks again.
So my frontend keeps on constantly crashing on any and all mobile devices. If i manage to get to another dashboard it's fine but the "overview" one just keeps on crashing: https://photos.app.goo.gl/gkqXiqCBJw9W1c9v7
Hi again!
Maybe I have some type of oCD problem but the slider doesn't work well... See the video please (https://veed.io/view/4eea56b8-755c-4eb1-bc96-b3d368eabb7f).
Thanks.
Hello everyone. I'm trying to get custom-button installed, but I can't get it to work. I installed via HACS and can see the resource has been added, but I still get the "Custom element doesn't exist: custom-button" error. I've tried restarting HA, refreshing the browser, and clearing browser cache.
got it working!
hey guys, does anyone know of an input field that can sit on a dashboard and accept numbers and look good (rather than the default input number needing to go to more info to change the value for it?)
Hi Guys, i'm using minimalist as my HA dashboard and since the upgrade of Passive BLE monitor it is not handling the rounding anymore. I want my temperature sensors rounded to 1 decimal. How can I do this in the custom-button-card without creating an new template for the sensor.
- type: horizontal-stack cards: - type: "custom:button-card" template: - card_esh_room - yellow_on name: Zolder entity: light.zolder_dimmer_1_s1 icon: mdi:ceiling-light tap_action: action: navigate navigation_path: "zolder" label: '[[[ return states["sensor.zolder_xmwsdj04mmc_temperatuur"].state + "°C" ]]]'
@sullen abyss '[[[ return parseFloat(states["sensor.zolder_xmwsdj04mmc_temperatuur"].state).toFixed(1) + "°C" ]]]'
type: custom:button-card
entity: sensor.bedroom_temperature
name: '[[[ return parseFloat(states["sensor.bedroom_temperature"].state).toFixed(1) + "°F" ]]]'```
@tribal galleon I'm getting the error:
Unexpected identifier 'toFixed' in 'return parseFloat(states["sensor.zolder_xmwsdj04mmc_temperatuur"].state)toFixed(1) + "°C"'
forgot the period before .toFixed(1)
technically, you can also use [[[ return parseFloat(entity.state).toFixed(1) + "°C" ]]] if the entity was already defined in the card.
@tribal galleon Thanks! It's working. I use another entity in the card itself to switch the main light in the room so I need to specify the temp sensor.
An input number in an entities card is editable on the dashboard without going to more info. Whether or not that "looks good" is a bit subjective, it's just a text field (or I guess a slider depending on your configuration).
Good point, for some odd reason I thought it didn't work on the dashboard! So I want to have something that looks nicer and fits in more with a mushroom type theme for the input number instead if the default - do you have any suggestions?
Hi guys,
Maybe a stupid question but i want to have different design/functions on my computer and on our iPhones.
Now i have a admin user (owner that i log in on my computer and can to stuff and change all settings that i don't want my girlfriend to do by misstake.
Then i have only one control panel and the only icon/button that is visible for all users is home with the alarm control and shopping list.
Then i have like two camera icons, one with full screen mode and the hi res stream that only is visible for me as Admin/owner on my computer. The other camera icon is only visible for me and my girlfriends iPhones user accounts and there i have low res stream.
I think you get what i mean but my question is: can i solve this in a better way?
Have a nice day
You can make multiple dashboards, and change which dashboard is the default shown for each client. Note this is purely for convenience, and shouldn't be assumed to be "secure". Any user in home assistant can still see all the entities and toggle all the things, if they dig enough.
thank you @vast crane ,
its not really an security issue but lets say i want my girlfriend to see cam1 and cam2 and i only want to see cam 3 and cam 4
with my solution i'll have to create three different "camera pages". Is there a way to set visibility on each item/card on a menu's page?
More realistic example. We both want the alarm card on the Home page but only she want the shopping list and i want something else there.
I think there are maybe some custom cards you could install that change visibility per user, but I don't believe that's part of the default package.
Ok, thanx.
As a newbie i want to stick to as much as default stuff as i can 😁
yes
To format your text as code, enter three backticks on the first line, press Shift+Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
you're also asking an #integrations-archived question in the frontend section
well, thats me, a complete newbie. i will remove it. Sorry
Is there a way to control the full height of a dashboard so it doesn't extend lower than the browser window? This dashboard only used on my desktop.
i'm looking for simple, short code for change element color in Floorplan if state is on or off
I keep having trouble adding custom cards from HACS. I follow the installation steps as outlined. Install via HACS, verify the resource shows in the Settings/Dashboards, but the card doesn't show up in the list. I've refreshed the browser, restarted HA, cleared cache, tried Firefox and Chrome. Never shows. Any other options?
What path did you use for the resource?
/hacsfiles/text-divider-row/text-divider-row.js?hacstag=179788256141
this is what HACS created when installed
Hi! Can someone say me how can I with minimalist make the subview to false?
I've tried some things but didn't worked...
Someone has an idea?
Hi, I am new to HA and would like some help with the following card config. Error reports bad indentation of a mapping entry (5:3). Thanks in advance.
type: button
name: Net Power Consumption
styles:
icon: mdi:transmission-tower
- color: |
[[[
if ('sensor.grid_import_power' > 0) return 'red';
if ('sensor.grid_import_power' == 0) return 'green';
]]]
tap_action:
action: none
hi, I'm asking to see if this is a known issue: the automation frontend gets refreshed everytime a trigger is actioned, this holds true for firefox and the android companion app as well
for instance, in the companion app if you have an automation with a /1s trigger and you go into the overall automation screen (not the indiviudal entry) and click the hamburger menu for one of your automations, it cancels the menu each time a triggering happens
on firefox, I am scrolling down within the automations screen and every time that trigger happens it takes my scrolling just a bit upwards to where I was a seocond ago before the trigger
There error is saying that the - color and the four lines beneath it need to be indented by two spaces. However, I don't think you can change the color of the stock button card via YAML. Can probably be done with card_mod.
type: button
entity: light.hallway
tap_action:
action: toggle
card_mod:
style: |-
:host {
{% if is_state('light.hallway', 'off') %}
--card-mod-icon: mdi:light-switch-off;
--card-mod-icon-color: red;
{% else %}
--card-mod-icon: mdi:light-switch;
--card-mod-icon-color: yellow;
{% endif %}
}```
Would be very helpful if someone could have an idea... Thanks again!
I do wonder about translation for the Settings/System/Network and then "Network Adapter" part?
"Configure which network adapters integrations will use. Currently this setting only affects multicast traffic. A restart is required for these settings to apply"
Where can I find that? Tried to search for it in Lokalise...but no success yet 🤔 Would like to translate that part. Perhaps it's not possible?
How do I put an icon in the sidebar for a specific part of HA? I would for example like a button to the logs
Is it just via config file, or are there "toggles" for general internal links?
I'm hoping someone can help me. I am trying to pin a header to the top of my dashboard that when I scroll, the card at the top stays and cards below should scroll behind it. Anyone know of a way to accomplish this?
Does somebody know why this is not working?
type: custom:button-card
entity: media_player.denon_avc_x3800h
icon: mdi:audio-video
show_name: false
state:
- value: 'off'
icon: mdi:audio-video-off
tap_action:
action: call_service
service: media_player.toggle
service_data:
entity_id: media_player.denon_avc_x3800h
it doesn't toggle the avr 😦
action: toggle doesn't work..
never mind.. it's
tap_action:
action: toggle
got confused since the readme said it's default
since it is the default, you can leave out the whole tap_action section.
nope, then it opens the info thingy
interesting. maybe it has something to do with the media_player entity.
Anyone have any suggestion for pinning a card to the top of the page?
Do I need Custom Panel if I want a direct link to my log in the sidebar?
what is better for a wallmounted android tablet: HA companion app, wallpanel, or fully kiosk browser?
fully kiosk works perfectly for me
Why dont you just move your card up to the top?
i noticed I only got 2 columns in lovelace as with wallpanel i got 3
you could use a grid card with 2 colums and but your cards inside that
custom layout cards lets you even edit the width of the columns if you need that
my goal was to have 3 columns. would using a grid reduce the overall width
I do have it at the top but I wanted to be pinned there so when I scroll it stays in place and everything throws behind it. Pretty much like a permanent header
Oh thats actually a pretty good idea! Cant help you exactly with that.
But im using all views as „hidden“ or i dont know what it says in english, but it gives you space in the top bar.
And with custom „header cards“ you can set cards for the header like this and create actions on tapping them
Thats „header cards“ and then im using custom mushroom chips card
You can use the grid card and edit your view to show as a panel, so the grid gets scaled up completely from left to right
excellent! will try that now
If you even want different columns, you can use the custom layout card, than you can create grids like 10-30-60 or whatever you need
You can check my Gists or lookup the link via the community post. Or see the issue on Thomas repo for the sidebar mods
That may work, can you tell me how to set a custom header card?
Any way to disable the temperature display? Reason 1: it's ofcenter reason 2: it doesn't update fast
Hard to know by only able to guess what card it is and how it is configured from only this image
Hi all, after no luck on the forum... does anyone know how to horizontally scroll a card? I have a meteo card which I can set to (say) 24 hours wide, which looks great in panel view. Now I want to have it in a normal view and scroll to the right. So in essence my question is :can a card be 'bigger' than its column and scrolled, e.g. by adding it to a hor/ver stack?
Thx!
Is there any way to rearrange cards on a page with more control?
I'm trying to put two cards in the middle on top of each other, but whenever I click the up/down arrows they skip that middle column
Should I exclusively use grid cards for things like this?
I use the vertical layout card and put 'break' cards which nicely lets me choose which card in which column
Thanks for the tip!
Dumb question but you certainly know a good alternative
What's the best option / card to add my camera streams into my UI?
Usually you can adjust the adjust with a template
adjust the offset
but be carefull when you do that with tuya hardware. Tuya is a reall mess when it comes to local adjustments, and is more cloud based than local based. I find it illegal that they never got a fine for the amount of data collection they do
Hi,
Is there a thermostat card with fan and swing mode available on the card itself so it's accessible without clicking the more options button?
I'm using the latest HA version and lovelace. Thank you.
Need some help with custom:stack-in-card. Getting unexpected results.
@swift eagle I converted your message into a file since it's above 15 lines :+1:
This is the result. I am trying to group everything into a single card without space in between but it is resulting in 2 rows.
@swift eagle Try ```yaml
type: custom:stack-in-card
mode: vertical
cards:
- type: horizontal-stack
cards:- show_name: true
show_icon: true
[...shortened...]```And then the same for the second horizontal stack-in-card.
- show_name: true
@tribal galleon thanks. Look like your post was truncated. Could you resend?
I didn't send the whole yaml. only the top couple of lines. Changed your lines 5 & 33 from - type: custom:stack-in-card to - type: horizontal-stack.
Can you get this yourself on a page or is it only visible in the Energy tab?
@swift eagle Added this to each of the button cards to remove the borders: yaml card_mod: style: | ha-card { border: none; }Requires lovelace-card-mod (https://github.com/thomasloven/lovelace-card-mod).
UPDATE: Since custom:button-cards were used, this works too: yaml styles: card: - border: none
@tribal galleon Awesome! Looks great!
Yes you can create your own custom energy dashboards: https://www.home-assistant.io/dashboards/energy/
Just add a card type: energy-grid-neutrality-gauge
using fully kisok browser, is there a way to get notifications to popup? in the HA settings for the user in fully kisok browser, the option for push notifications if greyed out and says requires SSL eneabled.
When I look at the Overview dashboard that was default in HA, I see "lovelace/0" in the URL. When I go to Settings/Dashboard and create a new one, it doesn't have "lovelace" in the URL. So ... I'm not using lovelace?
Maybe I should rewind a step. I followed some instructions to add this frigate-hass-card and restarted, but when I edit a dashboard I don't see any way to add this card. That sent me off to try to figure out why.
Hi,
Is there another thermostat card that lays out the options in the more options menu (3 dots or hamburger menu) on the card itself so that I don't have to click the more options menu to access them? Or is there a way that I can add them separately?
Take a look at this page. Author describes a couple of HA Thermostat Cards. Maybe one of them would be more to your liking. https://smarthomescene.com/blog/top-8-home-assistant-thermostat-cards/
@tribal galleon Thank you.
Hi all
I have a picture-elements card
where I have some elements (IP webcam, switches, lights etc...)
and as background I have the floorplan map of my house
Is there a way to avoid the background image to be reloaded
each time the page refresh?
In lieu of using care_mod to remove the border, is using glance card an alternative to achieve the same? I need to do the same but thinking to test out glance card
Hey,
I have a picture elements card and I was wondering, if I could somehow check the color/transparency of a pixel, that got clicked and then do actions accordingly. In my example I want an action but only if the pixel clicked is non-transparent
I think it depends on what you're trying to achieve with the card. While the vertical-in-stack and glance cards will basically look the same, the glances card is more intended just to show the state of a couple of entities while, in the example above, chrismo16 used custom:button-cards which can do just about anything you want to design. The card_mod is used because, IMO, the vertical-in-stack has not been updated in three years and some card design elements have changed over that time.
i'm trying to remove all those borders
i'm wondering if i should just use card_mod to remove the boarders
or there is another method
each HDD icon will flash when there is IO activity. it will switch from gray color to green
yeah i just tested the glance card and it didnt' work the way i wanted. glance card's functions are too simple
I'd say give the vertical-in-stack card a try. It might remove the border like the card is intended to. It just depends on how it reacts.
What card are you using in the screenshot above?
custom button-card
@small osprey I converted your message into a file since it's above 15 lines :+1:
how do I paste codes properly here?
use three backwards tick marks ` <code> then three more backwards tick marks. But you're limited to 15 lines.
ok
- type: custom:button-card
entity: sensor.netdata_sdm_busy_activity
icon: mdi:harddisk
name: SDM
aspect_ratio: 1/1
styles:
icon:
- color: gray
- width: 60%
card:
- font-size: 12px
state:
- operator: template
value: |
[[[ return entity.state > 0 ]]]
styles: icon: - color: green - animation: blink 1s ease infinite
Since you're already using the custom:button-card, I would say go with the card_mod route to remove the border.
To format your text as code, enter three backticks on the first line, press Shift+Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
i'm new to all these. i spent hours searching on home assistant forum to put these custom cards together
Consider, too, templating your cards, since you're creating 6 identical cards, you can create one template and each card can reference it. It will cut way down on your amount of code and make it easier to make changes across all the cards at once. https://github.com/custom-cards/button-card#configuration-templates
thanks for the tips. i will look into this
i still want to make more modifications on those six hdd icons
but one mod at a time
Here, four lines of code is used instead of ~40 lines and I have seven sensors shown.```yaml
- type: custom:button-card
template: motion_detector_animated
entity: binary_sensor.living_room_motion_detector_on_off
name: Living Room
ohh nice.....look a lot cleaners with just 4 lines
yup. and like I mentioned, one spot to make changes to the template that will update the cards that use it
best way to cast a dashboard to a google hub screen 24/7 but still show time when on screensaver mode on the hub
i remove the border...but i can still see the grid
the card color doesn't blend into the background
guess i have to change background color?
styles:
card:
- background-color: transparent
- '--ha-card-box-shadow': none```
thanks. it works. what does '--ha-card-box-shadow': none do? i removed the code but i couldn't see any difference
IIRC, it might be the shadow element that goes along with a border.
styles:
icon:
- color: gray
- width: 60%
card:
- font-size: 12px
- background-color: transparent
- '--ha-card-box-shadow': none
- border: none
I forgot. This might work instead of the card_mod... yaml styles: card: - background-color: transparent - border: none
I see you noticed it too. 😄
right. i don't need the '--ha-card-box-shadow': none
thanks a lot!
it works nicely now
one more question. it's another card. hold on
I researched for like a couple days trying to see how I can put 33c onto the same line as others
just couldn't figure it out. let me paste the codes,
i'm using apexcharts for this one
adjusting the font size doesn't adjust the spacing
consider a grid card or custom layout card where you can set the number of columns.
here are the codes under apexcharts
on desktop, the card display fine. it's just on my cellphone where 33c expand to a second line
- type: grid
columns: 4
square: false
cards:
- type: custom:button-card
template: generic_custom_button
entity: light.bedroom1
name: Nightstand
icon: mdi:lamp```
Changing to 5 columns
ok thanks. will have a look
wait, that might not work. didn't realize the temps were coming from the series data in the apexcharts card. I imagine there has to be some way to define something similar.
yup, that's right. it's from a series data
still, this is helpful. later, i have to create a card where I need to specify the number of columns for custom buttons.
If there isn't a specific setting that allows you to easily change the series data displayed, you could always create your own card. From UI Lovelace Minimalist, an apexchart card was designed "inside" a custom:button-card. By the layout was defined with three entities displayed. https://ui-lovelace-minimalist.github.io/UI/usage/custom_cards/custom_card_apexcharts/
Might be bunch of work but at the least the cards would show up how you want it.
this may work too. because I actually plan to have a dashboard with simplified graphs, and a second dashboard with apexhcarts that have more data and granularity.
thanks again.
oh i actually have UI Lovelace Minimalist card installed, just haven't explored it yet.
@small osprey We talked earlier about box-shadow. Forgot that I use it on my brightness selector buttons. When the light is at the specified percentage, it "lights up".yaml styles: card: - box-shadow: inset 0px 0px 5px 1px yellow - border: 1px solid yellowRemoving inset allows the shadow to go outwards.
A couple of days ago you had asked about pinning a card to the top of the screen that won't move when scrolling. Perhaps this can get you started. yaml type: markdown content: '{{ now().strftime("%m/%d/%Y, %H:%M") }}' card_mod: style: | ha-card { background: red; } :host { position: fixed; top: 0px; left: 75%; z-index: 99; }Using card_mod, the red markdown card shown in the screenshot is "pinned" on top of the header (top:), will not move upon scrolling (position:), and other cards move underneath it ('z-index:).
I feel like I'm missing something fundamental but once you install a them from HACS. How to I enable the theme?
From your profile:
I found it right when you sent that msg. Thanks so much. I knew I was missing something simple.
Need some help. I intentionally display the border to show you guys. Is there a way to make a card narrower?
i feel that there are too much unused space between the cards
styles:
card:
- background-color: transparent
icon:
- color: gray
- width: 50%
name:
- font-size: 10px
- height: 30px
img_cell:
- height: 60px
- background-color: transparent
- margin: '-10px 0 -13px'
custom_fields:
io_activity:
- position: absolute
- left: 70%
- top: 5%
- height: 20px
- width: 7px
i feel that my codes must be un-optimized / not streamlined. I wanted to get things to work first and then re-visit the codes to streamline things
i guess one way is to make my icons bigger...
yup, making the icons larger works. But not sure if this is the optimal way
this is amazing
i got bummed out on HA coz notthing was going right so i packed it in for a hwile
im trying to get a more dynamic way of getting entities that have set attributes and then using them for my cards
so i dont have to list every device that has a battery for exa,ple
any ideas?
figured it - auto entities 🙂
Do I need an add-on or something to add my own shortcuts in the sidebar?
No, addons can't do anything to the frontend. This can help: https://gist.github.com/balloob/580deaf8c3fc76948559c5963ed4d436
Thanks, that should work. And that's not a file that will be overwritten at any point during a HA or HAOS update?
No. It's a resource + some configuration in configuration.yaml
It also depends on what you mean by 'shortcuts'. That will add sidebar items to redirect to other HA pages, panel_iframe can embed other sites into HA
type: iframe
url: https://www.youtube.com/embed/itdpuGHAcpg?autoplay=1&mute=1
aspect_ratio: 50%
Does anyone know how to get the autoplay working? I still have to press play to start it.
It's for a magic mirror.
@tranquil tiger I converted your message into a file since it's above 15 lines :+1:
Hi all, trying to change the text to red based on the humidity value. I'm not very proficient in Yaml yet can someone review and let me know why the text isn't changing to red ( at all)
card_mod:
style: |-
${ if ( sensor.temp_sensor2_humidity_2 =>'65') {
'ha-card {color: red;}'
} else {
'ha-card {color: red;}'
}}
@steep drift I converted your message into a file since it's above 15 lines :+1:
@tranquil tiger
Anyone know if I can get a vertical line on a grafana bar graph to indicate a certain time of day? For example if I have a graph that spans 48h and I want to show midnight?
Does anyone else notice scrollbars disappear from web ui after a while? A refresh of the browser/tab resolves it but...
Can somebody helps me out with CSS in custom cards?
I tried it via Webpack and DOM Style Element, but it's not recognised by Browser...
I see the Style Tag in the Head Section but its not recognised by the DOM Elements...
Hi,
id like to integrate the map of this website into my dashboard. But i want it to be always updated.
(https://tracking.clubocean.org/animal/willy)
How can i do that?
webpage card
yes but then i only see the conplete page, i only want to see the map
find the code for the map only then?
i tried, but the markers seem to he manually written into the html code, so if i copy it, its not always updated
yeah, they are
['May 24, 2023 ', 37.82931081282506, -72.79541015625001],
['May 26, 2023 ', 37.91170058826019, -72.68554687500001],
['May 28, 2023 ', 38.04592811939912, -72.72399902343751],
it's also pulling from 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
is there a way to scroll down the webpge card by default?
i used the scroll wheel
I just added one of those to my dashboard to see what you'd see
of course, but the idea is to not scroll and just see the map
Can somebody helps me out with CSS in custom cards?
I tried it via Webpack and DOM Style Element, but it's not recognised by Browser...
I see the Style Tag in the Head Section but its not recognised by the DOM Elements...
One message removed from a suspended account.
Have you tried using user defined settings just to ensure Kiosk Mode is working? yaml kiosk_mode: user_settings: - users: - derek ignore_entity_settings: true hide_sidebar: true hide_search: true hide_assistant: true - users: - tablet hide_header: true hide_sidebar: true hide_menubutton: true
kmc
[[[ if (states['sensor.netdata_sde_read_activity'].state &&
states['sensor.netdata_sde_write_activity'].state> 0) return `<ha-icon
icon="mdi:circle" style="color: rgb(116,195,101); animation: blink 1s
ease infinite"> </ha-icon>`
return `<ha-icon icon="mdi:circle"
style="color: gray;"> </ha-icon>`; ]]]
need some help. I'm trying to create a condition if either sde_read OR sde_write is greater than 0
what is the code for OR condition?
thanks. I have no IT background
just learning from scratch
(states['sensor.netdata_sde_read_activity'].state > 0 ||
states['sensor.netdata_sde_write_activity'].state > 0)
this seems to do what i'm looking for
Hi! I have for example multiple windows in one room and want to show "open" if at least one is not closed. Is there a more elegant way then using templates? Thanks!
You can create a group for the windows https://www.home-assistant.io/integrations/group/
Exactly what I was looking for. Thanks!
`template:
- sensor:
- name: "gas_zahlerstand_kWh"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
state: >
{% set kwh = states('input_number.gas_zahlerstand') | float %}
{{ ((kwh) * 11.539) | round(1, default=0) }}`
- name: "gas_zahlerstand_kWh"
I have this template sensor in HA. How can I add a friendly name to that?
Since I created it in the configuration.yaml I can't use the UI for that
It should just be a matter of adding friendly_name: to the sensor. Here's an example that I have: ```yaml
- platform: template
sensors:
dashboard_date:
friendly_name: ddd m-d
value_template: "{{ now().timestamp() | timestamp_custom('%a %-m-%-d') }}"
icon_template: mdi:calendar-clock```
If you add an unique_id you are able to change that in the UI
I can't remember. I used to have unique_ids set for my light groups (before light groups were a thing in HA). I forget why I had to do it back then. I have since migrated away from "light groups" and now just use light. defined through the UI. Though I still have the remainants left behind in a lights.yaml file. ```yaml
- platform: group
name: Living Room Lights
unique_id: 706c70ba-4a38-11ec-81d3-0242ac130003
entities:
- light.living_room1
- light.living_room2```
So as unique_id should it be "sensor.gas_zahlerstand_kWh"?
I have tried it like that but the UI still tells me there is no unique ID configured
In theory, to answer your question, yes. I believe you can.
So no to that. You need to generate a UUID. https://www.home-assistant.io/faq/unique_id
Here's the one that I used (from my browser history): https://www.uuidgenerator.net/
So, I just plugged in a unique_id and did a quick reload. Before:
After:
Ty I got it. But you don't need generator for the UUID. You can write anything you want
While that's true, a UUID ensures it a duplicate is not already defined. In fact, a v1 UUID uses the timestamp and the MAC address of the computer it was generated on. v4 is random with 5.3x10^36 possible combinations. (I was bored and reading Wikipedia about UUIDs... https://en.wikipedia.org/wiki/Universally_unique_identifier)
If your entity comes from yaml and the integration creating it does not provide a unique_id, then you won't be able to edit it in the frontend.
and typically, if the integration offers a uniuqe_id option, then you can put anything there. It does not have to be unique across your whole system just that integration.
I have something strange happening with my desktop UI where the cards are appearing in the wrong position. However, if I go to mobile, they appear in the correct position. What could cause this?
Define "wrong position". You're aware they dynamically rearrange based on viewport size?
Yes, I know they move around on desktop. However, it might just be easier if I show you an example. You'll notice there are sections, specifically we can look at the "devices" section. While the vacuum and display appear correctly underneath "devices" on mobile, that is not the case on desktop. Furthermore, something odd is happening now where a newly created card will not append to the end of the cards.
Is this autogenerated dashboard, or something you created?
I created it.
What is "Devices" and why do you feel that a vacuum should display beneath it?
because of the defined order of the cards.
But the cards are not laid out in order.
Let's simplify the problem. Why would the order differ from device to device. I get that they dynamically change based on the viewing medium but the order should not necessarily change.
I think you are not using the same definition of "order" as me. The way the layout engine works is that each card is assigned to one of the three columns based on the estimated height of those columns. If you have 5 cards in order 1,2,3,4,5, you might see 1 & 5 in the left column, 2 in the center column, and 3 and 4 in the right column.
The "order" of the cards does not dictate which column they go in.
Okay, that answers my question. My idea of how it worked was different.
well it does and it doesn't
the calc is simple, but it doesn't make sense when you don't know it
You could use something like layout-card to have better control over card placement
Is this custom?
Yes it is
it plops the cards in the order it receives, 1 card in each column. However, it will minimize the vertical scrolling when it starts building up cards in each column, so then it gets confusing to follow
Before jumping to custom cards, I would just suggest use vertical stack to put your devices in a stack under "devices" heading. Then they will always appear together, though not necessarily in a consistent column.
but it's all based on screensize
Okay, you guys have given me some good pointers. I'm going to play around some more. Thank you for the help.
oh yeah, and it doesn't recalc live. So when you refresh the page, things jump. 🎉
and it doesn't optimize either
so it minimizes the scrolling for the last few cards, not all the cards together
it's not a great algo
Is it possible to move a card so I don't have to re-create them again?
switch to yaml mode
You can move them in yaml if you're comfortable with that, cut & paste, etc.
Yup. That makes sense.
I have the companion app on my phone. I want my friend to also be able to access the home assistant companion app, but I don't want them to have access to my full dashboard. Is the users the best way to achieve this?
there's no way to do that reliably
if they know what they are doing, they will have access to the system
I see. This isn't the kinda guy who is gonna plug a url in there, so the end goal here is to give him the companion app, without him signing in as me.
Then you can just set up a basic user
but he will still have access to dashboards
unless you hide them based on the user
np
I have a GE washer/dryer/oven and I'm looking for recommendations on how to display information on them in my dashboard. Is entities the best way?
Is this a FE bug? No Confirm or Safe when deleting an Alias
If I delete an alias and return to the VA settings it is still there.. https://github.com/home-assistant/frontend/issues/16675
Is there a list of variables you can use like {{ user }}?
Depends on the card. Most cards don't support Jinja at all
The title card apparently does by allowing the user variable. What I want to do is display the current time and date in a text. Are there variables for that?
that's just standard Jinja via now()
see the links in the channel topic for #templates-archived
Hi sorry, im relatively new to
HA and still learning. In coding, what is the difference between == as opposed to a single =
== is used in comparison. (is x == y?) = is used to set a value of a variable. (variable = true)
don't get me started on === 🙂
I was thinking about that one too but decided to leave it out. 😉
<REDACTED>
Thanks for the pointers @errant plover 
This is causing brain damage
But thanks for the responses and i get it now with the examples provided
Only if you want to get banned. https://www.home-assistant.io/blog/2023/01/23/help-others-leave-ai-at-the-dor/
quick question, is it possible to have only one state label use custom font in picture elements?
or is it only markdown or others specific?
building up my dashboard start url and after a custom font for clock
Hi, could someone help me on this?
How to add services in HA sidebar while being secure in reverse proxying?
Hi friends, how could I add a 'and" to this? I'm trying and I can't seem to make it work.
{% elif state_attr('fan.bedroom', 'percentage') | int == 100 %}. This way it works.
But if I try and add a and, like this: {% elif state_attr('fan.bedroom', 'percentage') | int >= 75 and state_attr('fan.bedroom', 'percentage') | int <= 100 %}
What am I doing wrong?
try wrapping each of the conditionals with parentheses.
{% elif (state_attr('fan.bedroom', 'percentage') | int >= 75) and (state_attr('fan.bedroom', 'percentage') | int <= 100) %}```
You technically don't need to include the second conditional since any percentage greater than or equal to 75% is already going to be less than or equal to 100%. So, just using {% elif state_attr('fan.bedroom', 'percentage') | int >= 75 %} will give the same result.
Subsequent percentages are the same way. If your next line is for 50% and larger, {% elif state_attr('fan.bedroom', 'percentage') | int >= 50 %} will "catch" the next range of numbers. You don't need to define is as >= 50 and <75.
Here's a short example that looks at battery state of an entity and shows an icon: yaml {% set state = (states(entity) | int) %} {% if state >= 75 %} mdi:battery-90 {% elif state >= 33 %} mdi:battery-40 {% else %} mdi:battery-10 {% endif %}
Wait, what? Really?
This is great, let me try this. The first code you gave me worked, but I certainly wanna give this a shot cus this will make everything so much easier.
I always assumed you had to specifically define them otherwise they'd... Overlap(?) think that's the word
So it would be this way?
{% set state = (states(fan.living_room) | int) %}
{% if state >= 75 %} mdi:fan-speed-3
{% elif state >= 33 %} mdi:fan-speed-2
{% else %} mdi:fan-speed-1
{% endif %}```
I think if you had multiple IF statements (without using elif and else) you would want to specify the range. So, java IF (state >= 75 and state <= 100) THEN ... IF (state >= 50 and state < 75) THEN ... IF (state >= 25 and state < 50) THEN ...But using elif and else statements, only one true event will happen. Checking: *Nope, nope, This one is true * --done checking.
Entity in quotesjava {% set state = (states("fan.living_room") | int) %}
some cards can pass the defined entity: "into" the code as the variable entity allowing you to not have to explicitly define it again. This becomes useful when copy&pasting cards and using templates like with custom:button-card.
@wooden stream you may need your first line to read {% set state = (state_attr('fan.bedroom', 'percentage') | int) %} since your first post showed you looking at an attribute but using my bit of code returns the state (which I'm assuming is just on/off).
@tribal galleon Thank you so much for this explanation. This managed to make me understand how it works much better, and also, it works for what I intended too.
I never understood the {% set state = (states(fan.living_room) | int) %} when it came to if's and I thought I had to specify everytime, and now for the attributes and everything it's getting much clearer.
Just out of curiosity, what does the "int" mean, most of the times I'm breaking a principle on those codes, it's related to the int part.
integer I think
int returns an integer. More specifically, in your example, take the value of the fan attribute and turn it into an integer because HA stores the value as a string which cannot be compared arithmetically.
Got it! Thank you again ^^
the set is used to define a variable so you don't have to repeat "getting the value" for each of your IF/ELIF/ELSE checks
I understood that, yeah, I was that guy that was defining the variable in every single line, sometimes twice in the same line with 'and' lol.
it happens
we code what works, then someone tells us how 'dumb' we are, then we get better
cycle of code
agreed. as you learn new stuff, you can always go back and adapt to the new techniques that you've learned. ultimately, ending up with better, more efficient or more useful code.
yup, you watch it go from large slow code, to quick and dirty one liners and it's magnificent
I still find myself a really dumb potato but definitely if I look back a few months ago... there's many improvements and efficiency going on.
It's quite magical hahahaha
this is the way.
I keep a couple of sections on my dashboard strictly for experimenting and figuring out how to do different stuff.
Very interesting. Card-mod?
I have recently done the same, I dunno WTF I didn't take over my dashboard before
Most of the "drama" I've been asking for help with has been here:
I was helping someone with a custom card and I was like WHY haven't I done this for myself
And I don't think people actually understand the struggles to make those icons move and show sometimes hahahahaha
card-mod allows you to charge elements of a card that may not be specifically able to.
Allows you to apply CSS styles to various elements of the Home Assistant frontend.
https://github.com/thomasloven/lovelace-card-mod
Yeah, I been using card-mod for a while but they're so versatile it's quite impressive what we can pull off with it.
same. I've helped others just to try to figure out how to make it work the way they want and ultimately end up incorporating their idea.
like currently I'm working on a scraper to track a leathrback turtle
and almost done
why? cuz someone asked how
lol
even got it to where it will work being hosted in HA (i think)
I recently incorporated some overlays into my main custom:button-cards. The Automatic shows the automation to automatically turn the lights on/off is active. Color temp and time on is shown in the other corner (but only when the card is on).
Double-tapping the card, turns the automation on/off.
that's slick
that idea came from someone's person card where they added more info that they wanted to see. phone's battery, for example.
classic
im working on something to stop me burning food in the kitchen, and forgetting my laundry in the washer/dryer
well, in my head at least I am working on it
I recently figured out how to make the icon for phone "adaptive" depending on its state. (Basically, like how HA already does it but Mushroom Template cards need a little bit of help.)javascript icon: > {% set battery_level = states('sensor.s22_ultra_battery_level') | int // 10 * 10 %} {% if is_state('sensor.s22_ultra_charger_type', 'ac') %} {% set charging = "charging-" %} {% elif is_state('sensor.s22_ultra_charger_type', 'wireless') %} {% set charging = "charging-wireless-" %} {% else %} {% set charging = "" %} {% endif %} {% if battery_level == 100 %} mdi:battery {% elif battery_level >= 10 %} mdi:battery-{{charging}}{{battery_level}} {% elif battery_level >= 0 %} mdi:battery-{{charging}}outline {% else %} mdi:battery-unknown {% endif %}EDIT: Fixed bug with wireless charging variable not showing the proper icon. Removed extraneous "wireless" variable and simplified to use the charging variable for ac and wireless charging. Simplified two IFs into if/elif/else.
I just noticed a bug in that portion of the code. Was not showing the wireless icon. Updated code above any it is working now.
But now that I did that, I can actually simply the code a bit and use only one variable for the charging portion instead of two.
See
This is the way
I read your code and didn't even realize it wasn't the right icon
But that one is new to me
how come that one is orange tho
When I originally made it, I had it working but then I made a change to the wired charger type. That line looked at the .battery_state and if it was charging, appended the charging- portion. I changed it to charger_type to make it more inline with the wireless portion, not realizing it broken the wireless charging icon because "charging-" was gone.
icon_color: |
{% set battery_level = (states(entity) | int) %}
{% if battery_level >= 90 %} green
{% elif battery_level >= 80 %} light-green
{% elif battery_level >= 68 %} orange
{% elif battery_level >= 56 %} yellow
{% elif battery_level >= 44 %} amber
{% elif battery_level >= 32 %} orange
{% elif battery_level >= 20 %} deep-orange
{% else %} red
{% endif %}```
ahhhh I should have known when the percentage was different
yeah. it just so happened to go into the different threshold between screenshots.
@wooden stream Here's another way of wrapping your head around IF statements: python icon: > {{ (states(entity)=="on") | iif("mdi:home", "mdi:home-off-outline") }} icon_color: | {{ (states(entity)=="off") | iif("green", "red") }}
Let me try and understand this last one... If it's off it'll show green?
no, if it was green change it to red
I was like, that's a big waaaaassssssssss hahahahahaha
my cat has a habit of jumping on my keyboard when she wants attention
two separate values. one for the icon; one for the icon_color. However, I should have them both checking for on and the results accordingly. My example is confusing to read...
Yeah, I understand. I was just confused if it was a way to do it: If off: Green, "else" Red.
more like if off + green then red
Yeah, other random question. What's the difference between | and > after the :
In all cases I tried, both worked, but I don't know when I should use which
- type: custom:mushroom-chips-card
chips:
- type: template
entity: input_boolean.guest_mode
content: Guest Mode
icon: |
{{ (states(entity)=="on") | iif("mdi:home", "mdi:home-off-outline") }}
icon_color: |
{{ (states(entity)=="on") | iif("green", "red") }}
press_action:
action: toggle```Off:
On:
That's shorter. I like that. I might adapt mine with that new code.
if input_boolean.guest_mode = on hide catvideos.library
You can essential do that with conditional cards/statements: ```yaml
- type: conditional
view_layout:
grid-area: media
conditions:- entity: media_player.plex_plex_for_windows_desktop_p54jk04
state: playing
card:
type: custom:mushroom-media-player-card
entity: media_player.plex_plex_for_windows_desktop_p54jk04```Only shows when Plex is playing:
- entity: media_player.plex_plex_for_windows_desktop_p54jk04
I want a button like that so I know I left the washer on
but still going thru in my head how
wait, you run plex for desktop?
🤔
The player. Server is on Unraid.
That's what I do (with conditional)
why am I doing it in web browser
I have plex app on all my TV's but when I'm using the PC as well I just usually have it in a browser
I have webplayer too but I use the app full-screen on a 42" screen on the wall.
because my office TV is also connected to my PC as a screen
yeah this 55" has it installed as well
but I just normally open a browser cuz I can have my CCTV cameras and plex open on the same screen
I don't know why PiP wasn't really a thing with smart TV's
I really really really need to clean my desk
same. that's an old picture. made pretty just for the picture at the time.
possible to do a "round robin" for light brightness with a button press? off > 33% > 66% > 100% > off
what card are you trying to use?
it's a physical button
That would probably be something more for #automations-archived
lol I was told to ask here 😄
well I didn't know you meant a button, rather than on a card
ah, gotcha.
I do something similar via Node-RED. javascript var entity = "light.living_room1"; var entity_group = "group.living_room"; var brightness = parseInt(global.get('homeassistant').homeAssistant.states[entity].attributes.brightness); msg.payload = {domain: "light", service: "turn_on", data: { entity_id: entity_group, } }; if (brightness > 200) { new_brightness = 200 } else if (brightness > 150) {new_brightness = 150 } else if (brightness > 100) {new_brightness = 100 } else if (brightness > 50) {new_brightness = 50 } else {new_brightness = 255 } node.status({text: "From: " + brightness + " To: " + new_brightness}); msg.payload.data.brightness = new_brightness.toString(); return msg;https://pastebin.com/Y82bc7eQ
Have dedicated buttons on dashboard for brightness.
that's neat, but I am looking to do this with a physical button.
Hi, I am Marc, a recent (just a month or two) convert from Domoticz to HAS. So please bear with me.
I have connected HAS to Honeywell total connected, which is based on an evohome. Now I have integrated in HAS several rooms, and I want to plot the current temperature of those rooms in a history graph. So for the history graph I have selected the involved entities for example "climate.woonkamer" which is my living room. However the history graph automatically includes two temperatures, the current temperature and the "goal temperature". While I am interested in the first I want to disable the second. I concur I am a noob, but I cannot find how to achieve that?
What you want is an automation. This is basically what you're looking for: https://community.home-assistant.io/t/cycle-thru-brightness-with-one-button-based-on-current-brightness-value/308236/2
It is an older post and doesn't use the automation UI. I don't do automation via HA; I use Node-RED instead so I don't know the best practice for setting up what you want.
thanks, looking now.
This is what I've come up with so far. Not sure how to make it change to light.turn_off. This at least cycles down and returns to 100%. #automations-archived is still the better place for assistance.java service: light.turn_on entity_id: light.living_room_lights data: brightness: > {% if is_state('light.living_room_lights', 'on') and state_attr('light.living_room_lights', 'brightness') | int >= 250 %} 168 {% elif is_state('light.living_room_lights', 'on') and state_attr('light.living_room_lights', 'brightness') | int >= 165 %} 81 {% else %} 255 {% endif %}
Instead of cramming all that into a single light.turn_on service, suggest using a "Choose" action, in which case you can call a different service depending on the current state.
I think maybe you meant to say #automations-archived is the better place for assistance.
yup. typo. corrected.
how do I change the background color of the yaml editor?
nice that works.
tyvm
hmmmm, going to look into this too.
can we change the font in picture elements card for just one of the state labels, I tried the fonts.css, and wolf conversion and it does not seem to work on anything lol. even markdown
So, this doesn't let me select the group of lights as a whole, nor does it seem to allow me to get the value of the brightness.
Lets move this to #automations-archived
font-family: "led_counter-7";
src: url(/local/led_counter-7.woff2) format('woff2');
}``` this is fonts.css
let css = '/local/fonts.css?v=0.005'
let link = document.createElement('link');
let head = document.getElementsByTagName('head')[0];
let tmp;
link.rel = 'stylesheet';
link.type = 'text/css';
tmp = link.cloneNode(true);
tmp.href = css;
head.appendChild(tmp);
console.info('%c Font Style sheet loaded', 'color: white; background: #000; font-weight: 700;');
}
loadcss();``` this is the loadfonts.js
and added to the loadfonts.js to resources but still no joy
Brooos anyone could give me a hint here please:
how can i apply styles to that <mod-card> element?
@lone belfry I converted your message into a file since it's above 15 lines :+1:
Goal:
Can someone assist here:
using the card-mod integration to try and add some color visualizations. I'd like to change colors based on values:
- entity: sensor.sutro_acidity_sensor
card_mod:
style: |
:host {
{% if states.sensor.sutro_acidity_sensor < 7.4 %}
color: red;
{% endif %}
}
secondary_info: none
name: PH
This doesn't seem to work, what am I missing?
hello can someone help me with installing https://github.com/D34DC3N73R/ha-nfl-card/blob/main/README.md -- successfully installed it but I dont know how to add it to my dashboard now
did you do the things I suggested in #add-ons-archived
Adjust for your sensor and values but this should put you on the right track.javascript card_mod: style: |- :host { {% set level = states('sensor.s22_ultra_battery_level') | int %} {% if level >= 80 %} --card-mod-icon: mdi:check; --card-mod-icon-color: green; {% elif level >= 40 %} --card-mod-icon: mdi:thumb-up; --card-mod-icon-color: yellow; {% else %} --card-mod-icon: mdi:thumb-down; --card-mod-icon-color: red; {% endif %} }
I am trying to install the team tracker card and am getting the error custom element does not exist https://github.com/vasqued2/ha-teamtracker-card/issues/20
how do I create a cusstom element?
@wicked sapphire Try refreshing your browser, clearing cache, and/or restart app or HA
thanks man that was it
This works well, one last question if you don't mind... I see this is all for icons. is there a setting that will allow me to change the color of the value text as well?
--card-mod-text? I can't find this in the card-mod config document.
If you want to incorporate into each of the IF statements so you have a different color of each: --primary-text-color: green;. If you want to change it just in general you would add the ha-card key.yaml card_mod: style: |- ha-card { --primary-text-color: hotpink; }
--secondary-text-color: blue; can also be useful depending on the card.
How can I get a little bit more control over the height of each of my vertical stacks? Ideally, I'd like for them to be all the same height. I was looking at "layout-card" in HACS but I don't think that will do what I'm looking for, unless of course I'm missing something.
Consider implementing stack-in-card to "group" your rooms a bit better. This screenshot shows a stack-in-card with two horizontal-stack cards (for the rows) and each one holds three custom:button-cards. (card_mod added to remove borders).
You can also consider a grid card for each of your rooms to give a different layout configuration. Here, the first grid card is set for four columns while the second is set for three columns (with a "hidden" button in the middle).
I think if you consider that most of your buttons could be shown at 50% of their current width, things may look a bit more to your liking.
Yeah, that might be an option. Thanks for the pointers.
you can also use custom:layout-card for a lot of control. I still don't know how to get it to completely cooperate but I got it roughly to my liking. Various vertical- and horizontal-stack and grid cards scattered throughout. (It doesn't look lined up on the desktop but looks better on the tablets.) yaml type: custom:layout-card layout_type: grid layout: grid-template-columns: 49% 51% grid-template-rows: 40px 370px 75px 90px 300px grid-template-areas: | "col1 header" "col1 main" "col1 media" "gap footer2" "footer1 footer2" margin: '-4px 4px -4px -4px' padding: 0 card_margin: 0
I think that's more inline with what I'm looking for.... I'll do some more research there.
modded the mushroom light card to support a 2nd entity 🙈
(currently used for smartsocket of the light)
so the power button controls the smartsocket and the rest of the card controls the light?
Anyone have luck aligning cards with card mod? I'm trying the following but it doesn't really go to the start, kind of offset:
type: custom:digital-clock
card_mod:
style: |
ha-card {
background: transparent;
text-align: start;
}
anybody have a simple/powerful frigate card config at hand? I'm too lazy to go through the docs rn 😅
oh, its configurable via ui. how handy!
Is there a dashboard "on load" trigger that can trigger an automation when a specific page of the dashboard is loaded?
exactly
Hi all. I've starting putting together a new energy dashboard but the layout is very inconsistent, even on the same device/browser.
Sometimes I load it in a browser and the energy flow diagram and solar graph are on top of each other, which isn't what I want. Then I'll refresh and they'll be side by side, which is what I want. Same device, same browser, same resolution.
Any way I can make the behaviour consistent?
has anyone been able to get a custom font working in picture elements card? or on any card, I have tried both ways, resources adding googlefonts and via the fonts.css way none havve worked 😦
Use horizontal-stacks to force cards horizontally together
vertical stack card would make it look like the image on the right if that's what you want, otherwise horizontal stack would make it look more like the left
Hi guys, since I'm using https via a reverse proxy, the page refresh every 30sec ("reconnecting", I think). That give me issues by flushing what I'm doing. Any ideas?
Hmmm. If I put it all in a horizontal stack, it all gets smushed into one column:
you tried setting it to 3 wide?
I use vertical stacks for everything because that's how they look the best on my phone
Does your reverse proxy allow websockets? Any real-time functionality won't work without them.
There's no "3 wide" setting for a horizontal stack. You can use a 1-card dashboard in which case the root horizontal stack card will take up the entire page, or otherwise have to go to some custom cards maybe.
now everything configurable via UI:
If what you describe is reproduceable, I would be curious to see a frontend issue filed if sometimes the cards are laid out horizontal and sometimes vertical. That seems like it should be consistent.
That idea worked! 1 panel view and just have everything in nested stacks. Thank you 🙂
If you look at my dashboard posted a bit higher up (the one with the big Lights button), I start with a layout-card defining two columns - left side & right side of the screen.
The left side uses a vertical-stack to contain everything, a layout-card with three columns at 68%/18%/18% to hold the big button, brightness presets and RGB buttons. An entities card sits at the bottom wrapped with a layout-card that allows it to sit in the area defined as footer1.
The right side starts with a vertical-stack card, followed by a swipe card with some mushroom chips. Beneath that, a grid card with 4 columns holds the various custom:button-cards. A conditional card appears beneath that but only when Plex is playing. A layout-card pinned to footer2 area and defined as two columns at 35%/67% hold the weather-forecast and a picture card for the radar.
There are also gap-cards in between the dead space on each side.
If you look at my dashboard posted a bit
Hi,
I have 10 button cards to create a numpad. When pressing one of the buttons I want to append the respective number to a text entity. This works when I run it in the dev console for services but when I press the button nothing happens and the text helper stays as it is. Why is that?
This is the service call that works in dec console but not on the card.
service: input_text.set_value
data:
entity_id: input_text.enter_code
value: '{{ states(''input_text.enter_code'')|string + ''7''}}'
Is it possible to use something like trigger id's in scripts so I can make one single script for all buttons instead of one for each?
just make the script accept variables
Didn't know that was possible. Thanks!
Does anyone know if align-self works with the integration Layout Card? I'm trying to use it but I keep getting a card that spans the height of my column.
You most likely have to set the height of the card as well
with card mod? or does css grid have a trick for that as well?
probably with card mod
card_mod:
style: |
ha-card {
height: 10px
}
Am I doing this wrong? It didn't seem to change anything.
Still spans the entire height of the column.
you probably have to style it from layout card, not from the card itself
Hmm, okay, I'm not sure I know how to do that. 😦
check out the cardmod thread on the forums
I want to trigger an automation when a certain dashboard view is viewed. Is there an event to watch for that , or some other kind trigger?
is anyone here able to assist with card mod by chance?
Im wondering if anyone would be able to help, I have 3 smart speakers in the house, I would like a button with a few stations on it and when i click one it will bring up a option for what speaker to run it on? Im new to home assisant!
https://github.com/kalkih/mini-media-player this might help you.
That section is probably best
Thank you, I will take a read!
@shut robin I converted your message into a file since it's above 15 lines :+1:
Hey guys, does anyone have a text box that can use a string list to fill in autocotrect? I want something on my dashboard where you can start typing a suburb name and it shows you all the matching options in a list
that's a combo box that allows typing, it does not exist for HA
How can I style the inactive background of the mushroom light card brithness bar?
I already found how to change when active.
@tired ridge I converted your message into a file since it's above 15 lines :+1:
no one?
when people are around who can help, they will
hey, i had a similar view like this before but every block was colored differently, how do i get that again?
Hi everyone, so im trying to create a custom card and im getting this error: Custom element doesn't exist: template-entity-row.
im going by an old post on how to build this card and im guessing HA updates have removed this?
It's a custom card, so need to be added by yourself trough something like HACS
Hi, I have a few input_select helper and using that in a entities card. Is it possible to trigger something based on changing the values wihtout (!) using automations? I am not against automations but it becomes blurry to maintain if (!) I can do the same through the card settings (or tweaks). e.g. the change of a value should kick of s service
Is there a way to create a popup/flash message in the dashboard?
Note that I don't want a message as a notification but rather it to be displayed inside the dashboard.
I am currently using a conditional card that displays and entity with the message but was wondering if there are smarter ways out there?
browser mod can do this. Install it via hacs and call the pop up service via tapping a card or whatever
Hi, does anyone have a very nice widget that shows information about solar charging, how much power the inverter consumes, etc?
the built in energy dashboard should show that very good
I was thinking more about a custom widget in the panel, I have an emergency power system created in my workshop and I wanted to display information about charging from the solar panel, how much the inverter draws from the batteries and how much electricity is taken from the inverter for the workshop. I like the power panel
why on earth does setting a different default dashboard hide the auto-generated overview dashboard? I want a default screen with a handful of switches, but then I also want to be able to see the overview
How do I change device names? Is that not something I can do from the web UI?
I just figured it out... The layout on desktop isn't the best in this specific matter
I've embedded Proxmox as an iFrame in HA and it works great. However, I was wondering is there a way to get a longer lived token or extend the Proxmox UI timeout so I don't need to keep logging into Proxmox UI so often?
Thx! Will try it out!
This was exactly what I was looking for! Thanks you 🙂
Hello, I hope you are well tonight or today, wherever you may be. I am using a picture elements card and I have a couple images that are assigned with tap_action set to call _service: automation.trigger that triggers a reset for the timer when clicked or pressed. Then below those images I use a custom:button-card to display the value of the actual timer which counts down from 24h until the image above is clicked at which points it resets and starts counting down again from 24h. Its a medication countdown if that matters. I want to make it so the actual timer displayed below the image, ie: the actual numbers, can also have the same tap_action as the image so that touching the timer itself will also reset it to 24h. But when I copy and paste the code, it tells me I need an entity_id or device_id, even though the coding I am using works on the image and does include an entity_id. Does anyone know if it is possible to display the value of a timer and make it so that clicking it calls the service of an automation that resets the timer, or can someone tell me why it works with an image but not on a custom_button-card? This is my first time on here, but I've been using HA for about a year and came up with an awesome dashboard
ok so I got it, I know how to customise the font in each card by looking at the cards referance, so for example style: | clock-weather-card-today-right-wrap-center { font-family: "Orbitron"; } chages just the time font, but is there a way to change via code a state label font in other cards (edit its ok figured it out how to do the clock using custom button card and custom font (via mod card)
Is there a custom card similar to the custom-button that can have a graph "background"? I have buttons set up for each room and I want to put a temperature graph in the background my current version doesn't work the way I want the graph is in front
I have a template mushroom-chip-card (bc I dont want it to show the unit of measurement or more than 1 decimal to save space) but also would like to show the more info popup for the same entity when clicked. How would I do that? Tried this, which doesn't work (does nothing):
type: custom:mushroom-chips-card
chips:
- type: template
icon: mdi:ph
content: '{{states("sensor.ezo_ph_tsma"|round(1))}}'
tap_action: more-info
entity: sensor.ezo_ph_tsma
Also is it possible to translate Mushroom Cards?
@abstract trail I converted your message into a file since it's above 15 lines :+1:
"doesn't work correctly" isn't helpful
he's referring to the code uses | int but he needs the values as floats.
so would does that mean I put float?
I'd say, just take that part out and see what it does. EDIT: This won't work. Forgot the numbers are reported as a string. Requires | float per RobC
what card are you trying to mod?
@abstract trail I converted your message into a file since it's above 15 lines :+1:
Its a vertical stack, but others work fine without the decimal point
you at least need |float
Oh yup. I put that and it works perfectly.
Thank you!
Hey, is there a way to change the labels of the statistical graphs ?
(I'm talking about this)
nvm it's in the docs at the end https://www.home-assistant.io/dashboards/statistics-graph/
@abstract trail Also, you don't have to define the phlevel range. Meaning you only need to say if phlevel >= 7.8 then do stuff, followed by if phlevel >= 7.6 and then if phlevel >= 74, etc. The code is going to follow the first one that if find to be true and then it is done. Also, technically, the way your code is written, it will not fire properly at phlevels of 7.2, 7.39, 7.4 or 7.59 and will return else. (You're missing some equal signs or better number overlap.)
@mortal delta I converted your message into a file since it's above 15 lines :+1:
Where is the translations directory?
Anyone use the hacs custom expander card? Its great but the cards expand to wider than my phone screen
i can't get notifications to work. i've allowed them, and they show up in the registrations file, but i can't find the service. i've tried in chrome and firefox.
also notify.notify sends out the notification fine
now that i think about it this is probably a backend problem, is #integrations-archived the right place
also target works
issue raised in HA core
hello, i'm try to display a grid whit 4 card, the fist card is a button and i want the icon to be green, why my style not be applied?
I don't think the button card can use style:. You can do it with card_mod though and add a bit extra to it. yaml card_mod: style: |- :host { {% if is_state('light.hallway', 'off') %} --card-mod-icon: mdi:light-switch-off; --card-mod-icon-color: red; {% else %} --card-mod-icon: mdi:light-switch; --card-mod-icon-color: yellow; {% endif %} }
perfect exactly what i need
How can I hide this checkbox? I'm using the picture elements widget and it's brilliant, but there's one little detail that bugs me which is the checkbox when you click on something, I mean a photo that has a transparent background and the checkbox is visible
That's not going to help you get a response...
But what won't help?
You mean I sent some inquiries? It wasn't intentional, my discord got lagged and when I sent one message it was greyed out, then I sent another and it was greyed out too, and after a while a few were sent.
spamming the board. If someone can help, they'll see your message and respond.
fair enough. just noticed my messages lagging too.
So don't think I did it on purpose, I never send so many requests at once. It's just discord's fault.
Hi everyone! I had a difficult question... How can I put the button-card template in the default dashboard of Home Assistant??
I am stucked for 1 week...
Thanks.
I am using Minimalist, and I want to put it in the default dashboard, because so many dashboards are not good...
This error "Button-card template 'card_esh_welcome' is missing!" appears when I try to copy one card of the minimalist dashboard to the default dashboard.
How can I solve it?
I tried to put this code: button_card_templates: !include_dir_merge_named templates/button-card into the configuration.yaml but didn't work...
That definitely doesn't belong there
You need to define this templates in the dashboard where they will be used.
I did it also, but I doesn't know where to put it...
I put it also in the dashboard, next to title and before views and didn't work.
That's the error if helps: "YAMLException: unknown tag !<!include_dir_merge_named> (3:70) 1 | ... 2 | ... 3 | ... rge_named templates/button-card"
you can't use a !include unless you manage your dashboard in YAML mode
And the default dashboard is not in YAML mode ?
@unborn venture My dashboard's YAML: https://pastebin.com/gaFmay1B
Look at Line 62 which starts the button_card_templates section. I have several templates defined (generic_custom_button @ 78, blank_custom_button @ 111, oversized_custom_button @ 126, and others). You can see template usage at 1001-1006, for example.
The default dashboard is generated by HA. You would need to make your own dashboard in order to use custom:button-cards and templates.
This dashboard is currently being maintained by Home Assistant. It is automatically updated when new entities or dashboard components become available. If you take control, this dashboard will no longer be automatically updated. You can always create a new dashboard in configuration to play around with.
Okay and is there a way to only have one dashboard? What I mean is if there is a way to remove the default dashboard.
I have already one that is working well, but the aim is to not have two diferent dashboards 🤣
I only have one dashboard, and it's in YAML mode
Yeah, but with button_card_templates ?
sure
Sure. But, the default dashboard can be useful even if you don't look at it all the time. So just hide it in the sidebar.
That's not elegant hahahah because you have to do it in all devices and if you're a family you need to do it in all devices 😬
Okay, and can you send it how you did it? Like @tribal galleon ?
I did it, but now I have the problem that it says that the custom element doesn't exist: vertical-layout...
It's strange because that is from Hassio
Could you @dark dirge send me your ui-lovelace.yaml? Or at least the start? When I do exactly what they say in the link you send, it appears the error of vertical-layout...
Thanks.
nope
that's not a default card and I don't use it, so what would that do?
nothing in my config is going to help you
And how can I add custom cards?
Thanks the problem was solved.
Hey Guys..
I am thinking about how I would achieve something and looking to see if anyone can point me in the right direction or if I am not thinking about something the right way..
Using NodeRed I have a JSON object that has an array of items in it.. The order of these items is important for the operations the node red logic performs.
Sometimes, I want to change the order of these items, or maybe someone non technical wants to change the order of the items..
I was imaging in a dashboard where someone could drag could reorder a list of names and that order would then be used to order the JSON in NodeRed..
Any pointers in the right direction, I can't seem to find something quite like what I am talking about, but also maybe there is a better way and I am asking the wrong question
what are you using to edit your dashboard, it is cool to see the live view
That's just the standard editor but in the code editor instead of the visual editor. You can find this button in the bottom right corner of the editor.
I see nothing just stand dots at top right
don't see code editor
are you using visual studio ?
that is all I see
if you go to edit dashboard, then go to edit a specific card, you have the option to "show code editor" and it shows the results of changes to that code in real time.
I have created this custom Dashboard, I created a custom menu bar. Using Kiosk Mode (and more other tools). On the left you see the search icon, and I am wondering if there is a way to add the actual "assist" function as a button next to it. Do you guys know if there is a service for "assist" I can call in a pop-up?
hello, can you please help me to add these state icons in a button card?
do you mean the number, or icons themselves?
I mean both, the black box that contains icon and the counter of "on" devices - and would be nice to change the icon color if any is "on"
How can I add CSS to mushroom title cards?
@vivid trout I converted your message into a file since it's above 15 lines :+1:
@vivid trout did you get that from chatgpt?
no I use it for my light counters
just seemed odd with the lingo you used and the coding seems generic. Using that style coding didn't exist in the past
@vivid trout I converted your message into a file since it's above 15 lines :+1:
thats how it is for my lights, just did not know if he wanted it for lights and plugs so made it generic
it has a lot of extra characters
yep I am know pro tbh 😛
{{ ['light.tv_strip', 'light.living_room_spots', 'light.living_room_ceiling', 'light.monitor'] | select('is_state','on') | list | count }}
that's the right number of characters 🙂
TBH, i'm surprised the if statement even works
that means somethign has changed in JINJA in the past few years that I completely missed
back in the day, scoping wouldn't allow you to do global variables like that
Yeah, but my point is: That used to not work
I don't think scoping around "if" statements has ever been a problem
they probably updated the script to make it easier for people wet around the ears 😛
loops, sure
maybe I'm remembering loop scoping incorrectly
I could swear it worked that way for if statements too
i made it so I just a one for all button on top of all other buttons for that room
Yes I do the same
okay - so using button-card (i guess) i would like to see the value from a template sensor and only the date from a datetime helper, and some text...could somebody help ?
Just put it all in the template sensor. You could either do some string manipulation, or this:
{{ "The date is " ~ (states('input_datetime.date_test')|as_datetime|as_local).date() }}
The date is 2022-08-22
{{ "Last cleaning day was on " ~ (states('input_datetime.rengoeringstid')|as_datetime|as_local).date() ~ " and lasted " (states('input_datetime.rengoring_slut')|as_datetime|as_local - states('input_datetime.rengoring_start')|as_datetime|as_local) }}
is this allright ?
Try it
it says Unavailable
have no idea whats wrong...was hoping for Last cleaning day was 05-06-2023 and lasted 01.30.33
You missed a ~ at least
thanks man 😄
But debug it by breaking it down into parts
Two questions: 1) When did the history graphs change to show % change/minute, and 2) is this what's being now reported to my automations that determine whether my vent fan should be on or off?
It looks like "%/min" is just the unit_of_measurement for your sensor. I don't think that's any special new behavior of history chart.
what does devtools say for that sensor?
I'm not a programmer and I'm stuck writing an if-then statement, can someone please help? I'm trying to write if this sensor called sensor.netdata_jellyfin exists, then y
i'm basically trying to detect if the app is running.
i looked up is_state but i'm not sure this will work
is it if (states['sensor.netdata_jellyfin'].state == true
the issue is that when the app is not loaded, this sensor won't exist.
it's only when this app is loaded, then this sensor shows up.
ok so working on my automotive only dash, I want to change the temperature reading in card to be in a solid circle similar to the way I have the light one, but a solid color with white text any ideas (i currently use this for the colors of the temps) - color: | [[[ if (entity.state >= 28) return 'red'; else if (entity.state >= 22) return 'orange'; else if (entity.state >= 16) return 'green'; else if (entity.state >= 0) return 'blue'; else return 'red'; ]]]
ok worked it out now, probs a jank way of doing it but it works
yeah, but how put this in the button? with an overlay?
you would add it as a custom fields, you can add as many custom buttons into a custom button via custom fields as you want, and just change style of them.
ah ok, I will try, thanks
Hey is there a way to only show the full Number and not 4 decimals?
Already changed it in the entity itself but in the Card it always shows 4 decimals?
click on the entity in entities, cog you should be able to change there.
Already did that and changed it to full number but the card still shows 4 decimals
hey
I'm totally new to this server. I use hac's big-slider-card (https://github.com/nicufarmache/lovelace-big-slider-card). It's written in Typescript and I was able to find and fix 1-2 bugs in the code, but I can't get it to compile for Javascript. Sorry for my bad english. Can anyone help me pls?
I'd say you can either raise the issue with the custom card creator, or otherwise create a template sensor that chops off the decimals and use that.
Thx yea i opened an issue on GitHub
Can someone please shed some light?
What card are you trying to get the if-then to work? There are two programming languages (primarily) used: JavaScript and jinja. I imagine if the sensor does not exist, it should return false.
You might use something like yaml icon_color: >- {{ is_state('binary_sensor.fire_computer_desk_plugged_in', 'on') | iif('yellow', 'gray') }} or yaml icon: | [[[ if (states['input_boolean.tester'].state === 'on') return 'mdi:lightbulb'; else return 'mdi:lightbulb-auto'; ]]]
Im using custom button-card
Ok thank you. Let me do some tests and report back later
The custom:button-card can also do some state: settings. ```yaml
type: custom:button-card
header: State modifiers
entity: input_boolean.automation_override
show_name: true
name: Automations
icon: mdi:lightbulb-auto-outline
state:
- value: 'off'
operator: '=='
styles:
icon:
- color: red```
- value: 'on'
operator: '=='
styles:
icon:
- color: green
- icon: mdi:lightbulb```
@small osprey the second bit of code posted above (with the icon: | works with custom:button-card.
Thanks noted. Will report back later. At work now. Much appreciated
custom_fields:
service_on_of: |
[[[ if (states['sensor.netdata_jellyfin'].state === 'on')
return `<ha-icon icon="mdi:circle" style="color: rgb(116,195,101)"> </ha-icon>`;
else
return `<ha-icon icon="mdi:circle" style="color: red;"> </ha-icon>`;
]]]
doesn't work.
let me provide more context.
@small osprey I converted your message into a file since it's above 15 lines :+1:
I think it's the way how I setup that sensor.
"cgroup_jellyfin.cpu": {
"name":"cgroup_jellyfin.cpu",
"family":"cpu",
"context":"cgroup.cpu",
"units":"percentage",
"last_updated": 1686087884,
"dimensions": {
"user": {
"name": "user",
"value": 0.0039455
},
"system": {
"name": "system",
"value": 0.0013370
When the jellyfin docker app is loaded, the above will appear in Netdata. so that sensor.netdata_jellyfin in HA is to check the "system" value, whi his always an numerical value, so I'm not sure of 'on' or 'off' state will work. Also, when the jellyfin docker is not loaded, those outputs above will not appear in Netdata at all and HA will throw out errors complaining about that sensor
@small osprey If the value is a number, then on/off won't work. Maybe something like yaml if (parseInt(states['sensor.netdata_jellyfin'].state) >= 0 ) if the sensor returns an integer (even though HA still sends it as a string). If the value is less than 0 (like in terms of a decimal percentage), maybe parseFloat with <= 1.
But, does the state actually return the value or is an attribute (system)?
parseInt(states[sensor.netdata_jellyfin].attributes.system```
Thanks i will give it another shot. But i think i get your point about attributes. The sensor group (shown above) actually has a list of attributes called name, family, context, units etc that dont have a numerical value. Maybe i can try those
If you go into Developer Tools > States and take a look at the sensor, it might give you more insight. For example, the sun entity (shown in screenshot) has a state of above_horizon but has other attributes that can be accessed.
Thanks for the response. Posted that and got busy with other things around the house.
Here's what dev tools says now and has always said. I've always looked at that as the actual Rh, and it's always acted that way. In the last couple of weeks, the fan has started turning off during a shower. There's no way the actual humidity is dropping below my ambient (in another room) Rh, causing the turn off automation to fire unless it's now somehow being interpreted as a change/minute instead of just actual value. 😦 🤷♂️
I use hac's big-slider-card plugin (https://github.com/nicufarmache/lovelace-big-slider-card). It's written in Typescript and I was able to find 2 bugs in the code, but I can't get it to compile for Javascript. Sorry for my bad english. Can anyone help me pls?
@zealous vine #devs_frontend-archived may be better staffed to help with that problem 
Thanks for the advice :)
Actually I have another question. I programmed a IR Remote with esphome and now I want to use custom:button-card to activate the virtual buttons.
..I can't get it to work. A normal button card works by using tap action: toggle but if I use a custom: button-card with the same code the error message occurs "button/turn_off.service not found"
Does anyone know a beautiful looking card for our double curtains? They open from the center.
The standard option in home assistant isn't very appealing and seems to be for shades that open vertical
is there a ready to use (fancy) view for realtime power consumtion (in W) and historical energy (in Wh) for different kind of devices?
Hello all 🙂
Is there a way to take an existing card (for example the TIle Card), copy it so u can make it custom and adjust the way it looks?
I am trying to get the picture that is included to show up larger and not so small.
Thanks in advance
You could look into card-mod. Mushroom has a lot of documentation on their community forum with card-mod. As Tile-card looks basically like mushroom
Wanted to throw this out there. Now that I understand how it works, I'm going to go back through some of my frontend's code and use this to simply it some.
Originally, part of the code wasyaml {% if is_state('binary_sensor.s22_ultra_is_charging', 'on') %} {% set is_charging = True %} {% else %} {% set is_charging = False %} {% endif %}But this works too. (The is_charging variable is used throughout the template.)yaml {% set is_charging = is_state('binary_sensor.s22_ultra_is_charging', 'on') | iif(True, False) %}
The final code turns into yaml icon: > {% set battery_level = states('sensor.s22_ultra_battery_level') | int // 10 * 10 %} {% set is_charging = is_state('binary_sensor.s22_ultra_is_charging', 'on') | iif(True, False) %} {% set charging = is_state('sensor.s22_ultra_charger_type', 'ac') | iif("charging-") %} {% set charging = is_state('sensor.s22_ultra_charger_type', 'wireless') | iif("charging-wireless-") %} {% set charging = is_state('sensor.s22_ultra_charger_type', 'none') |iif("") %} {% if battery_level == 100 and is_charging == True %} mdi:battery-charging {% elif battery_level == 100 %} mdi:battery {% elif battery_level >= 10 %} mdi:battery-{{charging}}{{battery_level}} {% elif battery_level >= 0 %} mdi:battery-{{charging}}outline {% else %} mdi:battery-unknown {% endif %}
Looking for some help if possible. I've got a room card that I'm slowly modifying to get to where I want, and I'm stuck with getting an icon to change colour. I want the icon for entity switch.0x943469fffed2b3dd_l2 to be green. I've tried icon_color (which usually works) as well as style.icon_color under Style: but neither seem to work. Any help would be appreciated.
Anything I've tried so far does nothing to the icon 🤷♂️