#frontend-archived
1 messages ยท Page 4 of 1
create a button and use the navigate action
select the subview and you should be good
thanks it works
can anyone help me with that card mod word wrap thing?
Is there a way to move cards that are on the dashboard into a grid card without redoing them?
just copy the code in to the grid card?
grrrr these card mod things are impossible
can not figure out how to get all the padding off the title of this either:
style: |
ha-card {
padding: 0px 0px 0px 0px;
box-shadow: none;
margin: -16px;
background: none;
text-shadow: 0x 0px 0px
}
.card-header {
topspace: -16px;
}```
Is there a way to specify the size of a dashboard like for a tablet format?
im losing my mind
aren't we all
@polar kelp I saw you helped someone else out with card-mod issues any chance you can help?
I am just getting into use of the dashboards as I use 10.1" fire tablets and am struggling with layout issues as well
trying out mushroom but struggling
anyone know?
if it is based on a webpage you can use a webpage card
It doesn't work very well https://www.earthcam.com/ I was thinking In a view like camera or some other cards
But idk since It's only with ip cams
im trying to replace image: in a card but it wants a string.
the |- or >- does not work
doing this
image: {{ state_attr('media_player.living_room' , 'entity_picture') }}
hey guys, I'm using Minimalist Lovelace Ui for my dashboard and I want a button that don't show any text/title next to it, just the icon. Is that possible in anyway and if, how?
this is my code:
- type: custom:button-card
template: card_input_boolean
entity: input_boolean.netflix
looks like this right now
try adding name: ' '
already tryed things like this:
- type: custom:button-card
template: card_input_boolean
entity: input_boolean.youtube
variables:
ulm_card_input_boolean_title: ''
ulm_card_input_boolean_name: ''
set the font size to 0 ?
styles: card: - font-size: 0
seems not to work with minimalist
I guess I have to create my own "custom card" for this
Need some help.
Working with card-mod 3 and want to change the background of a button based on the HASH value in the url.
I know that the readme talks about hash
`card-mod also makes the following variables available for templates:
config - The entire configuration of the card, entity or badge - (config.entity may be of special interest)
user - The name of the currently logged in user
browser - The browser_mod deviceID of the device
hash - Whatever comes after # in the current URL`
but I can not find any other references on how to do it. I can change on states of entity or other things but I can not figure out how to get or reference the hash variable.
Hello, how would I multiply this by 60, I know in entities it reads in hour in a readable format however in my mini graph it doesn;t so I want to multiply by 60 so it reads minutes - https://hastebin.com/apuqureveh.yaml
Hello everyone
I deleted a few scripts from my setup but now I am still seeing them in a dashboard that uses auto-entities.
The are shown greyed out and cannot be triggered. They are not listed under Settings - Scripts.
Has anybody experienced this before?
Only 4 still exist
Anyone use the google calendar component? Iโm trying to have it so when it loads it is a list view of events, starting with today, but it always shows from the beginning of the week.
Hey. I'm using the weather entity and I've set my local language (Swedish) on HA but the entity still displays english states. Any ideas how to translate or fix?
I want it to say "It's cloudy outside" but on Swedish. But it doesnt translate the state "cloudy"
is there a way to set the size of a dashboard? I am using tablets as displays but it seems to not want to use the full width of the tablet for some reason.
I am using the mushroom buttons inside of grids and that didn't work well at all.
no suggestions for using tablets?
Thanks I knew it was simple but I couldn't get it to work.
I had tried that code already but thought it didn't work. The page needs to be refreshed after hitting the button to make the color change and I wasn't refreshing the page after each button press.
Is there a way to get it to update once the button is pressed? I am using buttons for navigation and I want to highlight the one now in use and remove the highlight from the one that we came from.
don't know if this is a frontend topic, but how is there not an MDI icon for the HACS logo?
Because it's not part of Material Design. You can use hacs:hacs
Weird that this came up twice today: #606225572485398550 message
haha wow.
thanks RobC. Not sure why but its displaying nothing for me.
sensor.hacs already has that icon. You shouldn't need that line at all
I have something very similar
ah thats what it was using, but it just disappeared, so figured i'd try add it in as icon: hacs.hacs, but still no good
You need to delete them manually, they still exist as entity
i have this entities card but i would like it (or something similar) to show only the time like in hh:mm.
I have a template to convert the date and time values into time only.
Which card can i use to display these time.
Some of my cards have an very odd amount of positions after the decimal point. I thought that there should exist a very easy config way to limit the PRESENTED number, just to learn there isn't. Found a years long debate on github how to do it.... Is that so? I can't understand why the PRESENTATION of a number can't be simply formatted in whatever the user wants to see.
Hi - Any other option of Gallery card - i am meaning to display 3-4 photos from WWW folder in an autoplay (picture frame mode)
any idea on how to make a card stack title pressable?
I was thinking a custom button card with everything transparent?
Does anyone know where the default view for each device is saved?
On the device itself. In the browsers localStorage. It's kind of like a cookie.
If you're asking that you probably want to check out Browser Mod ๐
Why is it that some dashboard definitions/edits end up in the .storage folder in JSON format in a file called lovelace.dashboardName rather than in the lovelace.yaml file or ui-lovelace.yaml?
Where would that setting be? In my configuration.yaml file, I have
lovelace:
mode: yaml
In my Dashboards list, the view in question is marked as UI controlled. Where can I change that from the settings area?
Then everything is in YAML, unless you choose differently fur a dashboard
Probably when you create it?
When I create a new one, it starts in UI controlled. When I Take Control, it remains in UI controlled mode.
OK, I get it.
Both are still storage
How can I add a tab (called views in Lovelace) to a UI controlled dashboard? Or is this not possible.
The plus button
Ok, now I get that too.
Thanks!!
So, on a UI Controlled dashboard, is it possible:
- to have a 'active' floor plan? (Where I have clickable icons around the plan, say switches) (I have this in my yaml dashboard as a tab.)
- to have an iframe that displays a page like windy.com?
Another question:
Can I copy the YAML from a UI controlled dashboard card, and paste it into my lovelace.yaml file? (To simplify the design of my yaml dashboard.)
cheers.
Now that I think I understand how the cogs are meshing I can search for what I'm trying to achieve.
Thank you!
Awesome!! I got Windy.com showing now. Sweet!
Are questions related to custom stuff and HACS permitted here?
this channel is for frontend things like cards, regardless of where they come from
There is a HACS discord server.
https://discord.gg/X9BD4Ssm
So, for a question about something available through HACS, we should use the Issues in Github`, right?
I have a single Webcard (iframe) on a tab, yet the card is tiny and I'm unable (even after installing the card-mod 3 plug-in) to make it use the whole available space using very recent versions of FF and Opera.
How can I overcome this?
Enable panel mode
Gotcha! Cheers
Hey there! Any idea how can I handle a case where after HASS update I'm getting Custom element doesn't exist: horizontal-layout on second (Kiosk) device?
Is there a way to template the number of columns in a glance card? Trying to keep the glance card to one row
type: glance
columns: >
{{ expand(area_entities( master_bedroom ) | select('search', 'light|fan')) | reject('search', 'firmware')| map(attribute='name') | list | count }}
Isn't working for me
Most cards don't support templates. The docs will say
How do I specify the navigation_path for a navigate tap_action when I want it to display another view in a UI Controlled dashboard (In my case, I want to transition from the 2nd tab to the 3rd tab.)
Do I need to specify name and/or path on the target object in order to be able to reference it?
it's whatever is in the URL
Just worked it out.
Has anyone had any success theming state-history-charts with card mod?
card-mod-more-info2-yaml: |
ha-more-info-info:
$:
ha-more-info-history:
$:
state-history-charts:
$: |
state-history-chart-line {
display: none !important;
}
Testing the selector with the above snippet, does not seem to be working
Someone that can tell me how i get my states "hum" aand "bat" (humidity and battery) to move to the spot in the grid-template-area i defined for them??
As can be seen, they both are just placed at the bottom right... (block "9" in the grid)
UPDATE! finally found it... 3 hours of headscratching, just for that!! ("styles" was writting with capital S....)
@wind tulip The urls are /lovelace-<dashboardname>/<view>/. If you want a new /lovelace/<whatever> you need to add a whatever view to your default dashboard.
That you do by going to the dashboard, clicking
, selecting "Edit Dashboard" and then clicking the Plus sign that shows up at the top.
hey eveyone could someone help me update this card.
i am pretty sure its the wrong preset and says call service fan/set_speed, i think now it needs to be fan/set_percentage?? i think this is due to the updates
Any idea when this is planned to get fixed? It's in there for over a year now https://youtu.be/LWtU55uiCp8
On a Person card, what is the field on the RHS? Does that have something to do with presence detection?
this must have passed before, but can we add an empty entity in a glance card somehow? https://www.home-assistant.io/dashboards/glance/ doesn't mention it, but there might be custom tricks? (use case: columns: 4, and have 2 rows, top row 3, row below 4 entities.
tried an empty button card against better knowledge, but this is so you understand what I am after
I have a mail and packages card and it says things like "4 piece(s)" and "3 package(s)". Is there a way to fix this?
Trying to install the ios dark theme using HACS the manual tells me to add a line to "lovelace-ui.yaml" but I don't have a file called "lovelace-ui.yaml". Do I just create it and will HA use it? Or do I need to add it to configuration.yaml somehow too?
unless you're managing your Lovelace dashboard in YAML, those instructions aren't for you
what is it telling you to put there?
Well, the manual is here ( https://github.com/basnijholt/lovelace-ios-dark-mode-theme ) at the bottom of the page. I was following the "Installation" rules. So I added the frontend lines to my configuration.yaml, and next it tells me to add "background: var(--background-image)" to lovelace-ui.yaml
I installed the theme using HACS already, but no background is shown so I guess the background line needs to be added somewhere
I'm a little lost on what this "raw editor" actually is. I don't have something called "raw editor"
I need to add this line on each dashboard separately?
If it is added to lovelace-ui.yaml, won't that be for all dashboards so I don't have to edit them all?
I'm not even sure how to do this for the Energy dashboard because it doesn't have an edit button...
no
are you using YAML to manage your lovelace config?
and again, each dashboard is completely separate regardless of what you do
the energy dashboard can't be edited or modified that way
So how do I make it work for the energy dashboard?
Necro reply incoming --> Got my glance templating sorted by using custom:card-templater. Thanks!
Is there a card like https://github.com/thomasloven/lovelace-auto-entities but for sorting cards instead of entities?
There's auto-entities
But it needs some help: https://github.com/thomasloven/lovelace-layout-card#use-with-entity-filters
Greetings.
I seem to be having an issue bypassing login.
:/
homeassistant:
auth_providers:
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24
trusted_users:
192.168.1.0/24:
- 65127c7103b44539984f8d78ba5b6d88
allow_bypass_login: true
Try as I may, this config still gives me a login prompt.
OH, maybe I need to restart.
YUP
just noticed that google home mdi icons are no more available in Material Design.
What to replace them in HA?
whats this theme? I like the glow
looks like the ios theme to me but does not quite fit
maybe i'm dumb but this doesn't work, could someone help me?{% if is_state('input_boolean.tesla_driving', 'on') %} mdi:road {% else %} {% if is_state('switch.herbie_charger_switch', 'off') %} mdi:parking {% else %} mdi:battery-charging {% endif %}
there is some closing endif missing?
huh where
your indentation is ugly, you'd see it yourself otherwise
mdi:road
{% else %}
{% if is_state('switch.herbie_charger_switch', 'off') %}
mdi:parking
{% else %}
mdi:battery-charging
{% endif %}
{% endif %}``` this doesn't work either
Nvm it does
it just didn't load
Hello All, need a little help in using the Decluttering-Card when installed by HACS https://github.com/custom-cards/decluttering-card
The readme shows the templates being placed in ui-lovelace.yaml; however I do not see such beast in my fresh config and the Vis-Studio editor of the /config directory.
Where have I gone wrong?
Ok, think I can answer my own question, just isn't clear to old Architects.... From Editing a Dashboard, select "Raw Configuration" and add the Templates Section there, Done...
Correct. If you were using yaml mode (https://www.home-assistant.io/dashboards/dashboards/#using-yaml-for-the-default-dashboard) you would have a ui-lovelace.yaml file.
so when I have a picture-glance and show a live camera in this card - it takes 2-3 seconds each page load to show the feed
my idea would be to take the screenshot of the camera and use it as a background for the card - to work around this 2-3 second load time
(not exactly taking a screenshot but using the stored screenshot image in ha)
anyone ever done the same? do the cameras load instant for you?
will try with card_mod lets see if I can get this to work
Is there a way to display graphs for the past 5 minutes? - found ApexCharts that may fulfill this requirement
yep, ApexCharts is the best for graphs, IMO
https://paste.debian.net/1256808/
seems to do. just that I had to write my own wrapper to receive the camera image with a access token.
anybody know how I can receive the image within HA?
Hi! Quick question: I remember seeing a graph card, that was only one "unit" tall and had the text overlap the graph. Is that something, that mini-graph-card can do? If so, I may just have overlooked it in the docs.
Thanks! :)
Loving the new subview functionality!
I've quickly mocked it up here :)
HI is anyone here familiar with custom:button-card and css?
I am trying to get the button name to word wrap when it's too long and can't get it to do it
card_mod:
style: |
:host {
{% if is_state(config.entity, 'locked') and is_state(input_boolean.away_switch, 'off') %}
--card-mod-icon-color: red;
{% else %}
--card-mod-icon-color: green;
{% endif %}
}
I guess there is just a small error in my syntax. The second is_state condition does not work.
You didn't quote the entity_id in the second is_state
@dark dirge Oh, damn! Thanks.#
Is it possible to increase the scale of a single card? So the buttons and sliders on it are scaled up?
Anyone use button card with templates in separate files? Trying to use include merge named.... But it isn't working
Specifically button_card_templates: !include_dir_merge_named templates/button-card/ .... but it doesn't find anythign
WLED has palettes which are color combinations. You can select the palette in HA with an input_select but there's no way to preview the palette as far as I know. I'm pretty sure that information isn't forwarded to HA, so I would like to rebuild it in HA and then display it in the frontend. Any tips on achieving that?
For example the analogous palette is red and blue. I need a way to store this information in HA. Showing it in the frontend shouldn't be too bad with card-mod.
Hey Peeps, I've got a dilemma... I've pretty much configured my Minimalist Lovelace setup, but am having one thing that I'm wondering if you guys can help me figure out...
I've got an LG remote setup in Home Assistant for the living room... however, I'm wondering if I can configure it as an expanded card or a pop-up...
I'd prefer it to show only when the TV is on... OR if I hit a button (card) and it expands and shows...
Any insight?
@subtle crypt posted a code wall, it is moved here --> https://hastebin.com/oxefefesir
speaking of mushroom, have you seen anyone use card-mod to style input-select to match mushroom a bit better? I'm working on it but would love to see other attempts
Canโt help you with that unfortunately
is there any guidelines you follow for mushroom-cards that I can look at to style the card? I've been following Google's Material Design 3 but it's not the same
Iโm not really sure what you want to achieve. Do youโve got a mock-up or sketch?
this is what I got so far
top is mushroom, bottom is card-mod styled input select
trying to make the input select look as close to what it would look if it was built into mushroom
I think it looks decent, maybe I could play with the text a bit
Like what you did. Mushroom and Material 3 doesnโt really fit. You can check the outlined variant of M3.
thank you
while you're here any chance the light card will add support for RGBW or RGBWW lights? I've styled slider-entity-row to match mushroom and it works fine but native support would be great
Hopefully a really quick question I've been struggling with. Trying to use a picture-elements card to do a 3d floor plan with lights on and buttons. It all works great but tapping a button or light always shows the more-info dialog, it never does a toggle action even when using tap-action:/action: toggle. Is there any way around this ?
Is it possible to make a slider with few text values ? Like off-low-normal-high ?
Is there a way to do an icon that is filled with multiple colors?.... Instead of just a single color
Sup everyone! Has anyone noticed Hass restarting when editing a LONG custom card? I have a card that has a lot of vertical and horizontal stacks (custom card in stack from hacs) and quite a bit of css for each resulting in at least 700+ lines for the card, it's the only card there but I noticed when editing for a while that Hass restarts, when not editing the card functions correctly and the system is stable... Which I find quite weird, also it lags when moving the cursor fast on the same line with the keyboard arrows, I think because it's trying to refresh the card preview everytime the cursor moves...
Hi, can anyone help me please with Grid(layout card)?
I'm a bit of a newb; so a couple of questions in separate comments to allow threads:
Is there anyway to prevent a user from clicking a Thermostat and accessing the entity popup? The various states/presets for this thermostat aren't too understandable and I'm replacing with buttons elsewhere that call scripts
(so basically I want to remove the three dots in the top right)
Secondly, what's the best way to have a button that opens/closes a Conditional panel? Do I need to define a Button in HA or can that be avoided and have it all in the frontend?
If you only want to restrict "access" to more-info for that entity via dashboards, and can accept that it will affect all users, maybe you can use tap_action: action: none
for that entity?
I my case I want everything to be safe to click, which means I hide all stuff that I don't want guests, kids or others to see or "access". Like the keyboard shortcuts and magnifying glass (search) and basically everything where you can see or change stuff that a "consumer" doesn't need.
For that , I use https://github.com/thomasloven/lovelace-card-mod where you can do basically anything, for example hide stuff from within the more-info card per type. But it is not a smooth ride, and I need to accept that it can break at every upgrade..
tap_action doesn't seem to be supported, I'll checkout the lovelace-card-mod thanks
and yes I am hiding stuff for similar reasons - I think it's confusing to hit a thermostat and see this stuff, I just want them to interact with the dial and my buttons
the Operation and Preset are not really user-understandable, for this device
I'm happy with CSS so that mid seems great
looks like I can display:none anything I dislike?
Yes, you can. Feel free to get inspiration from this: https://hatebin.com/vfdubgwtfg, that's the restrictions I use now, with an input_boolean that is hidden from all users than myself that decides if I want "admin mode" or "kiosk mode".
I got a lot of inspiration from this thread: https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176, so I recommend that if you want to go down that path.
And tap_action: none is supported in entities card. Just tried it with a climate entity. But then no one can "access the control panel" from that card/entity.
- entity: input_datetime.mail_last_delivered
name: Mail Delivered
card_mod:
style: |
:host {
{% if is_state('input_boolean.mailbox_opened', 'on') %}
--card-mod-icon-color: red;
{% else %}
{% endif %}
}
tap_action:
action: call-service
service: homeassistant.turn_off
service_data:
entity_id: input_boolean.mailbox_opened
I use this tiny snippet to turn the color of the mailbox icon of input_datetime.mail_last_delivered to red when the mail has been delivered. When I press the button, the state (input_boolean.mailbox_opened) is cleared an the color should change back to "normal", i.e., not red. The minor problem is that the color status of the icon does not refresh and stays red until I hit refresh in the browser. Any ideas how to solve this problem? My idea was to use browser_mod.refresh in some way.
This is basically what I'm building - I've been able to turn off the 'more info' of the thermostat card in the top right now thanks
Quick question:
Is it possible to create back button - button executing history.back() action to be specific
Hey sorry if this is a dumb question but the dashboard that is shown on home-assistant.io is it Dwains Dashboard?
The phone screen? No. That's all stock.
Heh. I just noticed that "Temperature Study" in the demo is translated to what means "A study performed on temperatures" in Swedish...
I just set up a clean virtualbox instance with this dashboard and tap-action shows a more-info box. Anyone have any idea where I'm going wrong please ?
type: picture-elements
elements:
- type: state-badge
entity: input_boolean.test
style:
top: 32%
left: 40%
tap-action:
action: toggle
image: https://demo.home-assistant.io/stub_config/floorplan.png
It's tap_action with an underscore.
Thank you for spotting that ! I've been looking at it for days wondering where the heck I was going wrong ... what a complete tool I am ๐
Very common error.
But in general it's underscore to the left of : but dash to the right.
Thank you - I'll try and remember that - but I'll certainly not forget tap_action ! ๐
Anyone know why I can't get RTSP streams (using picture entity cards calling generic camera entity) to work properly on the android app on a Samsung A8 Tablet? I've tried firefox, chrome and edge; all exhibit the same issue. Works fine on my phone.
I changed the stream type, on my camera to "intellistream" which automatically changes the bitrate, and now I can view in browser no problem. Still issue within Home assistant app. I noticed in the logs I see this error "2022-10-14 10:51:45.417 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.myfrontyard_com] Error from stream worker: Stream ended; no additional packets
2022-10-14 10:52:00.430 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.myfrontyard_com] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://:@myfrontyard.com
2022-10-14 10:52:20.437 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.myfrontyard_com] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://:@myfrontyard.com"
and yes that URL does resolve internally, it's just a custom domain
i think the frontend might be bugged. i cannot see any options with the Call Service action. not even in the HTML
[2419112376] Error handling message: must contain at least one of entity_id, device_id, area_id.. Got {'type': 'execute_script', 'sequence': [{'service': 'switch.turn_off', 'data': {}}], 'id': 88} (invalid_format) is an error i noticed around the same time
same for Scripts too
and Automations. blank blank blank. no errors in log or javascript console
I have hacs set up but I'm having a problem with custom cards I think I may have some files missing in yaml any ideas
After a recent update, my primary dashboard got wiped out and replaced with an automatically managed one (which I donโt hate, but itโs definitely a mess and not what I need from a usability standpoint).
Was there something in a recent update that messed with dashboards? And is there a way to recover my old one?
How can I get these two sensors onto the same unit/graph?
only way I know of is to write a template sensor that converts the units
(for one of them, to the other's units)
hey is there a way to add an url to a dashboard? to open an external page? I googled but can only find iframes tahts not what i want
If you only want to open a link, that should do it.
Theres a weblink row for the entities card
hey guys. trying to use the Transform option in the custom:apexcharts-card but not really familiar with the code necessary. I want to transform the entity value by subtracting another entity value from it. tried return x - hass.states['input_number.desconto_cepsa'] but probably not the right syntax. Any pointers?
Is there any kind of expression language that can be used to evaluate a state for a card ?
The only example i have found are binary true/false stuff, i want to check if my sensor is reporting below a specific value and then show a card or change color on a card. but i cant like make 20 states to check for value 0-20
looks like maybe Config Template Card can be used for what i try to achive, ill look into that one first i guess
I would create a Template binary sensor that evaluates if the other sensor is below a value
were would i go to set up a binary sensor ?
or even simpler: https://www.home-assistant.io/integrations/threshold/
you can create one in the auxiliary config
any apexcharts aficionado here?
got it working, thanks FilipeGo ๐
You're missing the .state and that you need to convert the state to a float
hass: the full hass object (hass.states['other.entity'] to get the state object of another entity for eg.)
Not the state itself. You need parseFloat(hass.states['other.entity'].state), I think
transform: return x - hass.states['input_number.desconto_cepsa'].state; did the trick
thanks @dark dirge
I guess it automatically converts it to an int/float? I'm suspicious
I use the following snippet to change the color of the mailbox icon (which is an input_date) to red when the mail has been delivered. When I press this icon, the state (input_boolean.mailbox_opened) is cleared an the color should change back to "normal", i.e., not red. The problem is that the color status of the icon does not refresh and stays red until the browser is refreshed. Any ideas how to solve this problem? Maybe browser_mod.refresh can solve this problem, but I am not sure.
- entity: input_datetime.mail_last_delivered
name: Mail Delivered
card_mod:
style: |
:host {
{% if is_state('input_boolean.mailbox_opened', 'on') %}
--card-mod-icon-color: red;
{% else %}
{% endif %}
}
tap_action:
action: call-service
service: homeassistant.turn_off
service_data:
entity_id: input_boolean.mailbox_opened
โ question, trying to put in a "run time" using history_stats, with this: ```
sensor:
- platform: history_stats
name: fr_on
entity_id: binary_sensor.running
state: 'On'
type: time
start: '{{ 0 }}'
end: '{{ now() }}' ```
but, keep getting a "no type provided" error? (code was copy pasted from community post, maybe it's too old?)
Try setting --card-mod-icon-color: unset in the else clause. Might work.
It also may not. I don't quite remember the implementation details, but --card-mod-icon-color is a bit extra magic.
Thanks. I will try.
I think the main problem is that "input_boolean.mailbox_opened" is changed by tap_action and not the status of "entity: input_datetime.mail_last_delivered" and thus no automatic refresh happens.
If I change input_datetime.mail_last_delivered, the color changes immediately.
@polar kelp Found a solution. Thanks for the tip
What was it?
Wasnโt there an issue on card-mod-icon and color ? Believe I had to downgrade 1 version to keep things working
Yes this was it https://github.com/thomasloven/lovelace-card-mod/issues/206
I made the following ugly hack to get it working; An automation adjusts the time of input_datetime.mail_last_delivered when input_boolean.mailbox_opened is turned off.
In this case, the color changes immediately from red to "unset".
Noob with a noob question here. I'm trying to save an image locally so I can use it in HA. But, I'm running a bare metal HAOS image setup, so I can't really just use the computer to drop files in a folder. Not sure if I explained that right, but if you can help please let me know. Much appreciated.
Use the samba addon
Thanks. I installed it, but no idea how to use it. The documentation is pretty empty unless I'm missing something.
I can't figure out what IP address to put in there. Nothing has worked so far
Maybe this will help? https://www.youtube.com/watch?v=udqY2CYzYGk
is it possible to use an entity as the source for the image in a picture card or picture entity card
I want to use one of those to display the logo of the radio station i am playing.
I have a helper with the url to the local image for the station i am playing.
i was hoping that {{ states('input_text.media_now_playing') }} would change the image but that results in a missing image icon.
Not directly. Perhaps this will be helpful: https://github.com/iantrich/config-template-card
Does anyone know how to make an entity show the user the is currently logged in? For example, If bob opens home assistant, it shows person.bob entity but if jim opens HA it shows person.jim
The backend has no idea who's currently logged in. Could be many, many people at once
so I have a title card that shows this...
{% set time = now().hour %}
{% if (time >= 18) %}
Good Evening, {{user}}
{% elif (time >= 12) %}
Good Afternoon, {{user}}
{% elif (time >= 5) %}
Good Morning, {{user}}
{% else %}
Hello, {{user}}
{% endif %}
This in a title card is able to determine who is logged in
Again, that's a card. The frontend knows because you're rendering a card in a browser where somebody specific is logged in
Is that confusing?
For some reason, you're asking for that in an entity, which is not possible for the reasons I explained
Ah i understand
Thanks
Thanks I had already watched that, though. I think I'm putting in the right IP address, but I'm not sure. I go to my wifi settings and copy the "IPv4 address". Then I try adding /16 or /8 even though I'm not sure what that does. Still don't see the it as a network in my file browser. Not sure if I'm doing the IP address wrong, or if I'm doing something else wrong.
I actually found it the network on my mac just now. Weird that it doesn't show up on my PC which is what I need to work with. Maybe some sort of firewall setting?
Is there a way to show all entities for a given device ID in a single row? Maybe using a template + multiple-entity-row?
I'm definitely no expert but seems like something you could do with custom button cards and horizontal stack
Anyone able to advise- is it possible to reduce the radius of a zone? Specifically Home
Create a new home zone
How?
Also, it seems my location isn't updating very frequently. It's been over 3 hours since last update. Is that a setting?
Create a new zone
yourserverhere/config/zone
Sorry I'm a little new. Does that mean there is a UI page? Or are you pointing me towards a page to edit YAML?
that means there's a ui page...
Yes that's where I've been, but there is no way to edit the radius of the default "Home" zone
I see it is possible on new/added zones
you can't edit the default zone, you need to create a new one
There's a whole paragraph on it in the docs: https://www.home-assistant.io/integrations/zone/#home-zone
before writing Github issue, does no-one else see this helper editor issue? https://community.home-assistant.io/t/2022-10-all-over-the-place/470126/324
Cache cleared?
You can change the radius of zone.home using customize
I did, and restarted even, but apparently another clear did the trick. thx for the nudge... and now can see again it's Submit, not Update..
Is there a way to deep link to a specific entity id? Can't find anything in the docs, only in the companion docs but I want to use the desktop browser
how do I make my dashboard visible on my tablet so I can see the progress, or lack there of, of how it will look?
is there a way to display only the image for a binary sensor and not the text aswell?
name: " "
thanks mate - that simple hey ๐
i deleted my yaml binary thresholdsensor and made a new one with the helpers. After reboot, the old one is still there. unable to remove?
Is it still present in the YAML file? If so, maybe the file save failed.
no its gone. I just deleted the yaml file containing them
i had that before with Openwrt integration. Made a lot of new entities. Once removed, the entities stayed. Even after removing them from known_devices and reboot
Anyone using browser mod 2 notice sequences not working properly? I'm using a pop-up with a bunch of navigate cards. I navigate then close the pop-up. I can only get this to work with autoclose set to true which is hit or miss because sometimes it closes before navigating.
Sorry mate last question, I want to use the "phone plugged in" binary sensor - I used name: " " however it still tells me the state "unplugged" - how do I remove that and just make the icon change when it's plugged in v when it's not?
That's a bit trickier. This might help https://github.com/thomasloven/lovelace-template-entity-row
Thanks mate, hopefully that can help remove the "unplugged" and "plugged in" text - it seems to change colours anyway - using mushroom carfs
I figured this out, to hide the entity state I used secondary_info: ' '
Hi there! Had a JS related question. I'm self hosting a https://umami.is/ instance. Think of it like a personal google analytics. The goal is to see which dashboards are being used most. Possibly track my own "events" via umami using their API to see which automations fire. I want to better understand how we're using our dashboards so that I can optimize them.
They provide a umami.js file that I'm supposed to add to my header with a specific attribute which indicates which "site" I'm tracking. I've copied the script over into my www dir, and I've modified it so that the script attribute and umami host values are hard-coded into the file. This allows me to add it as a resource in HA without needing the attributes. Testing this modified file on a httpd site works fine, so I know the script works.
In HA, I'm seeing it loading when I inspect in the browser. But it doesn't seem to be registering any window events. It works on a regular html page - I'm wondering if HA has something special going on where it unregisters events, or prevents events from being added?
Here is a redacted gist file if anyone wants to take a peek? https://gist.github.com/sstratoti/6cefeca5c78f8ae552e8a147b3ea85e5
I've set up a flex-table-card but I'm unable to mark the text in the card. Is that normal? If I do edit on the card I can mark text in the preview. But when saved it doesn't work anymore. I need to mark text to copy paste.
Try installing it as a "frontend module" instead
https://www.home-assistant.io/integrations/frontend/#extra_module_url
(note that frontend modules are heavily cached and only updates when frontend changes version,
if you encounter problems when updating it. it's easiest to rename module file)
I am trying to add a dashboard but it says it must contain a - where would that go?
for extra_module_url, if I have the file in the www folder, would the reference be /local/umami.js ?
or /www/umami.js
/www folder is exposed under /local pathname
on the config-template-card, I d like to use the following title: header: show: true title: Prijzen voor de komende ${span_hours} in (โฌ/kwh) where the span_hours is 24h or 48h. This doesnt work however, (the whole card is not showing), while header: show: true title: ${span_hours} works just fine. Is there some setting I am missing?
I'm still confused after looking at the dashboard documentation. How do I dump cards example stuff into its own yaml files from hacs integrations like this one? https://github.com/finity69x2/fan-control-entity-row
Edit dashboard > Add Card > Manual
assuming you're using standard (gui editable) dashboard
Ok so I did that and dumped the yaml stuff shown on that page at the end.
Configuration errors detected:
bad indentation of a mapping entry (2:10)
1 | - type: entities
2 | title: Fans
--------------^
3 | show_header_toggle: false
4 | entities:
it starts with cards: so I tried to remove that as it said there was an error...
Try removing the cards: and list indicator - .
Just flat:
type: entities
title: Fans
show_header_toggle: false
entities:
- entity: fan.master_bedroom_fan
...
ok that works but now
Configuration errors detected:
bad indentation of a mapping entry (40:21)
37 | customMedText: re
38 | customOffText: not
39 | width: '15px'
40 | height: '15px'type: ''
--------------------------^
Oh that needs to be on the next line
that probably was something you left in the text editor from before.
There is no "type:" at the end in the example
Auto populates that into the box and when I pasted I must have not hit ctrl a first or something removed.
now:
No card type found
Sorry thought I removed the dash but it was still there. After removing that:
Fans
Custom element doesn't exist: fan-control-entity-row.
entity: fan.master_bedroom_fan
type: custom:fan-control-entity-row
name: MBR Fan Not Custom
customTheme: false
...
The "Fan Control Entity Row" isn't installed properly.
Did You add it manually to configuration.yaml
or u used settings > Dasbboards > resources gui
Or from store (HACS)?
I added through hacs
sorry it is called that he has three similar named modules (confusing)
oh wait
Fan Percent Button Row
So I guess You have to see examples from
https://github.com/finity69x2/fan-percent-button-row
Doing that now
Ok looks better
Hall Fan Presets
Entity not available: fan.hall_fan
So I replace that fan.hall_fan with my esphome entity name ifan-bedoom-001 or something like esphome.ifan-bedroom-001 ?
yep, put your own ids
(usually whenever u see entity: line in the code)
How do I find out what my entity name is both didn't work above?
Either from Settings > Devices > Entities
or quick search popup (hotkey e)
(don't put name there, only ids)
Thank you for bearing with me there working now! Was called fan.master_bedroom_fan_fan
ps You can always change it.
Generally consistent id and naming scheme is a key to easier HA maintenance.
(not only changing it later in lots of places (gui/autoamtions,ect) is a pain but history and stats are usually reset)
How would I add a generic light toggle into their example? light.master_bedroom_fan_light
Figured it out just added it to the webui editor part before the code editor
Yay!
I'm sure this is something simple, but my card is providing me with this error:
Failed to call service input_select/select_next. must contain at least one of entity_id, device_id, area_id.
This is the card:
show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: input_select.select_next
target:
entity_id: input_select.electric_blanket_time_off_options
data: {}
show_state: true
entity: input_select.electric_blanket_time_off_options
Does anyone have any suggestions? I reconfigured it but the same error keeps popping up ๐คช
This code looks fine for me and works with my input_select
Check is entity is available and try calling service from Developer Tools on it.
I did, that's all working fine
But the frontend is showing untranslated strings for the services names, so I have a feeling something is intefering
Maybe. The code looks fine.
You can try Developer Tools in Your browser > "Network" Tab > "WS" tab > "Response" tab
to check what frontend is sending to backend exactly
this is expected to work.
Yup, I was hoping something obvious was wrong with the way the card was configured. But I've just installed some custom card updates and restarted and cleared the cache
Time to finish my pizza and debug
Anyone have any Arlo integration that can help me set it up, if it works.
Try the #integrations-archived channel and make sure to explain what problem you're having and what you've already tried ๐
I just cant seem to pick the right channel. ๐ go from installation, directed here, then now I am directed to integration. haha. I will get there, eventually. Thanks Rosemary!
Hi, I observed an unexpected behavior after renaming an entity and was thinking of filing a bug. But not sure if it's a frontend or core issue. When renaming an entity ID through the UI, the states table is not updated and is left with orphan records (with the old entity ID). I think that the renaming function should either a) clean up the states table or b) (my preference), update the states rows with the new name. What should I file this bug against?
There's a WTH in the forums related to entity renaming, I'd suggest checking that for related bugs
I think only Long Term Statistics are moved when entity_id is changed - since v2022.10 so it's new stuff
Generally recorder history is a solid argument to develop consistent id naming scheme and sticking to it
(unless u like performing sql queries manually)
Anyway recorder purges standard states hsitory (not L.T.S.) from db periodically (after 10 days by default)
So I wouldn't worry about orphans.
for the alexa integration https://www.home-assistant.io/integrations/alexa.smart_home/#configure-the-smart-home-service-endpoint; i put up a web server on the internet to redirect port 443 to my homeassistant service on 8123. However, when I try to log into this service, it fails to log me in with the error: POST https://hidden.for.security.com/auth/token 400 (Bad Request). Looking at this in the chrome devtools shows me that the payload response is {"error":"invalid_request","error_description":"Invalid code"}. Does anyone know why I would be getting an invalid code and how I could fix it? and if it belongs in the channel frontend ?
Is there a quick way to turn off menu items, maybe per-user? Eg I haven't configured energy yet
Click and hold the Home Assistant text at the top left until the bubble pops up.
how do I go about showing a custom message based on time of day ?
You can use jinja templates in a markdown card.
I mean to turn them off for everyone; this seems to be per-user or per-device?
Idk if there is one out-of-the-box solution.
You can only hide lovelace dashboards from settings but other panels cannot
You can technically disable them completely by removing corresponding integrations (map, energy, ect.) from configuration.yaml
And since they are a part of "default config" bulk package You would have to remove entire default_config: line
and add selectively each integration
https://www.home-assistant.io/integrations/default_config/
I'll see if there's anything in HACS, thanks
Aha so I can comment out energy+map in config if I'm not using
It's definitly doable better way, they can be hidden using JS
I just haven't seen the ready to use code
And use user permissions for the dashboards
I have a custom button that hides and sorts sidebar items but it needs to be clicked by user
yeah this is really for keeping the UI super minimal /simple
wait a minute...
doesn't Browser Mod already have an option to do that?
Browser Mod > Sidebar order will save your current order and visibility and can be applied as default for all users
however this will be "pernament" change as the order is re-applied each time you refresh the page
so no more customization
Browser mod? I'll look
Can you point me in a direction for coding / to learn this mate? - google and youtube doesnt seem to be helping right now
Upgraded to browser_mod 2 a while back and just getting to fixing my more-info popup-card replacements and they are not working
thinking maybe I am not puting in correct place (I am in yaml mode) I put the following in ui-lovelace.yaml, but just the regular more-info pops up for device
type: custom:popup-card
entity: light.family_room_light
card:
type: entities
show_header_toggle: false
entities:
...
The popup-card needs to be in the same view as where you click.
What card are you using to display your light entity that doesn't support tap_action?
custom:button-card
Then you should use yaml tap_action: action: fire-dom-event instead. popup-card are for the very few exceptions.
does tap_action also work on picture-glance ? last time i tried i failed
I did get it working with that, I just used to be able to replace more-info for a device, and then no matter where I called it it replaced the more-info each time
It should.
http://paste.debian.net/1257579/ i want to open a different cam on more-info view :/
Generally, avoid using popup-card.
If you use the fire-dom-event variant you tell Home Assistant. "Hey, when I click this, I want this dialog to pop up."
If you use popup card, you tell Home Assistant "Hey, when I click this, I want you to open the more-info dialog", and then you tell popup-card "Hey, when Home Assistant looks like they're about to open a more-info dialog, and you have reason to believe it's for this specific entity - I want you to forcibly stop them and do this instead. Here's a bat."
I've set up a flex-table-card but I'm unable to mark the text in the card. Is that normal? If I do edit on the card I can mark text in the preview. But when saved it doesn't work anymore. I need to mark text to copy paste.
Ok, it used to work flawlessly for me, and the 10 different times I displayed the entity in 5 different views it replaced the more-info popup
Used to have this in the ui-lovlace.yaml card
popup_cards: !include lovelace/includes/popup_cards.yaml
and in popup_cards.yaml I had all the more-info replacements for all views
If it can't work like that, and I have to put the custom:popup-card in every view, then it is not as easy anymore and I may as well use fire-dom-event if it is better
Just want to make sure
That's correct.
Why doesn't ANYTHING that used to work with Browser Mod 1.0 work with Browser Mod 2.0?
Browser Mod 2.0 has been rewritten ENTIRELY from the ground up. This allows it to be more stable and less resource intensive. At the same time I took the opportunity to rename a lot of things in ways that are more consistent with Home Assistant nomenclature.In short, things are hopefully much easier now for new users of Browser Mod at the unfortunate cost of a one-time inconvenience for veteran expert users such as yourself.
Trust me, I hate breaking changes even more than you do. But sometimes that's just how it is.
No problem at all, thanks for all your work, I just wanted to make sure I wasn't just missing something.
I'm trying to get the Auto Entities card to include my washer when it's running, and show the remaining time (attribute remain_time of sensor sensor.washer. I can get the sensor to show up, but just with "on". What am I missing?
@polar kelp Thank you so much for creating the Auto Entities card -- I'm using it like crazy, but this one thing is driving me nuts -- I'm trying to get the Auto Entities card to include my washer when it's running, and show the remaining time (attribute remain_time of sensor sensor.washer. I can get the sensor to show up, but just with "on". What am I missing?
Show me what you got.
All that's showing me is "On" for the washer. I've read through the documentation a few times now and I'm very sorry if I missed it but I cannot figure out how to get it to pass a specific attribute.
Only options that work with the base card will work. https://www.home-assistant.io/dashboards/glance/
Ahh that makes sense -- sorry, and thank you! I was able to solve it by creating a couple template sensors
oooh browsermod looks cool
Thanks for this info! I'm switching to using Stats graphs instead of History graphs when possible. I had not realized they relied on different tables. @thorny crystal also pointed out the https://community.home-assistant.io/t/wth-is-there-no-refactor-functionality-when-changing-an-entity-name/467196
btw I highly doubt we'll get 100% working refactor functionality.
Not with all those user created .yaml files
Also parsing dashboard configs (with all the custom lovelace stuff) could be very tricky.
I would be very happy if I ever get unique_id() function for templates thou.
I really would like to bind some of my template entities to certain device entities NOT by entity_id
(ironically this can be done in frontend JS and in NodeRED but ofc. not in mf jinja templates. Always the weakest chain)
{{device_entities(device_id)}}
?
I'm pretty sure device_id is not the same as unique_id.
Isn't device just some generated number when device is added to registry?
As opposed to unique_id based on things like mac address or device serial number..
Does anyone know if there's a way to put a button on mini-media-player that would act as a shortcut to "Browse Media", or better yet- "Browse Media > Spotify"?
@polar kelp ๐
Legend
looking at the source code - no obvious out-of-the-box action
with a bit of hacking - yep
Here is an example:
https://gist.github.com/kulmegil/35c33a4d7aa0da4cc41f83b72525411c
though this info is correct (these are no longer in the system) why is this displayed at all, when the condition in this card is not met:```
- type: conditional
conditions:- entity: sensor.energieprijs_uur_24
state_not: unknown
row:
type: custom:mini-graph-card
entities:- entity: sensor.gemiddelde_energieprijs_morgen
show_legend: false
show_graph: false - entity: sensor.energieprijs_uur_24
- etcetc
but does work on :
- entity: sensor.gemiddelde_energieprijs_morgen
- entity: sensor.energieprijs_uur_24
state: ! unknown``` ?
- entity: sensor.energieprijs_uur_24
Is there a way to fix this gap under the thermostat? It's roughly:
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: markdown
# [...]
- type: button
# [...]
- type: thermostat
# [...]
- type: custom:apexcharts-card
# [...]
Try changing the horizontal-stack card to a grid.
Thanks @haughty vine for the help! Wanted to follow up with this in case others are looking to do this as well. I copied and added the script into my www folder, then added the script using the "extra_module_url" in the configuration.yaml file like Kulmegil suggested. Then I had to make some adjustments to the script. First it loads into the page using import(); so the c.currentScript at the top wasn't being instanced. Therefore the if(d) at the top wasn't firing anything inside of it. So I removed that "if" and then hard coded in all the values on the line that begins with g = "data-", and also had to replace the reference to d.src.split two lines below that. Now the script is firing and I'm able to see data on which views are being hit in my home assistant instance! In addition I plan to take certain automations and log them into Umami when they fire as a "last step" through the local api that Umami has. I may do a writeup of this for the forums. I suspect this may be something others will be interested in. ๐ Going to let it simmer for a bit and see what I get.
@polar kelp grid has the same issues; I think it's that the thermostat wants to stay square
Did you check the grid square option ?
post the current config
unless one of the cards specificlally refuses to stretch this should be doable with "vanilla" grid cards
lemme copy it to a new dashboard so the config's simpler + I'll share
Aaah icon-height was set on the button card
removing that seems to let it scale better
It should scale well even with icon-height set...
type: grid
columns: 2
square: false
cards:
- type: vertical-stack # < grid can be used here as well (cols: 1, square false)
cards:
- <markdown_card>
- <button_card>
- <thermostat>
this is standard button or "custom:button-card" ?
Standard and tBH it's not really working as well as I thought - I'll try and come back with a much simpler reproducer
wait... ok now I see it now. Left column doesn't scalle well if it has less height then thermostat.
thou thermostat does scale height.
it's probably going to be tricky without resorting to using css
- then it becomes quite easy to fix
Alternatively: I guess making sure left column is always higher then right
e.g. by making markdown and/or button card square Not a perfect solution.
Hello everyone, I hope I am posting in the right channel.
I have several smart plugs using Tuya and I have integrated them into Home Assistant (excellent instructions, by the way!).
There is one tiny issue, though. Power plug devices have a "Power" entity, I have enabled it, and it displays data, but for some reason the value is multiplied by 10.
Example in the screenshot below.
As you could see, the middle bump shows a current of 2.5A (almost precisely), and power usage shows 5500+W which should be around 575W (2.5A*230V = 575W).
Is there a way to apply a division by 10 on that card, so that it displays the correct value?
Hi there. I had problems with my HA. I made a backup, flashed a clean HS Raspberry Pi SD card, made a restore. Now all works but the Energy Dashboard is not loading if I use language German. English works. Someone with a hint?
P.S. Error while loading page energy. Now in any language...
P.P.S. Same with Media..
Found it! Cache flush!!!!
If it's not DNS, it's your browser cache
@silent belfry I converted your message into a file since it's above 15 lines :+1:
You've tried to define your icon template in the value template
So do I have to duplicate the ifs into another section to change the icons as well?
Solved it myself using templates. Thank you.
@silent belfry I converted your message into a file since it's above 15 lines :+1:
I'm really new to this so apologies but I'm struggling. This code was provided as part of Teslamate integration but when the button is pressed it opens the status window of the tesla_locked sensor instead of toggling the door lock. I can see exactly why based on the top two lines but this code does show the status of the sensor on the button icon. I can't work out how to make this a button to open the door while also retaining the sensor info display
@stone plover I converted your message into a file since it's above 15 lines :+1:
Picture?
anyone knows how to add a .active css on a button so i can change its background when clicked? im using the custom:state-switch, but i realised that linking the color to the state of an input.select for example would change the view on a card for every user instead of just the one that clicked on the button.
@spare spruce with card-mod something like this works fine...
- type: button
entity: light.corner_light
card_mod:
style: |
ha-card {
background: {% if is_state('light.corner_light','on') %} #008000 {% else %} #a9a9a9 {% endif %};
color: {% if is_state('light.corner_light','on') %} var(--accent-color) {% else %} white {% endif %};
font-variant: {% if is_state('light.corner_light','on') %} none {% else %} small-caps {% endif %};
}
I never learned Flexbox ๐
One option is to define a template sensor (https://www.home-assistant.io/integrations/template#state-based-template-binary-sensors-buttons-numbers-selects-and-sensors) that is equal to the power the device reports /10?
Yes, I had mentioned I got it working ๐
Thank you!
ah sorry didn't scroll enough
Is there a way in Masonry view to add a sort of ... line break?
make an element be the leftmost on its row
in vanilla Mansonry layout? no
Layout Card adds some extra features including "layout break" and "gap" cards giving you greater control over how the layout flows
edited: yeah leftmost column is achievable. Rightmost is tricky
I've got one small element for my house's heating mode, then 6 identical cards for zones - I kinda wanted to put the house state 'at the top'
separate tabs doesn't seem worth it as it's just a narrow strip, if you see what I mean
hmm wait... scratch that.
leftmost column is kinda easier then rightmost. With layout break You should be able to achieve that
like it's just a Glance with 3 buttons on
So this sort of wrapping is fine:
Mode
Zone Zone Zone Zone
Zone Zone
but this looks a bit lame on desktop:
Mode Zone Zone Zone
Zone Zone Zone
maybe I should make it a Grid of the 6 elements and switch to Sidebar?
nah. if it's the leftmost col. you want - horizontal layout and it should be:
Mode <break card>
Zone Zone Zone Zone <break card>
Zone Zone <break card>
Horizontal layout is an option when you have Layout Card (from HACS) installed
edit: or just remove the second <break> and let the zone cards flow naturally depending on number of colunms:
Mode <break card>
Zone Zone Zone Zone
Zone Zone
edit2: oh I just realized - if you want Mode to have a whole row to itself.... then that won't work either ๐ซข
it just regulates the flow - column layouts always starts at the top
it's doable with Layout Card.. just more complex (stacking laoyuts) then I pointed it
I'll check out Layout Card, thank you
main layout (as one column):
type: custom:masonry-layout
layout:
max_cols: 1
max_width: 99999
margin: 8px 2%
card2 (layout):
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
margin: 0 -4px 0
padding: 0
cards: # (looks nice as long as zone cards have equal height)
- <zone1>
...
- <zone6>
and should end with something like this (where zone columns should scale to avail. width):
Is it possible to create a front end dashboard card that contains the most recently triggered automations?
With auto entities:
type: custom:auto-entities
card:
type: entities
filter:
include:
- domain: automation
attributes:
last_triggered: '*' # ensures attribute is set and not null
exclude: []
sort:
method: last_triggered
reverse: true
count: 10 # first 10 results
Are the custom types something that is accessible to vanilla lovelace or do I need some sort of addon?
yep
They are usually added from HACS "store" (https://hacs.xyz/) that makes installing/updating 3rd party integrations, thems, lovelace components easy
Roger. Whats the name of the add on? Just auto-entties?
"auto-entities" it's popular so u won't miss it
Afternoon Everyone..... Hope you all are well....
I need some help..... again......
Im trying to get the sonarr upcoming media plugin to work.... but im failling miserably.....
Installed upcoming Media card via HACS...
and tried following this for the sonarr part
Oh thank you very much for the answer my friend, but my problem is linking the background color to the state of an entity. I have some buttons for navigation only right, they dont have any entity attached, they just add a hash on the end of the url and i use that to display different cards. I was using an input.select to give it a state but then i noticed that multiple users would mess the interface for each other.
You need to restart 1 time before you can configure it (and restart again)
Person card not showing up when adding it to my yaml file, dashboard is just blank....
finally getting error Custom button-card doesn't exist
Ok person card is not showing cus somehow my phone is showing "not home"
is there any way to change what shows on an area card? Like for example i have a two motion sensors in a room but one has a long cooldown and thats the one that shows on the area card id like it to be the other but I dont want to disable the other in HA
Hi there, I'm trying to add frontend modules, but everytime I do I get "since you are not using lovelace in storage mode, you neeed to manually add the resource"
how do I set up storage mode?
I googled - nothing, always about getting in yaml mode
Reinstalled everything and still getting this error:
How have you setup the card?
I copied the template code from the docs and just change the person.myname
template: card_person
entity: person.username
variables:
ulm_card_person_entity: person.username
ulm_card_person_use_entity_picture: true
ulm_card_person_icon: mdi:face-woman
ulm_card_person_battery: sensor.battery_iphone
ulm_card_person_eta: sensor.waze_travel_time_person
ulm_address: sensor.s10_mike_gegeocodeerde_locatie```
I removed the person_eta variable
Seems like the battery sensor does not exists
Oh maybe I need to rename it
All those entities are examples and need to be changed to your local ones ๐
Or just remove the variable line if you dont need them
Does anyone know how to enter storage mode for frontend? I can't find any instructions
That's the default
from my default installation I am getting the message I'm not in storage mode
there is no lovelace info in my configuration yaml
there's no lovelace yaml
The default is still storage mode, which uses nothing from your config directory
It's all in config/.storage and not meant to be touched
I haven't touched anything....
Ok
What is the problem?
when trying to add a frontend module, it says I'm not in storage mode
What does?
HACS
That seems unlikely
But you have to take steps to move out of storage mode, as in the link above
It's a fresh install
Ok
Still not clear on the problem. HACS works in both modes
the modules I try to add, don't install, they just download
Nothing useful in that screenshot
anyone help with a quick question
HAOS smaba shows I have put the weather-card.js into the following folder /config/www/weather-card/weather-card.js
but when I add the resource url with the path /config/www/weather-card/weather-card.js and then add the card manually with
type: custom:weather-card
it states it cannot find custom
am I using the correct path ?
Then add the resources that it tells you to add
Somehow you've managed to switch to YAML mode. Or HACS is confused
You are using the wrong resource path
what is the correct resource path ?
/local/weather-card/weather-card.js
I created a dashboard as part of the installation for key master, is this 2nd dashboard the problem?
Probably
does that need specifying in configuration.yaml?
the dashboard?
Yes
Did you clear your browser cache?
yes
I wish the resource would check before adding the url
at a loss here
@dark dirge didnt work
I had to manually create the www
can I place the js file somewhere else ?
I think it was because of that dashboard
I deleted it and it seems to be downloading now.
If /www folder didn't exist when HA booted then you have to reboot it in order for /local url path to start working
not sure if this is the case here - just an old issue I remembered
No, you cannot
hi, I'm getting "entity not available" on my dashboard when setting up key master for my front door
not sure how to resovle
keymaster isn't part of Home Assist, you probably want #integrations-archived
ok
Is there a reason mdi's only sort of work or do I need to change settings? - I have mdi's showing fine on my phone , my wife's phone is only showing a few of them and so is my computer
Sometimes that happens to me and refreshing resolves the issue.
looks like something to do with theming to me ( I am no expert) but is your pc showing white tiles too? as it seems from spacing they are there but probably white. try using a dark theme only and see if it fixes it then your know were to start to fix it.
Do you have it working?
I do not use that
Im thinking Im missing something somewhere....
The Sonarr Upcomming Media entitiy on its own indicates 1 upcomming episode...
if I remove the "media" i get "undefined" is not a valid JSON
I dont have www/custom-lovelace/ folder, but I do have /config/custom_components/ui_lovelace_minimalist/
Interesting, that worked mate - maybe I'll have to set a background to make sure they show ๐ค
Hi, i added the water meter to homeassistant. Via an esp8266 i publish the meter every minute via MQTT. So far so good, Now id like to add a somewhat realtime water usage, so a graph that shows the water/minute. I found that a utility meter can show the delta since the last value, but is it just me or is the minimum delta 15 minutes?
i see the utility meter uses cron for this, so having it run every minute should be possible, just don't know where to change this
I've been meaning to set this up. I'll have a run through tomorrow when I get home and see how far I get
Manage to get it to work.... I had to uninstall/delete the normal sonarr plugin...
if u need help DM me
Excellent, cheers for the advice
I have a button in my dashboard, that makes a light blink. I can't remember where I found a guide to tell me how to do it, but I don't understand why it works. Can't find where it actually says what entity should be triggered. This is the code of the button.
The scripts.yaml just contains the name of the script, and then a line with "sequence:". Can't find anything relevant in configuration.yaml.
Suggestions as to where I should be looking?
maybe its a scene "good_morning2" that triggers it....
sorry a script named good_morning2
That sounds likely, but as I mentioned, the scripts.yaml contains the name of the script but nothing more. I would asume that somewhere it would have to point to the path where the script itself could be located
Image
it shows a script with the name - but I cna't see anything in it that seems relevant.
Hi everyone. Is is possible to change configuration of the picture card through automation? I want to change camera_view from auto to live based on another entity state
Hi. Is it possible to import my own css to lovelace?
Entity cards - I'm trying to add an entity card which is monitoring my fridge , for primary info it will show its turned on/off , however I want to add text before it e.g. "the fridge is currently" primary info , I also want to add the Watts its drawing into the entity card - how can I possibly go about this?
@rare junco template sorta like
The temperature is {{ my_test_json.temperature }} {{ my_test_json.unit }}.
@marsh wadiyes, https://community.home-assistant.io/u/Dino-Tech
some older stuff there and in my repo. Many different ways to tweak stuff
thanks mate appreciate it - I shall try this!
shouldn't this be working?
@atomic glacier I converted your message into a file since it's above 15 lines :+1:
is there a way for a toggle to run a different script each press?
E.g. I want one press to run an open blind script and the next to close them
call a script and use a choose:
as in I already have a script made up for opening and another for closing the blinds - so add a choose option to the button ?
no, to a script that you call from the button
hi guys, running latest dev version...i was wondering if the line around the cards is introduced in one of the versions?
like to get rid of it
default template
what would be the best way to show the buienradar sunchance entities, so judge the best sun day of the week? other than a plain entities card ofc, showing the percententages? tried a mini-graph-card, but thats really silly ๐ showing historic data
- type: custom:mini-graph-card
name: Kans op zon
show:
labels: true
graph: bar
entities:
- sensor.buienradar_sunchance_1d
- sensor.buienradar_sunchance_2d
- sensor.buienradar_sunchance_3d
- sensor.buienradar_sunchance_4d
- sensor.buienradar_sunchance_5d
bar-card is better (not showing history, as does core history-graph obviously), but I'd like them to show a curved line graph from 1d to 5d..
Hey, I want to set my cover group over the tap_action in the frontend to the positon of 98. But I don't know where my exactly my error is. Is it not possible to use position under data like in the dev-tool?
tap_action:
action: call-service
service: cover.set_cover_position
data:
entity_id: cover.cover_group
position: 98
service_data:, not data:
ok nevermind. Need service_data: not data
So, for that is the data option in here? https://www.home-assistant.io/dashboards/actions/#data
2022.9.2
I'm getting the attached error continuously. Any idea where I can start for troubleshooting? Also, I don't know how to access the location of where the error is occuring
hi! I managed to integrate my alexa shopping list with home assistant. At home we use that extensively. Now I want to take it one step further and I've defined as zones the 2/3 supermarkets we visit 95% of the time so when a device tracker detects we're in one of them (with an error margin) HA displays the shopping list in the home screen. However, I want that to be per-user basis. My wife and I both have the same landing page but I only want to display that card for whoever is in the store, not to both
hopefully duplicating the landing page is not the only choice, there must be a way of knowing who the current user and it's location
hey, anyone has experience with this project?
https://github.com/j-a-n/lovelace-wallpanel
trying to use it. but dashboard stays blank. need some help figuring out my mistake
I was about to hit you up for help with the sonarr add on but just managed to get it up and running. Thanks for the invite to DM if I had issues though, much appreciated.
@rare junco this could work https://www.home-assistant.io/integrations/cover.template/ and then just use it as a https://www.home-assistant.io/integrations/cover/ in a card, perhaps
Is it possible to change a dashboard via an action in scripts? I have a dashboard of picture cards of Playstation games with each one triggering said game on tap. My goal is to return to the main dashboard once Iโve launched the game.
Hello Everyone. Im a bit stuck on a code that used to work but now doesnt. It works on other parts of my total code but not this section and havnt been able to figure out why. During trouble shooting i put 2 markdowns. The first one shows but the second one doesnt. Anyone know why it wont load anything after stack in card? https://paste.debian.net/1258067/
Does anybody use the Radarr integration for the upcoming media card? I've just set it up and although it appears to be pulling data through HA it isn't picking up digital releases which tbh is the main reason I'd want it
Hi all - can anyone point me in the right direction on how to potentially get a 3 way toggle showing in the UI? Basically I'm trying to have something that acts similarly to a toggle button, but where it has three states: Off, Light, Heavy. Any thoughts? Is that even possible?
sounds like a fan
input selector helper
It's not. ๐ I have a mood lighting automation that is attached to Plex on my family room TV. When a movie or show plays, it dims the lights. Right now it's just on or off. But I was thinking about putting in a "light" version where the amount of dimming would be less
https://youtu.be/nBdDdC2jVUc?t=453 he goes over how to do something similar in this video
cool, I'll check that out
timestamped to the helper part
I'm just saying that it sounds similar to controlling fan speeds
but you're certainly welcome to explore input_select
Oh, I didn't know if there was like a fan card, and so you were gonna suggest looking at that, or something
Had no problems checking the state of a lock or cover and changing the icon color and background color, but i seem to be unable to use is_state on a switch. Is it because a switch counts as a "limited template"?
This would be on a custom mushroom light card
style: |
mushroom-shape-icon {
--icon-color:
{% if is_state('switch.vent_smart_plug', 'off') %}
rgb(244,67,54) !important
{% else %}
red !important;
{% endif %} !important;
}
Full Card YAML
entity: switch.vent_smart_plug
fill_container: false
use_light_color: false
card_mod:
style: |
mushroom-shape-icon {
--icon-color:
{% if is_state('switch.vent_smart_plug', 'off') %}
rgb(244,67,54) !important
{% else %}
red !important;
{% endif %} !important;
}```
Hello Everyone. Im a bit stuck on a code that used to work but now doesnt. It works on other parts of my total code but not this section and havnt been able to figure out why. During trouble shooting i put 2 markdowns. The first one shows but the second one doesnt. Anyone know why it wont load anything after stack in card? https://paste.debian.net/1258067/
๐
does button card have a discord?
how can I change the position for different state-labels because when it changes from "on Weekday, in X days" to "today" or "tomorrow" its completly getting out of wack, i could create a png for each different state but is there an easier way ? thanks for any help
Are you saying you don't want the text centered?
All elements have an implicit yaml style: transform: translate(-50%, -50%) applied to them. You can override this with your own value.
i want them centered i had already transform in but when it changes to as example Today its completly more on the right side of the bin
sorry i had -100 in it might work i will test it thanks mate
Hi all,
I am a new noob to this OS and wanted to automate my entire home on this platform. I started with very low configuration resources (Raspi 3, etc.), and started working with ESPHome with a few ESPs. My starting project is to have an automated water level indicator along with controlling the pump. I have started to collect the pieces. But, since I am very new to YAML-based scripting. I need a little help from you guys.
Point me out on these things:
Battery level indication for my LI-ION batteries that will go with esp8266(few NodeMCUs) with the hardware specs.
How to get the same data (sensor data, I couldn't find my sensor name in the dropdown list) on the dashboard as an entity (in a Gauge or some other kinda visual) with some DB involved?
Using the Ultrasonic Sensor for water level indication (Low budget and need for the hour can not wait for waterproof or laser-based spec) scripts with deep sleep.
Automated control of relays for the motor starters to complete the whole system.
Just guide me where I can find this appropriate stuff based on HAS OS itself or anyways that might achieve this project.
Thank you!
(Pardon if this is repeated very new to discord)#NotTryingToSpan
I rather like https://github.com/maxwroc/battery-state-card for a UI display of battery levels
It's a custom card, you have to install it, but rather nice
@narrow umbra Please do not cross post. Read the channel description, post it and wait for folks to respond. Crossposting wastes people's time as they're unaware of the help you're getting elsewhere.
If you don't get any responses after an hour or more, and your message is no longer on screen, it is fine to re-post or post a link to it.
You asked in the right channel first time
@split granite Ohh ok, but thanks for pointing out๐
I'll check this out!
Sorry
Hi. Can anyone help me with my issue? Iโve been stuck on it for days now.
hey, I have several dashboards on the left-side column. How do I change the order of the dashboards?
Click and hold on the header of the side bar to enable edit mode. You can also select your user and there is an Edit button to enable as well
thanks! I had no idea that existed! Cheers.
The problem is that custom:swipe-card doesn't like to be inside custom:state-switch apparently ๐
try wrapping the swipe card into some "vanilla" HA card.
e.g. wrap it in vertical-stack or conditional card (you don't have to add any condition)
(overall I suspect that famous cardhelper could do much better job helping to initialize custom: cards - when those are still loading. just a thought, I'm not a dev)
anyone know why the precision of my plug's power usage changed? It looks like its now tracking an extra decimal of precision but not reflected right in the sensor/Card
I am assuming should ready 26.5 and 345.4
Good evening. I apologize, if this the wrong channel for this kind of question.
I would like to build a markdown card with a background picture. This i managed to work.
But is it possible on top to add an gauge card? I search and tried to understand the card-mod addon, but not sure if it is possible.
Example: Add the two gauge on the picture.
you should not assume but check raw value for sensor in dev console > states tab.
if the value is exactly as in the chart this is not a frontend problem but likely a specific integration
@haughty vine thanks for the info I changed nothing on my end and has been fine for the past year and this just started happening... looks like I can subscribe to analog input instead of electrical input like I have in the past...
Quick example with card_mod:
https://gist.github.com/kulmegil/3ee94368c441943c37257a1e104ec6e7
Wow. Thank you very much for the quick reply. This is exactly what I was looking for.
np
btw if you want to improve visibility of text values over images can use small black shadow (updated example on link)
Thx a lot. I'll check it out
Suppose I have a bunch of devices that should have dashboards that are mostly the same but with sections that are different, and I really donโt want to propagate changes manually for the things that are the same across all. Is there a way to use something akin to #include statements? And what I think might be a taller order, still be able to do the edits in the UI?
Actually, I think Iโve just figured out Iโm looking at this wrong.
What I need instead is the equivalent of โ#ifdef This_device_is_device1โ type of thinking.
That seems a lot more promising.
I've been trying to figure out a solution to a changing background image for a while and can't seem to find a way to make it work. I have a sensor the finds a random image from a wallpaper site and a script to download the new file. At first I was having it save as a specific filename but it seems I would have to reload my cache every time to change it, so instead I changed it to save by the sensor name. But now I'm struggling with how to get the sensor value into the lovelace config. Can anybody help me out? Frontend is not what I'm good at all.
I'm trying to get flex-table-card to show all entities of each of my temp sensors in a table. But it seems I can only have one entity attribute per row, which kind of defeats the purpose of having a table. Anyone know of a way to list the device and all sensor attributes on the same row?
Edit: figured this out! It doesn't appear when managing a user/profile via settings, only when adjusting one's personal profile.
Greetings all! Hoping someone has an answer to what should be simple but is stumping me...
Every guide I read mentions a 'theme' selector on the profile/user edit page... but it's not there for me (I have the latest version). Has that moved or do I perhaps need to do something else to make it show up?
I have themes working fine otherwise: can specify via the service call or in dashboard raw yaml edit.
I want to make an automation that changes theme but only for a certain user; my understanding is that this user needs to have (default) 'backend theme' selected, while others have a specific theme selected to override that... but that last part I can't do.
I believe this is what you're looking for https://github.com/benct/lovelace-multiple-entity-row
Yes currently using that one, but it doesn't put it as a nice table like the flex one. Let me take another look at the docs to it, maybe something I'm missing on that one.
So I want to make a group to turn on multiple lights (and one smart switch for a light) can I add them all to the same group or will I have issues if they're not all the same entity?
You can make a mixed group, but it's better to turn your switch into a light and then make a light group https://www.home-assistant.io/integrations/switch_as_x/
Are the mixed groups the Old Group Style?
(I found that switch-as-x setting and I really liked the interface for it.)
Yes. The old groups are the only that allow different entity types in one group
Right, and presumably the Old Groups will eventually be deprecated and go away, on an infinite timeline. So might as well put that off a little longer.
I don't expect that to happen any time soon, as there is no alternative for dynamic creation of groups with the new groups (using eg group.set)
Uh, I doubt it
there will be backlash if they remove groups. It's likely that groups will just never change
or the ||tagging system|| may replace the old groups
Speaking of which. Wouldnโt it be useful to have a couple of those as standard? All lights, all covers, sorts of things spring to mind.
I absolutely hate that "feature" of google home.
- Hey google, turn on the light
- OK. Turning on 86 lights
hehe, while the kids are were sleeping
The first time the zigbee bulbs in the bedroom turned on after a midnight power outage was the closest I've been to a divorce in ten years of marriage.
I had that with esphome lights and a router which didn't work well.. They automatically rebooted after 15 minutes without wifi, and power on state was on
in the master bedroom and the 2 kids rooms
it will not
My esp doorbell rings after power is returned
Still can't figure out how to stop that, but it only happens once and a while.
Mine does the same, I've used the tutorial Frenck made. I only happens when I need to install a Shelly or something like that, and turn of the power because of this
You should have put that between spoiler tags as well ๐
lol
rounded corners on current dev look a bit funny (joining devices with ZHA). Doesn't look like there's an open issue for this(?)
Define funny? Because the nested rounded corners have the same radius number, rather thanthe two radiuses being set such that the center points are the same?
Or do you mean the top corners?
Yeah, I meant the top corners. The ZHA UI has a non-rounded green rectangle in the box which messes with the top corners
the screenshot isnโt ideal
Are there any tri-state switches? I'm interested in one that can be on, off or automatic. So I can override automatic behavior momentarily.
@gloomy iris I converted your message into a file since it's above 15 lines :+1:
Hey everyone,
petro has been helping me on the forum but maybe things have shifted here (I will post the solution on forum of course).
Trying to create a list of areas for a bunch of entities (created with auto-entities).
Anybody know how to get this to work?
Tried
type: custom:auto-entities
filter:
include:
- entity_id: sensor.eq3*
card:
type: entities
entities:
- type: custom:template-entity-row
name: '{{ area_name(''this.entity_id'') }}'
and
type: custom:auto-entities
filter:
include:
- entity_id: sensor.eq3*
options:
name: '{{ area_name(''this.entity_id'') }}'
card:
type: entities
entities:
- type: custom:template-entity-row
(each with and without the quotes around this.entity_id.
P.S.: also open for any other cards that can be used to achieve this ๐
๐คฆโโ๏ธ
please let me repost this, I still havent found a core nor custom solution.... https://community.home-assistant.io/t/how-to-create-a-nice-line-graph-between-these-5-sensors/479085
cant we connect the (future) dots somehow?
Is this directed at me? ๐ฆ
Yes, you posted twice to โtrickโ our bot
Ah, in the Android app I did not see that the message was too long so I wanted to make it easier to read for you so I split in two.
I did not want people to have to download a text file.
Just wanted to correct my mistake, not bypass the bot.
I meant no offense
typeis also an option
So close ๐
Thank you!
Thank you. I love it when vague hints work.
use 'config.entity' instead of this.entity_id and adjust the config to
- type: custom:auto-entities
card:
type: entities
title: Area name
filter:
include:
- entity_id: binary_sensor.*sensor_motion
options:
type: custom:template-entity-row
name: >
{{ area_name(config.entity) }}
o dear, did I spill the beans now, was busy writing that and now see Thomas join in.
No, solved it already with Thomas's hint ๐
But thank you for your alternate solution.
What is the difference between using this.entity_id and config.entity?
config.entity works ๐
Both seem to work
type: custom:auto-entities
filter:
include:
- entity_id: sensor.eq3_batt*
options:
type: custom:template-entity-row
name: '{{ area_name(''this.entity_id'') }}'
card:
type: entities
That's why I was curious what the difference is between the two so I understand for future use cases ๐
this.entity_id works because of auto-entities. config.entity works because of template-entity-row
only use this.entity_id in type: custom:multiple-entity-row cards
Though only in the way you have individually used them. config.entity or "this.entity_id" will work, but "config.entity" or this.entity_id won't.
Pure dumb luck.
right, the {{ area_name('this.entity_id') }} also does it, needs the quotes. I hate those...
But I do need both auto-entities and template-entity-row to achieve my goal, correct? Or could I achieve it with just auto-entities + entities card, i.e. without the template-entity-row card?
if you want to template the Name to area_name, you need the t-e-r card plugin. no other can do that
start with a single t-e-r row, and then build that into a auto-entities with config.entity or 'this.entity_id'
Okay, then I did start out right. I just failed in that one detail.
Already solved it all right after Thomas's hint. That was the missing piece to the puzzle.
Now I am just trying to learn more details ๐
marking this in my Docs ;-). should be spread wider than here...
Rows are not cards
I could link you to a github issue on the topic if you'd like
๐
yeah, I meant custom:template-entity-row is the only custom plugin that can do that
always call them custom cards.... but they're obviously not. habit if speech. need to be more precise.
I know you know. It's just... a touchy subject
hehe.
seem to recall a lot more text on the matter than this: https://github.com/thomasloven/lovelace-template-entity-row#why-does-this-look-weird
^^
Since t-e-r only works inside an entities card, is there a way to remove the icon and state from the entities card? I know I can define icon: and state: without a value, but that does not align the name to the left because it only blanks the two and does not remove them from the layout.
So could the above result (list of areas) e.g. also be achieved e.g. with auto-entities + glance card (+additional module?) somehow?
Or would I need to research if I can use config-template-card to remove the icon and state from the layout?
Perhaps you want a section row? https://www.home-assistant.io/dashboards/entities/#section
But I cannot have two types, or can I?
Because I need t-e-r to be able to use the template.
Ah, yes... I was thinking you only needed the this.entity_id part, but you also need the area_name. Right
You could maybe use a full template filter for that then, but that's a bit more involved.
I am essentially looking for ways to build a table where first column is area, second is temperature TRV, third is temperature in-room sensor, fourth is humidity.
I can create 2, 3 & 4 using auto-entities + glance card.
But column 1 is a struggle to get right.
OK. I know Home Assistant is a home automation platform, but in cases like this I usually ask: Is it worth the trouble? Can you really not be bothered to update this one card manually every time you add a room to your house?
Well, it probably would be much faster to do it manually, yes.
So if it cannot be achieved within reasonable effort, then I would do so.
But if it can be done and I simply have a basic syntax wrong (like I did with type t-e-r ), then I like to try and put in the work and learn more about lovelace and how to use the cooler & more versatile cards.
I will continue my search tomorrow ๐
I'm sure someone better at coding than me came up with something that I can abuse for my purpose ๐
@wispy kindle I converted your message into a file since it's above 15 lines :+1:
Does anyone know how to make a custom sensors history show as a graph instead of hundreds of individual values when opened in the UI. I have an average temp sensor and its history view looks strange as it appears as a rainbow of so many values for a given time period, not a graph.
You can probably use button-card to make rows that are repeated by auto-entities
If the sensor doesn't have a unit of measurement, it will show as a bar instead of a graph
Recently concocted this, but still have the iconsโฆ essentially theyโre glued entities with a t-e-r listing inside a fold ๐
And some card-modโฆ.
If you want even less, then indeed use button-card, or maybe core Markdown card. The latter is great for showing text, but has less styling ease
im getting "Error while loading page entity" in Safari and the Home Assistant app for macOS (which is Safari based i think?)
i dont seem to have the issue on Chrome
i have emptied caches in Safari, and reset frontend cache in the app
ill try in #ios_and_mac-archived
Selecting text from Dashboard cards doesn't seem to work in Chrome. Is that a HA bug? https://community.home-assistant.io/t/ha-webpage-why-cant-we-select-text-from-lovelace-cards-and-copy-to-os-clipboard/442187
Cool, thank you! I will take a closer look at it this weekend ๐
Maybe I can get it to do what I want.
I have also been looking at the flex-table-card because it already produces a nicely formatted table. But I have not yet gotten it to work with templates.
I will take a look at button-card for this also, thank you.
Still all in all a noob in templating, but I will give it all a try.
I figured out how to make re-usable lovelace cards between views/dashboards using nodered https://www.reddit.com/r/homeassistant/comments/ydpy2c/github_daredoeslinkedlovelace_reusable_cards_in/
Hi guys, is there a way to include multiple directories using the !include tag? I have custom cards at multiple locations (canโt have them all at the same place because they would be gone after a update of my theme) and the !include_dir_merge_named only accepts one directory (defining it again overwrites the first one)
Also apologies if this is not the correct channel
@light gull: I figured out how to make re-usable lovelace cards between views/dashboards using nodered https://www.reddit.com/r/homeassistant/comments/ydpy2c/github_daredoeslinkedlovelace_reusable_cards_in/
Wouldn't it be easier to use !include in YAML mode? Or is this a hack for UI mode?
Hack for UI mode
Also going to work on a way to pull in templates from other users, but thatโs v2
!include is also possible in Ui mode using the code editor ?
Can you edit the cards that you include in the UI?
Yes? Using the code editor. It does not understand everything but you can copy paste these yaml lines
Not using UI mode though. With this I can edit the template cards in UI mode, and click a button to push the changes to all my dashboards
Maybe I donโt get what youโre doing, but we can definitely edit the yaml in Ui mode. Iโll check your card and test it, thanks for adding this tool !
Itโs not a card. Itโs a flow for node red to synchronize changes to a card between dashboards. I get the confusion though
It uses pure JavaScript and the home assistant websocket api
A I see. In. That case I wonโt be able to run it. Not using node red.
I canโt figure out how to make an automation in Hassio with the same ability. I have it written as a typescript library as well though, so maybe Ill try to create an integration
Well, for me itโs the opposite: Iโve never met a situation where the HA automation tools left me requiring something else. Can do all I need
So, as always: your mileage may vary ๐
So the standard dashboard disappears when selecting another dashboard as default. Is there a way to bring back the standard one without changing default view back to it?
Navigate directly by url
old man voice back in my day we didnโt have no fancy automations
using the javascript Math.round(num) method is supposed to return a 2 decimal rounded number, but it rounds to int in my card
- type: custom:button-card
name: >
[[[ let device_power = parseFloat(states['sensor.switches_total_device_power'].state);
let actueel = parseFloat(states['sensor.actueel_verbruik_switches'].state);
let patch = parseFloat(states['sensor.patchboard_zolder_actueel'].state);
let power = Math.round(device_power + actueel - patch);
return 'Set Switches: ' + power + ' W' ]]]```
https://linuxhint.com/round-number-to-2-decimal-places-javascript/#b2. when I use the toFixed(2) let power = (device_power + actueel - patch).toFixed(2); method it rounds correctly, but then it's no longer a number but a string... cant we round the Math method then?
Could you wrap it with parseFloat?
yes, let power = parseFloat((device_power + actueel - patch).toFixed(2)); seems to work. but it also seems to be a convoluted way to round to 2 decimals..
Eh, worry about it when youโre desperate for more efficiency in the system
did you just update to the beta?
ok
Always amโฆ. ๐
Is there a good way to maximize the space usage of a fire 10 tablet?
It seems that the way cards are laid out makes the buttons small
I have an integration with a bus-provider but the state shows a ISO format of date and time. If I make the deviceclass 'timestamp' then the entities card shows me "In x minutes". I however want the time in HH:MM.... does this mean I need a template sensor on top (extravcintg only HH and MM) or can I provide some formatting-statement to the card?
Hi everyone
whilst my template table tests need weekend amount of free time, I was trying to mod one of my Apex Charts.
I wanted to add dropShadow to my lines and also dataLabels.
As it is not working as expected, I checked the docs. They are a bit confusing here and I don't know if they are telling me "wrong place" or "not supported" or don't flood apex_config.
I think they both should go here, but I see no results.
apex_config:
dropShadow:
enabled: true
color: green
top: 18
left: 7
blur: 100
opacity: 0.5
dataLabels:
enabled: true
P.S.: It's a normal, default line chart
@gloomy iris I converted your message into a file since it's above 15 lines :+1:
is it possible to change the font-size of the footer in a picture entity card?
I'm using the multiple_entity_row custom card and have 3 sections of data. Is it possible to add a header to each section? I tried using input_text or a template sensor set to text and both look really weird.
Is there a good way to maximize the space usage of a fire 10 tablet? It seems that the way cards are laid out makes the buttons small
Not sure if it is possible with the stock card, but should be possible with card-mod
https://github.com/thomasloven/lovelace-card-mod
Any particular card?
If you use layout card, you get additional options for your dashboard layouts. If it is not a card bug, then maybe that will help?
https://github.com/thomasloven/lovelace-layout-card
If not, you may also want to take a look at card mod and style the buttons to you liking (although I personally find it quite tricky at the beginning).
Just wanted to share for others ๐
If you use auto-entities, then datalabels and extremas are states like so:
- entity_id: sensor.xiaomi_humidity_*
options:
yaxis_id: first
stroke_width: 2
show:
extremas: true
datalabels: true
If you use "normal" series, then so:
stroke_width: 1
show:
datalabels: true
legend_value: false ```
Still have not solved dropshadow though. Even thought there are forum examples, it is not working for me.
enabled: true
color: green
top: 18
left: 7
blur: 100
opacity: 0.5```
Anybody know where this needs to be placed to work with in auto-entities example?
I noticed that some entities show the attributes in the info tab and some don't. I'd really like to see the attrs of my climate entities there.
Is there any specific reason for that?
Thanks!
Does the Info content not depend on the integration or entity type that supplies it?
E.g. climate has different Info than a battery.
I think climate is special anyway because it by default show differently in dashboards and info etc.
Is there a way to get the area_name from config-template-card to apexcharts?
I am able to template other fields but area_name has not worked yet.
Working:
graph_span: ${states['input_select.days_back_to_show'].state+'d'}
not working:
name: ${ area_name('this.entity_id') }
No. Those are javascript "templates", not Home Assistant ones.
wait
${ await this.hass.callApi("POST", "template", {template: `{{area_name('${this.entity_id}')}}`}) }
``` might work
But it's likely not to
Is there a button card that allows you to switch a main switch and also show the state of a secondary switch very small in a corner or something like that?
(I have an input Boolean that via some automations switches an underlying entity and Iโd just like to be able to see the underlying entity at a glance, because itโs not always going to match the Boolean)
That looks quite interesting ๐
Right now I am getting the error message
11 | ...
12 | ... _*
13 | ...
14 | ... ("POST", "template", {template: `{{area_name('${this.entity_i ...
-----------------------------------------^```
for
```name: ${ await this.hass.callApi("POST", "template", {template: `{{area_name('${this.entity_id}')}}`}) }```
Ah, I thought that was only needed when the code becomes too long/complex to display in one line.
You're mixing two programming- one markup- and one templating language here. If it works that'd be fantastic.
Unfortunately, when I save it, it gets transformed to
name: >
${ await this.hass.callApi("POST", "template", {template:
`{{area_name('${this.entity_id}')}}`}) }
Not sure if that tells you anything?
Meh. That's the same thing
Okay. Because usually when I use templating it changes it to the |
All those small things....
Find the right syntax for your YAML multiline strings.
My list of weekend todos related to areas is growing ๐
You could always make your own custom card that does exactly what you want. It's not as hard as people think.
Beware! If I start with something like that, you will never hear the end of it ๐
Don't threaten me with a good time.
Let's try something simple. Convert a date delta to hours, starting from now and then adding an "h" so apex knows the unit is hours.
I would have thought that this should work, but again, I thought wrongly.
graph_span: ${ (now() - input_datetime.startdate)/60/60+'h' }
Do I have to work with timestamp instead? Or something similar?
Added to my todo ๐
Also incorrect
graph_span: ${ ((as_timestamp(now()) - as_timestamp(input_datetime.startdate))/60/60) +'h' }
Is there any way to sum up entities, which shows real time data ? for example, to sum up current power consumpsion of several devices?
I just realized: it needs to be javascript, does it not? Otherwise apex charts will not support it because config-template-card uses javascript and apex charts does not use templating for graph_span.
One step forward:
${ states['input_datetime.start_date'].state+'h' }
gives me the date plus the ending "h"
Now, two options:
- get the timestamp from input_datetime. The "timestamp" is already an attribute of the state. But
state_attr['input_datetime.start_date'].timestampis not working. - directly subtract two dates. But I still have not found out how to get current datetime.
Hello! Long time Domoticz user here trying to switch. I am trying to setup a table to show some statistics using the flex table card addon. I am getting an error saying"this.cols is undefined" when I use the following code in a "manual" card. Any ideas why it isn't working?
type: custom:flex-table-card
title: Whatever
clickable: true
sort_by: state
max_rows: 5
entities:
include: sensor.sensorsensor
Getting CORS issues with frontend tools that use unpkg?.... basically its giving me an error loading the unpkg litelement etc from a bunch of js addons because the cors header is missing. Anyone seen that?
custom button card help needed i have button set as custom areas that trigger input select cards to change other cards, i want the button ic0n to change color when active here is the relevant sections
Fixed #1
states['input_datetime.start_date'].attributes.timestamp
Does anybody know how I can get the current time with Javascript?
Do you have any columns defined? Your shown snippet does not look like it, and the whole idea of that custom card is to create a table that with multiple columns pulled from state and attributes. For example:
columns:
- data: name
name: Entity
- data: state
name: State
- data: some_attribute
name: Some Attribute
Hi! How do I set two different icon colors based on my settings? https://pastebin.com/f0xEY5pc
This one will only set it to orange if off (tested it back and forth)
Well that's embarrassing that I missed... Got it working now. Thanks!
Could someone give me a hand real quick...
I had to stop using google geo as i got like a $60.00 usd charge. OOF So trying to now track my peeps location with just the HA app geo. But for some reason the attribute went off on my sons phone and it screws the whole code up. Is there away to just leave it blank if not found?
[[[
if (states['person.g3_3'].state == 'home')
return
if (states['person.g3_3'].state == "Mother's")
return
else
return `
</ha-icon>${states['sensor.person_geocoded_location'].state}`
]]]```
I kept using them interchangeably and I never realized that they are different for a reason ๐คฏ
'''
@barren hazel I converted your message into a file since it's above 15 lines :+1:
I'm trying to use markdown to make a table for the most part, but when i try to use multiline, things break.
I solved my own problem, nvm
Is there a way to prevent scrolling on a dashboard? Eg to scale everything such that it fits without allowing scrolling? Trying to have a grid 2x2 of cameras that I want to fill the page as much as possible without scrolling
@warm boltI use https://github.com/thomasloven/lovelace-layout-card and set the parameters for width and height so each page fits the screen.
I'll give that a try tomorrow. Thanks
Set them to 100%? Or do I need to pull the viewport dimension
Does anybody know if I can get the flex table card addon to display statistics for a device?
ok i think this is the right place to post this, I have a crestron tablet that i'm trying to use as a wall display for home assistant; the problem is the tablet is running a quite old version of android (4 or 5 would be my best guess) and the version of webview it has wont let me get past the initializing screen for home assistant. as far as i have been able to find i'm not able to update the webview version because i can't get anywere in the android os (currently i just have a single button that opens the browser) without a vendor license from crestron, which i have no way to get
currently my best hope was possibly to see if there was a way to whitelist the ip for this device to run the older version, or see if there was a plugin or simmilar that would give me a way to control home assistant from this device (all i want to use this for is just turning on and off lights and other simple controls it doesn't need to configure settings or anything else like that
if anyone has ideas of how to do this or what to try i'm just looking for a way to make this work
Hello, one question, on the top button I have an air device and when I touch the button the air is turned on because I have it configured with tap_action: action: toggle, then when I touch it it turns on, I would like the buttons below to be the same to not take up so much, that when you touch it turns on, what happens is that the tapaction does not work on that card, how could I achieve something similar?
@tidal vale I converted your message into a file since it's above 15 lines :+1:
Okay so i have this apex chart
and i want to calculate what the colour treshholds should be here
color_threshold:
- value: 0.1
color: lightgreen
- value: 0.12
color: green
- value: 0.14
color: yellow
- value: 0.16
color: orangered
- value: 0.18
color: red
- value: 0.19
color: purple
So i made for each colour a template that shows this
- value: {{states('sensor.purple_value')}}
color: purple
but it throws me this error /// apexcharts-card version 2.0.1 /// value.series[0] is not a ChartCardSeriesExternalConfig; value.series[0].color_threshold[5] is not a ChartCardColorThreshold; value.series[0].color_threshold[5].value is not a number
Is there a workaround for this?
You are missing .state after the entity, if I am not mistaken
That doesnt work either :(
Put the template in the card name. Then you will either see something like object or the value. If you see the value, then the code is working. In that case maybe your threshold value is too small?
If nahe does not show the value, your code is not right yet.
What are you using? Config template? Because apex does not accept code by itself (from memory).
And if it is javascript it should be ${}
p.s.: i just do the name thing as a debug that won't break the card all together
Can someone help me setup hass to be public facing?
seeing this error and start over does nothing
Works fine locally
Anyone who has an idea why this works (setting it using the dev tools)
but when using in a lovelace it doesn't
entities:
- type: custom:slider-entity-row
entity: input_number.ioniq5_ac_limit
name: AC limit
- type: custom:slider-entity-row
entity: input_number.ioniq5_dc_limit
name: DC limit
- type: custom:button-card
name: Set charging limits
tap_action:
action: call-service
service: kia_uvo.set_charge_limits
data:
dc_limit: '{{ states(input_number.ioniq5_dc_limit) | int(0) }}'
ac_limit: '{{ states(input_number.ioniq5_ac_limit) | int(0) }}'```
are you using config-template-card? (Most) stock cards do not support templating/Javascript
mhm I'm not, I only used another "button-card" with a tap_action calling another service but that one didn't have data or variables
it's very hard to debug, what ever I do I don't see any errors. It's just a button
This is the full card btw
I am a compete newbie myself, but I think you are mixing/mistaking templating in HA with the Javascript you need in the card.
From button-card github:
custom_fields:
notification:
- background-color: >
[[[
if (states['input_number.test'].state == 0)
return "green";
return "red";
]]]
states['input_number.ioniq5_ac_limit'].state
Looks cool ๐
Thanks, still needs some tweaking. Don't like the look of the set charging limits button. Also a newbie myself, I'm just "stealing" other people cards and trying to figure it out.
Yaml is hard lol
@tidal vale try value: {{ float(states('sensor.purple_value'))}}
@sage vale This requires port forwarding, figured by your name you'd be familiar with this, read up here... https://www.home-assistant.io/docs/configuration/remote/
To anyone that can help, i've got a chore chart for my daughter, and we're trying to identify what chores she misses the most. I'd like to add alt text to these icons when she misses a chore. as it stands it's <ha-icon icon="mdi:alert"></ha-icon> and if i try to add... <ha-icon icon="mdi:alert" title="whatever"></ha-icon> or alt, or anything, hovering over the icon in question does not display the alt text. Basically just wanting additional text to show up if i hover over the icon.
Woohoo. Figured out how to make 3 buttons take up the space of one in the front end without the margins getting all buggered up.
Custom-layout-card type grid and then not margin 0, but -4px:
grid-template-rows: 70% auto
margin: "-4px"
padding: 0
card_margin: 0
(And a second custom grid for the two columns at bottom, same margins)
(The big one is force-thingy-on, the left small is โis thingyโs socket onโ, and the right small one is โis thingy actually heating right nowโ)
Gave up on trying to do this in the yaml card, since it was working in the developers tools. I just made a script to call the service with the input_number variables.
Did the trick very well. Thanks for helping me figure this out.
I know it is an absolute long shot, but to me config-template-card plus auto-entities plus card-mod are the three base components every card I build needs.
And they each add one piece of the puzzle but only the non-card card-mod is really available to all levels.
I would appreciate if the people much smater than me would take a look at my thread on the forum and maybe give some feedback to feasibility.
From the "WTH" I saw, these feature are missing for a lot of people. And the combination would make for the perfectly customizable cards.
Thank you and have a wonderful, sunny Sunday ๐
The stock sensor card appears to have a minimum width that doesnโt suit me. Anyone happen to have suggestion for an alternative thatโs similar ish?
I put a Gauge card in, I guess thatโll work.
Or use grid from layout-card to style the look? Maybe together with card-mod?
I am port forwarding lmao
Thatโs when Iโm connecting to my external ip
Did you figure it out?
I don't have anything to add but this is a very nice idea!
Yeah, ha-icon and friends dont currently support setting a title. You might be able to work arround this by wrapping the elements in something else that shows a title on hover, like say an <abbr> element. I have not tested this, but it seems plausible that could work.
Hi, I have an entity that returns ['0x1'] or ['0x3']. What's the easiest way to change this into a string on a card please?
@wanton nimbus <font><abbr>content</abbr></font> worked, <abbr><font>content</font></abbr> did not.
Thanks so much for your help, working exactly as i want it to now
How do I stop a mean sensor from displaying as "Entity is non-numeric"
I use a helper sensor to track a 1 min mean of power consumption for some things, and when those things are off... the sensor displays on dashboard in an error state and it's history is unavailable to see....
Any way to stop this from happening?
Ideally, it would just display "0 Watts" like the Dishwasher
sounds like you use a template with something like | int or |float so use | int(0) or | float(0) to overcome the unavailable state
@fiery ledge @vestal aspen
I re-implemented re-useable cards as a HACS frontend-only plugin. Currently in submission to be in the default repositories.
Much less setup now, just add the plugin, add the Linked Lovelace card to any dashboard, and it'll be ready to do it's thing. (Documentation in the readme ๐)
I'd love any comments/thoughts/critiques if you have any
no not yet
That is part of a layout-card grid thing already. It works with different elements, but sensor-card is too wide and gauge is too high. It's a little nnoying. Maybe I could override some sort of minimum height/idth parameter using card-mod. Let's see what the inspector says...
(in general though things just Go Weird when the layout runs out of room)
oh, wait, I think I see what's going on with the gauge card now, when i drag the width smaller and larger. it's not that the height has a minimum, it's that the aspect ratio of the gauge and button cards are different, and because of the way I've nested the various grid layout cards, those two aren't forced to line up by the layout engine.
(I do see a minimum width appear eventally but that happens well after the width iof the device class I'mm working on.)
(I've got a standard gid in a layout-card grid in a layout card grid in a vertical stack in a layout-card grid that's a Panel, if I read the layout correctly. So you can see why things are confusing.)
if I use grid-template-row: auto 4000px, shouldn't the second row be ludicrously large? I wanted to say 40px, but I didnt'see anything happen so then I tried 400 and then 4000, but still nothing happens there.
oh fuck. I spotted it.
it's called rowS, Jasper. you nitwit.
๐
I know that feeling all too well ๐
it's programming, that happens.
I'm gonna have to do a different approach to this whole grid thing, doing the real grid instead of just nesting various divider-uppers in different ways. I think I see how to do that but it will wait until tomorrow.
I am prompted to delete about a thousand of these because the entities have no state. is there an efficient way to do it faster?
#general-archived or #integrations-archived ?
which database?
I am using picture elements car in combination with buttons and map for local traffic
Could anyone point me where the mistake is?
I have pihole disable button with a timer for disabling duration, but i get an error when running it.
Error message: Failed to call service pi_hole/disable. offset states("input_select.pihole_disable_time") should be format 'HH:MM', 'HH:MM:SS' or 'HH:MM:SS.F' for dictionary value @ data['duration']
@tired wedge I converted your message into a file since it's above 15 lines :+1:
it says recorder as a source. I am using mariadb addon
I can't really find the following. I'm using mushroom as dashboard UI, but not the "easy" UI version, but the actual original version which requires everything to be done in YAML. The mushroom add on for the visual editor is lacking so much, it's not usable for me. Is there ANY way to have custom cards in a YAML file and use these in the visual editor? Maintaining dashboards in YAML is getting so much work, too much work even, this should really be easier.
do we have a way to let Maps show the route between 2 locations? (not the last trips a person did, but actual routes upon selecting to points )
asking because we used Here traveltime, and in the upcoming update to 2022.10, the route entity is no more
Is there a reason that the default naming scheme for Lovelace dashboards doesnโt follow that of the rest of HA? Specifically โ throughout HA, anything with a multiple-world title automatically gets underscores as spaces in default names. However, Lovelace dashboards get hyphens as spaces.
Hello all, Trying my luck at using a !secret in a iframe url for a dashboard. I am finding conflicting results on if secrets work in lovelace Any ideas?
The visuelle Editor deletes comments in the yaml. Is ther a way to comment the Code?
you would have to move the dashboard to YAML mode
I mean automations