#frontend-archived
1 messages ยท Page 101 of 1
I may be slightly partial, but I think this is a pretty good guide: https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins
Submit it to the offical docs ๐
Done it - thanks Thomas!
local thing was a little confusing but I managed it
couldnt have worked that out with out your doc
https://imgur.com/4EkjVyc This guy made this awesome graphic floorplan in floorplanner.com and runs it in HA floorplan - Can this be integrated in lovelace with the animation etc? Just trying to figure out where to start with building a front end for the family, have zero experience with hafloorplan, lovelace or anything.
Lovelace won't do quite the same thing
HA Floorplan is (currently anyway) massively more flexible than what Lovelace can do, which is why I've not moved my floorplan to Lovelace
Ok, but would it be possible to build a floorplan like that in HA floorplan then, and the rest of my switches, players etc. I need in lovelace and represent it on the same screen(on an android tablet)
Lovelace will be easier but no animations yet
I'd expect the Lovelace devs to get fed up with me saying that and improve it at some point ๐
Yes @devout loom you can have both
I do
Can I see how yours look?
I think those smooth transitions can be done with picture-elements.
A few image elements, with some transparency like that guy in the forums did, state_filter for making it fully transparent when off, and then -webkit-transition : -webkit-filter 1000ms linear or something in the styles.
There's already a bit of transition time, and this example has been around for ages: https://sharethelove.io/picture-elements-cards/3d-floorplan
@polar kelp Hey Thomas, finally got a chance to test the custom card-loader on Monday, and it's working great!
One question, it is great as is, just wondering, for a split second I get the red error, "still waiting for vertical-stack-in-card", then it disappears. Any way to get rid of that?
I'll see if I can add a timeout to it.
Thanks, besides that it is working great.
ty ty
hello everyone...I am running 0.86.3 and have converted to Lovelace. However, when I attempt to visit the page, it first goes to my old default view States page even though I have made Lovelace the default on this device. I can get my Lovelace page by going to Menu>Overview. How do I set that page (the Lovelace one) as the default?
@unkempt warren sounds like you need to clear your browser cache
@mild veldt that did it! Thanks!
grrrrrrrrrrrrrrrrrrrrrr
can not get this to work https://github.com/thomasloven/homeassistant-lovelace-gen
keeps returning null ... as result
i got it working before a long time ago :/
any ideas @split granite ๐
Pretty sure that's not needed or wanted any more
Anyone have or have seen a nice layout for a card with system monitor-things? ๐ฅ
so how do i get a ui-lovelace.yaml to edit?
like i dont want to manually convert all my groups to cards
yes
so how do i add a dependency?
a resource for custom cards? You use the raw config editor or you can switch to yaml mode
how do i switch to yaml mode
@amber jewel switch to yaml mode, and you lose editing in the UI
the raw config editor is getting nicer though
tab works too!
That's soooo going to mess up folks if they try that in the YAML
true
so i switched to yaml mode and it didnt generate the yaml file :p
and back where we started @split granite how to get it to generate with the python script :p
Pretty sure it doesn't work any more
"I want total freedom!" "No wait I'm too free! This is too much freedom!"
๐คฃ
i just want a starting point
The UI mode generates JSON, and you can convert JSON to YAML
Or, stay in UI mode ๐
Seriously, even I don't think starting with YAML mode is worth it any more, and I'm a config file nut
You could copy from raw config editor into a new file, which would then be a base for yaml mode?
so how do you get to that magic UI mode editor?
I see the "Configure UI" but if I click it displays a scary message (well it scares me!) warning me that I will loose automatic updates...Should I still go ahead and click "Take Control"
Yup. It's warning you that you're in charge now ๐
The updates it's referring to are when you add a device. Not updates to HA or how lovelace works. You are in charge of placing cards in the UI, and still able to use UI editing.
The next step beyond that is yaml mode.
ok. thanks @split granite and @mortal cape . My little brain is easily scared sometime
oh wow! this is wonderful! Why didn't I click earlier...
๐
The Lovelace devs have done an awesome job on it
well i got it working i dont like that web editor as much as VSC but i guess i will live with it
thanks
@amber jewel it is better in the beta. As well as editing within cards. The card previews are now on the right instead of below which is nice too
But you can also use VSC and paste into raw config editor.
editing mode for cards looks like this now
I have a card which list who is in the house or not. If I want to filter so that it only display people in the house I need to use the Raw config for that. Same goes if I want to merger 2 cards I guess
there's a conditional card. I haven't used it
And horizontal and vertical stacks are still options in the UI mode but they are not "magic"...they still require manually editing
is there a doc that explains how to configure these card via the ui now?
@unkempt tiger https://www.home-assistant.io/lovelace/
the cards are along the right
Some UI cards are self explanatory. Use the drop downs, choose entities...others that are not as simple still require editing yaml in one way or another
lol if you could only theme that editor to have the colors inverted too ๐
hate staring at code or really anything with a white background
Not sure why, but the alarm keypad is back in Abode alarm panel even though I don't have any code in my config
Because of your PR from yesterday ๐
lol....I thought the keypad only shows up if configured otherwise it is hidden
But you have no code setup on the backend?
no, I don't
which is why I am confused
abode:
username: !secret abode_username
password: !secret abode_password```
is all I have
Ok, I think instead of @property def code_format(self): """Return one or more digits/characters.""" return alarm.FORMAT_NUMBER, it should be @property def code_format(self): """Return one or more digits/characters.""" if not self._code: return None if isinstance(self._code, str) and re.search('^\\d+$', self._code): return alarm.FORMAT_NUMBER return alarm.FORMAT_TEXT like it is in other alarm panels
currently, we are not returning none even if code is not configured
Yes
actually, even that would not work....Abode does not have code support. I created a PR to revert the changes
so, the thermostat card does not display the current operation. Notice that the current operation is heat (based on a template sensor), but the card does not change
is there a list of CSS things somewhere? examples?
have 2 cards next to each other. one button and one a slider - and need to resize them
ohhh....I never would have guessed that. There is someone in #330944238910963714 who complained about the similar thing
shouldn't it be operation, mode is not interesting.
You cant set operation
mode stays the same. In my case, I set it to auto and forget it. Even if you set it to heat, it will stay that way for about 6 months
I agree that the state/operation could be in there under the setpoint or something
I see that the card is working as expected....but I feel like operationwould be more useful to show on the card
If it is a standard from the Climate domain
not a complaint.
trying to understand the correct operation and intent.
to me you are displaying the same information twice.
once with a pretty icon and again with text.
@winter hollow looks like there are some standard operation modes
MODE == what i want the thermostat to do. heat. cool. auto. off. the other things like DRY, ECO, etc are up for discussion i don't have a fancy house with those.
STATE == what is it doing RIGHT now. the thermostat ulitmately calls for HEAT or COOL.
yes, and right now, the card displays and allows you to change mode.
which is the bottom row of icons.
yes
which i think is great.
i guess a better question is since i seem to not be able to find the source of the lovelace thermostat card, where is it i'll fix that test in the very center for my install (if i can).
s,test,text,
may be the text below the temp 70-85 could display the current operation instead of repeating the mode information again
yessir. that is what i'm going after. i believe that was the INTENT of the card in the first place.
since the climate mqtt card does it right.
i also believe it affected the history graph as shown in my second imagur url
hi is there a way to specify a background image with lovelace using the ui mode? in raw config editor?
just for reference; here the basement thermostat is in heat but has gone into idle mode since the target temperature has been reached. https://imgur.com/a/XjVzSby
again, the heat is the mode and will stay that way until your thermostat changes to cool mode
I think we all agree that current operation should be displayed somewhere, but that is not the case currently (something to be added to the card)
i think it's already there but could be a 'bug' in the ecobee code (and nest based on what someone said in the other channel).
the thermostat card is the same for both the ecobee and the mqtt climate component? the big temperature in the middle of the card is the current temp. the little temperature under that is the target temperature (setpoint in some thermostat speak). the word under that is the current STATE in relation to the thermostat MODE (which is the pretty icon).
what should i do to get 24hour format with graph cards ? I read its because of chrome display language, but not sure where to change it effectivily
my chrome is in finnish, and still get am/pm
timezone and lat/long are correct too
and hostory pages graphs are in 24h format
history*
Nope ๐
@split granite i see you have replied to the AM/PM thread on forums, i wonder whats going on since part of my hass is 24H and AM/PM ?)
It's supposed to be a case of it being controlled by the browser display language
But, I can't say I use the UI that much ๐คท
@split granite you are always on. I love it./
๐คฃ
@split granite aight, so it might be a bug
Don't know, to be honest, but others might
So..... I have added a horizontal-stack but its just a red block.
I recon there is something wrong. I have tried to add the alarm panel but same block.
What's the text in the red block?
https://github.com/DubhAd/Home-AssistantConfig/blob/master/ui-lovelace.yaml#L320 is one of my stacks for reference
Card config incorrect
{
"type": "horizontal-stack"
}
Should look something like ```yaml
- type: horizontal-stack
cards:
- type: light
name: Master bedroom
entity: light.master_bedroom_bedhead
- type: light
name: Second bedroom
entity: light.person1_bedroom_bedside
Are you referring to the online editor and not the YAML
I use YAML mode
so I have a really dumb question... I had a flux led strip set up a week ago, and on press of the state icon, I would see a color picker ( https://imgur.com/kO141qb ).
I changed it to call the light.toggle service.
And now I don't know how I had it set up to show the color picker. How do I get that nice color picker back?
keep it pressed ?
Set the long press to more-info?
wow.
To be fair...I did fully disclaim that in advance, as a really dumb question.
thanks ๐
Meh, the only dumb questions are the ones you don't ask ๐
oh...we'll see about that. Don't underestimate my ineptitude ๐
@latent moss .... @split granite has seen it all. dont be afraid
You say that... and you're not entirely wrong
Is there a doc to show how to load a theme?
I found a nice one, but not sure where to put it.
title: Home Assistant
resources: !include_dir_list lovelace/resources
views:
- !include lovelace/views/default_view.yaml
- !include lovelace/views/media.yaml
- !include lovelace/views/tablet.yaml
- !include lovelace/views/system.yaml
ok let me try it. thank you!
I got the themes
https://www.home-assistant.io/components/frontend/ @leaden matrix
I create this folder /etc/homeassistant/lovelace/resources and this file inside it /etc/homeassistant/lovelace/resources/main.yaml
and I add
# Include external resources
resources: !include_dir_list lovelace/resources
views:
- !include lovelace/views/main.yaml
but it doesn't work ๐ฆ
Is your Home Assistant config folder /etc/homeassistant?
That's not a typical location
yeap
[Unit]
Description=Home Assistant
After=network-online.target
[Service]
Restart=always
RestartSec=3
Type=simple
User=root
ExecStart=/srv/homeassistant/bin/hass -c "/etc/homeassistant"
[Install]
WantedBy=multi-user.target
It is for systemd unit :p
Well, for your config maybe, but it's not what the HA docs shows either ๐
At debian world etc is the appropriate place for configuration files so I placed them there, and I didn't have any problem till now
@sudden lion thanks I create /etc/homeassistant/lovelace/views and move there my configs and worked
this resources: !include_dir_list lovelace/resources is for split the resources for lovelace
yes
maybe tomorrow I will create a pull request to add it at the documentation
It is very useful
I feel like I've probably looked at the answer to this a dozen times but don't remember, is it possible to have custom cards in the UI mode or do you have to have the config set to yaml to use them?
You can, just have to add it in the raw yaml mode or what its called
ah ha. best of both worlds with the lack of a code editor... oh lovelace you fickle mistress
When I specify a theme for a view it is being overridden by the back end selected theme.
Is this a bug?
Might as well post it here too...
auto-entities now support filtering entities by area. Home Assistant does not, though, until 0.87...
https://github.com/thomasloven/lovelace-auto-entities
.crosspost @errant plover
@errant plover Please DO NOT cross post. Read the channel description, post it and wait for folks to respond.
@undone egret to be fair no one was answering and the post directly below mine is also a cross post.
you waited about 15 minutes ....and he answered in one and then replied here also .........hence in the warning ......wait.....a hour later is diff ....not 15 minutes
greetings, I am learning the new lovelace way, and I am wondering how to add new cards. I am in the edit mode of one of the tabs, and wanted to add something that would show weather for example. I don't see any 'buttons' to add new cards.
@lavish lily Its all good now. Must have just taken a while to get sorted for some reason.
@urban birch when you select "Configure UI" from the top right menu, you should see a fab '+' on the bottom right to add new cards
blinded me when I saw it! ๐ I added a weather card, and gave it weather.pws as the entity, and now i have lost all the cards for the page.
i use weather underground
you're saying you had a view with cards in it (autogenerated I assume) and you tried to add one via the UI editor and everything was removed? Did you try refreshing/clearing cache?
refresh/reload didn't.... trying clear cache
i see this error after i added the new card:
With the new way of splitting lovelace mentioned above by @sudden lion ...does reload by save still work or do i need to restart HA for it?
http://192.168.1.40:8123/frontend_latest/8ee9235853b66c6b78f9.chunk.js:3527:788 TypeError: this.lastChild.setConfig is not a function
@gilded plume you'll need to be in yaml mode and on save you'll need to refresh lovelace (not a restart of HA)
~share
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code.
@urban birch open the raw config editor and share your configuration
@mild veldt i'm indeed on yaml mode but the lovelace file is getting too big so loved what i did read about splitting it
but was afraid that after that the reload stopped working, thought that was the case on earlier versions
The other 2 tabs I have defined look ok.
@urban birch which one is the problem one?
I see it
You don't have - on cards
You also need a title
You effectively have two card sections for the first view
Also looks like you need more badges ๐
hmm
wonder how that happened
I didn't edit them
how should I fix it?
later, I would like to change some badges into cards.. one step at a time tho. ๐
im having some troubler with the slider-entity-row https://www.hastebin.com/uwucedocat.bash is turning in to
try removing full_row: true
lol but then i cant read any of the device names
here is with the last two without full_row: true
use full_row without toggle: true
I am hoping you are using the latest version of the card
i just downloaded that today
ok....I tried it myself and full_row is not working for me either
i have an update to HA i could do I think but its tiny
@polar kelp will have better answers
Mine look fine
yeah that is what im finding
@urban birch youโll need to use the raw config editor
did you guys fix the raw editor in 0.87??? only asking because it does not seem to be screwing up the order of things now and it's showing stacks at the top of the stack etc?? and it has line numbers?
ordering fields alphabetically was never considered a bug
bram did a lot of work to start using codemirror for the editor though and has a lot of needed features
well I wasn't saying it was a bug but for me it made raw editor unpleasant to use and it seems like it's now working how the old yaml file did. I was just giving kudos because it's now at a point where I can ditch the yaml
nice!
any one else having inconsistent timer display in Lovelace ?
Morning all, i've been using HA for a few months now, and have tablets throughout the house running appdaemon, I'd like to setup lovelace, as the interface is much for "pleasing." I thought i saw somewhere that lovelace will autogenerate cards etc. does it do that from my "groups" or am I going about this all wrong?
Yes, it does it from the groups (if you've never used Lovelace before)
If you're on 0.86 then you're likely already using Lovelace
ok, can i clear any previously generated auto config and start again?
I am on 86.4. I seem to have some lights showing up that are no longer in use, and i'm getting errors for them, i'd also like to create more aesthetically pleasing cards.
You can take control and edit
my current view has about 350 badges at the top of the screen.
Did you use Lovelace before?
not before it was the default no.
Hey gang - is there a card that plots a graph between two times? Instead of the last 24 hours, between two known timestamps?
@halcyon basin You can delete .storage/lovelace and that'll reset things to use your groups
thanks @split granite just customising the front end now, how do i make a guage "half width"?
You can't, really
You could use a horizontal stack card with two gauges to fake it a bit
Hello. With lovelace I get this: https://i.imgur.com/4D5wG4Z.png
But I actually want how it was, this: https://i.imgur.com/dzTRVYR.png
Then, don't use a thermostat card ๐
But how to show that old way then? ๐
Maybe an entities card, but possibly only with a custom card
ah right! I see. yes that works! thx! ๐
~cards
Head over to https://sharethelove.io/custom-resources/cards to see a selection of community made custom cards for Home Assistant?
~custom-cards
Head over to https://github.com/custom-cards to see a selection of community made custom_cards for Home Assistant?
Is this still the way to add a custom card like that? https://github.com/nervetattoo/simple-thermostat#installation
Or is there a different/better way?
@split granite thanks that did the trick! out of interest, its it possible to add a fourth entry for severity? eg:
- type: gauge
min: 0
severity:
blue: 15
green: 20
yellow: 24
red: 26
theme: default
entity: sensor.kitchen
max: 30
@halcyon basin 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
```
Click on the link to learn how to format: https://raw.githubusercontent.com/skalavala/HassBot/master/format.gif
And, what does the doc page say ๐
If it doesn't mention a fourth entry, then no
There's a huge list of custom cards though
lol, thanks.
hmm is there an option for picture-glances to fallback to a local image instead of the -no-image-found one ?
or even generally for the camera_image entity
i didnt need the fourth entry, if i define green: 20, yellow: 23 red: 25, anything below 20 is blue anyway!
Could you tell me How I go about applying a background in place of the white? as I'm not using the lovelace.yaml file please?
why the new light lovelace card not have the color picker?
i just went to 86.4
https://www.home-assistant.io/lovelace/light/
Note: Long-press on the bulb to bring up the
more-infodialog
sure, no color picker there either.
not to worry. Sorted it.
@last prism if you don't have a color picker on your light in more-info, then that's something to do with your light component. The more-info is no different than what has been in states
its a lifx bulb, and i have it enabled in integrations.
delete and re-add maybe?
oh yeah, integrations, weirdly, does not have any delete function.
Integrations do - it's in the top right corner - devices don't yet, though.
sure cause why would i ever wanna delete anything, thats just crazy talk.
Here's how to get started: https://developers.home-assistant.io/ We'll take any help we can in getting features out as soon as possible.
python isn't my language.
oh gawd, even worse.
I hear you
its not a huge deal. it had a color picker in 0.85. i guess i can use the lifx app until it gets sorted.
is it safe to delete it from .storage/core.entity_registry ?
ie: can i safely modify that and restart hass
and core.device_registry
Stop HA before altering any files in there
Or they may be replaced as HA shuts down
okay.
Hi! I'm looking into reloading lovelace, I mean regenerate the default template from an updated configuration. I've read there https://community.home-assistant.io/t/reload-entities-items-without-core-restart/60847/5 it was possible to reload lovelace, but I only found frontend.reload_themes service. Not sure if it was what I'm looking for.
Delete .storage/lovelace, then reload the page
Oh! Can I trigger that delete from a command_line script ?
with shell_command right?
Probably, but don't get it wrong or you'll automatically break HA ๐
@split granite I mean, I want to reset the current lovelace state (which is already automatic). So I have no .storage/lovelace to delete.
I through it was creating the file at boot but no
huzzah.
Please follow the rules, @steady grotto! You have 5 warning(s) left. You posted a message/code that is more than 15 lines. It is moved here --> https://paste.ubuntu.com/p/cjxsWXnmSx/
hello, i'm trying to find out the mock theme available on demo page (Hem by kernehed)...
Anyone knows where I can find it?
Hey guys i would appreciate some help im reallly strugg;ling woth lovelace.. im upgraded to the latest hash version, that messed up a lot of stuff so i started from a base config though lovelace seems not to be loading. I have created a ui-lovelace.yaml and added
lovelace:
mode: yaml
On the config file seems all i see is all the sensors with no order while my lovalce config file is like that :
https://paste.ubuntu.com/p/cjxsWXnmSx/
i have not created any 'groups' as i would expect lovelace would do create those groups/cards
so mu groups and customize yaml is empty
@vapid field seems to be available here: https://github.com/home-assistant/home-assistant-polymer/pull/2518
maybe comes from here: https://github.com/kernehed/Home-Assistant_Config
state_filter:
- Home
``` That's far from right @steady grotto
- 'home'
``` Try that
thanks for that i just modified the lovelace.yaml with that though i still see all my icons no organized per lovalce.yaml ๐ฆ
You're sure you're using Lovelace?
Hi guys, I need your support. I updated my HA (no problem before), after the update, opening it in "lovelance", the system shows me many errors on sensors "Entity not Available". I checked the configurations, comparing them with those of the components on the official HA page and they seem to be all correct, by chance someone can give me some advice?
@mortal nymph Your old groups had entities that don't exist in them ๐
yup and i see all my sensors there everywhere not organized pre lovelace
so you reckon i still need to use the groups and customize yaml ?
@split granite Thank you for your answer. WH whom do you advise me to proceed with?
Clean up your old groups and re-generate the config, or take manual control and fix it
@silver dome I can't find it on kernehed or polymer repositories...
@split granite But is formatting wrong on the groups?
@mortal nymph you will need to review you config i had the same problem after the upgrade..
@vapid field Oh I'm already using slate theme :p It looks good!
so will still say we need to have the groupd and customiz. yaml apart from the lovelace ?
thanks mate i do my homework and try to put that back and give it another go
@steady grotto I have fixed many problems, but these last ones I can not understand how to correct them, maybe I see inside customize.yaml
I have another issue with my automatic reload script, here's the details: https://gist.github.com/aslafy-z/a3a4e32ba4f2136a98c0d689dcf1dfff
if fails with AttributeError: 'NoneType' object has no attribute 'is_on'
@split granite Excuse me, the changes will have to do on the file ui-lovelance.yaml or on the original ones in HA?
๐ฆ
@split granite My idea would be to go to Lovelance, but I would first like to work everything I had before
Then you're not yet in YAML mode, presumably
so how the config would look like if you do not use yaml mode?
lovelace:
mode: yaml
Above how you enable it
If you don't have that, you are not using YAML mode ๐
At that point, it's all in .storage/lovelace
roger that! so when you do not how do you modife the lovelace stuff ?
Through the UI ๐
@mortal nymph Which version of Home Assistant did you upgrade to?
ok cool im thinkin to remove that then..
ig you dont have yaml mode will you still have the need for ui-lovelace.yaml ?
Nope, but see the blog for how you move from YAML to UI and keep your config, if that's what you want
@polar kelp hello !!! I have the last one 0.86.4
Thanks. Just checking for statistics
well my config is a mess anyway so ill remoe the mode for now from the config yaml till i fix the group and custom yaml
the latest upgrade of HO was by far the worst ive seen !! asuswrt not working and almost all of my stuff not working.. good intention though but implementation
@mild veldt , I figured out what was wrong with the weather card; turns out that wunderground doesn't have a weather: entity available. I switched to dark sky and it works fine.
@mild veldt , I also was able to see the errors with the weather card when I used a different browser than firefox. I am slowly figuring out the new interface!
Please follow the rules, @halcyon basin! You have 4 warning(s) left. You posted a message/code that is more than 15 lines. It is moved here --> https://paste.ubuntu.com/p/tbpFKmSrc8/
ideally i'd like the icons to go green when online, and grey out when offline.
dw. Figured it. Title. obviously. lol
a generic question regarding upgrading from 85.1 to 86.4: I have a new badge named run date using sensor.run_state. Its current value is default. Anyone know where it is coming from?
not run date... Run State
Where do I change themes ?
A quick question about lovelace.
When I change an entity name from within a card, and then save. The card then reports the entity is not found, and I have to edit the card too.
Is it by design, and am I going about this the wrong way?
Or will a future iteration of cards "understand " I've just made a entity name change and change the card too?
@ivory raft themes can be changed in you user profile page
@vapid field once you take control of the UI, the configuration is static and only editable by you. The UI configuration will not change names based on backend name changes. That is on you to change.
@mild veldt thanks, I think I follow. But my point is that I am changing the backend name in the frontend, and I think it would be nice if the frontend recognised that and applied the change on the card too.
I get your point, I'm saying it is not expected behavior at this time. You can submit feature requests to the ui-schema repo
Thanks. that answers my question. Thinking about it a bit more I realise it's more complex than I initially thought, the same entity name is potentially used on multiple other cards on other views to, which the editor would then have to scan/update etc.
never mind all other places the entity is used automation, scripts etc.
I guess I shouldn't change entity names willy-nilly in the UI,,,,
Hi all
updated to 0.86.4 today, now I get Entity not available: media_player.apple_tv
Is it listed in
?
it is not
thanks
heh @raven nacelle you ever hear back from that guy about that custom slider?
does anyone have any idea if you can use different colors, or change the order, for a guage card in lovelace?
how do you accomplish this out of curiosity? i set it up like this:
severity:
red: 0
yellow: 50
green: 100
and it just shows the default blue color...?
what is the value of the sensor?
also refresh the cache....CTRL+SHIFT+R (a few times)
well that particular value would be for the speedtest download sensor
and what is its current value?
Thats a lovelace question lol
Just trying to make a Floorplan with Affinity.. Disgusting - Could you recommend something?
folks, noob question regarding lovelace.. with lovelace it seems like we don't need groups to make cards or even groups to make views.. is that the case? can i remove those groups?
only retain the groups that you are using elsewhere. All other groups can be deleted
nice.. one more question.. i see there are different types of cards i can add to the UI.. i added a history_graph card.. does that mean i can get rid of the history_graph setting in my configuration.yml?
history in config refers to the history that you see in the left tab
i guess, in general.. anything that i have that was put there for the sole purpose of UI visualization seems to now be irrelevant since all the config is now in .storage/lovelace and can be removed from the configuration.yml/groups.yml
history graph in LL is for a particular sennsor
yeah, that is related to similar thing
LL is independent of the backend
so you can play with it
nice, nice.. very cool.. thanks for the info
Until we have multiuser lovelace setup..is it possiable to get the active user ? So we can do conditional based card? If thissomething can be enable?
Im having problems getting the simple-thermostat card to work. Ive downloaded the simple-thermostat.js and saved it on my www folder. I have ```resources:
- url: /local/simple-thermostat.js?v=0.15.1
type: module``` in my lovelace file but im still gettingcustom element does not exist: simple-thermostaterror when i try to add it as a card.
๐
@plucky furnace what browser?
@violet talon opera and Microsoft edge
Any reason for this error? /local/mini-media-player-bundle.js?v=0.9.8:1267:0 NotSupportedError: Operation is not supported mini media player not displaying at all no errors on screen hass 86.4
latest is working fine for me did you change it recently?
@buoyant portal what browser? Try a different one
Firefox. I'll try a different one
Still not displaying in Opera. I'll try restarting hass, it was working yesterday. Haven't changed it recently
Who can help me with a little problem?
I would like to get these 3 sensor on one line
How can I do that?
๐ lol I just solved it ๐
@robust garden If you haven't seen button-card, you should take a look at it...
oe nice ๐
Will look in to it ๐
the lovelace demo is also very nice ๐
Some great example that I'm inplementing right now
But also still searching for other great examples
Like a nice why to show all your automations, I used the group card but that results in a crash ๐
try sharethelove.io site
hmm monster card is something that I must add to my config
More people that use the group card?
So you can select an group.(name) as entity
mines crash if I show an group of 45 entities in it ๐
When you are using the lovelace UI, where does it store the yaml?
doesn't seem to be using ui-lovelace
I've enabled lovelace yaml mode and I'm trying to find the config I create in UI mode. Does it still exist somewhere?
@trail stream remove YAML mode and grab it from the raw config editor
Where might I find the raw cpnfig editor?
Alright so I am on the lates update for hassio. I love the new interface, lovelace. Lovelace is set as my default page, however once I am logging in it is allways loading states first. Why is this?
How can I get a group entity which is represented as button card on lovelace to indicate on/off state in style (icon / bg color) ?
Anyone else see that the TOGGLE EDITOR option is grayed out on the HISTORY GRAPH?
Good morning, is there any caching file where lovelace-entity-ids are cached? I still have the problem that all my entities show "Entity not available". When i switch to "states ui" all is fine. When i copy the full configuration (.homeassistant/*) to a different machine, all works fine.
Input selects placed in picture element cards are totally borked. When tapped, more info opens with an option from a completely different input select. 100% repeatable on any input select.
~share
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code.
Show us the code ๐
@split granite : me? ๐
You can delete that, and then it'll re-create it @hearty marten
In an entities card (good) https://i.imgur.com/XqaVj8Y.png same input_select in a picture elements card: https://i.imgur.com/AYUP87V.png
No worries
if I'd like to setup custom lovelace stuff I need to set up mode: yaml ?
No
but i need to create a file called "ui-lovelace.yaml" right? for example if i start with this: https://github.com/bramkragten/custom-ui/tree/master/weather-card
- entity: input_select.lounge_ac_mode
style:
left: 83%
top: 77%
tap_action:
action: more-info
type: state-icon
hmm
raw editor
need to google that...I'm a bit confused, the instructions are quite complex
Alright so I am on the lates update for hassio. I love the new interface, lovelace. Lovelace is set as my default page, however once I am logging in it is allways loading states first. Why is this?
@dense elk tap on the top right three dots icon twice. First to open the UI editor, second to get to raw mode.
@vapid field
-> Set Lovelace as the default
@vapid field also update your browser bookmarks (they're different for lovelace).
and now got the raw mode...thanks
It is set as default
You may have to clear cookies and/or cache for the site in your browser
Alright, but do I need the states? Any way to delete it? Because now it looks like it is running two instances.
One states and one lovelace
No, and no
The delete card button within Lovelace GUI has suddenly stopped working, so much so that I have to refresh the page to get control back. Anyone seen this before?
@vapid field But you can clean up a lot of unused code. You can delete the code for groups (as long as you dont use them in automations), views and history graphs (unless you add the history graph as an entities or other card element - which is actually better than the lovelace history graph card as it can be expanded).
So I inputed Windy via the iframe card and I'm getting a message in the iframe that maybe i dont have connection....tho' the windy map seems to work, is there and option to configure more frequent refresh of the iframe card
also is there and option to enlarge it ๐
Nope. And I saw the same message and it was updating. Didin't bother keeping the config though so never sorted it out.
thanks tom I you are very helpful!
Hi All, Does anyone know if it's possible to expose the on/off function on a thermostat card in lovelace? Thanks!
I have some sonos components. I'm using the media card to display/control the devices. Most of the channels I listen do does not provide any album art. This leads to huge white squares expanding and contracting when I change views or randomly. Can i disable/minimize the album art, or set some default art to prevent this from happening?
@fallen dock check out media mini player: https://github.com/kalkih/mini-media-player
hello there ๐ I'm pretty new to lovelace and I would like to add a custom card to my HA. Where I can find the ui-lovelace-card.yaml file? Is it necessary to switch HA to use yaml file for lovelace?
ui-lovelace.yaml should be located in the same folder as configuration.yaml
@sudden lion thanks, I've seen the midi media player, but I'm looking to use the native media player card if possible
To use it you will have to enable yaml mode. You can also use the raw editor to add the resources needed for custom cards
https://www.home-assistant.io/lovelace/yaml-mode/ here's some info on how to run yaml mode
@sudden lion is it possible to do in the raw editor itself without activating yaml mode?
Yes
Yes absolutely
thanks ๐
where do I find the native media player configuration file if I want to do some modifications?
That depends on what card it's in
Still need help with this: https://github.com/bramkragten/custom-ui/tree/master/weather-card I copied the files in the location stated and I'd like to use the built in lovelace editor...where do I pasted the stuff thats in the readme....do i need to create the resources entry etc?
here i have the pastebin of the config from the editor https://pastebin.com/hvnrxqXY
First attempt at a migration to lovelace UI, running 0.76.2: unknown card types 'gauge' and 'thermostat'. What were people using to replace badges before these were introduced?
@split granite (indeed, I have users) spelunking github for old configs I guess..
Yeah, I know the challenge
I guess I should work on the roll-out of the auth system first then... :)
That's what held me on 0.76 for a while
Given that almost nobody else uses the UI, it ended up being a trivial upgrade in the end
I only just moved the live system from 0.64 :O
๐
I moved most folks to using the Google Home app, as we use Google Assistant, which removed the need for the UI
I just configured my first picture-elements card - neat - now I ask me how i can make it bigger on the desktop - ll be either renderd fullscreen of death with panel: true or tiny as card
https://www.home-assistant.io/lovelace/conditional/ @quaint cosmos
I am using lovelace and like it.. For my Trane thermostat there are 4 cards showing for the thermostat. Heating, heating econ, cooling, and cooling econ. Is there a way to display or not display a card based on a value? Like only see the heating card when the thermostat is in heating mode or the cooling card when the thermostat is set to cooling. I still have a lot to learn, but am trying..
Also noticed that the operating_state is not being tracked either. Can someone point me in the right direction on how to get this monitored?
I really need to read before copy and paste Tinkerer..
guys can you please take a look at my config pasted above and tell me if I'm doing something wrong ๐
But I still need help tracking the operating_state in the current climate card..
Can provided cards, like the thermostat card, be customized? At the bottom of the card there are the icons for heating, cooling, etc which would show what mode is active. Then right under the set point value is wording that states what mode is set. I would like that wording to track the operational state, like "Heating" or "Pending Heat" from the device operating state...
https://drive.google.com/file/d/1fuwM14xU7Zm3NjCoVFY5S63IEJNiDiTJ/view?usp=sharing is there a way to get rid of this annoying slider
using the iframe card btw
@quaint cosmos Nope. Toggling the Editor of cards still only give you access to the supported attributes. OR yes. Create your own custom card by building upon what has already been done. It's open source and all available on github.
@dense elk Try messing with the aspect ratio attribute.
I did but couldn't find the sweet spot ๐
Taller than wide required, so larger aspect ratio. Start with silly and work backwards (85%).
what about the custom weather thing and how do i even display the darksky things...if i try the stuff from the docs of the component it doesn't display anything in the UI
Jebus. I'm not even looking at that yet. I use a custom Australian weather FTP scrape source. Someone has managed to do it but it looks like a lot of custom template sensor work. If you're using DarkSky (which is wildly inaccurate here) it shouldn't be too hard. Follow the instructions.
I did but I dont get anything ๐
maybe the docs are before the lovelace time and its incompatible with something
@errant plover I kind of figured after I have done some more digging. I am by no means a developer/programmer and not even remotely sure how to do it even after reading through the custom card section on the developers site. Oh well... Guess I will just live with it and try to find a work around. I haven't even figured out how to extract that specific value from the entity to display its value.
You can make feature requests though.
yeah Im trying that one but I think im doing the configuration wrong or something
Except for some minor issues around unavailable devices I'm impressed by the legacy UI compatibility in Lovelace.
And exceptionally pleased that in yaml mode the UI isn't editable by users! :D
hi all !, when loading any page from the external URL , i started to receive this type of errors : Uncaught (in promise) Error: Loading chunk 17 failed., in several of this "chunks" , it worls fine locally , any ideas what the reason may be ?
@tropic lake yeah the devs and beta testers have done an excellent job. I have to keep reminding myself "it's early days" when I find issues. For the most part it's amazing how seamless the transition was.
Not sure what you mean by this " yaml mode the UI isn't editable by users! :D" though. Have you not discovered raw mode? ๐
@errant plover this yaml mode: https://www.home-assistant.io/lovelace/yaml-mode/
Attempting to edit it (the menu item is still in the UI) produces a message "The edit UI is not available when in YAML mode."
no....if you use yaml mode, you cannot use the UI to edit
if some instructions are for the yaml option how do they translate to the editor option
can i still copy-paste that code
why is two same resolution pictures different size on the desktop ?
its driving me nuts
5 cards same height and two are not same height
@potent fjord is it the same if you remove card-modder?
damn i really dont know how to use these custom components
everyone i try i have the error that Custom element doesn't exist
and i do everything as per instructions
@dense elk use the raw editor or toggle editor mode in the card if you have to add extra options.
Hi guys.
I have a picture-elements card but I'd like to control the image based on a sensor state (window open/shut). Is this possible, or does that only work with a picture-entity card?
hey guys - I'm new here and I have a question because I'm really confused how does one create a new custom card?
are you trying to make a card from scratch or implement a custom card someone lese made?
I'm using vs code I tried cloning one of the existing custom cards out there and no luck...
or are you trying to add entities to a card to display on the UI
trying to make a card from scratch
or even make changes to someone else's but i cant seem to debug the thing
f12 in chrome will bring up a debug menu to help you pipoint issues with cards, that and the error log in homeassistant
i can't even get to that though it's complaining about ReferenceError: HTMLElement is not defined
did you install and gt a pre made custom card wirking first?
so that's what I thought i was trying - the custom calendar card?
or is there a special pre made custom card I need?
how are you editing lovelace?
what do you mean?
how do you add cards and entities to your UI for homeassistant
oh, I just added the js file to my www/custom-card folder on my pi
do you edit the UI for lovelace via a yaml file or through the three dot menu on the top right
via yaml
I forgot, I also added the reference to the ui-lovelace.yaml
yup
and that works
for your card at the top of the lovelace ui file you have
resources:
- url: https://unpkg.com/moment@2.22.2/moment.js
type: js - url: /local/custom_ui/calendar-card/calendar-card.js?v=1.0.1
type: module
yes I do
can you open your calendar-card.js and tell me what the first line is?
well right now I'm just trying to debug soemone elses's file
class CalendarCard extends HTMLElement {
~share
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code.
@earnest geyser share your configuration
I want to make sure the card works without any modifications, is the card broken for everyone currently?
I think it's fine, I think I wasn't clear
the card is fine, I'm just trying to make my own custom one based on the existing card
so I thought I would open VS Code and get the eixsting card's code, and debug it to see how they are doing things before making my own
sorry for the confusion
I would check with fronend dev section for something like that, and any relevent documentation on creating lovelace cards
if i get an uncaught exception when loading a card what does it mean? (and it doesn't load)
for example uncaught exception: /local/custom_ui/dark-sky-weather-card.js?v=8.3
Can I change the background color of an card without an additional plugin?
well.. f. it - installed thomasloven's card tools - Thanks for all the awesome work btw
so next thing I want to do is to make a almost empty card wich comes up and leaves again to prevent image burn a little bit.. thourghts on how often it should change?
@raven nacelle yes, removing custom card modder didnt change a thing ( about the picture entity different size cards https://pastebin.com/LeLmAZzy)
that i asked 3h a go ๐
https://github.com/bramkragten/custom-ui/tree/master/swipe-card @civic sedge maybe, but given that the cards won't move, it's probably better to find a solution for the whole screen
Its a amoled screen. with very little to display.
https://imgur.com/a/HoSlr6p
so when its moving 5mm it should be ok I guess
I meight set up a input bolean and a conditional card
how do you control picture-entity card size ? Having some probs because they are different size with same code
picture resolution is same
@earnest geyser ljmerza has what looks to be a good boilerplate card to start from https://github.com/ljmerza/lovelace-card-boilerplate/tree/6117c19924a941efba439cb450090e529a74eeb7
somethign odd with the pictures, i swapped them and card sizes swapped too ..
how do you make cards the same height?
i have a weather view that shows all the temp/humidity/etc. sensors but the way it wraps the cards they end up being in 2 unequal height columns
there seems to be exif info about orientation that makes some picture entities different size.
which seems odd to me
EXIF: Orientation Horizontal (normal)
o/ all
Hey, i'm trying to set up ha-floorplan but i'm getting "Unknown" in lovelace, here's my lovelace yaml: https://paste.ubuntu.com/p/nQcGMpYTG2/. Does anyone know if that's right?
can you create a hidden view that is only reachable via direct link EG https://HAURL/lovelace/hidden_view_id
what's the best way to redirect mobile device to /lovelace/mobile (for instance:) ) ?
compact-custom-header is buggy since 0.85, and the localStorage 'defaultPage' trick does not work any more ๐ฉ
bummer, custom card modder doesnt work with picture elements when trying to round corners :/
@polar kelp around ?
yes
just made an issue to github
Add overflow: hidden
Yeah. Some cards work a bit differently.
but cool, it works now
closed my issue with comment
Are there any plans to add drag n drop editing to Lovelace in the future? Or swipe through tabs on mobile devices?
do vertical stacks come "before" horizontal stacks?
Depends. For most people it's the GUI.
If you like code and want to share your configuration easily to e.g. github, it's probably yaml.
ok, so you can do the same with the webconfig?
you don't loose a lot of oppurtunities?
If you can't do it in the GUI (yet) you can enter yaml in the GUI as well.
ok
there's a "raw" mode
And when creating cards you have the option to enter straight yaml
seems pretty reasonable, gui for most of the stuff, but yaml if i need something special
thanks
I usually use raw mode to add custom modules and hit skip when creating a card to paste in yaml from a GitHub example
a second question, after glansing over the documentation, is there a way to have several card sets?
@sour crag no, you can enter straight yaml from the gui
and choose between them on the side or something?
You can add tabs at the top
lets say one card set for the living room, antorher for the kitchen, and just a list of rooms that toggles between sets
i see, sounds like what i am looking for
thanks for the help
how do i go back to non yaml mode? i tried to hash it out but it still going to yaml mode
@old ibex did you delete that section from your configuration.yaml?
I have a rgb light connected via mqtt, from integrations panel, I can control the color of the light. Though from the Lovelace UI i'm only able to control the on/off. Is it possible to control rgb lights as well from within Lovelace and if so, how?
@old ibex also, did you restart HA after commenting it out?
@vapid field I think I saw someone post an RGB card to Reddit last night...
on the config urator
@violet talon do you know the url?
@vapid field https://github.com/ljmerza/light-entity-card
looks like vertical does come before horizontal
@vapid field can't you just use the hold_action:
hold_action:
action: more-info
Maybe not possible with mqtt light. Don't know...
@old ibex stuck browser cache?
@winter leaf not sure what hold_action: but i'll read the docs.
So you are saying that with normal rgb light's it should be possible to control the color via Lovelace?
btw, thank you
Any way to hide a badge when it is in a certain state? Presence detection in the old UI when someone was away the badge would disappear and when they were home it would show up. Thatโs not whatโs happening in Lovelace.
I have the entity to hide when away
@burnt moon entity-filter
just in case anyone wants to have a hidded view I have a janky work around. create a view and for the icon give it an invalid mdi: icon for example I named mine mdi:thisdoesnotexist. there is still a clickable space in my views bar but it does not say or show anything
Security by obscurity!
Hello, I'm working on a new climate component. With the states UI I get switches to turn my component on/off. When I switch to Lovelace I can switch it on by setting a temperature but there is no off button. Does anyone know what I need to do to get Lovelace to display one?
hey folks, any way to get a slider to be next to a button - but the slider is 3x the width of the button (like you could with custom-ui )?
@tepid locust you could also try custom-compact-header
@clear hornet put it in an entities card
Thanks @mild veldt I canโt figure out how to not split the slider and button 50/50 on that โrowโ (which means the button is too wide and slider is not wider enough ๐ any ideas
@dim jolt so you're using that already and you think the slider should be wider?
show me what you have, I guess, because the slider looks to me much wider than the "button" on the right. (I'm not sure what you mean by button, do you have it set as toggle?)
Anyone around to help on some custom card questions; particularly the fold-entity?
@mild veldt thanks for that link, will have to play with it
I wish the current GAUGE card could have more severity intervals and colors defined
@summer eagle have you looked at https://github.com/custom-cards/circle-sensor-card?
yepp, more stuff to install, too much fun stuff atm ๐
What is the best free weather forecast component?
@summer eagle why don't you poke around https://sharethelove.io/custom-resources
I haven't came across a paid component in my life...? Are you talking about it connecting to a service that is paid?
Either way, component questions are best asked in #330944238910963714
I use dark sky and have yet to hit the pay limit for api calls, it updates the sensors every 5 minutes
Even Wunderground...
I also use the google travel time and have not been charged yet for going over the api call limit it calls every minute
they still want your credit card info, just in case
yes, it is possible especially if you call it quite frequently, just pointing out you can use them and not go over
thanks for that
is this correct?
resources:
- type: module
url: >-
https://raw.githubusercontent.com/thomasloven/lovelace-slider-entity-row/master/slider-entity-row.js
how do i know if its module or JS?
i get the error: Custom element doesn't exist: slider-entity-row.
~format
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
```
Click on the link to learn how to format: https://raw.githubusercontent.com/skalavala/HassBot/master/format.gif
anyone know of card-tools is js or module?
@hoary lava you can't use raw from github. You have to download the file and reference it locally
ok. i got it working somehow... but how do I know if its type js / module? its not documented.
it seems to work either way. js/module doesn't seem to matter but i'm guessing one is more correct.
anyone having problems with tap_action: toggle to work? for me it does nothing....
if i use tap_action:
action: toggle it works but gives me an error
I've got another dumb question... :)
When I enter my lovelace address, on rare occasion I get to the
http://192.168.178.28:8123/lovelace
but mostly Chrome forwards to
http://192.168.178.28:8123/lovelace/0
how can I reach the ^^^first link?
@hoary lava its a .js
im trying to add prefix to sensor data with picture-elements, how do add space after prefix ? Now prefix has no space between prefix and temperature reading
Temperature23.9 doesnt look good
hello there
I am having problem where lovelace is not refreshing when i make changes to my yaml without a restart.
I've googled and looked in the forums; the only thing I can find relates to using include! But I do not use include! in my ui-lovelace.yaml file.
Does anyone know anything else it might be?
I'm on the most recent version of hassio on hass.os.
Ah- this has been resolved using the Refresh option from the overflow menu in the top right corner of the UI.
allright i have a lovelace question which is borne mostly of complete ignorance as to how lovelace works at all
so i have a project https://haswitchplate.com
that makes extensive use of hass packages, so a user can install one or more of these devices and a quick script will drop a new package for each device. works great under the old UI
but now lovelace is a thing, and i'm trying to work out an approach that keeps the modularity of packages without screwing up people's existing install
what i don't see in the docs anywhere is any mention of packages. so here's the question - can i add lovelace ui elements inside a hass package?
@mild veldt with an entity-filter can you used that with a badge?
my major issue is that i think this will work in yaml mode, but i cannot presume that everyone will be running in yaml mode
so how does one deploy a package that works for all users? or is it just not possible now like it was before?
I think you bring up a valid point....i just have no answer
i know if you delete the lovelace in storage it will read package groups ...so possibly a way to call that service?
that's ok, but not if someone has already customized their environment
true
am i correct in understanding that customizing lovelace via is 100% contained in the .storage/lovelace file?
more specifically, is there any means at all to do file splitting when that approach is in use?
so apologies if this is somewhere in the docs, can't find mention of it - I'm using the built in editor for Lovelace (awesome!) - but is there a way to re-order my tabs? I get the sense that I need to re-order the structure within the yaml in the Raw Editor, but I just want to check to see if I'm missing something obvious before I go down that path.
@supple jackal I'm curious too now that you bring it up
@supple jackal @junior onyx reordering tabs/views is coming, but for now you'd have to cut/paste within raw config editor
It's in the current beta
fancy
small question how can I use custom cards in de configure ui of lovelace?
I got the following when using custom cards
Your config is not supported by the UI editor:
Expected a value of type {entity,name,icon} | entity-id for entities.0.type but received "custom:slider-entity-row".
Falling back to YAML editor.
@vapid field https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins for troubleshooting.
having an issue, just upgraded to 87, missing pretty much every popup text in the UI. Anyone see this before?
@burnt moon no
@mortal cape I love the new raw and card editor, are they plans to add line numbering, code folding and auto indentation to help with yaml formatting? I'm finding it increasingly difficult to nest card types within other card types and these would help greatly.
@sharp talon there are now line numbers, and the preview is on the right instead of below. no auto indentation though
(in the beta)
Ah cool, something to look forward to in the next release ๐
One thing I have noticed when changing the order of cards (using the arrows) is that the cards seem to jump between columns as they are arranged and not as you would expect them to move (ie. straight up and down within the column they are located). I should probably know this but how are cards displayed in relation to the layout?
there is some page out there that explains that flow...I'd have to search
I think one of @polar kelp 's cards
who created the custom button card that people are using over the built-in? Trying to find it
@tacit cave this one? https://github.com/kuuji/button-card
Hereโs how the card placement works: https://github.com/thomasloven/lovelace-card-modder/blob/master/README.md#forcing-size
@fading sorrel, how you.. Perhaps you or someone could help. I am installing the InfluxDB addon. Its asking for a username and pass to get onto the web UI. What is the User & pass?
@leaden matrix Not really the correct place to ask... but it is your HA username/password..
I'm sad since I can't get any custom card to work ๐ฆ and tried a lot of different things, followed all the instructions by the letter,...made the .js files executable...dunno what i'm doing wrong
is it possible to expose the "color picker" from a certain light more directly in the UI that one doesn't have to click on the light entity
@dense elk did you download the files now?
did you follow thomas' wiki page?
i think i remember you are in storage mode. did you add the cards using raw config editor?
the resources that is
yes everything and nothing worked
i even removed all the code and used just the code for one custom item
and that produced the same error....the default lovelace things work just fine
just the custom dont...but that is really annoying
Are the lovelace issues possibly related to SSL not working (sonoff component problem)?
@\
@dense elk no
share your config
can you reach the file at <ip>:8123/local/card.js?
where "card" is the one you're trying
https://pastebin.com/axhmZBBV below is also what i have in configuration.yaml
both things are in the same pastebin
so if you go to <ip address>:8123/local/custom_ui/dark-sky-weather-card.js do you see the file?
i would also recommend using weather-card instead ๐
so if you don't see the file, then your paths don't match and that's your problem. your physical path should be config/www/custom_ui/dark-sky-weather-card.js in that case
i have that path
yet if i go to that address it is 404: Not Found
msev@orangepipc:~/.homeassistant/config/www/custom-ui$ ls -lrt
total 28
-rw-rโr-- 1 msev msev 25970 Feb 2 17:23 dark-sky-weather-card.js
msev@orangepipc:~/.homeassistant/config/www/custom-ui$ pwd
/home/msev/.homeassistant/config/www/custom-ui
is the path correct @mild veldt
where should this config folder be
@tacit cave did you manage to add the custom button card? I'm having issues getting it to display. (custom element does not exist). Whats the different to including it as a type: module as opposed to type: js
Depends on how you install it, and what user you run it as @dense elk
@sharp talon yeah, it's working great
could you share your config to add into js file?
I used exactly what is in the docs
- url: /local/lovelace/button-card.js
type: module
do you have multiple custom cards?
changed my path a bit though
yep
- url: /local/lovelace/button-card.js
type: module
- url: /local/custom_ui/weather-card.js?
type: js
- url: /local/lovelace/vertical-stack-in-card.js?v=0.0.9
type: js
- url: /local/mini-graph-card/mini-graph-card.js?
type: module
- url: /local/lovelace/layout-card.js?
type: module
- url: /local/custom-lovelace/swipe-card/swiper-card.js?
type: module
strange
@split granite so should be good right
Yup
maybe if i switch from the raw config editor thing to the yaml
maybe it will work then ๐
@split granite you ever see an issue where text doesn't show up under a normal theme?
default theme*
Not outside of the beta releases
ah ok, ill downgrade
Or wait for the beta release that fixes it
ok I have ```resources:
- url: /local/custom_ui/bar-card.js?v=1
type: js - url: /local/custom_ui/button-card.js
type: module```
and in the card:
entity: group.kitchen_lights
show_state: true```
and whats the problem?
and getting:
{
"type": "custom:button-card",
"entity": "group.kitchen_lights",
"show_state": true
}```
so is your button-card inside config/www/custom_ui/?
its in a folder in the top lever of config along with the other JS include (bar-card.js)
so /config/custom_ui/
@split granite got a link to that PR? Does it affect sensor card graphs as well (the line itself)?
I don't, I just assume that the devs will fix things that break during a beta if they're told about them (and possibly if an issue is opened)
@sharp talon it needs to be in www/custom_ui for it to work w/ the directory path /local/custom_ui
how come the other include works though?
oh hold on
I think I have it duplucated ๐ฆ
doh thats it.... I must have made another custom_ui folder when I was testing that was directly within config. Checked in www and custom_ui is there too ๐
thanks for pointing out my stupidity ๐
it's all good, i messed that up myself in the past
always good practice to remove unnecessary stuff from your configuration once it's fully working
So what else can I try?
migrate to yaml for lovelace?
maybe its a crazy permissions thing of the www folder
drwxr-xr-x 3 msev msev 4096 Feb 2 11:34 config
user msev....but the hass i have in venv and maybe the user is called (homeassistant) msev@orangepipc:~/homeassistant$
is that the problem
http://192.168.88.100:8123/local/test.txt this file i can see
oh now i finally made progress... made a www folder inside .homeassistant/ and put it there
maye it will work now
That's where the www folder should have been
jesus damn i'm dumb
I guess everyone just missed that when you posted your paths
no damn it still doesnt work
same error
but i can manually get to the file
so that is the progress
You restarted ha?
Restart
nope still same error
ah wait maybe now there is a problem with the path in the lovelace raw, just a second
yeeeeesss it workssssssss
yesssssss
thanks Villhellm!
For future reference when someone says config/anything they mean .homeassistant/anything
can you maybe help me also with some problem with a component, since the dev doesn't want to help me, something is wrong with ssl
Not sure why ssl would affect a component, but I can try. What's the component and the issue?
i'm gonna pm you
i'm working on a custom Climate Device - it's showing the thermostat card fine in lovelace ui, but I don't see the icons for away mode, fan, etc like the example docs: https://www.home-assistant.io/lovelace/thermostat/ My ClimateDevice supported_features includes SUPPORT_AWAY_MODE. this is mine: https://imgur.com/tJrqZ2N โ anyone know what i need to do to get the various icons appearing?
is it possible to toggle away mode from the thermostat ui card at all?
are persistent notifications available in lovelace yet? like the cards we had before
need some sort of temp popup similar to how they worked with a timeout
@dense elk wait, so you didn't have a www folder?
I did
but I had it inside an actually config folder
so it was .homeassistant/config/www/
just looking for the same answer I guess.. where is config/www located?
.homeassistant/config/www/ ?
to use the new config UI, I remove mode: yaml correct?
y
Check the menu in the top right corner of "Overview" there is an option called configure UI
/config/ is never a thing. When people say "config/" they mean your ".homeassistant/" directory
It's just shorthand
more so that it means different things depending on what installation type you have
this main thing is though that where you have your configuarion.yaml is where you should also have your www folder
I'm very happy to be able to use all of this custom lovelace goodness now ๐
I have sensor with timestamp as value and device_class set to timestamp
https://i.ibb.co/680GsTq/sensor.png
and I try to display this sensor in Lovelace
- entity: sensor.router_last_boot
format: relative
And this sensor show "Invalid date" as state.
https://i.ibb.co/yYK4tLQ/sensor-lovelace.png
This is an issue or my configuration is wrong?
where can i open an issue if i want the lovelace iframe card to be able to be resizable? Or should i use the monster card above it?
and it would be resizable then
You'd open a feature request, in the feature requests part of the forum
@dense elk use the aspect ratio and then you could possible use the card-modder to limit the height
Yeah I can't dial it in currently to not get the sliders in the card, i'd really like to have it without the sliders
will look into card modder
thanks
what to do when you get this?
The site at https://10.0.0.222:8123/lovelace/Main has experienced a network protocol violation that cannot be repaired.
connection refused on my phone
In a sudden stroke of clarity, I realized what my state-switch card was missing: https://github.com/thomasloven/lovelace-state-switch#hash
This lets you switch parts of a view locally, without it switching for every browser displaying the same view.
what are the remote entities for in roku? all I see is a toggle
@odd light remote platform just exposes services
You might like this card I made https://github.com/custom-cards/roku-card
so you can finally do everything as if you had a controller, nice
@mild veldt would you link to it the same way in the new raw editor in the config ui?
Yes
sweet
So here's a random question. Back before the Lovelace UI editor was a thing, I created a simple UI frontend by editing the ui-lovelace.yaml file. At some later point, to keep things working, I added the following code:
lovelace:
mode: yaml
to my configuration.yaml. Now that lovelace is the default, I'd rather like to use the editor, but it doesn't work. What will happen if I just turn off that line? Will I need to start over with lovelace? Or can I get the editor to "import" my current viewes and work from there?
@worthy ginkgo press configure UI option (3 dots in far top right corner) to get into edit mode, and then press that button a second time. You'll see an option for raw config editor. Then you can just paste entire contents of your older ui-lovelace.yaml file into there and hit save. And you'll be back to how you were except now you can edit via the UI etc.
@latent moss - thanks, I'll try that.
I'm assuming I delete the older ui-lovelace.yaml first? And take the mode:yaml out of configuration.yaml?
you can probably leave it , just comment out the mode: lovelace thing from configuration.yaml
Ok, cool. Thanks again
@mild veldt i have a custom button and slider on horizontal stack (so its dividing the space 50/50 between the slider and button) - can grab a pic at the mo, but i'm trying to replicate the custom UI situation where i could specify how many columns in the horizontal stack, and then how many columns each item would occupy (ie button column 1, and slider column 2 - 4)
I see. Don't know anything about the old custom ui, but can't do that with anything out there yet. You can always make you're own based off of thomas' slider row
@latent moss - worked great. Need to clean some stuff up, but I'm in business.
How do you import your old Lovelace into the UI editor version
@nova summit read my comment a few posts up has the instructions
hey, so... what is the relationship between lovelace and the old group/views mechanism
looks like the old group/views still works just using lovelace now?
Groups are translated into lovelace setup in auto mode to ease the transition, but after switching to storage mode (by making any modifications to the UI), groups are ignored.
For the custom alarm gui element (keypad) to show, do I need a working back-end implementation or does it show anyway?
off-topic thomasloven I look kinda like you in real life ๐
Just a ideia... (and i don't know if that exists already and i'm missing it) but should be "good" that the senssor from device tracker could have a flag so we can set it or not so the state could be home/away or online/offline ?
i only see that coding and if state... but that will move ppl away from ui editor...
@dense elk the component is required
does mqtt alarm also count
HI all, if im using the YAML mode , is it possible to use the lovelace editor at the same time ?
@raven nacelle , hi , by looking at your lovelace exmple page i realize all the possibilities on using the editor , while still having the capability to use the "raw" mode , then my question is , how to adapt an existing YAML lovelace config, so it can be compatible with the editor mode ?
that simple ?, ok , thanks will make a try
@raven nacelle i have commented out this line on config . # lovelace:
mode: yaml , restarted , but nothing changed , still not able to enable the editor, should i rename the lovelace.yaml file , or something else ?, sorry if this was answered , couldnt find it .
use Take Control from the three dot menu (on the right)
how to use custom cards with latest HA where i should add resources?
is it possible to do a card with different card types, but without them being seperated? Hope you understand me
i am using vertikal stack, but there is a little space between each card type, fx entities and custom types
Hi all, is all the Lovelace functionality available through the "Configure UI", or should i start using yaml files to configure? For instance, im trying to set the background of the HomeAssistant but cannot seem to find where to do this. Maybe this is not part of Lovelace, and Lovelace just deals with views and cards?
@vapid field There's a custom card called vertical-stack-in-card which does this.
okay, gotta take a look at that. thank you
can you point me in the right direction? a link or something?
could anyone help me with custom cards? should i use YAML mode for custom cards?
@royal wagon All functionality is available from the editor, but for some things you'll have to input yaml in the GUI.
Raw config editor in my case, thanks Thomas!
thx @polar kelp , i just "learned" about the "triple dot" in the UI. I stupidly assumed the functionality here was the same as the "triple dot" in the regular UI. I did not find a reference in the docs for the "raw config editor", but probably skimmed over it too quickly.
That's a reasonable assumption. I'll take it up with the dev team.
Still need some help with the "vertical-stack-in-card" card. Here is my yaml code
https://hastebin.com/exafanebap.css
but getting error: element.setConfig is not a function
any1 know what im doing wrong?
Hey there.
Anyone can tell me what im doing wrong here?
type: horizontal-stack
cards:
type: entity-button
- entity: light.luz_esquerda
type: entity-button - entity: light.luz_direita
@polar kelp jsut DL the dev branch. but still same problem
Followed the upgrade instructions?https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins
Hi after update homeassistant my Lovelace look like this, why?
https://ibb.co/B3m8Fvm
https://ibb.co/5Kf2h2S all the switches like this