#frontend-archived
1 messages ยท Page 92 of 1
Thanks. Worked awesome.
I've added a PR to add the line graph example
hi all, so what the last step here?
- type: entity-button
entity: group.livingroom
name: Living Room
icon: mdi:lamp
tap_action:
action: call-service
service: homeassistant.turn_on
service_data:
entity_id: homeassistant.turn_off
entity: script.turn_off_lights
~format @royal rapids
@royal rapids 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
im obviously confusing service and entity somehow
another question, how can I display the target_temperature in a grap? I find it in history but not under enities
thank you
The logical way would then be
- type: entity-button
entity: group.livingroom
name: Living Room
icon: mdi:lamp
tap_action:
action: call-service
service: homeassistant.turn_on
service_data:
entity_id: group.livingroom
entity: script.turn_off_lights
but is it that simple. (im testing now)
bah. I would ahve understood
tap_action:
action: call-service
service: script.turn_off_lights
?
Do you want to turn off the group of lights, or do you want to run the script?
- type: entity-button
entity: group.livingroom
name: Living Room
icon: mdi:lamp
tap_action:
action: call-service
service: homeassistant.turn_on
service_data:
entity_id: group.livingroom
service: homeassistant.turn_off
service_data:
entity_id: group.livingroom
just trying to turn on and off the group as a whole
via the button card in lovelace
~yaml @royal rapids
@royal rapids YAML is the mark up language used by Home Assistant. Consistent indenting (two spaces per level) is key - read more at https://home-assistant.io/docs/configuration/yaml/
i have no issue with this in teh old settup
Why not have the tap action as a toggle?
- type: entity-button
entity: group.livingroom
name: Living Room
icon: mdi:lamp
tap_action:
action: toggle
there has to be a better way, but googling just finds more confused people ๐
now that makes as lot of sence
I have read the docs
I need examples, and they are to slim here for me to understand that toggle works that well
See the example at https://www.home-assistant.io/lovelace/glance/
With the Lovelace changes in 0.84.x, how do you change the view order (tabs) while in Storage Mode? Is this possible?
Just the "Raw config editor" to move them
It doesn't appear that the history-graph card respects Imperial / Metric setting in the hass config. Maybe I'm doing something incorrectly?
https://pasteboard.co/HU9Uilf.png
- type: history-graph
title: Temperature
hours_to_show: 168
refresh_interval: 300
entities:
- entity: sensor.hallway_thermostat_hallway_temperature
name: Inside
- entity: sensor.weather_temperature
name: Outside
Iโd expect it to just go with the state value of the sensor, whatever unit that is.
As is so often the case, a template sensor is probably the solution.
works for me. thanks @polar kelp
I still think it's being reported inaccurately. Maybe it's stored in the database in celcius (I haven't bothered to write a script to actually check), but the degree amount read back to me is still converted to fahrenheit.
how can i put my Light cards beside the other instead of under it
got this: ```
views:
- title: Main
icon: mdi:house-circle
cards:- type: light
entity: light.bed_lamp - type: light
entity: light.bureau_lamp
- type: light
but how to fix it
You'd need to use a horizontal stack, and put both cards in that stack
@wheat current re: Moving View Order (tabs), if I edit something in the "Raw Config Editor", will that mess up the ability to use !secret and !include? Don't want to screw up with I have now and the release notes aren't clear as to which specific configuration screws up the ability to use those aspects of configuration.
Maybe, i have not tried ๐คทโโ๏ธ
@short hemlock yes. Only way to use secret and include are in yaml mode
@mild veldt I'm super confused then by the Lovelace updates in the latest build. It auto-generated a Lovelace UI from my legacy UI (which had secret and include). I converted it to Storage Mode by taking control, so as I understand it, I'm not using yaml mode. Does this mean it's not using the secret and include files now?
The auto generated did not use your secrets or includes
The auto generated just looks at your entities and groups and auto generates a Lovelace representation of them
Since you have already taken control (storage mode) you can open the raw editor and see how it all looks
And reorder if you want to
So if I modify the raw editor, it won't screw up anything then?
But you can not use secret or include in storage mode
Well you can absolutely screw things up, canโt stop you from doing that ๐
You just want to move tabs though?
That should be easy to cut/paste
But, we will have the ability to do so from just the UI in the near future
so the net regarding secret & include, that just means those passwords, urls, etc. are now exposed somewhere else in one of the files of my HA installation?
And if I add new !secret items to my configuration.yaml, those new items will not work in Lovelace?
No
use of secret and include are only in terms of Lovelace configuration
Use of them in your configuration.yaml is not affected
Hi folks, happy new year to all.
I'm having problems with Lovelace....when I make a change to ui-lovelace.yaml the changes don't appear....I have to restart HA. Version 0.84.6. worked perfect in previous version I was running, 0.82.x....i have set Lovelace mode to yaml in my configuration.yaml
Also on 0.84.6, it reloads fine for me if I go to the three dots menu and select Refresh
Is it possible to add two sensor values together in a template sensor?
"{{ states('sensor.app1_down_speed_in_Kb')|float + (states('sensor.app2_down_speed_in_Mb')|float * 1000) | round(2) }}"
@split granite I'm afraid that won't show the changes made to the yaml file
OO haha. I am on lovelace ....
.yaml
Bleeding auto correct
I definitely have the mode set in my config file. And I've restarted HA multiple times.
Just noticed an error in my log
2018-12-31 21:27:44 ERROR (MainThread) [frontend.js.latest.201812112] http://hassbian.local:8123/local/card-modder.js:58:74 Uncaught TypeError: this.card.getCardSize is not a function
hi all. I've got a question.
Installed HA in a venv on macos.
www folder in place...but images don't show.
image: /local/image.jpg
I've tried everything I can think of...
any thoughts?
When you first create www/ you have to restart Home Assistant
The other problem might be file ownership/permissions - is www/ owned by the user you run Home Assistant as, and are the files readable by that user
The log file may tell you more, and you can also try pointing your browser at the relevant image URL to test it that way
I can code. I've made similar stuff for another html5 / js project, albeit json instead of yaml
755
the HA log doesn't show anything
i tried localhost:8123/local/image.jpg
nothing there
it's like HA doesn't recognize the homeassistant directory at all
except that I can see changes I make to other cards in lovelace
I'm not doubting you, I'm trying to help you ๐
When you say "nothing there", what do you mean?
404, or something else
I understand. Didn't mean to get pissy...I'm just frustrated. sth so simple
404
well @ 8123/local/image.jpg I get a 404
in lovelace, the card is just shown with a broken image icon, and it's exactly that height.
Quick sanity check, there's not a case issue - it is www/ and image.jpg
ls www/
And you created www/ in the config folder, not /
am I correct that the <config> directory is /homeassistant/ where the yaml files are located?
It'll normally be .homeassistant in the home directory of the user that runs Home Assistant
oh. sry That'S what I meant
Then yes, that (as shown in
) is the config folder
.homeassistant/www/image.jpg
Yeah, but there's a bit before that
that's what the path looks like
And www/image.jpg not www/Image.JPG or the like?
ls -al ~/.homeassistant/www/image.jpg please
holy sh*t and it was under my nose...
no, I thought I was in the wrong folder. But I had it right
didn't notice the "path to config" in the menu. I just went digging for it in the terminal
nope. Still no dice.
-rw-r--r--
And the folder?
-rwxr-xr-x
Anything in the console log from HA?
It'll normally throw up useful errors there (and a mountain of other stuff)
Failed to load resource: the server responded with a status of 404 (Not Found)
Then the filename is wrong or not in the location you provided.
which is why I suspected that I had the wrong <config> folder
Go to the dir (with a terminal)
type pwd and ls -al
Sorry, I just feel stupid. It must be sth small that I've missed.
This was just intended to be a sandbox. My final install will be in a week or 2 on a Pi
paste the output of both here
It's always something small, but if it was obvious to you then you'd have spotted it by now ๐คท
Another pair of eyes is often what it calls for
pwd
/Users/sstockemer/.homeassistant/www
Seans-Air:www sstockemer$ ls -al
total 1600
drwxr-xr-x 6 sstockemer staff 192 Dec 31 22:45 .
drwxr-xr-x 23 sstockemer staff 736 Dec 31 22:49 ..
-rw-r--r--@ 1 sstockemer staff 6148 Dec 31 22:13 .DS_Store
-rw-r--r--@ 1 sstockemer staff 77838 Dec 31 21:51 dark_floor.jpg
-rw-r--r--@ 1 sstockemer staff 725549 Dec 30 20:48 home_v2.1LR.png
drwxr-xr-x 6 sstockemer staff 192 Dec 31 19:20 images
Seans-Air:www sstockemer$
dark_floor.jpg is my 'image.jpg'
I anonymized.
Lots of folks do, even when it harmless
I'm not seeing anything obvious, and I'm guessing the @ is an OSX file system marker for an ACL?
would make sense
Ah, extended attributes
I haven't used one in anger for, well, let's just say it's been some time ๐
I code abap, by day, as a consultant.
I can't count the number of times in the last 48 hours I've typed 'dir' instead of 'ls'
๐ซ
I have that problem the other way around ๐
/Users/sstockemer/.homeassistant are the dir listed under
?
Path to configuration.yaml: /Users/sstockemer/.homeassistant
you guys are nice.
I got flamed about 8 years back on xda...so I'm always reluctant to seek help.
There are a few folks here who're lightly trollish, but they're also helpful
Most folks are decent - or we just kick them ๐
It's very much appreciated, that you guys dedicate your time to helping noobs
We were all noobs once, and every time we learn something new we're noobs again
assuming your mac has curl, try curl http://localhost:8123/local/dark_floor.jpg
what's curl
Try it on the command line
http://localhost:8123/local/dark_floor.jpg throws a 404 tho
It's a tool for grabbing files over HTTP/HTTPS/other
demn... I clicked that link ๐
it did not work here too
404: Not FoundS
๐คฃ
XD
are you absolutly sure that you have restarted home assistant after creating the www dir?
pretty sure
with hass --script macos restart ....?
and in the UI - restart core or whatever that button is
countless times.
None of those will do
please elaborate
Go to "Configuration" -> "General" -> "Server management" -> "RESTART".
dude I'm gonna feel like a complete idiot if that works
restart core == "Reload core" this will reload "cuztomize.yaml"
You'd not be shocked at just how little people notice these things
If I had some bitcoins, I'd dropp them in your tip jar!
Most of our time here is spent reading the docs for folks and pointing stuff out to them
It's not hard, it's just human nature, and we've all fallen foul of it
True ๐คฃ
I'm sure I'll be back with more questions and challenges...ya'll just tell me to power cycle my router, and I'll get lost for a few minutes.
๐
did a "proper" restart fix it?
nice ๐
looked at the --script macos restart do not use that ๐
if args[0] == 'restart':
uninstall_osx()
# A small delay is needed on some systems to let the unload finish.
time.sleep(0.5)
install_osx()
return 0
suuuuuuure, one day ๐
Ian sees @split granite 's 'troll' comment and wonders who he is talking about
_probably @wheat current _
๐ ๐
Me 'troll' never... Must be that @mild veldt guy
f that guy
Custom Header & User/Device Views https://github.com/maykar/custom-lovelace/tree/master/compact-custom-header
can a mod please pin this ^
took you long enough...
You are UTC?
GMT this time of year, so yeah
Aha :D
We just bumpd the year here, not a fan of the noice...
No, I'm not either
There's already been a run of fireworks earlier, which sent the dog into a spin
I'd like to put those people next to the world's largest speakers, turned up to 11, and play them some proper loud classical music
Maybe the 1812 Overture ๐
Now that would be fun to watch ๐
Thanks @split granite did not recodnice the name, so playing it now and can bearly hear the ๐ ๐
๐
I just watched the fireworks music by Hรคndel. More suitable, but 1812 works too.
Any music that includes actual artillery pieces gets a vote in my book ๐
Unfortunately they are few and far between.
The only thing I can even think of that gets close is the โMahler hammerโ (which really should be called the โMahler malletโ, btw seriously who missed that one?)
Happy new year, by the way.
Happy new year everyone
๐ Welcome to 2019
shh dont spoil it for the Americans 
@wheat current Am I missing something? https://imgur.com/a/cLZR0YB
In bed on mobile now, can find the resources.
But post the question here to, maybe someone else know ๐
@wheat current Thanks. I've sorta got it working with Node Red. I'm just trying to move some sensors around
@tepid locust yeah, a media entity card sounds just what I need... but as I said, i'm a noob. how do I make use of one?
Are you configuring Lovelace through yaml files?
right now? i'm doing jack diddly squat ๐ I just started looking into lovelace, but really have no clue what I'm doing currently. I was just doing something with a template to get something on the front page
but i presume I would be going the route of configuring via yaml when I do that
Recently they gave different options for configuring Lovelace, you can also do it via the link now. I use yaml though
so basically, i have a case where if the activity on harmony is chromecast, i want to make it show that data (for the chromecast)... if the activity is roku, i'd want it to show that data
UI not link
so I have the logic to display a simple text on the card, but want to make it show the media info
stares blankly at @tepid locust
That may work
ah, ok
so i'd put all the entities in the group that WOULD, then with my logic, basically mark one as "current" = true (example) and use that boolean to determine which one should show?
where do i build these entity filters at? is there a best practice to do it in a split-out yaml file or direct inside the configuration.yaml? in customize.yaml?
It would be in the ui-lovelace.yaml file refer to the docentation I linked
You would need a different card for each input but you can configure the cards to be not shown when they are empty
Can also refer to my people section in much Lovelace config file on my github
~sinker1345
Have a peek at my git maybe it can help https://github.com/sinker1345/Home-Assistant-Configuration
thanks @tepid locust that looks like it might be helpful. now the daughter wants to play Rocket League... so much for trying to get some stuff done tonight
Lol I know the struggle
so those conditions... basically if that entity has the state listed, then it does that card?
Of it has the state listed it looks like it shows the card
i think i'm understanding it right... now to remember this understanding in a few hours if/when I can get back to it by then
In the ui-lovelace.yaml file. You'll need a bit more than that though. If you haven't made a Lovelace file refer to the docs and maybe watch a YouTube video on getting started with lovelace
ah! I opened mine up
i used the add-on to convert my hassio to lovelace
so it has whatever that one did
Can do some research while the kids are playing rocket league lol
I did that but ended up re making it from scratch, it turned out much better and I understand the structure of the file better
ok i am trying to play with lovelace but now all the work i did in my config file doesnt show it looks like its a default or something did i do something wrong
same for me
You're on 0.84.6, and you've not used Lovelace at all before (so no ui-lovelace.yaml, and no lovelace: entry in configuration.yaml)?
yes
Let me poke my test system and see what the auto-generated config looks like
Using the stock default_view my custom tabs are copied over, but my default view changes slightly
no i used it a while back just comming back
Does anyone have a idea how i can make the spaces between the entrys smaller in the glance card? https://www.screencast.com/t/7t5WMvqZAmZz
https://pastebin.com/cuYMbMr8
the card itself work with todoist, and the data in the card are sensors, but im still not fully like the card its empty lines, behind those lines are hidden icons etc
would the beer card be usefull in this situation?
hey.
switching to lovelace... how would i bring everything that was on the default (non lovelace) overview screen to my initial lovelace screen?
@upbeat sierra , is was told there is a convert from @polar kelp , but it finaly choose to just copy paste everything in the ui-lovelace.yaml, gives you more experience in yaml to
how can i make like a horizontal stack stretch across the entire width of the screen more or less
Check out panel mode https://www.home-assistant.io/lovelace/views/
@upbeat sierra on 0.84 it is auto generated for you
i guess i might have misunderstood panel mode but i thought that stopped everything else from showing on a panel
i really don't like the default light element though yuck!
might have to see about doing some UI work hah
Constructive feedback...
Hey guys, another quick question. This time it's a plausibility question. I'm waiting for a bunch of hardware to ship. I'm planning a frontend in my head, for now. I want to run lovelace behind fully kiosk on a couple of fire tablets as dashboards...and here's my question.
I don't really like the tab for navigation (switching views). It's personal. I just find tabs for navigation to be clunky and archaic.
Can I set the visibility of the tab controls to 0? or maybe shift everything up to remove the dead space up there where the Home title sits?
I currently trying to display weather on my default view:
The sensor is defined as such
https://www.hastebin.com/tovudeyemo.shell
But how do i get my group to display these information:
https://www.hastebin.com/itutavosol.css
Time and date is shown, but only the weather is not shown
@jade bough that's dang close. But I'm hoping to eliminate the icons as well
weather-forecast widget displays wind speed as km/h, but weather platform (weather.dark_sky) receiving this value as m/s. Could i customize measurement?
@warm mulch that looks doable with compact-custom-header
Thomas also has a kiosk card
Or is it ciotism
@vapid field you need a weather Component, not a weather Sensor. Unfortunately YR has no component at this point.
Itโs not my kiosk card. Itโs made by Marius.
I have some ideas for an improved one, though...
Like hidde some tabs based on username and such... canโt promise anything yet, though. The ideas list is getting long...
Neat. I didnโt have time to look at it yet.
But I half expected it to, to be honest...
Yeah it looks really cool
Then I can focus on automating the browser instead...
ian wants to know more
@tepid locust I got my card to work! now It will show the LG WebOS app if on smart TV activity, or chromecast info if on the watch chromecast activity ๐ I need to make a few static images for things like radio, etc... but it works! ๐
Basically a service call that could e.g. Switch tabs, bring up the more-info dialog or a camera feed...
Yeah.
The camera feed would be ace
yup, as for the earlier conversation. compact-custom-header can hide/show all tabs or hide certain ones, can even have separate settings per device or user
@fiery temple what exactly did you paste into ui-lovelace.yaml? the configuration.yaml?
thanks. but this is not what i am looking for.
if i am not using lovelace, on the overview screen i see all my entities, sensors, switches and their current state/value.
is there a way to bring that to lovelace ? like - preferrably with one command?
i dont want to list everything. I want a view, where I can see all entities I have (correctly) configured, so that I can use it as a starting point to then build the proper view for them.
@upbeat sierra are you on 0.84? When you go to lovelace page it should autogenerate for you
0.84.6
so if i delete ui-lovelace.conf it should genereate one for me, once i enable it by clicking the "try out the new lovelace UI" in (i) ?
@mild veldt ah, thanks. was in yaml mode. switched back to auto and yes now i can see everything. is there any way to get what i am seeing as a configuration which i can include in my manual ui-lovelace.conf ?
is there anyway to modify the icon color in lovelace based on state?
is there an up to date listing somewhere for custom lovelace cards?
I doubt it @tepid locust
does anyone know of a working custom weather card for dark-sky? I like the default but it does not show percip probability
i am building a dashboard a-la magic mirror, but using a kiosk with lovelace. i would love to invert the colors of the map card. does anyone know if that is possible?
https://sharethelove.io/picture-elements-cards/kodiremote-card can some one tell me where should i put the last part (with the acual commands CURL)? shell_commands.yaml?
and add shell_command: !include shell_commands.yaml in configuration.yaml?
can I ask another stupid question, or is there a limit per day?
I'm working with a picture element, and an overlay image.
The picture element will show my floorplan. I cut out my living room, to use it for navigation.
Q1 Can I nest picture elements? Like picture elements inception?
Main question (2 if counting)...
Is there a simpler way to work with positioning? Working with percents seems absurd, when I'm trying to get the overlay to be pixel exact.
We limit silly questions to one per millisecond ๐
Q1- I could/should just try myself, but asking could save me an hour.
@warm mulch I'm attempting something similar but haven't found a good answer for Q2 yet.
I think someone needs to develop a picture-elements card that can be controlled at the per pixel level
@warm mulch It looks like it may work
really?! Can I work with pixels? I don't really get the whole "top/left" concept yet.
Not sure about pixels, but you can have images for the elements inside the main one
I don't think you can nest cards inside though
Pixels, no, percentages
Because the image will scale
So pixel locations at 500 x 500 won't work at 700 x 700
can y'all point me at a decent explanation of the top/left percentage stuff
^^^ that's an awesome card
I use the plan coordinates addon specifically for locating the percentages on my floorplan
that's dope AF. Many thanks again!
Just remember
It only works on crhome
Also, you might want to have a look at this other card as it seems similar to what you are trying to accomplish
HA Floorplan is not Lovelace, but may be worth looking at
You get total control, but it's a bit (ok, quite a bit) more work
technically, the second link is still the picture elements card but they use opacity to section out the various rooms
@warm mulch I just realized that there is another example called Images Example at the very bottom of the Picture Elements documents page which might apply to your use case. https://www.home-assistant.io/lovelace/picture-elements/
I'm using an image element
๐
for the plan-coordinates...excellent utility, I'll leave it in my sandbox for reference, but I had already nailed down better results (plan-coordinates said 30% but I'd already trial/error'ed 29.8%
the 3d floorplan is also on my agenda... but I thought I'd play first in 2d. I'm a total noob. My feet are barely wet
Oh snap, we can use decimal values for the percentages?
๐
(runs off to edit my floorplan)
to at least 3 decimal places
That's fantastic
but it gets really hard to see an effect at .001
I can see that
I think I'll be good with a tenth of a percentage.
maybe a hundredth if I need to hit .25/.75
.01 is actually meaningful
at least on my mac...I was seeing a pixel jump with .02 increments
where is my "home-assistant custom_components folder"?
you have to create it
depending on which installation of Home Assistant you are using, that location will vary
You can find it by looking in 
And it'll tell you where it is
https://developers.home-assistant.io/docs/en/creating_component_index.html explains what the folder structure should be
cheers!
I really need to fix Samba on my Ubuntu VM. Don't get me wrong, I like using Nano but editing ui-lovelace.yaml is becoming more of a chore the bigger the file becomes.
did an update just bork my lovelace UI?
Depends how far you updated
i was early 8's to .84 i believe
Then yes
Is documentation updated?
Yes. And there's a blog post detailing the breaking changes for each release - as always.
The entire way lovelace is configured changed actually.
You'll probably want to activate yaml mode. But the blog post will tell you more
yeah i have mixed feelings lol -- yaml so i maintain ultimate control
but storage because newer
horrible logic
ill stick with yaml for now
Thanks again @polar kelp
I would use storage mode if I could get custom cards working properly.
I couldn't get any of the custom cards I use working properly in storage mode
Initially, they worked on a computer browser but not mobile iOS
After a reboot, they stopped working altogether (got the red card of death)
So I switched back to yaml mode
I am using only lovelace and sometimes on the first load of my home assistant webinterface it loads every device in these bubbles. (this url will pop up when i get to my url: url/lovelace)
When I reload they are gone and i am on url/lovelace/0)
Is this something missconfigured on my end?
@gentle tide I have no problem on PC or iOS with custom header and mini media
In storage mode?
Yeah
I must be declaring the cards incorrectly
๐คท
anyone successfully using the report_size: feature from Card Modder to tweak card sizes? I have questions
@gentle tide I don't but understand the concept. Best to just ask the question
Well, according to the docs (https://github.com/thomasloven/lovelace-card-modder) the report_size feature should allow for modifying the visible size of a given card. I'm not seeing any difference in card size when I add that setting to my configuration and I'm not sure why.
Not the visible size. The reported size. The value used by the layouting engine to decide in which column to place the card.
It's a tough concept to grok unless you read the source code for lovelace, really...
correct
Well. It affects the way the cards are placed in the layout, but you won't see any difference to the actual card
Maybe future iterations of Lovelace will give more control over placement and size of cards. In Lovelace's current state, I feel like I'm having to jump through far too many hoops to accomplish anything remotely cool looking.
If you wish to change the height of a card, you can use card modder and just set style "height: 500px" or something
Well, the idea of lovelace is to have a sane default layout. The ability to customize it is just a bonus...
You should expect a few hoops then.
Can card-modder alter the height and width of stacks?
is there way to get icon color change on state change working with lovelace ?
@remote igloo https://github.com/thomasloven/lovelace-card-modder
I get that for changing icon color but what about if i want a different color based on state?
just out of curiosity is there a listing of custom cards somewhere ? was wondering how you found that ? besides magic
also what about none buttons
I found that custom button card on the forums.
in fact, all of the custom cards I found on the forums
@remote igloo there are some pinned messages for this chat as well
ok, trying to do a picture card... dunno what i'm doing wrong. I made a folder "www" in my config folder and tossed a png there. then i reference it with "image: /local/image.png" ... but it fails to load the image on the page. Am I doing it wrong?
oh wait... i saw something about needing to restart HA before it will see the new dir... grr
yup! that fixed it. Thanks all the same ๐
It has taken me the entire damned day to figure out that I can use custom cards on top of a picture entity card.... FML
morning fellas. Another question. Still in the sandbox... I'm trying to implement a clock I found. But something isn't right. I get this:
2019-01-02 10:52:07 ERROR (MainThread) [frontend.js.latest.201812112] http://localhost:8123/local/custom_ui/alarm-clock-card/alarm-controller.js:27:113 Uncaught TypeError: Cannot read property 'attributes' of undefined
@113 there's a conditional.
if(workdaySensor && workdayTomorrowSensor) {
afaics, I've got all of the dependencies in place. I was only unsure about this dynamic 'monster' card, so in an effort to fix it I put a copy of the monster card in 2 places.
oh, and I get a very happy and thoughtful little toast 'Service system_log / write called' or sth like that. ๐
nevermind. Sorry. It was a "Fehler 60" again. ๐
Hey all - a quick question: I'm using card-modder and stacks to align my cards. However, when using picture element cards, they get different sizes (probably due to picture size) any good idea on how to make them align good? Or do I need to photoshop to even sizes`
Nevermind, I think I'll just rely on the height: x px in styles ๐
a bit of tweaking, but possible to make it work nice
Has something changed between 0.82.1 and 0.84.6? I've just updated and my UI now looks like the old UI. I can't see anything in the change logs.
Yes. Read release notes and change log
Youโre not looking at the right change log if youโre not seeing anything. Lots of breaking changes
Ah I've found it. YAML mode.
any cool cards for Public transport that you are aware of?
found waht I wanted: https://github.com/jonkristian/lovelace-cards/tree/master/entur-card
stupid quastion, but. Where is the www folder to put files into for custom cards?
should I just create it under dofig?
config?
@royal rapids Yes, the first time you need to create the www folder.
then restart HA and it will find the files
thank you
Any ideas on why a picture element card, rotates my picture 90*?
Iยดm going crazy!! i run 0.84.6 when going to dev
and pressing "Try out the new Lovelace UI (experimental)" i only get a meesage sayin "error while loading this panel" "go back". What the F should i do to solve this!!
I have no ui-lovelace.yaml file.
i want to start from scratch with lovelace
I'm confused now with the new web configurable lovelace ui. where is the config now saved? I've started with the yaml approach in the early days of lovelace
@hybrid bobcat did you do yaml mode at any point? Remove it from your configuration.yaml if so
@vapid field in .storage/lovelace
@hybrid bobcat also try clearing your cache
@mild veldt i have no yaml mode in configuration.yaml and i have cleard the cache 1000 times now...tested all of the browswers as well...
In chrome i dev tools i get this error message: bootstrap:129 GET https://masked.duckdns.org/frontend_latest/74210f7068b283428136.chunk.js net::ERR_ABORTED 404 (Not Found)
i get that every time i click "Try out the new Lovelace UI (experimental)"
in the site-packages/hass_frontend/ there are two files namned like that, a tar.gz and a chunk,js.map but no file with just chunk.js
All other files in that folder has a chunk.js, a chunk.js.gz and a chunk.js.map
is it safe to extract the .gz?
i have cleared it a 1000 times, it does not help! hot buttons? whats that?
@hybrid bobcat not releated to your question - was just asking about the simplest way to clear in chrome and if there are any shortcuts like ctrl-f5 or similar to do it
@small gyro sorry ๐
@hybrid bobcat no worries ๐
@mild veldt i unpacked the file and now i get a new error message at least ๐ i put my ui-lovelace.yaml file back and is restarting now.
i got the same error when trying to open my panel-iframes, so i unpacked those files to and now i can access them again!
ok, rebooted, now i get "Unknown command." "reload ui-lovelace.yaml"
is there any good way to scale the interface of lovelace ? I have a tablet with a magnet on my fridge, but I can only see two cards at once because the resolution is crappy, our sight is good, so scaling it down atleast 50% would be nice :p
Log Details (ERROR)
Wed Jan 02 2019 15:36:51 GMT+0100 (centraleuropeisk normaltid)
Received invalid command: frontend/lovelace_config
Quick question, which is the way to go with using Lovelace? And which one will be most focused on? Storage mode with Json or the yaml 1.2?
now that lovelace has the raw editor in the gui and no longer a .yaml file, how does one go ahead and backup that lovelace config ? running on hassbian
@split granite I'm not, is it safe to back it up to GitHub? Anything sensitive in that folder I should exclude?
๐ค
IMO GitHub, if public, is not a backup destination
Because, you won't copy anything sensitive there, including large chunks of .storage/ and your secrets.yaml
Currently it's my primary for the sharing of yamls, but I'm doing a scp script on the side
Yeah, so don't copy anything containing auth or secret in the file name to GitHub
Yeah,secret and Auth is already ignored
So .storage is where Lovelace is stored now, thanks ๐
You'll find that's the place that any Home Assistant managed file will go now
@split granite now just to figure out if I should do a scp script or do rsync of the whole config folder to both my NASes, and if I have to stop services before backup ๐ค
You don't have to stop the services
Perfect
And you do want to use rsnapshot instead of just rsync ๐
Hmmmmm
do, not don't ๐คฆ
Actually never heard of rsnapshot
rsnapshot gives you a history, so you can go back to your config from two weeks last tuesday
Is it in Deb apt repos?
Probably, I'm pretty sure that's how I installed it
Awzm
lovelace looks great but the camera pictures are just icons
can i make them bigger maybe
You can either use the custom CCTV card, or make the camera picture a panel
Tinkerer you know everything ๐ ty ! im gonna look into that
Not everything, yet ๐
this is what you meant i think: https://www.home-assistant.io/lovelace/picture-glance/
ah Thank you !
short question: in the new storage mode (Lovelace) is there a possibility to comment something out in the raw editor like in "normal" yaml.
The reason is, i have a huge .yaml file with many components commented out for later use or understanding.
Thx
Simon
i know !secret and !include is not possible, not sure about comments
aaarg!! Made a clean install of hassos on a new card. opend lovelace thru dev-info. worked fine. uploaded a snapshot of my old installation. And now im back to zero again. i cant activate lovelace in my old setup..... F*******ck!
If you were using YAML before, did you enable YAML mode @hybrid bobcat ?
no. i dont want to use yaml mode, i want to use UI.
well yes i did use yaml before, but have never addid it to configuration.yaml
well if i could access it to do this: So if you were using Lovelace before 0.84, you now have two options. Option one is to use the new storage mode and import your existing file. You can do this by opening the Lovelace UI and click on Configure UI, this will prompt you to change to storage mode. This will unlock a new option in the menu called โraw config editorโ. but i cant access it!
For the last 5-8 updates i havent been able to access it anyway. today i found out that there were missing chunk.js files in my setup. (i posted about it futher up today).
Check the log file for errors?
Now i only get "Unknown command." " reload UI-LOVELACE:YAML"
Wed Jan 02 2019 18:03:41 GMT+0100 (centraleuropeisk normaltid)
Received invalid command: frontend/lovelace_config
this is all i get in the log
You are on 0.84?
yes, 0.84.6
There's clearly a deeper issue somewhere then
After you restored that snapshot, did you stop HA, delete the database, and start HA?
no
when i clicked restore it restarterd by it self
this was the issue i found out before ```In chrome i dev tools i get this error message: bootstrap:129 GET https://masked.duckdns.org/frontend_latest/74210f7068b283428136.chunk.js net::ERR_ABORTED 404 (Not Found)
i get that every time i click "Try out the new Lovelace UI (experimental)"
in the site-packages/hass_frontend/ there are two files namned like that, a tar.gz and a chunk,js.map but no file with just chunk.js
All other files in that folder has a chunk.js, a chunk.js.gz and a chunk.js.map
is it safe to extract the .gz?
i did unpack the .gz file and that at least got my panel-iframs to work again.
Try deleting the database with HA shut down, see if that clears the problem
how do i do that?
Stop HA, delete it https://www.home-assistant.io/docs/backend/database/
home-assistant_v2.db
Fuck it! I will do a clean install, thsi issue has been bugging me for several weeks now. i give up and start over agin.
@hybrid bobcat make sure you do hard reload to clean browser alot times that does miracles
@hybrid bobcat delete .storage/lovelace if you have it
@gloomy raven any comments made in storage mode will be lost
@mild veldt dont have one...
Does someone know of a (custom) card that could reflect a timeline? I now use a variable to store the last motion with three in history but would also like to show that and also show a timeline like:
20:43 Front door opened
20:30 Kitchen lights turned off
20:25 Kitchen lights turned on
@hybrid bobcat what environment are you running? venv, hassio, other?
v/e/f? ๐
We'll never get anyone to use that. The ones who have been around long enough to know what it is have been around long enough to not have that kind of problems anymore...
Can anyone recommend a concise list of CSS Style attributes that we can leverage within our Lovelace cards?
https://sharethelove.io/picture-elements-cards/kodiremote-card can some one tell me where should i put the last part of code? (with the actual commands CURL)? shell_commands.yaml?
and add shell_command: !include shell_commands.yaml in configuration.yaml? or something else?
@jade bough yes
oh wait, no
the last part is the script itself kodi_remote
the stuff above is shell_commands.yaml
Oo ok i witll try that thx ๐
https://www.home-assistant.io/components/shell_command/ and #330944238910963714 if you need more info
I have a question that I'm not sure if should go into the homeassistant group or the lovelace group so forgive me if I'm posting in the wrong group. I am starting to work on my first custom control. I'm using the content-card-example as a starting point and have that working. I think I need a way to lookup entities based on node_id. I have an august lock and am using the lock.entity_id generated by the zwave device to access it. Based on that lock entity, I want to be able include the lock entity, and several of the sensor entities on my card. So I need a way of associating the sensor devices and the lock device preferably without adding all the entities to the card in the lovelace file.
sorry for the long question.
im looking for a easy way to replace the default icons
With what?
Hi guys. I have a question about the tap action in the iOS app.
Its about the tap action setting. On my wifes iphone 5 SE the "on hold" action doesnt seem to work. Is it supposed to be like that?
I have a card that shows active lights. On tap, they turn off, but when pushed, I want them to show details. So that you can dim and so forth.
And it works on a computer?
yep and on my android
Which iOS version is it on?
but on hers its like it doesnt understand or cares that you hold on the entity
oh, thats a hard one @polar kelp ๐
i would hope its the latest availible on 5 SE.
ok. Thats good new I guess. I'll haveto look on her settings tomorrow then. Make sure she has kept it updated.
Yep Im on latest Hass
It might be a bit sensitive to moving your finger while pushing. I don't remember if I got the fix in or not, but at some point it would not register as a hold if you moved even the tiniest little bit.
I see. I just saw I had an error in the log about ios.
about the notify.ios platform. "loaded but no devices exists" . Doesnt seem related.
Nah. That just means noone has logged in to the ios app with the api password.
ok. Well I'll give her phone another look tomorrow and report back ๐ Thanks @polar kelp . night night
@brisk osprey are you running 0.84.x?
Yes
๐
84.6 I think
just making sure, long-press should work for you then
if not, thomas might pull out his hair
is tap_action: call-service work?
when i run event from dev tools it works but when i try to run it from image card with tap-action nothing happens
Check the format - with 0.84 the format of the tap action changed
Any tips to a noob on how to most cleanly display 3 values (temp, humidity & battery) on a single line or vertically both are ok
3 template sensors
i get the values, just not sure how to get them to display like i wrote
Put 3 different sensors in a single entity card and they will show up like this:
[โ] Temp 23
[โ] Humidity 13
[โ] Battery 98
yeah, they do and i find it horribly ugly ๐
okey then
mm seems like community.home-assistant.io is having issues atm, i'll just go to bed and keep at it tomorrow ๐
later ppl
@mild veldt sorry for late response , I run hassio on a pi3B
Is it possible to create a card (maybe using entity-filter) that automatically includes every entity of a certain type without having to specify them one by one?
@woven island google monster card
I saw that in my google searching but the community forum is down so I can't see it
Thanks though; I'll look into it once the forum is back
Hi guys, can I resize the button cards?
trying to figure out how to change icon color for entity based on state? ive seen the button card but i don't need a button and i have a three states i would like to check for
I hope this isn't too odd of a question, but does lovelace have a card (or some method) of playing a sound? use case: is to have HA open on my computer in the background in my home office and get a ding or something when an event of interest occurs. Since I would be working in another window, a visual cue is not good enough. And, yes, i can send sound to media devices but am curious on a super simple and reliable solution (and not have to worry if the media device is on)
I use push (html5) notifications for that kind of stuff
@white swift this is another option that could be more configurable https://github.com/thomasloven/lovelace-player
Anyone have any good suggestions for where to make a floorplan image for a picture card?
@mild veldt That looks like it is exactly what I wanted.. Thanks! I will try it out this week ๐
I saw this in the Lovelace docs, "Just hit the refresh button in the menu at the top of the UI." I don't see that button anywhere. Can someone point me to it?
3 dots next to the bell icon in the top right of the lovelace interface
That's what I was thinking but it just says
- Unused entities
- Configure UI
- Help
I'm configured to use yaml and have it. Are you using the storage method?
I clicked the "set lovelace as the default UI..." in the Developer Tools > About section
if you haven't added anything resembling this to your config, then you are probably using the storage method. It should automatically refresh when you do changes.
lovelace: mode: yaml
That worked, thanks.
Hiya all. I am having a little issue, not sure how to get it working again. I recently upgraded to a pi3b+ from a 3b. Decided to start from scratch to clean up all of my files, I did however keep a few of the files including my lovelace config file and the www folder and its contents. After doing a cache clear on chrome on my desktop, all of the image files fail to load. I had backgrounds, image files for the presence detection and a couple image files for nightstand lights and fans. Everything worked fine on the previous pie, and nothing has changed in these files. I am assuming for some reason HASSIO is not looking into the www folder for the files. This is how I am calling them via the lovelace setup "/local/noah.png" any ideas? Tried the forums, but they are down again tonight.
I should add, I have used the storage method, instead of the yaml
@slim widget the only thing is that after creating the www folder you have to restart the server. Then you can use the local folder.
I have restarted the server about 50 times over the past couple weeks setting everything up on the new pi, I am thinking this is more of an issue with hassio and not lovelace. hmmm. I dont think its recognizing the www folder
I did my move from the old pi to the new one just a couple days ago. I never noticed that the images were not loading until last night getting my wifes phone setup
have you tried accessing them straight from the web browser?
I have, I get a 404 not found error
hmm something is not right then I can access anything via http://hassio/local/image.png
I just cant track it down. Bit frustrating, everything else moved perfectly except images and now testing my sound files are not accessible either.
I do have it all secured through duckdns and lets encrypt, but that never gave me any problems on the last pi
Well, its late so I am going to hit the bed and worry about it in the morning. Hopefully the forums will back up and I can get a post up. Thanks for the help Lopton, I am sure It will get fixed at some point lol
@slim widget check permissions on the files and double check the path.
Hey, guys, I'm relativley new to Home Assistant, I've set up my lovelace UI now everything works after a few weeks of work. Now I have one question: I've got several Picture-Glance elements (Because my entities didn't fit in one card). I find it pretty hard to see the grey icons on a white Picture in the background. Of course I could modify the icon colour but I rather would like to adjust the colour/opaqueness of the bottom element that holds my entities/switches for my picture glance Element. Is there any way?
No, sorry.
How can I turn this into a feature request?
~forum
You can find the community forum at https://community.home-assistant.io/
There's a Feature Request section there
ok, I found people with similar issues, thanks for the help.
For what it's worth, I simply tweaked the image to darken the area that matches the element bar
No, but it's a work around for now
Another question: Is it possible to configure different layouts for Mobile/Desktop? I could use the screen more effectively on a desktop then on my mobile device. If I open the web page on a desktop everything ist in one "column" and the screen width doesn't get used fully. On mobile it looks fine due to the much lower screen width.
Not really, Lovelace will auto-flow to fit the size of the window, if you don't use any of the horizontal or vertical stack cards
ok, one last question: I've got a few mdi icons that don't show up in the frontend. They aren't too new, so I don't know whats going on. Examples would be mdi:alpha-s-box-outline or mdi:radio-fm
I just updated home assistant to 0.84.6 and now my lovelace shows all my devices on a single start page. How do I get the old one back?
Did you read the release notes?
no?
lol
Always read the release notes
okay (im pretty new to ha)
Upgrading any platform == read the release notes
Thanks
Particularly important with Home Assistant, because it's normal for there to be breaking changes. If you don't pay attention you will break your system
anyone have any good custom card ideas? Need some inspiration
A custom markdown card which can iontegrate sensor states/values, there is one around but it looks terrible while initializing
I dont understand how to "open Lovelace UI and click on Configure UI" in 0.84.6. Anyone know how?
On the top right corner there are three points (menu button), click them, you will find the menu entry
thanbks
Can anybody help me with my icon-problem mentioned above? I looked on google but I diodn't find anything useful other then checking if the icons are too new for the HA release, which they sholdn't be.
@mint geode why would I make a new one when useful-markdown-card exists? I don't use it, but if there is issues while it is loading it would make sense to submit a PR or log an issue; not a rewrite
Sorry, I'm relatively new to HA/Github/everything really
I would suggest going to the github repo for the card and logging an issue explaining what you see as a bug
I don't have colored lights, so not too intriguing... ๐คท
Would be a good reason to get some ๐
I rather like the way that the Google Home app allows you to turn things on and off directly, or get more detailed control too. like shown in https://www.theverge.com/2018/10/9/17957004/google-hub-home-app-redesign if you don't have it
Custom cards like that could be pretty sweet
@split granite is that really that different than what we already get from more-info in a long-press minus perhaps the look?
Tinkerer is away for 3m 30s with a message :point_right: ๐ ๐ ๐ ๐ ๐ฐ ๐ป
I was thinking that we should update the media player to look similar to the thermo/light cards which is pretty much the google home app
what about a virtual remote card?
you can do that pretty easily with picture-elements or just entity-button in stacks
Yes, but thats relatively complicated, if you just had a virtual "Logitech Harmony"? That would make things a lot easiser
I dont't know how complicated that would be, for volume you colud call the services of the remote, just add a list of all the activities and basic navigation buttons
IMO That should not be a default card, defaults should be clean and simple, it would be quite "easy" to make a custom card for it, but picture-elements does the same job pretty well ๐คท
@wheat current I was asking for custom card ideas, but I agree, sounds messy
With the UI editor evolving these things will become easier to configure over time as well
ok
@mild veldt I think the nice thing about the way that Google does it is that they're more obvious to use
It's less obvious that you get different features if you long press, or hold, or ... ๐คท
I see what you're saying and could that being applied to things like the light card, I guess
But most places that employ the tap/hold actions are focused on quick views of data, e.g. an icon
I guess anywhere we have a domain card, this could be applied to some extent
possibly
True
but that's really only media/light/thermo at this point
So... crazy thought...
How about a "room" card
Where you have a selector in it for the room, and it shows you the cards/entities for that room
Yes, kind of like a tab, but without actually a tab ๐คท
in a dialog?
(spit-balling based off the areas idea in the arch repo)
Dialog, or a dropdown (like an input select)
But without the click through, so you can pick the room from the drop down, and get just that room
That said, that's sweet
@wheat current that's essentially views with navigation applied, right?
correct
Their cards look like they work well on tablets and phones - not as pretty as Lovelace ๐
@split granite so a dialog based on a click could already be accomplished using thomas' popup card, but it would be a manual effort
But once we actually have rooms in our devices I imagine that it would be a trivial manner
areas*
room ๐
We also could do with a suitable card for cover, and fan. The fan's probably not that different from the light card
Is there a Lovelace Gallery Thread in the forum? Or should I make one? ๐
Category: frontend
"Please use this category for all frontend-related topics. From Lovelace to your own modifications."
@split granite we plan to have a card for each domain (where it makes sense)
Yeah, but that's "then", you asked for some ideas for now ๐
@wheat current what about - Share your Projects!
Show off the cool projects, automations and configurations you made with Home Assistant! Category Lovelace & Frontend :p
true, but I don't want to make a custom card for something that makes more sense for core ๐
we just need to get this ui editor out of the way so I can start adding features again
Why not run a poll on the forum, or get a suggestion thread going?
sounds like a lot of work...
Ok, it'll be 80% junk, but there will be some good ideas that turn up
Five minutes to post, and come back in a month ๐
I'll have @wheat current do it
@wheat current what do you think about having the ideas housed in the custom-card repo?
I'll post to the forums, but ideas get easily lost in a long thread
guessing you are thinking of the information repo?
yes
If you eventually get into coloured lighting, please look into the colour-wheel card idea, I think it would look great (Maybe use the gauge-card for visual reference?)
@mint geode you can be the first to submit an idea to the repo ๐
Well I could but you said you don't have any bulbs to play around with
I'm not the only one who makes custom cards
But if you don't mind I'll do
To this point ther has been 3 notifications ๐
That repo is a shared repo/group
First i need a Github account
In a picture-elements-card, if I want to use icons that represent if a light is on or off. Can anyone share code that make this possible? I dont get it to work, my icon is only the same color ๐ฆ
@mild veldtSorry for the silly question, but should I write the comment under issues?
Yeah, should probably make a template for FR vs Bugs
@wheat current can we steal the template from custom-components?
@wheat current awesome but so small ๐ฆ
@mild veldt I've seen that page, but it dont help me enough to understand how I should write the code :/
Hah, you got there just before me
"steal" what you can @mild veldt
that was a prompt for you to do it for me ๐
@mild veldt There is no code example for the icon-stuff either :/
@split granite "soon" is trademarked. don't you dare try to use it without...I'll call the police
@mild veldt Im blind. Thats also a quality ๐
Sadly, too damn wide to make a decent emoji that easily
(โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป
I can fix that, shortly ๐
we're all counting on you
Hi! Does anyone know if I can show the SMHI weather component as a card in lovelace? I've tried using a card and the weather-forecast as type, but I don't get it to work
I cant set the size of a state-icon ?
@vapid field what version are you on? there was a bug at one point
Should have been fixed in 0.84.3
- title: Weather
cards:
- type: weather-forecast
title: Weather
entities:
- weather.smhi_home
~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
and edit previous
Check the docs again
@copper mural Sure you canyaml style: --iron-icon-width: 100px --iron-icon-height: 100px
https://www.home-assistant.io/lovelace/weather-forecast/ not supported as an entity
Or rather, not supporting entities.
@mild veldt Ok, I'm using 0.82.1 and I thought that the smhi component was a weather entity
Nor title
yes, thanks thomas
@polar kelp Thanks. The problem is that the icon looks good at the computer (which use panel: true). But on the phone the icon being kinda big :/
Who decides what becomes a lovelace default and what stays custom?
someone has to submit it to the UI repo before it can be considered for core
ok, I've seen the slider card recently and I was wondering why that wasn't in core
but a general rule is that core is for just that, core functionality. i.e. domain cards, organizational cards. one-off cards for a specific device type or service will not make it into core
Sadly, that's as good as it's going to get :(

If you're talking about this: https://github.com/thomasloven/lovelace-slider-entity-row, I haven't quite nailed down a design that works well enough for all screen sizes...
I don't trust anything that @winter hollow guy does
@mint geode I wouldn't be surprised if Bram brought it into core at some point, but some things are just better as custom cards. You can go option-crazy with them, put out new features instantly, users can edit them to work how they want them to work pretty easily
Where as a core card, is what it is
Ok, fair enough. But is my assumptiuon wrong that once lovelace is default, changes to the core cards are mostly non existant? In contrast to custom cards which (at least I would assume) can break/be changed with future releases of HA?
No, not by any means
Ok, so my custom cards will never break?
I won't make that promise, but imagine we will not do so (on purpose)
But things like the UI Editor have shown that there are perhaps some bad practices in custom cards that are making them difficult to use. e.g. the custom button-card is not editable
@mild veldt will we have a better handle in how card fit when resizing windows etc...?
here is a esemple
https://imgur.com/udK6KM1
if you notice when editing the card looks perfect but look on right side how the card displays
I haven't got time to get into the UI Editor yet, still using yaml mode. Trying to change over to storage on the WE.
sensors values are gone from it
and that is not even a resizing windows
need to off set the values and try to get them to get in places you want
the UI editor is evolving, that's about all I can say on that. Obviously we want it perfect, but that doesn't happen overnight
@mild veldt Yes I understand and I don't wanted to make any critism. I found out about HA about 4-5 weeks ago and I'm still amazed about everything I can do with it. I was alwas looking for some sort of way of bringing all of my smart home stuff together into one app. Really amazing work you guys all put in.
Just wait until 6 months has gone by, and you realise that the pace hasn't reduced at all, and there's still new things turning up
@split granite HA will actually be 100% complete in 5 months
@blazing nacelle Yes, and yes, but not created one
@mild veldt And at that point ya'll will move on to fixing the 8 billion bugs then ๐
For some reasons my customer slider card is not working
(runs for cover)
We'll have a new UI to start developing
{
"type": "custom:slider-entity-row?v=1"
}```
That way we can just keep ignoring bug reports
๐
@blazing nacelle don't include the ?v=1 in your type
I have added the following lines in ui-lovelace.yaml
- url: /local/slider-entity-row?v=1
type: js```
@mild veldt funny ๐
oh
remove ?v=1 from the type @blazing nacelle
i already said that...no one listens to me
Oke will try
I find your nickname disturbing so I rather not read your messages @mild veldt
But, he has pretty stars
my sparkles are the best
case and point @split granite ...
Must. Resist. Abusing. Mod. Power
fine.....
this is hard to watch
๐
waiting for @wheat current to deliver
He's trying ๐
_moved to #the-water-cooler _
@wheat current that kind of stuff should go to #the-water-cooler
@split granite will give you one more warning
_Changes channel title to #frontend-archived_lounge ๐ _
lmao
Hmmm still not working.. I only have to place the .js file in config /www directory right?
in the type, of the card, no
can someone remind me how to clear my cache in chrome for a specific site? ๐คฆ
@wheat current would love to see you custom component updater work with storage
you can have a ui-lovelace.yaml doing the trick but the raw config editor will not show versions updated on it, even knowing they have update
That will not happen
I tried inspect > application > clear storage, but I'm still getting an error that I've since fixed and that doesn't happen in incognito
cause is impossible to make it happen?
no, i'ts quite possible.
But.. at that point there will be a third party tool changing around in .storrage files.
Home Assistant should be the only tool to mess around in there.
and ```type: entities
entities:
- type: 'custom:slider-entity-row'
- light.test_xxx
title: Test xxx```
ya i get it but is a shame cause your component is a great tool to keep you updated with new versions available other then go time to time to all gits trying to see if there is updates
You could try to make it compatable, and make a PR to get it included in HA.
@mild veldt would like that, but I'm not doing it ๐
ill be hopping you change your mind , you have a great tool there, it should make part of HA, makes no sense not to be part of HA
@violet talon is that what you are looking for? http://lmgtfy.com/?q=chrome+delete+website+specific+cookies
Sadly I will not @prime umbra
Finally an update to lovelace-gen!
BREAKING CHANGES! (If you used the !resource directive or the experimental state templating)
@split granite It doenst matter were i put resources in the ui-lovelave.yaml right?
- url: /local/slider-entity-row.js?v=1
type: js```
this one
You mean before or after views for example? No, it doesn't.
I don't think it matters, but standard practice is to put it at the start
Its now:
icon: midi:home
views:
- title: Thuis
theme: dark-mode
cards:
resources:
- url: /local/slider-entity-row.js
type: js```
and ?v=1 really needs to be included?
It means that when you replace the card with an updated version, you can bump to v=2 and the new card will be loaded
oh oke
So, not really, but you'll regret it if you don't ๐
It's required if you wish to use the custom-updater
Nah testing it why i cant find the card
WIll deal with that later ๐
Hmmm
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.```
is it possible to create picture_glance card without any entities?
or any other card which will show camera pseudo-live footage without need for adding extra entities?
Tryentities: []
you not calling the card, how to find it
Or picture-elements with an image: https://www.home-assistant.io/lovelace/picture-elements/#image-element
@polar kelp cheers, [] works
@polar kelp this should be included in the documentation ๐ฆ
@cedar girder submit a pr
@blazing nacelle you using ui editor?
@blazing nacelle just means there is not a ui editor for the slider entity row yet. You wonโt find any custom cards that support the ui editor yet
just click add card and then skip exisitng cards
and paste
type: 'custom:slider-entity-row'
entity: light.your_entity
@mild veldt Is it even possible to add ui support for custom cards yet?
Wait. If the answer is yes; lie to me. I need to sleep tonight.
Thought so.
When will Lovelace become the default UI? I imagine it will be soon?
0.85
@mild veldt it better be right ..... will be my first time
...I had nothing to do with Lovelace ๐
Figured i would try my question 1 more time, Is there way to do custom icon colors based on entity state in Lovelace ?
or should i just focus on writing a custom card ?
entity state = x then green icon , entity state = y then yellow , etc etc
i saw that but i needed something other that active and not active
also i am not using the picture elements cards, it was a bit overkill
not possible otherwise, unless someone figures out a smart workaround. I wouldn't try to write a custom card, and would suggest adding a feature request to the ui-schema repo to allow for state-filters on icons
do you happen to have a link for ui-schema repo
thanks literally just pull the link on google
@mild veldt Hey i notice you posted a message on this FR https://github.com/home-assistant/ui-schema/issues/138 about using the customize template
Did you do that in the customize yaml ?
Don't remember, but if I did, it is not the way it should be done
I think I ended up using state_image actually
And just making my own icons
I've scraped all that stuff since
lol true, yeah thats what you said. i was trying to customize the icon color using template in customize but i could never get it to work
in and out of lovelace for that matter. I think the communicty post stated using custom ui but didn't want to go down that path at this point
yeah, not recommended
submit a FR. I have a vague idea of how I would implement it generically so that all icons could use it
https://github.com/kuuji/button-card , i basically want to do what this card offers
I understand
at the bottom it's state - value color
ill post the feature request with that reference . Thanks
I don't like that format for the options, but agree with the desired result
what would you suggest ?
Is anyone else having trouble using the upcoming-media-card?
@supple acorn are you seeing errors?
hi all, I am really tired and want to fix one issue before calling it a night
I am trying to implement vertical stacks
no matter where I put - type: vertical-stack
I seem to break lovelace
Hi all, wonder if any of you can help me.
On my phone's, when we open the Lovelace UI the page always refreshes. Is this necessary?
It makes for a poor experience if the page refreshes every time I open the page (as an chrome app)
@strong sable That's likely a phone issue, with it not having cached that app.
I'm trying to have 3 gauge cards in the slideshow card.
The problem is that I only can see one of the gauges, the 2 other doesn't show..
Can you guys see the problem?:
https://paste.ubuntu.com/p/kM9HCjQtHg/
Yes, that one.
auto_play boolean Optional Option to turn on/off auto switching of the cards, Default: false
You're looking to manually switch?
I'd probably ask on that thread then, since it's a custom card
Alright!
Hello, I have two input booleans, and I'd like to see single switches and a master switch in the card.
Is it possible ?
My bad: I used "glance", instead of "entities"! ๐
is there any change in how a button operates in later releases, tried to implement some buttons for my xiaomi vacuum, they do nothing, but long pressing them sends me to the action screen of the vacuum https://pastebin.com/Zcjw9Dqs
@slow wave Yes
Read the changelog for 0.84
(Which you should be doing when you upgrade anyway ๐ )
you and your damn changelogs @split granite ๐
I thought they mostly were the ramblings of a madman
That too ๐
but I also thought I had checked them ๐
they are
If things break on an upgrade then 100% of the time it means you weren't paying attention