#frontend-archived
1 messages ยท Page 55 of 1
Hehe. That looks pro
i got a request ๐
trying to use picture glance to show values
is that possible or does it need a custom_card
cause that would be awesome to have
@buoyant skiff maybe https://www.home-assistant.io/lovelace/picture-elements/
yeah
looking at that now also
gonna try
wow
now it looks freaking awesome
my very own beer cards โค
sooo happy ๐
@buoyant skiff How did you get untappd into hass?! sorry for offtopic, but how?!
i built an custom addon
and applied for an apikey
will publish once the code is better
yay!
@vapid field If you want to use it, apply for an API key now, it took a while to get one ๐
thanks @wheat current will do!
I'm trying to create a view with a card showing "all entities", keep getting error
here's my config
- icon: mdi:settings
title: Debugging
cards:- type: entity-filter
filter: [{}]
title: All entities
- type: entity-filter
@lost turret which HA version do you have ?
0.73.1
try reading the docs first: https://www.home-assistant.io/lovelace/entity-filter/
stuff changed, as normal with an experimental UI
You can use now "Unused entities" in the submenu on top right
Marius does this work
- type: custom:beer-card
title: Untappd Wishlist
entity: sensor.untappd_wishlist
entity_picture: /local/icons/untappd.svg
attribute: list
want to use a round icon for untappd
instead of the dull grey one
entity_picture not part of supported parameter list, but can get implemented
you would like to use that instead of icon ?
@north spear thanks
@lost turret if you're still unhappy with what you have available, you can always use the monster
@buoyant skiff send /local/icons/untappd.svg to me for testing
I have some free time on my hands
its the same
and its better
since its actually is round and not square
hass made it round before ๐
is it possible to add background image as well ?
like the picture element
got a wicked idea ๐
got to say this is nice but would have been even nicer if someone would have given the demo'ed config to study
whose config is it? is it on github?
is there an untapt component i dont know about? lol
not yet, @buoyant skiff are creating one, a custom_component (alpha/beta) version should be available "soon"
soonโข
lol
added image for icon in dev
kept config similar, just made some logic behind to allow images
tnx ๐
found it - its actually in the documentation .... ๐คฆ
I will allow you do to a style tag and you can inject whatever you wish there
how about that ?
sure ๐ฎ
gonna have the upperpart with logo and the start of the beer glas then then wishlist as the bottom part and use the entites as a break in the middle
gonna look awesome
simple to do also 2 images ๐
Semi transparent background of a beer glass for the beer-card? ๐
would this work:
- type: custom:beer-card
title: Untappd Wishlist
entity: sensor.untappd_wishlist
icon: mdi:heart
style: "background-image: url('/local/untapped.png')"
attribute: list
is there an option in the picture-glances to show the actual value of a sensor instead of the state? eg for temperature sensors?
I mean with hover-over it shows it but would be nice to output the actual value
@hot gyro use picture-elements instead
doesnt really reflect what I try to do https://www.dropbox.com/s/qvsf9mml820kq63/Screenshot 2018-07-13 14.39.21.png?dl=0
@buoyant skiff @wheat current https://github.com/ciotlosm/custom-lovelace/blob/dev/beer-card/changelog.md
also as you can see it would be good if I could join all 3 motion sensors and if any of those trigger to show a single motion indicator
is there a list for which weather platforms are supported in weather forecast? I don't think for example darksky gives me a "weather.darksky" entity
@north spear just perfect, thank you! ๐ฏ
@wheat current @buoyant skiff happy to merge to master ?
im good ๐
@split granite Ooh, sorry, didnt realize there was two kinds.
Im in no position to test it ๐
That's the fault of whoever tagged those things ๐
I'll go with https://www.home-assistant.io/components/weather instead then
๐
I understood anyways ๐
up to you , but it'd recommend using the actual version published now
I'll try to be consistent
and easier to ask you which version you have ๐
so v=0.2.2 now
If he only had used some sort of component for that. ๐
@north spear you got yourself an update available card yet ๐
Soon (tm) ๐
Not well hidden ๐
Custom element doesn't exist: beer-card.
{
"type": "custom:beer-card",
"title": "Untappd Wishlist",
"entity": "sensor.untappd_wishlist",
"style": "background-image: url('/local/banners/untappd.png')",
"icon": "/local/icons/untappd.png",
"attribute": "list"
}
cleared cache and did igonito mode
the file is present at www
@buoyant skiff any JS errors?
you need to force refresh. Sometimes changing version on same file on resources results in browser saying your custom element is defined twice until you force refresh
atleast the icon is there ๐
yeah i know
background doesnt load still tried both in edge and in ff
- type: custom:beer-card
title: Untappd Wishlist
entity: sensor.untappd_wishlist
style: "background-image: url('/local/banners/untappd.png')"
icon: /local/icons/untappd.png
attribute: list
@buoyant skiff try chrome
@hot gyro Make a template sensor for your motion sensors that is "on" when any of them is showing motion, then include that
I was thinking about that as a solution thanks for bringing that up again
@buoyant skiff if it works in chrome try applying: https://github.com/ciotlosm/custom-lovelace#i-am-running-firefox-but-custom-cards-like-gauge-card-look-bad-or-dont-load-at-all-how-do-i-fix-this
does it work now ? (after enabling)
no background in chrome
and settings didnt help
untappd.png:1 GET https://10.0.0.3:8123/local/banners/untappd.png 404 (Not Found)
should be it since im using it the same image
/banners/ ?
are you sure you have your image in <config>/www/banners/ ?
check filename
no problem, glad it works
edge will always have issues, as I'm not using polymer for proper polyfill
:))
I need to implement this immediately!
@north spear helping alcoholics unanimous and home automation lovers everywhet
is the background resized to how large the entity is ?
@buoyant skiff you have full control of the style,
ohh
you can do as crazy things as you wish
so like .style.backgroundSize = "60px 120px"
tnx ๐
hmm ... is there any sorting mechanism/option I can use with this?
style: "background-image: url('/local/untapped.png');background-size: 10px 10px;" etc
Also @north spear amazing work buddy I think I'm using all your cards now for something basically, other than I need to implement beer card
hmm ๐
- type: custom:beer-card
title: Untappd Wishlist
entity: sensor.untappd_wishlist
style: "background-image: url('/local/banners/untappd.jpg'); background-size: auto;"
icon: /local/icons/untappd.png
attribute: list
kinda just did this
thats loaded in chrome
@buoyant skiff try using contain instead of auto
or cover depending what you want to achieve
Is all css possible to use in picture elements? the badges are darn big, would like to resize but width and height doesnt seem to work
not in percent at least
@buoyant skiff - link to your repo please so can I steal this in its entirety
havent uploaded a component yet
the code isnt that good
need to fix before i can release a beta
but if you want just the entry
@buoyant skiff posted a message that is more than 15 lines. It is now available at: https://hastebin.com/ecuxutuyuj
Doesn't effect it though. Will try more later, am going out now. But the picture elements card is awesome!
Maybe caching.
btw, i've seen some guy using camera with platform generic to fetch remote images. I guess you could than use that camera platfrom to build a more custom picture-entity card or in the future a picture-elements one ๐
Sweet
@subtle rune badges use css variables for size. Try setting --ha-label-badge-size: ... in your styles
and --ha-label-badge-font-size for the text
Default is 2.5em for size and 1.5em for font-size
Are there any plans to mainline all these custom cards when lovelace gets a bit more stable? It would be nice to have everything in HASS proper without having to seek out a ton of custom cards.
some might trickle down into hass if re-written properly
some probably not ... I don't see the monster getting in ๐
Oh well, either way from what I've seen you guys are doing great work.
I'm holding off a bit until the rate of changes slow a bit, but I'll have to dive into writing my lovelace yaml here soon.
@grim light it's worth trying it now as it's not a switch
you can try out things and learn how stuff works
majority of cards are pretty stable
most things coming in are new options
you can run lovelace in parallel to see how it looks
saves you time building it gradually in the background
Yeah I've tinkered with it a bit in my test environment. Just didn't really have the time to come up with a full config for my main instance atm.
you can still put it there... you don't have to restart HA at all for updates and it doesn't interfere with anything else
I love being able to reload on the fly. So much cleaner than restarting HA.
Having upgraded to 0.73.1 it's been trivial to run the two side by side
I ran the migration script, fixed the output to be valid, and haven't looked back
I've culled 80% of the groups I'd created just to make the UI usable, and trimmed the default Overview down to the bare minimum
Even that's going to get removed shortly, and replaced by a Use Lovelace you idiot banner
Indeed, with Lovelace I no longer need my history_graph entities, so I can clean those out of my system too
Is there a way to make the picture glance windows a fixed size ?
Pretty sure there's only two sizes - full screen (panel) and card (fixed width)
Hi, might be stupid question. But cant information in the docs. How do i make a link in the menu to lovelace? Panel_custom/panel_iframe doesnt work
Does a card look the same as a panel?
@pearl hound just use weblinks or just set Lovelace to default and make a card to navigate to old UI
the old UI will be available using /states even after you set Lovelace as default
Much easier (and prettier) to link to old ui from lovelace than the other way around
Hey, I'm new to lovelace. Currently I am working on a custom component based on the iOS Home app. Only, I can't figure out how to get the default entity icons to show up. Currently I get custom icons (e.g. mdi:desk-lamp) working with a hacky way:
<div id="icon-${state.state}"><ha-icon icon="${state.attributes.icon}"></ha-icon></div>
Can someone please tell me the appropriate way to call icons?
https://imgur.com/a/AcxRIpy
Example: All entities have custom mdi icons except "Balkon Verli..."
@jagged warren Lovelace is UI only and it uses custom cards.
You are going after something like custom UI ?
Oh sorry I wasn't clear, yeah! I have everything working except the problem with the default icons
using ha-icon is not working for you ?
Nope, using ha-icons I see no icons
try using <ha-icon src="${state.attributes.icon}"
actually that is for custom images
ha-icon icon should have worked
is state.attributes.icon having a value ?
src=""doesn't work, for custom icons it should be icon="${state.attributes.icon}"
you can use src=<path to image> if you want more than mdi:<icon>, but not what you need - my mistake
is state.attributes.icon having a value ?
Not for the one that's missing
which type of entity is it ?
It's a light
ok, moment
Thanks!
seems the other are using constants based on the domain
there is a helper that does fallback
it's not exposed on hass states ๐ฆ
maybe some other dev has more idea around this
Ahh okay! Well thanks a lot though! For now I will do the same.
no problem
In about how many 0.x releases would one expect Lovelace to be "feature ready"?
IMO it's feature ready already
The development is going so fast atm that Im hesitant to jump in yet
seems like theres new stuff every day when i check forum/reddit
There's nothing I can do in the current UI that I can't do in Lovelace. Can't say the same the other way though
Ah, so there's stock/core functionality, and custom cards
Core isn't changing as fast as the custom stuff
ok
so I can safely start exploring the core, and add the custom stuff as it progresses?
ok
Ill start to dig in when I have spare time then ๐
can this also be used for a tablet gui, or is HADashboard/TileBoard the go to there?=
Ive setup HADashboard about 80% when Tileboard showed up
then I put it on hold to see where stuff would progress
You can use it anywhere
Until we can resize cards though I don't think it'll be a replacement for HA Dashboard, but I could be wrong
I'm setting up the floorplan on Lovelace right now.
the only thing you can't do right now but will be in next release are badges at the top
however in some cases I find Glance card to be a suitable replacement
guess Ill start with Lovelace first anyways. If it can cover the tablet bit Im already knowledgeable with Lovelace and wont have to learn Tileboard:p
The new features in dev will make replacing Floorplan easy
As for badges, I miss it for one thing (the alarm), for everything else the glance card is better IMO
best part is just changing one thing in the yaml, then save and refresh and see if it works. so much faster
agreed @split granite
some of the custom cards from Marius are good replacements too....Gauge and Big number
where should I start to read up on Lovelace? Considering theres been quite a bit of development since it was released in "preview"
check the topic in this channel @vapid field
ok ๐
Making the backend faster. With Lovelace, the backend will no longer need to maintain entities like groups for the sole purpose of showing them on the frontend.
so all the groups.yaml can be removed, in theory?=p
groups are used for more then just the UI. You can use groups for automations and controls so no they can't really be removed.
yeah, true. However all my groups have been purely for changing the default GUI
so in theory they could be removed:;P
Yeah, I've removed about 80% of my groups, since they were all for display only
changing color of icons on the floorplan... no worky. I've got this:
icon: mdi:earth
cards:
- type: picture-elements
image: /local/floorplan.png
elements:
- type: navigation
navigation_path: http://192.168.1.71:8123/lovelace/0
icon: mdi:death-star-variant
style:
top: 50%
left: 50%
"--paper-item-icon-color": pink```
I tried with and without the quotes
shouldn't the quotes be single?
and if that doesn't work try removing the quotes and put pink in single quotes
not sure if you can specify css variables in config tho...
@fathom tree i love your videos man, thanks for making them ๐
the thing is that the icons are a web-component in shadow dom that use css variables to style inline svg fonts.
I have never applied them inside a style tag before.
Thanks Count. I'm having fun with them, so I'll keep going.
I will try it and let you know if I can figure it out.
cool. I'll move on from coloring icons for a bit. Thanks V
mp
that soudns awesome man. they are really informative and helpful
i have learnt a TON from them
and its also super helpful that you keep updating the content regualrly
ha, ya things change so fast I can do the same things several times.
I just finished the Alexa Media Player (with TTS). That wasn't even possible like 2 weeks ago.
Have you tried simply using color: pink?
And this Lovelace floorplan thing is awesome, so I'll get one together for it hopefully next week.
haven't tried it. one sec.
Ha!
that did it!
awesome!
gees. Thanks man
i speak for a lot of people, we look forward to your lovelace videos
my pleasure
there's no changing icons for "state-icon" right now is there? I tried, but it just stayed the default (lightning bolt for a switch)
maybe service button I can assign a different icon
I'm not sure if it works, but you could try customize, maybe icon gets on hass object
no problem
and if you plan to do floorplan, use plan-coordinates custom addon to help ๐
yes, but that helps ๐
it helps you so you don't have to guess %
see the example with panel: true at the bottom
So, here's a question, how do I raise a feature request for selectable zoom level for the map cards?
Right now the default zoom is too close
@split granite in ui-schema repo I think
Cheers
no problem
When i put that URL in the Hassio add new repo URL box, i don't get addons. Is it hassio-ready?
so far I'm pretty far off when I try to guess %'s for placement.
er... that is a custom card for lovelace
oh duh.
see minimal docs here: https://github.com/ciotlosm/custom-lovelace
or maybe use the official docs better here: https://developers.home-assistant.io/docs/en/lovelace_custom_card.html
should be fairly easy to setup, just add one line at top to add the raw file as resource (preferably from your www folder) and then add the card in the same view with your floorplan
- url: /local/plan-coordinates.js
type: js
yep
and then in your view where you have your picture-elements add another card
- type: custom:plan-coordinates
nah, works on older chrome
icon: mdi:earth
panel: true
cards:
- type: vertical-stack
cards:
- type: custom:plan-coordinates
- type: picture-elements
image: /local/floorplan.png
elements:
- type: navigation
navigation_path: http://192.168.1.71:8123/lovelace/0
icon: mdi:death-star-variant
style:
top: 50%
left: 50%
color: pink```
check developer tools
off topic
navigation_path: /lovelace/0
use relative paths
check JS errors as you might either not get your plan-coordinates.js loaded (404) or some other JS error
3:1 Uncaught (in promise) DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).
that's the error in the dev tools panel. There's more if I expand it.
render-status.js
it's pointing to several lines in render-status.js
and some other files
hmm
can you take a screenshot ? shouldn't be related
as you are loading the file from your local/
Marius
and card doens't load any cross domain calls
@buoyant skiff still no custom background I see ๐
@fathom tree ah, I think i might know why
can you try to access your home assistant using localhost:8123 instead of the URL you're currently using?
if it's running on localhost
I can get to it with hassio.local:8123
still same error ?
๐คฆ I have a guy with similar issue which was puzzling for me as it had little to do with the custom card, but for some reason using IP instead of DNS on local network and the service worker causes this
can't figure out which part is affecting which, I'll have to test out myself
at least it worked ๐
hope you find plan-coordinates helpful
I'm sure I will. thanks
@fathom tree out of curiosity, is your home assistant running on http ?
yes
๐ฆ
that might be the problem
lovelace uses a service-worker
service-worker needs TLS
ooooh
but... the only exception that google allowed was localhost or local stuff
it's a google chrome security thing
so do you expect there will be other problems?
cool. well, if I find more issues I'll report back.
thanks
now, back to my floorplan ๐
how would you setup https/tls? Using a self-signed cert or something else like certbot, etc?
certbot is easiest, but you'd need to open some ports while it's doing it's thing
you can also setup https manually
you just need certs in right location
yeah but how would you add them to the docker image?
no need
when I refresh after a change I get the big red error again. If I remove the /3 after "lovelace" and refresh again I get the plan-coordinates back and it works until I refresh
they stay in shared location
really? where?
I'll use the plan-coordinates while I'm placing things on the floorplan, but then remove it after.
@fathom tree add ?v=2 at end of our resources, something got cached
ok
yeah that's a good hack for any url that you don't want cached.
@vapid field using ssh addon for hassio , you ssh in and you'll find cert in /ssl
@fathom tree if you don't fix it to work you'll be missing out on some custom components that you might like ๐
ah... that's a bit of a problem as I have hassio installed over a ubuntu server... how do I ssh into the vm?
the host has ssh as well
I've got the same issue for samba etc.
@vapid field just setup the addon with different higher port
dang. So I'll have to use SSL to fix it for good?
like 222
and the mapping will work automatically?
@fathom tree most likely unless someone with more knowledge than me can suggest alternatives
mapping inside the continaer for /ssl to use for certs should
but it really depends on the setup you want to take
ssl directly in home assistant
use nginx container in front for routing and ssl
use a different routing in front (apache or some other device)
I run mine using bestlibre nginx because it has multi vhost support
that may be a lot easier... the only issue I always hit is with the way homeassistant uses iframes for add-on UIs... makes proxy config much harder.
@north spear posted a message that is more than 15 lines. It is now available at: https://hastebin.com/ecucugapiy
grafana and sonoff are addons running without https and on weird ports, and nginx puts them all on 443 based on the vhost
you can also do upstream if it's on different ip/server
I wasn't aware of the vhost syntax. I was using server location mappings.
this is bestlibre nginx addon
ah I thought it was native nginx syntax
I see. My nginx server is another machine.
you can use upstream than
you guys are way over my head now.
maybe I should just setup the addon your way and do a more basic config upstream.
@fathom tree sorry. ๐ฆ
well... we're way offtopic for lovelace as well ๐
no no, I can't know everything and I'm okay with that.
me too! ๐
I'm happy to know enough to get into trouble in all kinds of situations. And I'm there!
but ssl is a good thing to have regardless ๐
even in datacenters there is a shift from perimeter firewall to just consider everyone an enemy and use TLS across everything with strict ACLs
well, if (when) I do start using SSL, the main reason will be to enjoy the full Lovelace experience.
and a more secure setup ๐
you'd be missing out on things like https://community.home-assistant.io/t/lovelace-gauge-card/58880 otherwise
there seem to be a lot of parts that could go wrong with SSL and for a dude like me it's scary.
oh! I saw that! so cool!
and it's mostly css ๐
once im hungover tomorrow i will rework my beer card
what's the beer card look like? I saw it listed in the custom cards repo
was a gift to Toast ๐
You can see it in action here: https://cdn.discordapp.com/attachments/397426163649216512/467441907920797709/untappd.PNG
it's just a multiline string card with support for custom icon and style background
(it's the one on the bottom)
it's listing breweries?
beers
see ya
how do you install bestlibre add-ons?
@vapid field Wrong channel....this is for Lovelace only
untappd + hass = โค
ok. I was just following up to the existing conversation about nginx.
is there a channel for that anyway?
Looks like #330990055533576204
hi i was trying the cardtracker but for some reason it shows then disapears
is this card with some bug or iam doing something wrong?
@fathom tree its listing of beers and breweries
what are the setting to change the height/width of an picture-elements. Currently the floorplan looks rather small.
@vapid field picture-elements takes up one column (height will be automatically adjusted based on the width of the column). You can use panel mode to use full screen for the card
@raven nacelle tnx, Any link with some documentation which explains the things ?
Or have an example what your meaning (Not sure if I understand you) ?
@vapid field https://www.home-assistant.io/lovelace/views/#panel
@vapid field that card was not supposed to be complete. The card autohides itself when there are no updates available
we need a bit more tuning for the custom_components to have some caching and to update the sensor when you call the update service that were planned for this weekend ๐
thanks for answer mate
๐
at some point i would love to see fix tables for cards, it seems that they dont have a order that will keep them in same places
Does anybody have a good dark theme that works with lovelace?
@candid rapids https://hastebin.com/fuyofarebo.bash
Is there a cookbook with examples for Lovelace?
@vapid field got a screenshot of that?
@candid rapids i got some screenshots on my github, bottom of readme
~dshokouhi
Take a Peak at https://github.com/dshokouhi/Home-AssistantConfig and see if it helps
@frosty pelican sure, http://www.tenney.eu/images/screenshot_hassio.png as you can see quite small floor plan
oh i thought it would be the dark theme you posted with Lovelace ๐
aha can make a screenshot of that as well ๐
Need to remake my home, will take some time
no worries, just like dark themes ๐
Hmm, is there a way to change the text color of the history graphs? The x/y labeling is a dark gray
@fathom tree custom card repository? Where is this that you speak of
I got an error say: "Unknown card type encountered: camera-preview.
Isn't there a type: camera-preview ?
@tender wasp thank you for the css variables!
@copper mural use picture entity card with camera entity. https://www.home-assistant.io/lovelace/picture-entity/
morning
So I'm putting in a little time on the Lovelace migration script...now that we have vertical stacks, should I just use vertical stack to migrate groups to Lovelace?
yes
Of course I could test the group's entities against a list of card-based entities, and then convert it if it has one.
(like media_player)
Right now you cannot have a media_player inside of an Entities Card.
Oh, is that changed now?! ๐
wasn't it possible to have any kind of core card in entities?
using type ?
what would you be using vertical-stack with for old interface migration ?
that just forces one long column of cards
I honestly haven't tested it. I was going based off of the errors that were thrown in the original migration script ๐ฎ
@north spear - whats best way of testing a custom-card from a code editor? Or just run it and view element errors
No worries. Thank you so much for testing.
Man, I gotta admit...only 2 beers in and programming in a language that I am not too familiar with is pretty difficult.
@storm lion best way is just to run it
will do, thanks buddy
but make sure you have https://developers.home-assistant.io/docs/en/frontend_development.html#development
yep, thanks for the reminder though
I guess it doesn't help that Atom is being really glitchy on me, haha.
I can't manage to have an entity filter with a picture glance card, seems like I've tried every combination. With regular glance it's easy, but I can't seem to configure the right way
I've been wanting to switch since day 2 with Atom, but I couldn't pull the trigger.
vscode really a massive step up over atom?
Side note -- it's insane how many lines of code you can write while trying to debug stuff. ๐
@storm lion It's very similar, from what I've gathered, but VSCode doesn't have as many packages available.
@storm lion I think it just depends on preferences
@north spear This should be the way, looking at the glance and filter example: https://pastebin.com/HxhqNsQD
doesn't hurt to try it I guess, I like you dale find atom to becoming more and more unstable
Any time I switch projects I have to reload the window. ๐ฆ
Thankfully, there's a keyboard shortcut for that. lol
yeah I have the same problem
@north spear Sorry, my bad. Was a faulty entity_id that seems to have made the error
But i didnt get a nice red box for it, so I got confused
you seen https://github.com/custom-components/sensor.custom_cards @north spear
or is that not the kind of cardtracker your on about
let me know when you want a beta tester ๐
but it needs a bit of refactoring
I don't want you to specify both custom component and sensor
and I want it to use async and some caching
makes total sense
great ideas, and looks like a tidy implementation
ready for it being tested yet?
Seems really wierd though, its a light thats alright and it's showing in entity filter with regular glance, but in picture glance with filter it gives me an error in log: "Uncaught TypeError: Cannot read property 'entity_id' of undefined". It is the only light thats on right now and should show in the card
oww, picture glance won't like that many entities.. perhaps thats it
even if it is currently only get one passed to it
oh of course, thank you.
try only leaving one light in the entity-filter and see if that solves it?
no problem ๐
I just used my glances card for trying it out. didnt think of the amount of entites ๐
@storm lion not yet, but will probably be this weekend
@north spear just give me a shout, excited for that one
Didn't solve it though. Only have one entity now and get the same log
regular picture glance without filter is working with the same light
can anyone confirm having a working entity filter card together with picture glance and perhaps share config?
just trying to set one up now
also tried it this way, that just ignores the filter part: https://pastebin.com/6btfKYnG
hmm its a strange one, just trying a few things bear with me
Happy for the help!
sooo the syntax is right(ish) as in if I change it to a glance card from a picture glance it works a treat.. that may indeed be a bug
it's a bug
Glad that it wasn't just me ๐
will add it to ui-scheme issues
Great! I wont make a ticket then ๐
funny light up sticks, long cloaks, daddy issues....
light up long sticks sounds right , but no daddy issues
but seriously, I might be thick but I'm missing the joke here ๐
~jedi
The Jedi role (blue) is given to our community members who have proven themselves knowledgable and worthy of helping others. Please do not request to be assigned this role. It must be earned.
second line tech support ๐
now i notice my name color changed
hehe
I bet it's because of the beer-card ๐
its all about the beer ๐
seconded!
can't believe it took you so long
been busy coding ๐
cant do it all
finally got all my services consolidated into hass
@subtle rune - what version of HA are you running so I can add it to the bug notes please?
0.73.1
havent really looked at the other cards available beside the beer card need to check em out
next port of call is the monster, by far my favourite card
a few of my uses:
https://hastebin.com/ofezupoyah.bash
I haven't gotten to using it yet because I get sidetracked from its many uses ๐
haha i know the feeling
filtering by device class is really call, but my favourite is this one:
- type: custom:monster-card
card:
type: entities
title: Things that are probably broken
filter:
include:
- state: "unknown"
gives me a list to keep an eye on and fix or exclude
yeah gonna borrow that one ๐
Ooh nice! Will use that one too
hehe the beer was strong yesterday ๐ feeling it today haha
but i managed to fix my untappd stuff
just need to hunt down a better untappd logo thats long instead of wide
so i can split it and use it for the wishlist beer card
the gauge card is nice
I had quite a few 'unknown' ๐
Yeah, I was very surprised too, thought everything was working for me until I checked that out
Will have to check them out later. Right now I really have to get to cleaning... We're getting guests and I've spent far too much time on this today ๐
Make sure to use ๐ or beetle icons ๐
I've not yet tried lovelace but was wondering if this was possible.. create a group where the background is bright if any light is on in the room or dark if no lights are on. based on a value template or sensor.. or whatever.
Yes. Use two images
state_image ๐
Based on state
I do that with picture_glance - one image for lights off, one for lights on
Sadly you can only use a single entity for that, so I'm going to be creating some input_selects to allow me to do things like "day/night lights off/night lights on/away"
Being able to nest state_image would be awesome, maybe I'll raise another feature request...
https://github.com/home-assistant/ui-schema/issues/102 raised, and hopefully makes sense
@split granite maybe better:
state_images:
- image: /local/living_room_day.png
match:
sun.sun: above_horizon
- image: /local/living_room_night_on.png
match:
sun.sun: below_horizon
group.living.room: on
- image: /local/living_room_night_off.png
match:
sun.sun: below_horizon
group.living.room: off
nesting seems a bit unreadable
Yeah, that works too
I was thinking for of a traditional set of nested if statements, but yours is more flexible I think
hi all!, im having problems to make my "old" ipads to load homeassistant page ( just the top blue band header appears ) , i suspect of the line "javascript_version: latest # for lovelace to work on ios" may be forcing this to work with a version that it simply dont have (?) , is it possible to put this line on a file that only applies when you invoque the lovelace UI ? ,.
Hey guys, how have you implemented your alarms in lovelace? I'm just setting up the Manual Alarm Control Panel HA entity. Interested to see any examples or tips?
red it already , thanks, that is why i suspect about that , and want to see if enabling latest , can be better directed when needed , and not as default .
on those old ipdas , im not using lovelace
@calm rock by default you get latest on devices except ios
@north spear , ok so you mean that the browser is not forced to pick the latest , if not needed ?
no idea how it's implemented, but I think there is some backend logic based on the user agent
ok, will disable latest , and test again, just to confirm then , on the same ipad , i can get the UI without a problem form a PI without lovelace config , and cant open anymore the page that the rpi, with latest config , .
is serving
its 9.3.5
it worked, perfect , until recent changes
and , as said , still works perfect , with the other PI running hassio73, hassOS, without lovelace ios enabled .
ok
@north spear enabling the options in ff on android makes the browser crash ๐
sent a bug report to devs
love the gauge card
redid my whole system menu
@north spear I gave you the Jedi role because of all of your dedication to Lovelace lately.
You're the...Lovelace Jedi. ๐
๐ thanks
No, thank you.
You are seriously "the guy" when it comes to Lovelace, and for that we are all very thankful.
โค
indeed, well said @empty heath - and so approachable and nice with it, even to me and my many many stupid questions ๐
๐
@north spear Where is this list of your custom cards with the "updates" stuff? ๐ฎ
Like, is there somewhere we can add repos for Lovelace cards? ๐ฎ
not at the moment
Ahh, ok.
Custom Card Community Place
@wheat current was kind enough to provide a custom component that uses my repo for version checking
CCCP
I've build a custom card to take advantage of the sensor there and services exposed
Has anyone been working on a "header" card, or is that even possible? (Something to hold "badges" like in the old UI)
@empty heath badges are coming in the next release
Yay!!! โค
I guess I'll keep truckin' on my migration script then. โค
Card doesnโt update when using update all but it does when running check ๐
I need some deep troubleshooting
^ the story of our lives.
@empty heath - somewhere to keep custom cards - I have this setup, we just need to really get everything over there, if people are interested I doing it like that?
https://github.com/custom-cards
@wheat current set it up, along with one for custom components
@storm lion Brilliant. ๐
It'll be like github.com/hassio-addons, but for cards! ๐
Hmm...why not just a Hass.io add-on to manage it? ๐
I mean, sure, the non Hass.io'rs would be a little upset, but pfffft.
Hopefully, obviously @north spear is the biggest custom card manufacturer at the minute and all of his are nicely documented on his repo currently
Aren't you a docker user @empty heath ?
Kind-of.
I use Docker for Hass.io and on unRAID, but no where else at the moment I do not think.
You have hassio on unraid? Interesting, didn't think hassio could run its supervisor on another docker
No, I do not, yet.
I have it booting in a VM, but never ran it on Docker.
But yes, theoretically, it could run on inception.
AHH that makes sense
Docker can run inside Docker containers.
But no one ever made it a reality.
Whenever we do have the ability to download/add cards from a repo, will someone please tag me on the post/commit/update/message/comment/etc? This will be handy for my migration script.
custom card repository sounds awesome \o/
I'm unsure if balloob will agree with that notion though
Streamline installation steps and one place for users to search through has to be a win win for every parts
I agree. the point he has is that by making it easier for users to install custom components (/UIs/whatever) will make it easier for them to break their installation, which will then cause non-relevant bug reports to our bug tracker
Hi - starting to use the interface, and I've already made it the default on my iOS app. Having great success , in fact, I think the only real "difficult" is that when things are so customizable it can be hard to know where to begin. I am not much of a developer, but not having trouble using Lovelace with Hassio, and Nest, Zwave, and Konnected (alarm) components. Still getting set up, but happy to try out new things it that helps you all.
hmm - seems like lovelace has the same limitations as the regular ui - no resizing, no sorting, card seems to crop text | https://www.dropbox.com/s/agmlbwrypetuvdj/Screenshot 2018-07-14 17.17.14.png?dl=0 | would be nice if that could be addressed - also the big blue heading to allow hiding it especially on mobile platforms will add a bit to the real estate available I'd think
@hot gyro Please check the docs....you can change the titles on the cards so that you don't get the .... Entities are sorted in the order they appear in the group. What do you mean by resizing?
@raven nacelle you can get rid of the ... in the glance card?
yes....you define titles for individual entities https://github.com/arsaboo/homeassistant-config/blob/master/ui-lovelace.yaml#L242
First of all I mean sorting of cards, I mean the cropping of text inside the cards as shown, resizing meaning if I got a browser @4k why does it only show 3 cards per row
They system is designed to work for most of the cases and not specific use case. Card are sorted based on a few factors - I don't claim to understand everything - but there is well defined algorithm.
If you remove the side panel, you get 4 columns
While I understand what you are saying pretty much any browser behaves differently doesnt it? Fit how it fits the resolution.. but as mentioned I said I believe its the same limitation as the regular ui
Cards sorted by algo is something that again makes it difficult to try to create a static UI from my perspective thats works as designed I had the situation that the backyard in my screenshot was perfectly in line where I thought it would be then it was placed differently and then the next card changed thats how I noticed that I cant sort them the way I would like it
Would you not prefer to define what shows where on your UI? Eg important vs less important cards/entities?
It in parts works with the old but still is a bit of pain with using the order tag
Just my first impressions playing with it really will need to dig through the docs to see what can be tweaked as you can see
Commenting with title renaming well if the title is too long it will still crop rather than resize the font as an example
Will see
@hot gyro there are various approaches that can fix the UI for you
however keep in mind that the current UI must work for majority of people and platforms out of the box
including very small mobile screens
with the new UI you do get some benefits on consistency in your UI suing vertical-stack & horizontal-stack
and I'm sure in the future (considering this is still experimental and only at the 2nd release) you might get a grid layout
However you can always go and use HADashboard or other frontends if you want a very custom use case
fitting to the resolution with various widths is tricky when your cards can have various controls and other bits and pieces dynamic on them and can cause a real pain in maintenance
the new UI has been built form the ground up with the main focus on decoupling it from state machine, which brings benefits in more easily adding custom cards & panels
An experimental UI at it's second release can't be perfect and fit like a glove any use case ๐
Hmm ok - with regards to fitting to resolution I just thought if screen equals x and card width is y add as many as fit into x - not resizing/scaling it
Sure - as I said not criticising just throwing some ideas in the room
@hot gyro you can try to fit your full screen btw in lovelace
use a horizontal-stack card with the view set to panel: true
and get 3 vertical stack cards inside
and place rest at your discression
but only if you don't care of mobile ๐
let me try and get a sample for you
Well let me study the docs and see whatโs possible really this was just a quick assessment how far the improvements are and there are some I like some that seemed to require a bit of additional thought - at least for what I would consider practical for me
what browser are you using ?
Safari iOS/OSX
it's a bit strange you only have 3 columns as for that many cards I would get 4
Well I show the panel which usually renders the ui to 3 columns
If I hide it I should get 4
But thatโs what I am saying there is plenty of unused space in my frame
Which could be dynamically read and filled
I get that with 4 cards, but with 3 I get "white" space either side of the three columns
@north spear thats interesting as it doesnt happen here ...
It seems three is the magic number, from one to two, and two to three, I get the full width, it's the three to four that gives space
But only with the sidebar showing ๐ค
If I hide the sidebar, it all behaves as you're saying @north spear
I even disabled all extension I had - same behaviour
3 cards with 4 without panel
ha - you arent showing the panet - that explains it
they could fit all into one row
I think it depends also on reported height
I guess you mean width but I agree
height
๐
all cards have now a "size" which is the height that is uses to calculate how much it can stack somewhere
I'm no expert on how the flow is calculated, but there is some logic in there
however if you really want to a fixed layout there are various approaches , like HADashboard or other custom UIs like Tiles
(in the old UI)
in Lovelace you get some with vertical and horizontal stacks
To be honest, the vertical and horizontal stack cards work "well enough" for fixed layout
but I think more is coming
I've got a few views where I want to apply some logic, and they work there
I think the fixed layout can be done with stacks and panel: true
It ain't perfect, but then neither was the old UI ๐
It is really funny in my opinion how fast people are comparing Lovelace with old ui ๐
this is 2 releases old only
I know
and much effort has been put in ground work
But, frankly, it's already a replacement IMO
true that
I love the new UI and the flexibility
especially the custom cards (as you can tell )
I've reduced my groups, removed the history_graph entities, and I've got a better UI
@split granite what I dont like is this is the same layout earlier: https://www.dropbox.com/s/agmlbwrypetuvdj/Screenshot 2018-07-14 17.17.14.png?dl=0 | this is now https://www.dropbox.com/s/agmlbwrypetuvdj/Screenshot 2018-07-14 17.17.14.png?dl=0 | see the position of the backyard as an example
That's the same link
use some panels and stacks
@split granite try the setup with panel:true
use a panel: true with 1st card being horizontal-stack
then inside decide how many veritcal stacks you want (how many columns)
and sh*t just stays in place
let me give an example
this gives you two columns that stretch the whole freakin' screen, no longer how big you have it (no pun intended)
Nice, I'll have to play with that
so basically you define a table with horizontal/vertical stacks and fill them with your cards ...
I think this may work
one horizontal.. and then just fill the Column
you define how many columns you want with vertical stacks
in my sample I used two
the nice thing is that horizontal stack fills the whole screen because it's set as "panel: true"
thats what I understood - let me try that - but I think you said that doest work with mobile?
it will.. but will try to maintain the layout
but I could use a different landing page for mobile - so it shouldnt matter
squeezing the sh*t out of your cards
let me have a play with that cheers
thats seems to work
@wheat current
yes
I like it ๐
@raven nacelle trying out the glance/title thing and it isn't working for me
- type: glance
title: Kitchen Stats
entities:
- entity: sensor.kitchen_temp_68
title: Temp
- entity: sensor.kitchen_ambient_69
title: Brightness
- entity: sensor.kitchen_humidity_70
title: Humidity```
no error, but no change in appearance
(or @north spear ?)
@mortal cape title ?
not name ?
https://www.home-assistant.io/lovelace/glance/ see last example
oh...arsaboo has - type: glance title: Doors entities: - binary_sensor.back_door - binary_sensor.front_door - entity: binary_sensor.door_window_sensor_158d0001bf26df title: Garage - entity: binary_sensor.ring_front_door_motion title: Front Motion
in his config
I'll try name
@north spear amazing work ๐ : ๐ฏ
it works, but the ... are still there which is what I was curious about
... is CSS meaning it can't get whole text in
I think I just don't like the glance card
:))
yeah
I'd set 4 per row and allow two title lines ๐
but css for a more dynamic layout (like filling view if less then 5) it's a pain
@north spear works but as you say mobile doesnt - I guess I only want a single vertical stack on mobile - seems like /lovelace is hardcoded for the ui-lovelace.yaml - shouldnt be that difficult to get a second entry in that to allow ui-lovelace-mobile.yaml ๐
You can get around this if you want with a bit of hacking
you make a mobile friendly view in lovelace
something like /lovelace/mobile
and implement a custom HTML to set the default to that view
at the moment to set a path as default is a simple JS command
<script>
localStorage.defaultPage = 'lovelace/mobile';
</script>
that would work if you are able to load that HTML only on your mobile platform
or add code in there to execute that command only when user agent matches what you have on mobile
I was just thinking about user-agent matching
you can be as creating as you wish
๐
"I'm just going to try Lovelace to see what everyone is talking about, just a test card, no more" https://78.media.tumblr.com/e0e87cf77dfecb79d78afb94f12d3b17/tumblr_inline_oauhktAydg1raprkq_400.gif
reporting to spca
It's funny because it's true ๐
so your saying alll in or nothing?
you try a couple of cards, and usually end up doing your whole UI :))
and then never going back
well i use the ui like 1% of the time ... but i think what you are doing is great
I'm thinking of a new card, a weather card just with images from https://www.pexels.com/search/weather/
I think that is the right way to go, 1% of the time, but if you have a few things on the walls to glance at it every now and then... like time to work, schedule, etc. it has to look pretty
yea been on hadash for years now... so controls are simple ... but mostly everything is automated
I end up using grafana more just to track anomalies ๐
Can someone with at least history_graph, plant, and weather entities provide me with a dump of their /api/states page so that I can use it for testing? If you'd like, feel free to sanitize the data first. Regardless, all data will be kept private and deleted after development and testing is complete. Do not post the link here in chat, but instead PM me.
demo is the best
@half osprey Haha, never thought of that one. Thanks!
but plant doesn't work
you can build one with random sensors tho ๐
@empty heath if you want changing values, use random sensor platform
i see the card-tracker is avaliable now, i have follow steps and i can see the card there but isnt showing the cards i have installed, when i click check it dont shows no cards
is this supose to show the current cards you have installed or will only shows when updates is available?
@vapid field it needs the custom component installed
and added to your configuration.yaml
I think docs on that side are not yet updated
but it's easy, install custom components and add custom_cards: in your configuration.yaml
i have put the sensor folder and custom_cards.py inside custom components
configuration.yaml i have add
custom_cards:
auto_update: False
sensor:
platform: custom_cards
no need for the sensor part
it auto adds
and don't use the sensor from outside the custom_cards
ahh let me test
I've updated https://github.com/custom-components/sensor.custom_cards with text
but you just need the custom_components folder here: https://github.com/custom-components/custom_cards
I will update docs soon, apologies
no problem i have removed sensor folder and configuration entry for it
restarting....
for some reason still wont show the installed cards
it looks for cards in www/ folder
if you have them in a subfolder they won't show
but one thing at a time, can you check you get the sensor? do you see any errors in your logs ?
ahh i have sub folders
would be nice to have them in folders for organization heheยด
can you try it without folders? I will add an option for configuring folder location after if it works
trying now
soon ๐
wow damm amazing
states work, just need to fix buttons
ok, let's take it slow
do you see components loading in logs ?
you should see two warnings , one for component other for sensor
2018-07-14 19:36:26 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.custom_cards which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
018-07-14 20:29:16 INFO (SyncWorker_6) [custom_components.custom_cards] version 1.1.7 is starting, if you have ANY issues with this, please report them here: https://github.com/custom-components/custom_cards
2018-07-14 20:29:16 DEBUG (SyncWorker_6) [custom_components.custom_cards] Checking for installed cards in /config/www/
2018-07-14 20:29:16 DEBUG (SyncWorker_6) [custom_components.custom_cards] Checking which cards that are in use in ui-lovelace.yaml
2018-07-14 20:29:17 DEBUG (SyncWorker_6) [custom_components.custom_cards] These cards where found: ['bignumber-card', 'beer-card', 'gauge-card', 'sample-card', 'monster-card', 'entity-attributes-card', 'card-tracker']
2018-07-14 20:29:17 DEBUG (SyncWorker_6) [custom_components.custom_cards] Local version of bignumber-card is 14
ok, that is working properly
can you go to your dev panel and check if the sensor is there?
sec
sensor.custom_card_tracker
that is the name of the sensor
and that you should have set as entity under the card-tracker as well
sensor.custom_card_tracker wont find
that means your sensor is not properly installed
can you check if your sensor is in custom_components/sensor/custom_cards.py ?
is not there
you need the sensor as well from the repo there
k
seems the beer card is popular ๐
@north spear working great, awsome job
will this detect also if new cards are available or just updates?
updates only for installed cards
ya thats what i tought
It can be used to install new card to, jeg create a blank card-name.js file and give it a version number in Lovelace config
Interesting
Does anyone know what the plan is for alerts in lovelace?
is there anyone who has shared some it's own Lovelace on github? I would love to see how certain things are working
@cedar coyote @raven nacelle has
ty
My Lovelace config is on my Github, and I've put some screenshots in the wiki that's there too
.tinkerer
You can find his GitHub at https://github.com/DubhAd/Home-AssistantConfig/ and his blog at https://ceard.tech/
(the picture glance cards are blurred out, because the house isn't tidy enough to show you all ๐ )
@split granite thanks will have a look ๐
Pretty much everything I do ends up there automatically
Looking good
hehe @north spear i went another route with the big number card im color switching instead of having it fill up the value ๐
๐ I made it flexible enough
works like a charm ๐
as long as you don't specify min/mx it will not use filling , but just make whole thing colorful
@north spear just one question i wanted to add a name on banner for updates
- title: UPDATES
cards:
- type: entities
entities:
- sensor.custom_card_tracker
but when i click on UPDATES name it will only show custom card tracker
any way to show in table like in frontview, or iam not calling in correct way?
Here's the progress on the migration script refactor so far (compatible with 0.73.x): https://github.com/dale3h/python-lovelace/tree/refactor
@vapid field not sure I understand. Your setup there has nothing to do with my custom card
was trying to use views https://www.home-assistant.io/lovelace/views/
but for some reason will only show sensor
to show it you need:
- type: custom:card-tracker
entity: sensor.custom_card_tracker
not sure what you mean by using views
yep