#frontend-archived
1 messages Β· Page 131 of 1
Is there a cute little gallery of all the custom cards?
Does it need to be both cute and little?
I will try this HACS.... just dump it in the custom components folder and it goes magically?
Not really, folow the docs, then #609399695466430465 if you need help
ah, step 8 is on another page... I see........
No, I just assumed it was on one page
just messing
Can we talk more about piracy?
lol
ah isn't that adorable, you made it POP right in to integrations!
β
spinning wheel.......................
token waiting in the clipboard.............
and somethign failed.
try it with YAML instead?
Is it me or is it a bit hefty on the Pi 3?
what do you mean? i have HACS on my 3B+
Jesus - It's quite the collection
That's kinda the point
@lime warren oh yeah sorry, initial setup takes a while
No worries - still, thinking I ought to head for Pi-4 land soon...
Ah remember yesterday I was howling about weird history graphs? Well now that I have more than 24 hours of data, all of a sudden all of the graphs condensed in to one, and the units magically went to Fahrenheit.
the "Do Nothing" method wins again!
vaguely
but π
purge_keep_days for my brain's recorder integration is apparently set to 0.5
would be nice if Spotify allowed you to use their UI in an iFrame like they used to and someone ensure that you are paying them a monthly fee for the service. I pay $15 a month for a family plan with them. Maybe I will go the route of trying to expand on the Spotify Card so I can do more than what it currently does
something similar to what Atmos Home allows you to do in their UI
Ludeeus is away for 58m 49s with a message :point_right: snooooooooooooze π€
π Finally! Auto-entites has been updated, hacs-ified and the "Kinda sorta experimental-ish" label has been removed: https://github.com/thomasloven/lovelace-auto-entities
And you can now sort the entities!
oh mah lawd
Hey @wheat current you said something about doing something or other with this once Iβd fixed something about it. Well I have.
Ludeeus is away for 2h 45m 25s with a message :point_right: snooooooooooooze π€
WAKE UP LUDEEUS
Or maybe it was @mild veldt ? Something about deprecating monster-card.
y think so
Yes
Anyway. This and Ludeeus has kept me up far too late for far too many nights this week. iβm going to bed.
π€
Okay, but tomorrow you have to show me dialogues
Oh, right. That turned out to not work that well...
I can force a default one open, and after that itβs free for grabs. But the first one still shows for a bit...
I spent a day manually unoacking webpacks, to try to extract the component. Thatβs actually almost possible - except it only works for things that are dynamically loaded. The stuff that comes with index.html is locked up tight.
That sounds backwards π
I am unable to get people icons to show in my card in lovelace. The icon is 256x256, but I have tried 128x128 and 64x64 as well. What is the correct icon size that I should use ?
Here's a screenshot - https://imgur.com/a/Hi2YP6o
anyone able to help me with the following error: Platform error media_player.xboxone - Integration 'xboxone' not found.
i have made the entry into config.yaml as show but for the life of me cannot seem to do anything about this error
and all the required files are in custom_components
@slender nebula that integration hasn't been updated in ages, there's been breaking changes to the custom component setup since then. If i recall correctly you need to add a blank __init__.py file in the /custom_components/xboxone/ folder and then restart HA. (But this belongs in #330944238910963714 as it's not lovelace-related).
Ya I went though the support section for that addon and completed that but it still doesnβt want to work for me...
I've been trying to get an automation in lovelace to work, but i am at a stop. I want to turn off a lightsource when the source of a mediaplayer changes. As a trigger i have tried using source: in all manner of variations, but it doesn't work at all. Another mediaplayer i use, where the trigger is on, off or idle, it works. In the overview i can also see that the source does change. So i bet i am just using the trigger in a wrong way. Does anyone have any pointers?
#frontend-archived does not have automations, that is a #330944238910963714 thing ;)
Ok, i'll ask there. Sorry, thought that when i didn't do it via a yaml file i better post it here.
Here's some marketing screenshots for auto-entities:
Entities can be filtered based on parts of attributes, such as the hue of a light.
Devices and areas can now be selected with globbing or full out regexes
(My phone is in my Kitchen for demo purposes)
Entities can be sorted by state/name/attributes/...
And there's finally an option to remove duplicates.
Very nice π
@scarlet heart I had the same problem, I finally got it to work by adding the image info to the know_devices files
hide_if_away: false
icon:
mac: XX:XX:XX:XX
name: Luis Iphone
picture: /local/luis.jpg```
@finite bolt posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/hTgf3fXFKN/
@polar kelp
The 'Auto-entites' seems very useful to me.
I'm trying to use it as you show in "Show all gps device_trackers with battery level less than 50" example,
There is an option to show the current 'battery level' instead of 'last-changed' ?
No. That's just an example of using normal entity card options for the entities: https://www.home-assistant.io/lovelace/entities/#secondary_info
I see... the only values that can be show are entity-id, last-changed.
There is any other option that you are know to do so ?
Good day to one and all, I am in trouble here... I need to make up for breaking my wifes favorite porcelain figurine. so I need some WAF from my BMW. Im thinking that If I had a "todo list" on my front lovelace page, it would be a start, plus I have to find a replacement..
anyone done todolists in Lovelace and HA?
BTW, BMW = Beautiful Mexican Woman
Ok. I was thinking what BMW is not accepted by any spouse?
Generalizations aside, there's actually a shopping list built-in https://www.home-assistant.io/lovelace/shopping-list/
And I know some people use Grocy.
Someday I should start on this...https://github.com/home-assistant/architecture/issues/149
today you say?
to shreds you say?
I looked at my trakt integration the other day with hopes to rewrite it using the updated blueprint with config flow...I gave up pretty quick as I just didn't want to switch on the python part of my brain
or maybe that part is gone? or never even there?
@polar kelp
After I'm installing the "card-tools" & "secondaryinfo-entity-row",
How can I combine it with the 'Auto-entites' ?
I tried this:
- type: custom:auto-entities
card:
type: "custom:secondaryinfo-entity-row"
title: Battery warning
filter:
include:
- domain: device_tracker
options:
secondary_info: "[[ device_tracker.life360_merav.battery ]]"
attributes:
battery: "< 50"
source_type: gps
Card type is still entities. Options for the entity goes in options:
o.k.
I tried it like this... and got "undefined"
- type: custom:auto-entities
card:
type: entities
title: Battery warning
filter:
include:
- domain: device_tracker
options:
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ device_tracker.life360_merav.address ]]"
attributes:
battery: "< 50"
source_type: gps
I've found the issue...
It should be
device_tracker.life360_merav.attributes.battery
instead of
device_tracker.life360_merav.battery
Is there anyway to set a thermostat based on X conditions?
@fringe mulch is that question related to lovelace?
Not sure as the thermostat card is on the front end/lovelace
Every entity can be displayed in lovelace. What you want is an automation. #330944238910963714 is the proper channel for automation help.
Got it. Thanks.
hey guys
for a bit now my card is justifying the text towards the left
how can i move the text more to the right in the box?
margin/padding-left: 32px
within the theme file, right?
I doubt it, in the card file, is that a default card?
Then you can change it, or ask the developer of it to change it
ahh okay, thank you π
@ocean cove Over here π
trying to load some custom lovelace cards but struggling.... ive installed them using hacs and ive added this in the "raw config editor"
resources:
- type: module
url: /local/mini-graph-card-bundle.js?v=0.8.2 - type: module
url: /local/mini-media-player-bundle.js?v=1.4.2
please read the instructions on the HACS page for those cards
scroll to the bottom, it tells you how to add them
@polar kelp - that is a very workable solution.. thanks.... It might wind up being the only item on the front lovelace page.. Thanks
so according to the HACS page it should be in this format....
resources:
- type: module
url: /community_plugin/mini-graph-card/mini-graph-card-bundle.js - type: module
url: /community_plugin/mini-media-player/mini-media-player-bundle.js - type: module
url: /community_plugin/atomic_calendar/atomic_calendar.js
???
It donst seem to work with invalid card message given, i know im doing something silly but im stumped
@ocean cove To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
invalid card type == you are trying to wrongly add configuration to a manual card
OK:
type: "custom:some-custom-card"
Not OK:
- type: "custom:some-custom-card"
- entities:
- sensor.0x00158d0002e91a44_temperature
type: 'custom:mini-graph-card'
- sensor.0x00158d0002e91a44_temperature
@ocean cove To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
sorry thats the entity and the message i have is no card type found
...
- entities:
- sensor.0x00158d0002e91a44_temperature
type: 'custom:mini-graph-card'
...
- sensor.0x00158d0002e91a44_temperature
Goto #botspam for testing
when did emoji get so large on discord? is this a "feature"?
huh? I hope not?
if you're in compact mode they're not as big
π
if you are not allready, you really need to rethink some stuff
it's almost as if it's a matter of preference instead of an objective decision π
think of it this way: the fewer messages i can see on the screen == the fewer dumb questions i see at once
Anybody have experience with an Amazon Fire? I've been thinking about picking up an Amazon Fire HD 10 for use with Home Assistant, mounted on the wall but also removeable. Is there anything dire that I need to know about the Fire as far as compatibility issues...annoyances (lock screens or other)? Basically I'd just like it to be in 'kiosk mode', dim and brighten when user is near. Are there any nuances which impede a smooth user experience?
I mean...it's a cheap tablet. Expect a cheap experience
for lovelace, as long as it has a newer webkit version, it will be fine
Is there anything dire that I need to know about the Fire
nice
and if not, send it back π
Ok, the information that I have found was not totally up to date and there were some sorts of issues users were experiencing. Oki dok
yeah, older models had older versions of webkit which made it so custom cards did not work
It sounds like they didnt configure their lockscreens properly or something
Ohh right yes! I read about that!
Ok thank you for bringing that up
not sure if they updated their webkit version or not, but I think newer ones run a P variant, so it should be π€·
that was one of them, ok gotcha
also, wait for black friday
hehe that's exactly my plan π
im on the prowl
Ok I wonder if someone in here can confirm if the Amazon Fire 10 HD has the updated webkit or not. π
hey there. IΒ΄ve a question about custom_ui: this codes works fine:```
cover.keq0878156:
templates:
entity_picture: >
if (state === 'closed') return '/local/cust_pic/blinds_00.png';
if (attributes.current_position <= 10) return '/local/cust_pic/blinds_10.png';
if (attributes.current_position <= 20) return '/local/cust_pic/blinds_20.png';
if (attributes.current_position <= 30) return '/local/cust_pic/blinds_30.png';
if (attributes.current_position <= 40) return '/local/cust_pic/blinds_40.png';
if (attributes.current_position <= 50) return '/local/cust_pic/blinds_50.png';
if (attributes.current_position <= 60) return '/local/cust_pic/blinds_60.png';
if (attributes.current_position <= 70) return '/local/cust_pic/blinds_70.png';
if (attributes.current_position <= 80) return '/local/cust_pic/blinds_80.png';
if (attributes.current_position <= 90) return '/local/cust_pic/blinds_90.png';
return '/local/cust_pic/blinds_99.png';
but changing cover.keq0878156 to cover.* produces an error
extra keys not allowed @ data['customize']['cover.*']
could you give me a hint, whats going wrong?
lovelace !== custom_ui
hmm. is there an other way how to get state / level based icons
You can do that, just saying that it doesn't fall under the realm of lovelace support
i have iPanel frames setup for Tasmota Admin (works) and tried to setup one for the Unifi Controller addon. however that one doesnt load
any thoughts on how to fix that?
Probably SSL shenanigans
that's what i was thinking
not sure how to correct it though
the URLs load properly as shown in the yaml snippet
is there any way to resolve it?
doh, not for that addon. its in the documentation for it. boo
Ubiquiti likes to arbitrarily force https even with no certs. I don't know why they do the things that they do
Oh, don't worry, they're also now updating the firmware with telemetry that reports home about all the devices on your network...
because muh security
"It says 's' so that must mean those cyber terrorists can't get me π "
well thats effed up on all fronts
speaking of which, all of my devices went from fine to needing to be adopted?!
I took a mandatory "IT security course" at work (distributed by means of a weird link in an anonymous email from outside of the company domain, telling us we had to do this within a week... but that's another story)
It wasn't explicitly stated, but the general feeling I got was that "If there's a green lock icon, you're good."
This was right after I discovered letsencrypt, and knew excactly how many fractions of a second it takes to get that green lock on your website...
Yeah I'm not sure when having a green lock became "everything you can do on this website is 100% safe"
It makes scary errors go away, so it must be good
It means the IT department probably can't see exactly what you're doing... so that's something.
People are so worried about MITM attacks that they apparently forget that the intended party on the other end of the communication can also be malicious
Security has been too long in the world of FUD
But Alice and Bob are the good guys!
Alice went to Wonderland... who knows what reality she's really from
And we don't talk about Microsoft Bob.
BOB!
@polar kelp any clue why card-tools v2.1 won't display the content of an old style popup? v0.4.2 displays properly when I revert. The popup opens now, 2.0 was completely brokenπ₯οΈ
@atomic glacier YA i can confirm same thing
I just said I fixed it. Update popup-card.
Working now thanks for the quick fix
Anyone know the text color variable for themes for the logbook where it has the entity name?
I can't seem to find it. I used inspect on chrome and changed every color but cant change it for some reason
primary-color?
doesnt seem to change it
trying to see if I can change iron-icon-fill-color
that showed under the style
not sure if its for text
nope that wasn't it xD
Are you talking about the name or the icon?
the name
or are you saying the name is linked to primary color?
Hopefully not as the top bar is also primary color xD
I make my top bar almost invisible
it is --primary-color
Any help on configuring this https://github.com/custom-cards/spotify-card would be awesome!
All you should need to do is follow the details HACS provided
When installed, this will be located in '/srv/homeassistant/.homeassistant/www/community/spotify-card', you still need to add it to your lovelace configuration ('ui-lovelace.yaml' or the raw UI config editor).
See the "plugin" details in HACS
thanks I'll check that out
When you add this to your lovelace configuration use this:
- url: /community_plugin/spotify-card/spotify-card.js
type: module
most things are doable @vapid field but that will probably require a custom JS script.
I think you with CCH can have a color that differ from primary-color as the header color
How are pull requests approved / denied? looks like there is a pull request that would solve my issue maybe
oh cch might be able to? didnt think of checking
How are pull requests approved / denied?
Manually, by our awesome frontend team π
Themes are generally getting a refresh overall, not sure any PR changing single items will be accepted before that, but I have no clue about how they do things
where does one find the HACS?
Home Assistant Community Store is the successor to the old Custom Updater, and can do so much more - you should check it out.
cool...
#609399695466430465 for #609399695466430465 π
How do you have your toilet sensors setup? I have 3 Hue smart bulbs setup with a Phillips motion sensor on the corner of the shower, so it detect either when someone enters or either if you are on the shower so it doesnβt switch off within a minute due to not detecting motion. The problem that I am experiencing, is that the motion sensor is not very consistent. I try to change the sensitivity to medium and it gets stuck to high. Also, always at around half time (30 sec), it dims the lights... You are taking a piss or a dump and halfway through bam, lights dimmed... Finally, the time to time disconnections. What solutions do you have in place for toilet?
where would I find the ui-lovelace.yaml file?
I didn't need it
but when I add the code in the editor I get this...
Unknown card type encountered: module.
@vapid field you're better off using just a door sensor imo. if bathroom door is closed, turn and keep lights on. A motion sensor is tricky to get right in most bathrooms, and it'd also creep out guests because it can be confused for a camera...
Anyone know where to begin troubleshooting when a history graph card reports "no state history found"? It was working for a couple months when I first configured it, but now it only works in the beta version of the mobile app. The states of the device changes correctly so I don't think that the device is the problem.
@mental kayak posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/QM5BXZH6D8/
Look at the gif in the link I posted one more time
You have to configure the card manually, there won't be a button for it in the card editor
To select it
INVALID_CLIENT: Invalid redirect URI
when I authenticate this card I get this error...
I am using ha cloud and used that address as the URI in Spotify
You have it on your lovelsce resources
hey
anyone know if it's possible to use templates in lovelacy ui yaml configuration?
or at least, some way to repeat a card per device without having to manually configure each one?
Look up yaml anchors.
Hi all, trying to decide on a calendar card, been using atomic-calendar but since it doesnt seems to be an active development thinking of changing to calendar-card.
Anyone compared functionality andf could give some directions?
Taking another crack at setting up Lovelace. Looking around for learning resources besides the docs. Does anybody know if there are still examples and demo cards somewhere like here https://home-assistant-lovelace-gallery.netlify.com/#demo-hui-stack-card 710. Lovelace seems to have evolved so quickly and it's hard to know where the best place to start (again lol)
This'll be great!
Can someone point me to what I need if I want to make a card for speakers, they can change volume, media source, and turn off an on. I am not sure where to start. I have a custom_integration and using the Services panel I can control them.
I prefer not to touch any javascript.
Use the default card, no JS required π
https://www.home-assistant.io/lovelace/media-control/
Thanks @wheat current, I think I am having some kind of issue, when I run HA locally on my Mac (just for testing), I do find the media_player.kef but on my RPi 3 it doesn't show up, even though I can control the speakers through the Services panel.
why is my UI so ugly? I don't know why lovelace isn't activating, my ui looks nothing like the screen shots on the doodle i'm totally running 0.101.3
yep, and that lands me on /states and it's the normal ui with the blue bar at the top and some junk from my sensors
is lovelace just for hass.io or sutin?
Lovelace is the default UI
If it says Go to the states UI then you're on Lovelace
It should talk about Lovelace further down the Info page
haha, i think i'm just confused about theming then, sorry
i guess my 'cards' are just boringly simple
thanks for undumbing me
hello. I'm intending to add a restart button to my overview page. I've found a thread about this and they talk about the ui-lovelace.yaml. where can I find this file? It's not in the config folder
(last post)
You need to create it
You also need to enable YAML mode for Lovelace in configuration.yaml
But you can also add those lines directly in the Raw Editor without doing any of that
yeah I'm trying that now
I just selected entity, copy pasted the code from the forums, but it's giving me an error
is the code outdated?
hey there i set up the midnight theme for my home asistant the problem is in the entety regestry the window with the entytis is wiht and i dont klow that the rigth comand ist to change che coller there can somone help me out?
@sharp flare you probably havenβt formatted it properly. Post what you have?
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs.
Thatβs all you have in there?
the button seems to work, but it takes around 4mins for HA to reboot, whereas with the button in the config it takes 1,5mins
for now, yes
So it does work? Iβm confused
I created a new entity, went to the code editor and saved it
it does work, but it takes 3x longer than using the regular way of rebooting
Okay. You said it gave you an error
Hmm
I don't know how you're getting an error and yet it still works
you're editing in the raw config editor?
I have several working instances of the same construct, but mine are indented:
@dark dirge posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/GNpVWCwdSJ/
@signal vigil add this to your theme and it should fix it:
card-background-color: "var(--paper-card-background-color)"
Thanks
Hey @atomic glacier ! Are you using layout-card?
Pretty much every view @polar kelp
I've almost finished a complete refresh of it. Any features you're missing?
Not that I can think of. Haven't created anything but the example view lately, and everything else pretty much does what it needs to, even layout-card inside layout-card...but would love some new features to play around with π
Would be nice if the layout-card could stack...maybe it does. Never tried that yet
I've added some CSS flexbox features and the ability to add cards automatically through auto-entities.
What do you mean stack?
Like within a vert stack and horizontal stack inside of a layout-card
that may work already, though. I'll try it out so I can explain better if it doesn't
This is three layout-cards inside a vertical-stack. Is that what you mean?
Yeah, pretty close, was thinking a different approach, but the same results as what you have pictured. My brain tends to try to do things the hard way I guess π
I accidentally hid the top menu on the overview tab, how do I show it again?
I did it under CCH
@mental kayak add ?disable_cch after the URL in your browser. It's in CCH docs as well
ty!
Is it possible on an entities card to make an input_select show up like a label? (not selectable)
docs makes me think maybe I can use the type: function, but not sure how
try type: custom:hui-sensor-entity-row
And if that fails, try this: https://github.com/thomasloven/lovelace-dummy-entity-row
Actually... dummy-entity-row won't do what you want.
@faint bloom additionally, if you end up using thomas' idea, you'll want to set
tap_action:
action: none
if you don't want people to be able to adjust it via the dialog as well
@polar kelp those layout-card changes sound exciting π Looking forward to it
Almost done with the docs. Added a few more things to make configuration easier too.
does it require a plugin installed?
I'm getting an entity not available, and google leads me to a thread that you also look to have contributed to
Did you choose an entity?
here's before modification
- entity: device_tracker.C_owncloudpixel
- entity: device_tracker.L_pixel_2
- entity: input_select.home_mode
show_header_toggle: false
title: Locations
type: entities```
I tried changing the type using the code editor
both after the 3rd entity, and for the whole card
Check your entites in states under developer tools
spacing!
I had the spacing wrong when i pasted
my bad
thats working great, thanks!
every time i reload one of my views, i get this error in my HA logs:
it looks related to a horizontal-stack, but i can't figure out why
Comment out everything and then uncomment one piece at a time until you find it.
Which is the best tutorial/video for a complete noob to understand and start with Lovelace?
π€· things have evolved pretty quickly. Not sure if there is a good up to date one or not
Your toggles would pop out too if someone forced you into a 100 pixel box. π
i cannot be contained
Ah. I forgot to add card options.
Writing it here as a reminder.
How can I add automation editor to the side bar ? I tried using panel_iframe like this
automation:
title: 'Automations'
url: 'https://hassurl/config/automation'
icon: mdi:home-automation
However, it shows up as shown here https://imgur.com/a/RU8hoyH and doesn't work well.
@polar kelp Any clues as to the styling that was affected by the layout-card updates? I tried to revert back to verify, but the old version wasn't available in HACS. I have an older version of layout-card that I'll have to find if not. Thanks! https://imgur.com/a/R0sDfKM
Do you have styles directly on a layout-card?
Only way I knew how to get the background images to change like I wanted (and a few other things that are styled different)
Found an old one...back up and running again. Thanks!
@polar kelp were you talking to me about commenting cards out?
If you comment out all of the cards and add one back at a time, you can check for the errors and see what card gives the error
then you will know where the problem is...
Umm... I have a suggestion that might also fix your problem...
Replace those lines: https://github.com/Dino-Tech/Home-Assistant-Main/blob/master/ui-lovelace.yaml#L1065-L1068 with yaml type: vertical-stack
I think I have a fix. It'll be in the next version with the card options.
HI all, It's possibel to explain how I add custom Card on lovelace ? because I test to add this https://github.com/bouwew/clock-card
Add in lovelace (configuration top of right x 2) the ressource
restart Hassio
add i custom card but I receive this : bad indentation of a mapping entry at line 2, column 14: title: "clock" ^
the preview goes around in circles
π¦
Check the pinned messages for this channel
Excuse but I don't understand :/
thank's
There we go. @atomic glacier
New version of layout-card. Now with card_options which are applied to all cards. Useful with e.g. card-mod.
Hello. My temp. sensors does report 24h history in the newest release. Only a flat line is shown
Hello. My temp. sensors does not report 24h history anymore in the newest release. Only a flat line I shown
We heard you the first time...
You can edit your messages, rather than repeating... repeating them π
Added the not.. thanks for the headsup
@mild veldt and @polar kelp thank's is ok π
Another question, if I configure horizontale card to view live camera it's possible to confiture de total space because is displayed in small
With panel mode: https://www.home-assistant.io/lovelace/views/#panel-mode
panel mode is a view settings, not a card setting
Hey @atomic glacier
I've added a feature to card-mod for you
I think that is the final step to fully replace card-modder.
Okay cool. Thought you were going to bed? Lol
No. That was bed time for the kids
You should also really consider lovelace_gen, I think.
Glad you made it work
Have it installed
Need to explore a bit more
Iknowπ I win sloppy code of the year awardπ
Quick question for you lovelace gurus, is it possible to make a card that forces panel mode? I've been searching the dev docs, but it seems that the only way is for the user to put that in their config
thought so, just wanted to make sure
Well, yes, if you're Thomas and hijack the config
I'm confused on what your goal is though
There's a home alarm custom component that I use that uses it's own custom panel in the HA front end, which is still based on polymer. I was just trying to figure out if there's a way to make a similar "page" that can be placed in lovelace, if that makes sense.
the existing alarm panel doesn't have full compatibility with the custom component
That would totally make sense for layout-card!
But I can't think of any way off the top of my head to do it reliably...
You have so many cards, I didn't know which would work best! lol
I'll see if that one would work
No, i mean that would make sense as a feature of layout-card. Not that it can do it.
Expected a value of type `{entity,name,icon} | entity-id` for `entities.19.type` but received `"custom:slider-entity-row"`. ?
code is:
- entity: light.master_bedroom_lamp
type: custom:slider-entity-row
toggle: true
is that just a warning and not an error since it's using custom elements? It works OK in the preview
should look like this, more or less:
type: entities
entities:
- light.bed_light
- type: custom:slider-entity-row
entity: light.kitchen_lights
``` @tired quail
if you are adding it to an entities card
It can be outside it if you want but, yes, @tired quail just a warning
What's the proper syntax for giving a view a list of users for it to be visible to?
visible:
- cgarwood
visible:
- user: cgarwood
both make it hidden
docs aren't really clear on the syntax
i think that it uses teh user ID found in Configuration > Users rather than your "friendly" username.. but not 100% sure.
looks like you're right
visible:
- user: <long id>
i can't seem to get custom compact header to handle a user exception right. maybe I'm not inputting the username correctly?
I've tried the username used to log inand the full user "name" shown on the sidebar, neither seems to have an effect
oh looks like CCH just isn't working at all π
Having some trouble getting a tap action to work on an entities card. I want the sensor.latest_version row to send me to the HA release notes when clicked. This isn't working (still seeing the more-info box when I click the latest version sensor):
`cards:
- type: entities
entities:- sensor.current_version
- entity: sensor.latest_version
tap_action:
action: url
url_path: https://www.home-assistant.io/latest-release-notes/`
@storm igloo that should work fine. You might need to click the "Refresh" option in the Lovelace menu (3 dots in top right corner)
Yeah, i've refreshed lovelace, even restarted HA to be sure, and still no love. π¦
it's definitely seeing my changes; I set a different name on the entity, and that shows up
weird... I've been updating my entity rows with lots of tap_actions and stuff like that and have no issues. maybe try to see if it works from another device (if you have one)?
good idea; let me try that
you could also change tap_action to hold_action and try to see if that works, just to rule out / troubleshoot some things..
set a tap action on a light, and got the same behavior (more-info); set the hold action on the latest_version sensor and it's still more-info'ing. I am on 0.99.3, maybe I should update to 0.100.3 just to be sure this isn't a bug that's been fixed
ahhhh!
see, I have action: none working on glance cards; I didn't think to check if it was new on entities
It was supported before in other cards, but it just got added to entity rows in 0.101.0
I have a (bad?) habit of not upgrading until I see an integration/feature I want/need, and not paying enough attention to new lovelace features
and it works perfectly in 0.101.3. Thanks @latent moss
no prob, here's how to keep on top of the lovelace features btw https://www.home-assistant.io/lovelace/changelog/
lots of cool stuff has been added in the last 2 versions, have been updating my setup with all the new goodies π
in lovelace monster card is there a way to list specific items at the end? i.e.:
filter:
exclude:
- state: 'off'
- state: 'unavailable'
include:
- domain: switch
- domain: light
- entity_id: switch.garage_light
- entity_id: switch.leviton
- entity_id: switch.sonoff
state: 'on'
So the last three are shown in the end even though they match the include filter.
anyone out there... how to get a binary sensor to show up on dashboard?
Place it there
ok on overview view it's not showing up, should i put it there from integrations?
If you have taken controll of your Lovelace, it will not auto populate any more, and you need to open edit mode in the UI or your ui-livelace.yaml file to show more things
Assuming you can see it in the states tab under developer tools
I have the sensor working.....I put a binary_sensor in the configuration.yaml file....ok after reading your text I do have a views: cards: etc. in my ui-lovelace.yaml file....
under binary_sensor.garage_door I have the entity and it's state is off
I can change to on... but....doesn't seem to be connected to the real sensor
You can only change the state that HA thinks it have, you can not change the sensor itself
so it looks like I have not taken control of my UI... is that something I should do?.....I'm a little confused on how HA and the sensor talk....I believe I have MQTT working properly
If you have not taken controll, you will see it as a badge under overview
yes, it is a badge
HA updates the value when a new message is posted in the topic it monitors for that sensor
how can I be sure that the MQTT is correct and that HA is getting the updates from the NodeMCU? I am watching the serial output from the NodeMCU live and it is working but I'm not getting anything "live" in the terms of feedback in HA. I'm using an ultrasonic range finder to determine distance to an object and if something is close it's open and far it's closed.
When you see the sensor update, it's correct
I guess I'm being confusing.... I want the NodeMCU to report open or closed to HA and I want to see it in overview... I'm not seeing that.... not sure why...
You see it in the overview, #330944238910963714 can help with the homeassistant part of the configuration, #diy-archived with the nodemcu part.
ok thanks... #330944238910963714 sent me here I'll head back
Correct, you where sendt here because the UI belongs here, but that part was already Ok π
ok thanks
how to make a sensor that is a badge a card?
Are you familiar with how to add a card?
https://community.home-assistant.io/t/how-to-group-or-move-top-level-icons/141093/8?u=tom_l also my post three below that one.
I'm not... I have added in my ui-lovelace.yaml file a card for my holiday lights... but I have not taken control of my UI in Lovelace... I'm watching JuanMTech video about it but not sure if this is what I need to do... can I send you a screenshot of what I would like it to do... I'm following a project on hackaday that the user did in HA but they are not clear on this point that's why I'm here.
Read the 2nd link I posted above an you should have it in 8 easy steps.
You do not need a ui-lovelace.yaml file unless you want to use yaml mode instead of using the UI.
I would not recommend yaml mode to begin with.
being new I'm trying whatever comes my way and am not doing best practice I'm sure.
If you are just starting out I would advise against using yaml for the ui
when I edit in the UI will it update the yaml? also... if I take control will it mess up the one card that I have?
I could send a screenshot of my current ui
UI does not update yaml file
so what I'm hearing is: 1.) take control of the UI.... 2.) follow the steps you posted above. Correct?
My current UI won't change I'll just be adding and it shouldn't mess up what I already have...hopefully
If you are not in yaml mode, delete the yaml file so it will not confuse you
ok, but I worry that I may lose my overview look as it is now...
views:
cards:
- type: entities
title: Holiday Lights
show_header_toggle: false
entities:
- light.holiday_lights
- light.color_1
- light.color_2
- light.color_3
- light.lightning
- sensor.current_led
this is in my ui-lovelace.yaml currently
And do you see that?
that's why I was hoping to send you a screenshot as I'm not sure what home assistant has just setup automatically and what is taking effect... I suppose I could comment out the .yaml file and hit a refresh to see if that is where it is coming frome.
When you click edit, do you get a warning about taking control?
Then that file is not in use
Do you have
lovelace:
mode: yaml
In your configuration.yaml?
ah....ok I'll comment it out then
I assume you mean in the configuration.yaml file? correct?
I do not
was a little slow on the uptake there...
Then that file would never be used
ok, so I guess then I take control and add a sensor like you showed in the link? correct?
Correct
Only difference will be that Home Assistant will stop adding things atumagically
so then you will have to add them in the manner that I'm adding them now....
is this the preferred way to work?
Is it?
and when I add the binary sensor for the garage.. will it still be a badge?
what is the down side of taking control... does the homeassistant take care of little things that I won't be able to keep track of..... or is it like the magic wand in photoshop that usually is not a good idea?
Do you want control of how it looks?
I'm really only taking control of the overview... my automations... will still be there.... I do want to control how it looks as I don't want a badge for this binary sensor.... I want....a tile with text that reads "open" or "closed" so I can tell if the door is open or closed.
Just the overview
Pretty important update released for auto-entities. Improves performance greatly if you have many auto-entities cards.
@polar kelp is it also possible to retrieve css values? I want to set the icon color of a person to the accent-color template value
ha-icon {color: var(--accent-color);} with card mod (probably)
I didn't know it was that easy with var
now i have to wrap it in auto-entities π
I have not tested it, but something like it should probably work π€·
I only needed the var(--accent-color); in my if statement π
Only when I use card-mod in auto-entities the icon color is not set (this is a simplified version)
filter:
include:
- domain: person
options:
style: |
:host {
--paper-item-icon-color:
green
}
You're missing a semicolon.
doesn't seem to fix it, i replaces the } with ; as in your examples
Expected already something like that
options:
style: |
:host {
--paper-item-icon-color: var(--accent-color);
}
however, none of my icons is colored
hi. i want to add a temperature history graph, aligned with two windows's history, but due to the name of the windows, it is not aligned as i want it to be. is there a way to modify the card? (i dont want to make tempelate sensors with short name)
See the screenshot:
π I passed the hacs tests on the first try!
Also, more-info-card has been updated https://github.com/thomasloven/lovelace-more-info-card
fair game to talk about custom cards here?
i moved from monster to auto-entities today and i'm having issues with the show_empty option
yup
i have entities that match the filter, but setting it to false still hides the card
You'd have to share your config for us to spot any issues
show_empty: false
card:
type: glance
title: Low Battery Devices
filter:
include:
- domain: sensor
entity_id: "*battery*"
state: "< 40"```
if i remove show_empty then the card shows up with the matching entities
Is it possible to get rid of this empty space, somehow, through theming or some such? https://imgur.com/gallery/MLQkESG
compact-custom-header plugin will get rid of that
@polar kelp I appreciate the < once itβs there. I dislike the asymmetry when itβs not.
@elder pendant Iβll check it out, thanks!
what is it about hakboard/dakboard that people are after? Not do-able using Lovelace?
Lovelace is so 2019
lol
Speaking of which, I just realized that I started using home assistant on the exact version that Lovelace became default...
looking at it, kinda reminds me of https://sharethelove.io/picture-elements-cards/greeter-card but full screen, and what looks like a calendar
Hi all, has anyone more than me experienced that the attributes for views in Lovelace stopped working from release 0.100.x? I am using the name: attribute for my badges and since then it doesn't show anymore.
Can you show us what you're doing?
views:
- badges:
- entity: sensor.lounge_temp
name: In
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
Only thing I see in the view docs for attributes is for the filter, not for displaying any attribute
I might express myself incorrectly then. What I would like to achieve is to replace the entity names with a friendly name, much like the examples in the page you reference to does:
- title: Living room
badges:
- device_tracker.demo_paulus
- entity: light.ceiling_lights
name: Ceiling Lights
As far as I know, that should work, though I don't use badges. I'll double check in a bit
Nope, as you've seen, doesn't work
Want to see what issues are open (or were open and are now closed)?
Check issues for the backend, issues for the UI, and issues for the documentation.
I'd open an issue in the UI section, of there isn't one already
Cool - thanks!
Hello,
I have a HA instance running on docker, I keep running into a UI issue where the whole interface renders itself repeatedly (instead of refreshing the old one) until I refresh it manually.
Did anyone have the same issue or know the possible cause of it?
Hi all,
Is there a for idiots guide to using HACS to install custom cards? I got HACS running using DrZs video but am having trouble understanding the steps that need to be taken after you click install. I understand it says I need to put something in my Lovelaceui.yaml but in my app data folder I don't have a lovelace yaml. I have tried searching all over google,youtube, and reddit and am just not finding something that walks me through this process.
RAW editor
Overflow menu > Configure UI > Raw config editor
Can't wait for the next version to be finished, that should stop these questions.'
Alright thank you, as fate would have it power went out so I can't remotely try this right now but I'll give it shot when I get home. Just to be sure I'm understanding it correctly, I take the bit it says to put in the yaml and paste it in the raw config editor? I apologize for asking one of "those questions"
I get that it is hard with your first couple of cards @paper shuttle that's why I wanted to solve it so you don't have to think about it
no worries I just took a look at that link and it looks like what I was looking for. I'm ganna use that tonight and have another crack at getting some custom cards running then but for now I'm pretty much locked out lol.
I have this Barometer lovelace card I am trying to get working. https://github.com/SNoof85/lovelace-tempometer-gauge-card
I notice in the instructions the entity_min field has a name appended of; _min_this_week. This _min_this_week entity does not exist on my setup, Wondering what I am missing/need to create to have this minimum value data from the entity exist in my setup.
entity_min: sensor.barometer_min_this_week
entity_min : (Optional) The entity that define the minimum pressure/temperature reached (you have to create this entity, the card will not compute it !)
you have something in your setup that you want to use as the minimum already?
Yes, I have a BMP280 that outputs pressure. entity: sensor.bmp280_pressure
that's not a minimum though, right? that's just the thing you want to track
Correct, I think I am looking to pull the minium value that entity: sensor.bmp280_pressure reached in a week
right, so you'll need to create a template sensor for that
Cool, I will start researching, That is new to me. Thank you.
template sensors are my favorite
Important updates for layout-card and auto-entities. The latter could make some cards not show up. The former could make your entire lovelace interface freeze up...
I have already experienced the aboveπ€ Thanks!
@polar kelp Still seeing the issue here: https://bit.ly/33KVpaH in browser-mod script popup with the new update --> https://imgur.com/a/kQvgiqz
? maybe related?
If I rotate my phone, then the info pops back up ??
Hi all, i am in a bit of a pickle here, and need some help. it is regarding picture elements card and state_image. i have here the code for me and my wifes picture showing if we are home or away. you can see the fist part of the code works fine showing my picture. Second part with the state_image and my wife Kristina does not work. https://pastebin.com/ghShGAmf
can someone please help me out here
@polar kelp works fine without styling. π€ I'll piece it back together one style at a time and let you know if I find the culprit. Thanks!
I found an unrelated bug in browser_mod while trying to figure out what was happening, though...
Where is the best place to start troubleshooting a card button that turns right off after I turn it on? Is there a log lovelace?
Start by looking at the config of the card
- light.holiday_lights
- light.color_1
- light.color_2
- light.color_3
- light.glitter
- light.lightning
- sensor.current_led
show_header_toggle: true
title: Holiday Lights
type: entities```
I had my lights working at one point and messed up my configuration trying to add something new and started from scratch
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
@polar kelp Oh good catchπ ...It was height: forcing a display too big, at least that's what fixed it.
That height: style has been my demise for awhile now...π
@shy mason So... which button isn't working? Do they work individually? Does the top toggle not work?
@shy mason I had that happen before and it was due to an unavailable device (or mqtt issueπ€ can't remember now) Check states page and make sure everything is active
If I click on any of them, they turn on for 1 second and then slide off again
What are those lights?
They are LED's
What integration?
definitely not a lovelace issue AFAIK, with me, the problem is always between the chair and the keyboard π€£
Do they turn on or off when you toggle them?
nope, which makes me believe the mqtt isn't working
I will try to figure out how to troubleshoot mqtt and see if I can find some logs
Check the log (file) for errors or warnings. Check your MQTT broker to see if it's receiving messages, etc
1573683613: New connection from 192.168.1.29 on port 1883.
[INFO] found mqtt_user on Home Assistant
1573683614: Client LightMCU already connected, closing old connection.
1573683614: New client connected from 192.168.1.29 as LightMCU (p2, c1, k15, u'mqtt_user').
Ahu
So, seen this before, check that all your devices identify themselves differently π
#diy-archived is the best place to troubleshoot all that
thanks
trying to set up a picture-elements card however i get the error "No element type configured." what does that mean?
It means you added an element with no type
Using 0.101.3, I can't seem to get the refresh_interval for a History Graph card to stick - I set it to something like 60, but when I go back and edit the card again, it has reverted to 0... whether I use the UI or the code editor
actually, when I save it, it goes into .storage/lovelace with the correct value, but when I open the editor again, it shows 0
I have a mqtt defined switch with optimistic: true which sends a volume ir command, is there any way to get the on off icons to display as other icons? I just have it in a entity stack and dont want to use button cards..
Anyone know how to identify your lovelace view path?
As referenced here: https://www.home-assistant.io/integrations/cast/#home-assistant-cast
So, I enabled customizing the UI. Is there any way to revert this?
I added a new page and set it up, but when I went back to the home page it mirrored my new page. When I click the pencil on the home page, it opens the editor for my new page instead... So I now have two pages that are exactly the same and all the stuff I had on my home page is gone..
Delete .storage/lovelace and restart Home Assistant
just updated to 0.101.3 to play with some of the new stuff the King talked about yesterday.
updated some HACS items too.
now it looks like my UI is using my old lovelace.yaml instead of the UI editor
Check for
lovelace:
mode: yaml
``` in `configuration.yaml`
nope, that's not it.
but I did just notice the problem
the url is pointing to /states
π€£
instead of /lovelace
Can't wait for that to die and become a redirect
Hmm.. I thought it was dead allready π
I had clicked the "set states as default page on this device"
thinking that would make my dev tools tab start with states.
@wheat current not dead yet π
glad that was easy to find/fix
which part of a theme controls the page icons colour across the header bar?
@dark tartan primary-color
π Throwback Thursday... Retro Lovelace π€£ The original "Button-Card" π , before our great custom cards & plugins existed π https://imgur.com/a/3bvhWbc one year ago...what an evolutionπ₯
0.102.0b1 caused cch to not work.. anyone else seeing that?
It seems maykar is aware and there will be a fix tonight
Using the "horizontal-stack" and want a visible title at the top for the stack. Using "title: something" doesn't show anywhere. What's the use of the "title" configuration option?
@timid burrow yes I pointed it out on the forums
@stoic solstice works fine for me, just checked
- type: horizontal-stack
title: 'Title'
cards:
@atomic glacier Yupp, but not working for me. I'm using the layout-card and adding the horizontal-stack there. Could that cause it to not show the title?
- cards:
- type: sensor
entity: sensor.fran_uppsala_time
icon: 'mdi:train'
name: FrΓ₯n Uppsala
- type: sensor
entity: sensor.fran_tierp_time
icon: 'mdi:train'
name: FrΓ₯n Tierp
title: TΓ₯gtider
type: horizontal-stack
oh wait... I'm missing a level of "cards"?
Made no difference in adding another level
I tested it inside of a layout-card. maybe " " around like my post before?
Nope, ' nor " helps π¦
Any styles applied? Does it increase the header, but just not show the word?
It doesn't change size if i remove or add the title
I have a theme applied, but no other styles. I could try the default theme
Same with default theme
I'll be at a computer shortly...
Cool! I'm heading for bed in a little bit. We'll see who's first π
The title, it should show up as a header for the whole stack, right? So I/we don't waste time on this if I got the whole thing wrong
@stoic solstice check out the format here and the image. If you add title: 'anything' to either horizontal-stack, it works.
lovelace-layout-card basic example:
screenshot: https://imgur.com/a/HsQLL29
code: https://paste.ubuntu.com/p/Vkz22WbTcv/
That's what I'm after... but weird it's not working for me. Only difference is that i'm using sensors and not lights, but that shouldn't matter
Actually none of the horizontal-stacks uses the title in that example
If you add title: 'anything' to either horizontal-stack, it works. didn't have time to take and post another screenshot, but I tested it earlier for you
@stoic solstice here ya go: https://imgur.com/a/pESppHG
Thanks! That's what i was expecting
Works fine for me if i add the title to a glance card
What's your Home Assistant version?
0.100.3
Here's the whole lovelace config for the view https://paste.ubuntu.com/p/bdHcS7pg9F/
Tried to add title to several horizontal-stacks, none works... But the glance cards shows title if i add it. Line 78 is the card i want to add a title to...
I have to hit the bed now. If you figure something out please tag me or send a pm. Thanks for the help so far!
Good night
@stoic solstice It really shouldn't matter (unless you're running Hass under windows or something crazy like that perhaps), but maybe just try without the Γ ...
is there a command to reset the google hub after you've cast a screen to it?
I tested it out this morning, and then walked by a few hours later and it was still casting that view
media_player.media_stop?
you could also just say "hey google stop casting"
Getting the following error while attempting to manually activate a scene in the UI.
Nov 14 19:41:39 rpi3b hass[20251]: 2019-11-14 19:41:39 ERROR (MainThread) [frontend.js.latest.201910251] :0:0 Script error.
I'm using 0.101.3. I tried emptying browser cache as some previous posts talked about, but it didn't fix it. I've tried a couple of different scenes but no luck.
Also tried from both phone and desktop, still no luck
@polar kelp already tried it without, ni difference. :/
Out shopping today, Will try more tonight
are the default cards built as js files, like custom cards? If so, where do i find these so i can alter one?
there are some style elements that i cant seem to change using card mod
seems like the values specified here: https://github.com/home-assistant/home-assistant-polymer/blob/dev/src/panels/lovelace/cards/hui-glance-card.ts
@minor viper posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/VNnCrtTQdB/
ooops
Hello, I'm trying to use Lovelace-Card-Mod to change the entities colors based on state. I found how to do it if I define what colors I want. However I would like to define it based on the current themes primary color. Is that possible?
style: |
:host {
--paper-item-icon-color:
{% if is_state(config.entity, 'on') %}
'var(--primary-color)'
That is what I've tried sofar. If I change the last row to "blueviolet" for example it works. But if I change theme to a dark green theme for example that looks out of place.
Documentation where I started is here: https://github.com/thomasloven/lovelace-card-mod
style: |
:host {
--paper-item-icon-color:
{% if is_state(config.entity, 'on') %}
blueviolet
{% endif %}
;
The above works. But what I want to do is change the "blueviolet" to be dynamic so that it becomes the primary color of the currently applied theme.
Hi guys, is anyone having a very odd behaviour on the thermnostat card where it "stretch" vertically without any apparent reason (nor error in the console)?
The card doesn't really have anything special, and it was working up to 2/3 days ago:```
- type: custom:vertical-stack-in-card
cards:
- type: horizontal-stack
title: Climatizzatore
cards:
- type: thermostat
icon: mdi:thermometer-lines
entity: climate.soggiorno
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Temperatura
I've never seen that before. Seems like a bug in your custom card
what custom card?
the vertical-stack-in-card?
that's something I changed 10mins ago, even if I use a normal vertical-stack card does the same π
K, I found the issue actually and indeed was a custom card.. the layout-card is apparently the root cause of it
I think it was indeed updated recently
I will open a ticket on their github π
And ok.. there is already an issue there for the exact same issue XD
Thanks @elder pendant for the hint on the right direction
Is there a way to share the same lovelace UI between users (family members)?
That's the only stock option available currently
In picture-glance...the icon for an entity. Are there defaults you can use or do you need to upload icon images?
Hello all. I have just reinstalled HA (in docker) 0.101.3 and am essentially starting from scratch. I'm using the Configure UI in the front end to try and get things looking the way I want. Unfortunately, I'm not getting there. Two issues I currently face.
A) I don't know how to set the secondary_info for entities in an entity card (specifically last-changed for a motion sensor)
B) How to hide all those blasted sensor bubble at the top (or move them to a different lovelace view)
Any ideas?
B) Take control, remove the Badges
I'll assume by "Take control" you mean Configure UI and click the take control button. Done that. I've configured most of my cards and am happy with them (other than the motion thing). But I don't know how to remove badges and it's not as intuitive as I expected. When I am in configure mode, there is no button or X or anything in the sensor setting to remove it.
You'll need to edit the view itself
You can also use the raw editor to view the entire configuration of your UI
same 3 dots that you click to get to "Configure UI"
Brilliant Villhellm! I hadn't thought to look at that menu once I was already in the config mode. Really helpful. thank you!!!
@acoustic mural check the docs for secondary info. You can't set that in the UI editor yet and will have to use the raw editor
I want to show person entities on the map at the home zone when they're marked as being home, but currently the map card hides them instead
is this because I'm using a mix of wifi and gps device trackers? (i.e. owntracks, unifi, and google maps location sharing)
minimal reproducible example:
type: map
entities:
- person.my_name
- zone.home
please @mention me if you reply because I will forget I ever posted this
question for @polar kelp or anyone else that can assist... using https://github.com/thomasloven/lovelace-auto-entities and love the secondary_info available... can i show an attribute of the entity rather than the last-changed as a second line of text?
Anyone else having problems with auto-entities being displayed in their google nest hub? It works everywhere, but not in the nest hub. It says custom element doesnβt exist: auto-entities. Tried a restart of the hub didnβt work. Also reinstalled auto-entities via hacs. Running 0.101.2 with latest version of auto-entities.
Didnβt see anything in the issues
hello there i need a little help i a little bit dum right now, i want to change the collor by the state (on/off) from a input_boolean but i cant get it to work. :/
where can I find the code for the default cards that come with the install of home assistant? "thermostat" etc
popped over here to see if I could help with that but no guarantees.
lol
you looking for the ones ON your system, or examples?
because depending on how you installed, if you modify the system ones they'll just get overwritten at the next HA upgrade
basically examples so I can make my own custom ones
you probably already saw this?
https://developers.home-assistant.io/docs/en/lovelace_custom_card.html
yeah, but I literally want the thermostat card with just a small edit
I don't want to come up with my own from the ground up
I've got a thermostat in a room that can have 3 different settings (comfort, sleep, away) and I want to set all of those from the same card
so depending on its program it has the correct settings applied and visible at all times
I even managed to hack it together with the default card, but since it changes the "target temperature" to accomplish it, that makes the statistics wonky
really appreciated
does lovelace support typescript natively?
thanks @polar kelp
so need to build that project to get the .js I take it
may be helpful
sorry not helpful
lol
did manage to find a number of cards on github written in typescript however
now to get that humongous project to build on windows
so I only need nvm, node, docker and git..but it didn't work
Hey guys. I need a little help. Can anyone tell me what i am doing wrong here? i would like to post my short 7 line code here but how would i co about doing that without having the BOT come after me?
anyway i have posted here using pastebin i hope someone can figure out why this i not working. https://pastebin.com/TNSD88Y8
It is a simple pic that changes whenever i am home or away.
i looked there i must have overseen it.
i will look again
can anyone help me out here, i have dulled down all the extra code i have to fancy up my picture and layout, iu just need to know if there is something wrong in this bit of code here?
elements:
- entity: device_tracker.life360_nicholas_strang
state_image:
home: /local/KristinaHjem.jpg
away: /local/KristInaUde.jpg
image: /local/nicholasborder2BW.jpg
type: picture-elements
I'm trying to make an entitybutton in my overview override an automation when the button is toggled on. I've come up with this After some searching, it seems i need to add:
service: homeassistant.turn_off
entity_id: automation.blah
However, due to the fact that i am just a common idiot, i dont quite know where to place this, so i've come up with this, which doesn't work. What am i doing wrong?
entity: switch.on_off_plug_in_unit_1
hold_action:
action: more-info
name: Overstyring af magnetventil
show_icon: true
show_name: true
tap_action:
action: toggle
service: homeassistant.turn_off
entity_id: automation.sluk_outlet
type: entity-button
@unborn nova To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
@unborn nova Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs.
You'd add that in the card editor, using the raw editor I suspect
Having used HASSIO for 5 days now, i'm proud to report that i understood some of those words you just wrote
Got it
Add your entity button card, then use the built in editor
Which in plain english means i open the raw editor, go under cards, find my entitybutton, and add the 3 lines yes?
Normal editor, as in the code editor for my entitybutton yes? And then add the lines there like i tried at first?
Hang on while I boot my test system again and grab a screenshot for you
rgr
yes, got it
Hit that button, and you can edit the card definition
Yeah, that's what i did before, problem is if i add those 3 lines, it tells me i've got the IQ of a dead salamander, and it doesn't work
Right, i've gotta go for now. I guess i'll just have to face the fact that i have been lost round one to the entitybutton.
I want to take advantage of thomasloven's auto-entities lovelace card but for media-control elements... anyone know of any custom cards that control media but take 'entities' rather than a series of entity?
is it possible to take a yaml lovelace config and use that as a starting point to allow UI config?
@winter wasp three dot menu top right to "configure UI" then again top right you can get to the raw config editor. paste your yaml there and then you get the best of both worlds.
@spare meadow can't you use use a media card as the card in the config?
media-card only accepts a single entity, auto-entities replaces 'entities' so they dont jive.
i know how to access the UI config, but my lovelace yaml config is spread across a dozen files now
would be nice if the ui could take control of that as-is
ahh i see... i dont think there is a way to 'import' a bunch automatically...
i see. that card only accepts single entities while most accept a list
wonder if a card could be made that would spawn a new card per entity passed into it
gonna try something with the mini-media-player's speaker_group options...
designed for sonos but i'll try with generic stuff
still need to specify entities explicitly with that
touche
i guess i gotta make a bunch of individual conditional cards to determine if the chromecast is available ...
i wrote a script to generate yaml for one of my media cards. but prob not useful if you're not in yaml mode
i use a combination of both
but yeah... stored in db.
not file-system yaml
thanks though.
@spare meadow if it can help at all, here's the script that i used to use https://gist.github.com/jjlawren/558a51e1e87abc77e9e940df2f2b107a
i guess if you can paste in yaml it could work
uses hass-cli to find all the applicable entities
thanks
Doesn't sound like a Lovelace question, sounds like a #330944238910963714 question
Anyone else having problems with auto-entities being displayed in their google nest hub? It works everywhere, but not in the nest hub. It says custom element doesnβt exist: auto-entities. Tried a restart of the hub didnβt work. Also reinstalled auto-entities via hacs. Running 0.101.2 with latest version of auto-entities.
Anyone else noticing extreme RAM usage in Safari for the tab viewing the HA webpage?
My local HA-instance webpage, that is, not home-assistant.io
Is there a way to customize the gauges text size? At the moment the values clip through the arcs.
@mint geode are other custom cards working for you? You do need to add something to your configuration to use custom cards on cast. It's in the cast FAQ
@main night probably with card-mod
Other cards are working fine, also the auto entities card worked a few days ago, just stopped working βout of the blueβ
Will check the docs again, donβt remember to have added something π
Was that there from the beginning? Ntl, added it and restarting ππΌ
@mild veldt didnβt work
Tried to initiate the cast via a service call, the cast row in the entities card and the cast HA website, all with the same result. Tried reinstalling the plugin (also with previous versions, starting from 1.2 to 1.5) via HACS also didn't help. Here's my config: https://pastebin.com/hFSuE80p
@mild veldt yeh just looking into card-mod now ... thanks
how do u add a template sensor in lovelace?
@acoustic mural posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/PpxWVJMDqZ/
There's an example of one I just put together
Thanks. Happen to have one for garage door opener?
No, my garage has an integration, so no need for template. Sorry.
I have a question about lovelace code in the new GUI.
columns: 4
entities:
- entity: light.zw098_led_bulb_level
tap_action:
action: toggle
- entity: switch.whitenoise
- entity: switch.in_wall_smart_toggle_switch_2
- entity: sensor.fridge
show_name: true
show_state: false
type: glance```
It's giving me an error on that tap_action. Is there a new format for that?
Apparently, it still works. You just have to put up with the error. Interesting.
The UI just doesn't support them yet and have to use YAML
guys, if I enable lovelace yaml mode do I lose my current card setup? is there a way to migrate all my current stuff to yaml or should I just rewrite it all?
Why are you switching to yaml mode?
I want to use custom cards (and eventually learn to create my own)
Cool, but you don't need to use yaml mode for that
Just the raw editor in the UI to add to resources
Once you're ready to make your own check out the boilerplate-card I made https://github.com/custom-cards/boilerplate-card
makes sense, I thought you couldnt add resources in the GUI. want to use this https://github.com/gadgetchnnel/lovelace-text-input-row/ btw
thanks for the pointings
You have to use the raw editor and you're all good
Found in the menu overflow when in configure UI mode
yeah I have used it before for my bravia remote ui (just a simple horizontal stack of buttons), just wrongly assumed you couldnt add resources there, ty
Sure thing
@iantrich just found this: https://sharethelove.io/tools/jinja-magic-scripts exactly what I was looking for on my first question
i'm trying to do a conditional card within a conditional card... and it be based on an attribute... is that possible?
i want a "what's playing on the X TV" card. I have it working fine to read the state of my harmony... but once on roku, if it is plex, i want it to show the actual content playing through plex, not just the plex name itself
nvm, i forgot, i gotta make a sensor to make a conditional off of an attribute... I guess it's an under the hood thing, seems silly to have to keep making sensors just to read an attr. of an entity
hey everyone! new to editing lovelace UI. I just tried to add an alarm-panel config card, but it says 'invalid card configuration' but idk whats wrong with it
Do you have a screenshot of the card and the error?
So you don't actually have an 'alarm_control_panel' entity. You need to create that first, before you can set up a UI component for it
https://www.home-assistant.io/integrations/manual/ that shows how to set up a manual alarm control panel
awesome thanks so much @hushed bough
:+1: any time
@hushed bough one other question - i see the config.yaml doesnt include 'entity_id' field. does it get set to a default value? or is this set somewhere else other than config.yaml
Yeah it'll be the entity type plus the name
maybe its just lowercase with underscores of the name?
name = "Home Alarm" entity id = alarm_control_panel.home_alarm??
Come to think of it, I don't have any entities with spaces in them π€
The entity ID can always be found in
-> States
Anyone that can assist me in laying my cards out in a certain way?
I have gotten as far as this: https://imgur.com/a/qziXRKS
But I would like them alligned/sized liket his: https://imgur.com/a/DCXktDv
Hi, I added my roomba vacuum as a badge, and it shows as a circle with on/off inside it. Is there any way to achieve what other badges do (for example person badges) that is an icon and a bubble with the status (or location in the case of the person badges).
what is the best way to change background or theme in the background automatically based on specific conditions eg. weather, date or other
I want to change the font size. It seem to be hard coded in ha-style.ts file. How to change it?
@pliant obsidian check the docs. You can assign a picture or icon
@shy token card-mod
Does anyone know what theme this is: https://github.com/kalkih/mini-media-player/issues/173#issuecomment-534622477 (in that screenshot)
hi. I have a few devices that are not on 24/7 (e.g. kodi). I've integrated them on my overview page. when I restart hassio and those entities are not available, it will show them as "entity not available". can I make this not happen somehow even when a device is offline?
Short answer, no - but a conditional card could hide things that aren't in a required state
hm naw I want them to still show up. I'll leave it like this then
sucks that I have to restart hassio if I want something to show properly once I boot it up
It doesn't get detected later?
well e.g. my plex media player that's running on kodi is shown as unavailable now
I think once I start the plex addon on kodi and reboot hassio, it will show up
but just starting the plex addon won't make it show up as available
nvm it does show up, I just had to play something
evening everyone. Does anyone know if there is a way to present a live feed in lovelace, that rotates between several cameras?
Probably would require a custom card
was afraid someone would say that π
where would be a good place to ask for help figuring out how to get todoist to appear as a shopping list, and how to get so things added to specific projects use a todoist api to add a reminder automatically?
If you want to integrate it in Home Assistant, #330944238910963714
If you have that done, and want it showing in the UI, here
well i have todoist integrated but now I am wanting it to show in the UI and trying to figure out how to both add to the UI as a shopping list + when things get added use the Todoist API to add reminders based off location haha. struggling here.
So, here then
Is it possible to open an app when you press on a certain tab.
Example: Make a new page/tab named βmusicβ wich will open the Spotify app
That would be very usefull on my wall mounted tablet running WallPanel
conjecture: could be possible if you made a custom card on the page (or somehow do a javascript action) that opened a spotify url that your tablet will react to by opening the spotify app
@night talon - I looked at layout-card but it looked too complex. I almost sorted it with just fixing stacks and blank cards, but just can't get the last part right. The two vertical stacks won't stop overlapping each other on the width I want https://community.home-assistant.io/t/how-to-get-my-cards-to-stop-overlapping/148971
@devout loom I would play with the max_width settings. I don't have much experience playing with that card yet, just trying to give you some ideas.
does anyone knows if it's possible to bind keyboard keys to actions? ie: use arrow keys to control my tv buttons instead of clicking them
I'd guess my last resort is a custom card with binds implemented in js
@devout loom I posted this simple example with numbered cards to show placement awhile back on the various options with using using layout-card The advantages are the ability to be able set the view in panel mode and then adjust the width and height of your display. This plugin also allows you to adjust the column width, making almost any style display look the way you wish.
screenshot: https://imgur.com/a/HsQLL29
code: https://paste.ubuntu.com/p/Vkz22WbTcv/
I am having the strangest issue. my S D and F keys won't register in home assistant when typing. I'm using a mac. seems a really strange bug???
only happens in lovelace
Nice @atomic glacier will check it out
@atomic glacier - mind assisting me for a minute?
Just DM me
Any way to change the URL colors displayed on a lovelace card?
@mild veldt thanks for the suggestion
What do you guys think about https://github.com/basnijholt/lovelace-ios-dark-mode-theme ? βοΈ if you like it π
Hi guys, i'm trying to use the auto entities card using HACS, but it always show Custom element doesn't exist: auto-entities
I add the info that show in HACS:
- url: /local/auto-entities.js
type: module
Look at the bottom of that one in HACS
I take no one else has had the strange issue with certain keyboard keys not working in Lovelace?
is CCH still the best way to get different views per device\user or has something better come along ?
per-device, yes. core now supports it per-user
I missed that
That change passed me by
That's... nice

And yet again proof that no one reads the documentation/releasenotes π¦
if @split granite didn't catch it it must be missing π€£
I do read them, but All changes is a wall of text
you are a wall of text
π€
You've seen me write docs then π
Anyone know how I can use Apple's SF Pro font in lovelace? https://developer.apple.com/fonts/
now that is strange... custom element doesn't exist: compact-custom-header. only on my phone PWA, not in my chromebook browser π€
That's a you problem

is it because all options moved to the core of the ui-lovelace file ? or am I reading the docs wrong ?
I shouldn't have swipe in the views ? just under cch: in the core ui-lovelace ?
If you're only getting an error on one device it's likely a cache problem
I thought that, but dismissed it because I was sure it would refresh itself when I had changed the version number π€
Don't be sure of anything when it comes to browser cache
that said, is swipe now done in cch: or in each view ? the docs just state at the beginning that all options are done in cch but all I know is that I didn't have cch before π€
if anyone knows π€£
so I don't do any options anymore in the views then
but I still need the CCH as a card in each view ?
Did you read the section I just linked?
does not look like it...
yeah, I'm just confused as that was so fundemental in the past that it was in every view π€£
great I'll try
in the past well this is the future π
oh fnap
I'm still in 2016, digging old memes
wunderbar @elder pendant β€
now I just have a strange graphic bug that when I swipe the clock jumps down on the screen π€
feature
hang on, I'll upload to imgur π€£
I've cleared all browser files on my phone too π€
same happens on my chromebook browser actually
the blue dot is a nice giveaway
like I said... feature
:(
You could open a bug report, but since that "card" is going to be replaced soon, I'm not sure what you will get out of it
does that mean swiping will come native ?
because that is the main reason I want to use CCH
not sure
swipe will not be part of the replacement, it will be branched off, possibly into core, possibly into its own
probably its own for starters
β€
I'm running HA via the Docker image. My HA page looks like: https://www.home-assistant.io/images/hassio/screenshots/dashboard.png Does that mean it's not using the Lovelace UI?
Click the square with squares
@split granite not in front of my version at the moment (which is why I sent the image from the official site). If I want to turn on Lovelace do I need to do something in yaml or is there a GUI way to turn it on? Because when I was on the Lovelace page on the HA site, it said if you configure it in yaml, you lose the ability to configure it in the GUI. (Although, maybe that doesn't represent such a loss?)
It's the default unless you came from a really old version
Once you're home, and can actually see your setup, that'll be a better time to ask these things π
