#frontend-archived
1 messages ยท Page 71 of 1
Where? โ
above and below the entity
If you inspect the entities, there is an additional div element
I really really want to use the circle card and the gauge card for something but I really cant figure out what. What do you guys use it for?
Yeah, if I removed that the elements went everywhere :/
can we remove the padding around it?
remove no ,reduce sure ๐
yeah...I meant reduce
also, I think the units are removed. Shouldn't it say 37 min?
alignments
brb
The gauge card doesnt work well with counter ๐ฆ I have "1 undefined" since it doesnt have a unit of measurement I guess.
Edit: Fixed in the card and made pr ๐
@raven nacelle You can run the script again ๐
Really want to run Lovelace on my fire HD 8 wall tablet but find it super slow. The interface is barely responsive. What hardware do you guys use to run Lovelace smoothly. Have no issues on either my phone or Mac.
@simple jolt I am running it on a FireHD 7 with no lag issues. Running inside of Fully browser. Interesting that you are seeing an issue on the HD8
@faint echo Iโm also trying to run on fully but itโs telling me that my web view is outdated.
yeah I get that too but ignore it for now
@buoyant skiff not even sure how to upgrade. Searched google and no one to upgrade from web view 59.
so lets begin with the basics its an android right ?
what version of android is it running in that case ?
Still really strange that Iโm encountering these issues. I tried on fully, chrome and wallpanel. While the normal front end is somewhat manageable using lovelace was brutal.
@buoyant skiff Iโm running the latest system update from amazon. Only issue is maybe because I added play store to the tablet.
@wheat current ```
2018-08-16 16:06:40 ERROR (MainThread) [frontend.js.latest.201808160] https://bla.duckdns.org/local/custom_ui/ext-weblink.js?v=0.5:1:1 Uncaught SyntaxError: Identifier 'ExtWebLink' has already been declared
2018-08-16 16:06:41 ERROR (MainThread) [frontend.js.latest.201808160] https://bla.duckdns.org/local/custom_ui/ext-weblink.js?v=0.5:1:1 Uncaught SyntaxError: Identifier 'ExtWebLink' has already been declared
Refresh / clear browser?
I can see the entities (no unit still)
may be the errors are from before the refresh
Cleared both system cache and app cache which did not help. I believe I downloaded the latest version from the play store but I will try app mirror.
Was really hoping to get Lovelace on the wall tablet.
Does give me hope that other people are not experiencing these issues.
when in doubt, blame Amazon
@raven nacelle try to bump the version number one more time
Did you push any updates? I am not seeing any changes
I already have that version. I think there is a typo there unit_of_meassurement
which is why it is not working
@wheat current There is one on the prev line as well https://github.com/custom-cards/ext-weblink/blob/master/ext-weblink.js#L9 ๐
ffs ๐
@wheat current anyway you could build a aftership componente for tracking packages from many delivery companies
based on something like this https://github.com/tr1plus/ha-aftership
its working on lovelace but it seems needs some working on centering stuff in tables etc...
Should be possible, I'll add it to "the list" ๐
How's "the list" looking these days, anyhow? ๐
@prime umbra Are you wanting a custom card for Lovelace, or a custom component?
0.76.0b5 no longer requires Safari to configure the frontend to serve the latest version
custom component probably would be better?
@empty heath Pretty minimal https://hastebin.com/ihefipuqic.md ๐
@half osprey Wrong channel?
@wheat current Wow, that's like 7,285 items shorter than my list!
slider-entity-row now lets you disable the toggle or put the slider on a separate row
https://github.com/thomasloven/lovelace-slider-entity-row
@empty heath Now that he showed his... its time that you show yours ๐
@polar kelp Any considerations in trying to get that added as a core card?
@sudden lion I honestly don't have a cold list -- which is why I often forget about things I need to do. But there are literally hundreds of items on the todo list in my head.
Maybe. I feel like it should be tested a bit more first.
Also, I made this because I wanted it: https://github.com/thomasloven/lovelace-time-input-row
@wheat current Can we get this moved over to https://github.com/custom-cards and have @polar kelp added to be allowed to push commits and what-not?
If he chooses to push there he is most welcome to :)
I will not force anyone to do so
@polar kelp you should have recieved an invite now ๐
the aftership api is something ive been looking at
fairly simple to do a component for that
That is correct :)
Was the first I looked at ๐
free account also supports loads of shippers
both us and eu
still kinda amazed that noone has done one
give me 24h ๐
Then someone else have to write that part ๐
๐ฏ
@polar kelp For the slider, I assumed it would work with input_number(type=slider), but I was mistaken. I like the way it looks, and would be great to use for input_number also!
@empty heath it was not the wrong channel. It's making the 2nd item in the Lovelace FAQ no longer needed ๐ https://www.home-assistant.io/lovelace#faq
balloob any chance of having the shadow dom support word breaking ?
tried throwing all tricks in the book today on breaking up a long line with css
defined max-width
i can get it to cut
but i cant get it to print on new line
default behavior is to print on new line
unless word is too long to even contain in the width
which probably only happens in German
Todays weather is {{ states.weather.yweather.state }} with a temperature of {{ states.weather.yweather.attributes.temperature }}โ and the current weather alerts is {{ states('sensor.outside_alerts') }} and the forecast for tomorrow is {{ states.weather.yweather.attributes.forecast[0]['condition'] }} with temperatures ranging from {{ states.weather.yweather.attributes.forecast[0]['templow'] }} to {{ states.weather.yweather.attributes.forecast[0]['temperature'] }}โ.
thats what im trying to do
want it in the middle of a picture element
but all it does so far when i add that template sensor is one long line
that doesnt break
did you set display: block ?
made sure that you didn't have white-space: nowrap on it?
whitespace
yeah tried with and without just to make sure
even tried none on white-space
pre also
found it kinda odd since i could cut messages without issue
does not contain white-space ?
oh interesting, state label contains an internal element that has white-space: nowrap
(you could have seen this in the Chrome dev tools)
FF dev tools would also have shown it
yeah because the element inside the state label element has whitespace nowrap on it
so bug ? is that what your saying here ?
so the solution then would be a custom_card ?
or can state label have an option for whitespace?
guess i could use https://github.com/custom-cards/state-element
since that one comes without anything attatched to it
but really wanted to do the greeter card with vanilla stuff
and not alot of custom cards
anyways tnx for the pointers @half osprey
@polar kelp Thanks for the custom card! useful-markdown
Is there anyway to center the text from a sensor? Tried with paragraph center align but didn't work
@buoyant skiff ok - just got home, and able to try it my end.. you may want to try this ```
{% set message = "Todays weather is " ~ states.weather.yweather.state ~ " with a temperature of " ~ states.weather.yweather.attributes.temperature ~ "โ and the current weather alerts is " ~ states('sensor.outside_alerts') ~ " and the forecast for tomorrow is " ~ states.weather.yweather.attributes.forecast[0]['condition'] ~ " with temperatures ranging from " ~ states.weather.yweather.attributes.forecast[0]['templow'] ~ " to " ~ states.weather.yweather.attributes.forecast[0]['temperature'] ~"โ. " %}
{%- for item in (message | wordwrap(32, true, "|")).split("|") %}
{{item}}
{%- endfor %}
here is the screenshot
Hey is there a way to force width and height in an iframe?
@azure scarab you can specify the ratio, but cards are typically a set width
putting it in a view with panel: true will take up the full width of the screen however
there are some other tricks to get some what customized widths as well. what are you trying to do?
@mild veldt hey thanks. I was trying to get to-do.microsoft.com to possibly fit in a iframe
they have a mobile site but I just get a white box when I try it
was thinking maybe it was a width thing?
check the console
they probably don't allow it to be in an iframe
you could get around that using nginx proxy
confirmed Refused to display 'https://to-do.microsoft.com/en-us' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
no, just the browser's console
It just means that microsoft has disabled the site from being rendered in an iframe
ah got it. is nginx proxy hard to configure or would I be better off finding a different solution
I've never tried, have just heard that it is possible
hopefully some in #330944238910963714 can assist more
might help...?
Hey thanks! I appreciate the your help! I may just try remember the milk
Oh sweet maybe I could setup my own reverse proxy in IIS
better yet, make a component for microsoft to-do: https://todosupport.helpshift.com/a/microsoft-to-do/?s=integrations&f=does-microsoft-to-do-have-a-public-api&l=en&p=web
then you can render the data however want and use it in automations, etc
So what I'm trying to do , is display todo like on my fridge or something so i can add/mark off tasks
that would be sweet to make a component though, might be a little high level for me.
i hear ya, i'm just getting into components having added some quick things to other's components here and there. but am now trying to do my first on my own
is microsoft to-do a requirement? there is todoist integration already
MS to-do just has a nice interface in windows/android
but maybe If HA had somethign better I would just switch over
Slash I just realized, I kinda want something that works with alexa too
What is the builtin one?
morning
@bronze plover It's still limited to the markdown processing of the normal markdown card, which I haven't played around with. Perhaps you could try using html? Some markdown processors allow that.
@empty heath I'll see what I can do about the input_number
Maybe. I don't know how lovelace handles html.
Ok Cool
All my card does is take the input, replace the stuff between [[ ]] and pass it on to a normal markdown card
Not a deal breaker, Love the card! ๐ฅ
Glad to hear it!
@empty heath Doesn't input_number get a slider by default?
@polar kelp if i use a template sensor and the useful markdown card can i add the markdown in the template sensor ?
thinking of using it for the greeter card for the weather that im messing around with
and please say that it hasnt got white-space: nowrap
like state-label
nwm see how it works now
So custom cards cannot be placed into a picture elements card correct?
Being able to use userful-markdown-card on a picture elements would be awesome
some can and some cant
I have not encoutered a single card that I could not use in picture-elements (including userful-markdown-card)
@buoyant skiff huh? Why not just put the text you want in a template sensor directly? Or what are you trying to achieve?
Oh, you want the sensor value to contain markdown? That should work.
again i didnt look before asking got everything i need
Today's weather is [[ states.weather.yweather.state ]] with a temperature of [[ states.weather.yweather.attributes.temperature ]]โ and the current weather alerts is [[ states('sensor.outside_alerts') ]] and the forecast for tomorrow is [[ states.weather.yweather.attributes.forecast[0]['condition'] ]] with temperatures ranging from [[ states.weather.yweather.attributes.forecast[0]['templow'] ]] to [[ states.weather.yweather.attributes.forecast[0]['temperature'] ]]โ and the sunrise will occur at [[ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom('%H:%M') ]] and the sun will set at [[ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom('%H:%M') ]]
"should work"
yeah that only broke the ui
so using that inside picture elements doesnt work
@bronze plover I actually tried it now, and <center> [[ sensor.my_sensor ]] </center> works.
Hello, Could entity_filter card be used to show all entities that don't match a specific state. For example I want to set a state_filter: not_state: 'off'? Or should I look at the monster card for this? Cheers
Edit: nm, just found the new conditional card!!
When I have a light in a entities-card the lights turn yellow (or whatever color) when I turn it on, but if I have another icon it won't do that. Is it possible to make other icons do the same?
@wheat current wow that was fast :)
must go test !!!
I've noticed @grand veldt that if you over-ride the icon in the card definition the colour won't change
@split granite Yeah that's what I'm doing. No problem really, but would be a nice feature to have ๐
@grand veldt I imagine that will be one of those things that is ironed out soon as the team squashes bugs and edge cases
@wheat current
https://imgur.com/a/lYeCt0e
how could we see not the sensor but the list of packages in the card
any specific card for it?
You need a card that extract attributes for that
any specific card in this case i was using the type: entities
I'll crate one spesific for this later today ๐
you the man look awsome!!!!
Is it possible to change the icon colour with lovelace?
@wicked bobcat change based on state
or just change ?
waits on jchasey to actually respond
based on state
icon_templating should still work
so change to a custom icon that is of a different colour?
@wheat current wasnt able to make aftership component show in custom updater list
@buoyant skiff I didn't know you could set color in icon_template, I thought it was just the icon itself
@subtle rune I'll try to change the component so that card can be used ๐ no promisses
@prime umbra I have to look into that ๐
@wheat current I'm using someone elses component I think. Didnt know you had one too
I didn't, made one earlier today, could not find one online :/
That is not a compoent ๐
@subtle rune that card needs some rework isnt align etc..
maybe @wheat current can come up with something more fancy lol
it uses a rest sensor, which give you A LOT of attributes :/
I prefer having as little attributes as possible (but still having it do the job) ๐
dont do it (yet), it does not work with that card
I don't have any packages on the way right now anyway ๐
is aftership that commonly used in europe? or is there a way for a consumer to add their packages that are enroute to aftership?
I just tried it out and I had to add manually
I use aftership to track all my deliveries (norway)
BUT it still has status pending, and I have gotten it already :/
@buoyant skiff wait how did you get that background image and the transparent darker background behind the useful markdown card?
@mild veldt you add the tracking numbers of your packages to aftership and will track for you
they have many many companys of deliver associate in aftership
@subtle rune I needed to add the couriers i use in to my account before it could track it
before that it showed "pending"
@dense roost
-webkit-text-stroke: 0.1px rgb(47, 49, 49, 0.6)
text-shadow: 0.09px 0.14px 1.5px rgb(47, 49, 49)
background-color: rgb(54, 65, 78, 0.6)
display: block
z-index: 1
text-align: justify
text-align-last: center
border-radius: 5px
thats what i used
image has z-index: 0
and i used @wheat current card
- type: custom:state-element
that did the trick i wanted
since the markdown card didnt work inside picture elements
it do work in picture elements
show me your yaml then
well f*** ff ๐
im good as is but atleast i have a snipplet to try out
dont wanna run chrome
plus this does what i want it to do so it all works out
@subtle rune Looked at the card source, I will not change the component for it, it have to much levels of attributes that I will not be comfortable releasing it :/
@prime umbra aftership now shows in the updater
Yep confirmed its there, thanks ๐
@buoyant skiff oh boy I need to check it out. there should be a place where everyone submits their custom cards, imagine like a repository, where all the custom cards can roam free for everyone to see... Imagine.
.sharethelove
A place for LoveLace Config https://sharethelove.io/
@dense roost like this https://github.com/custom-cards/information?
pretty much is
FYI, for the custom card devs, I've added some documentation about the hass object https://developers.home-assistant.io/docs/en/next/frontend_data.html
@buoyant skiff Looks like you can use hass.user.name in a greater card ๐
auth:
yep, that works ๐
@wheat current ... That will do. An official repo or store, or a link to that repo for New comers would be beneficial
There is nothing official about custom ๐
not yet, but soon โข
just hoping that more devs add their stuff to the tracker
https://github.com/robmarkcole/Hue-sensors-HASS/blob/master/custom_updater.json atleast 1 have ๐
@wheat current so you're saying it's officially not officially custom?
error does not compute
It's official we have a winner
@half osprey I can't find documentation on passing configuration variables into the custom card when calling it in the ui-lovelace interface. To allow changing things like css in the custom card just file. Is there somewhere I should look to learn more about that?
The tracker card is getting huge https://image.ibb.co/mXRSqz/image.png ๐
is there an option to hide unwanted components and cards ?
By default it only show the components/cards you have installed ๐
(that it can track)
@dense roost not sure what you mean, setConfig is how configuration is passed to a custom card
@half osprey tnx for the info yesterday my card is now perfect
@dense roost I gave up on this card, but I think I used what you are after here https://hastebin.com/pifobuqame.js
nice
so now i just need to fill it with more info
Your home "town" @buoyant skiff ? ๐
@wheat current ah that seems like a pretty clear example of it there, though I thought I tried that format and got an error but I'll give it another try. Thanks!
@wheat current nope gave up on that using unsplash
@dense roost The config part of that example works like it should, I just could not figure out how @buoyant skiff wanted the CSS part :P
but overriding the default CSS with config variables worked ๐
Oh! I missed getCardSize in useful-markdown!
well for once ludeeus minimal approach to js worked out perfectly
that way i can maximize on my css
if there is no elements in the "card" you can fully customize it with style: ๐
You should give Polymer.Element a try, Ludeeus.
It's kind of fun to work with, and really clean
Hmmm... thanks :D
I'll have a look at it ๐
@wheat current is it possible to have multiple auth ?
@polar kelp Thanks I didn't even try <center> Was going down the whole Paragraph way ๐ค
@buoyant skiff yes, but off topic here ๐
not really cause remember that @subtle rune was wondering about multple users for the greeter card to have it display individual info
with a little jinja magic its possible
all that it requiers is the user setting up auth
for 2 users
jinja magic
and tada user info
I don't think there is a limit, and jinja will not help
template sensor
nope
ffs yes
good luck with that
if i can grab hass.user.name from the greetercard
i sure as feek can from a sensor
the hass.user object are available in the browser session, not accessable by templates.
You need a custom card for that.
That is client side info, and templates are server side
I have an idea
How would that work with multiple concurent users?
thats a good question need someway to assign session towards user
I could look at adding hass.user to useful-markdown, perhaps...
Not right now, though. Now is weekend ๐บ
@buoyant skiff add this in /www/username-element.js
class UsernameElement extends HTMLElement {
set hass(hass) {this.innerHTML = hass.user.name;}
getCardSize() {return 1;}
setConfig(config) {}
}
customElements.define('username-element', UsernameElement);
doesnt that requier auth to be setup ?
this under resources:
- url: /local/username-element.js?v001
type: js
and this under a picture-elements card:
- type: custom:username-element
style:
top: 50%
left: 50%
@buoyant skiff yes
It will show the logged in user
but hass cant read it right ?
to be used in a template no, maybe if you are the only user
thats something you should aim for a way to save name and session so that templating can be used
if there are multiple users
still rather setup so that we can do indivudal card based on user
anyways time for a break got a gnarly headache
Shouldn't you be able to grab device in the same way that @north spear did with the home-setter card? But that requires js of course
I still donโt ger why.
@buoyant skiff your weather card had me wondering about using google image search for weather terms like "light rain", "cloudy", "clear sky" etc for use as backdrop images. It was working out until I entered "heavy rain" and the first results are from the video game
But I guess that could be entertaining.
adding "weather" helps
Hey guys, any advice on what size to set my floor plan card to for lovelace?
Make it an SVG, then it doesn't matter
Otherwise, no smaller than the resolution you're planning on displaying it at
oh really? Sorry I don't know much about graphic design, why svg?
@azure scarab best size would be Kim Kardashian's size. ```css
#kim-kardashian {
padding-bottom: 9999px;
}
It's a vector @azure scarab - whereas a JPG or whatever is a bitmap
You can scale a vector up or down without issue, not so much with bitmaps
See the Wiki link for an example
@glossy birch hahaha best answer ever
but also nasty
lol
@split granite so does ha adjust the vector size?
Your browser does
You can use the same image, I did
haha I wish I could agree, my floor plan looks like ish
plus I wanted to make a new one for just my master bedroom so I need to make a new one for that
So what about my light images? same thing? make them svg?
SVG scales smoothly, JPG/PNG doesn't
I used Inkscape, traced a scan of the house floorplan and "filled in" the walls as one layer. Then I've built the other information on other layers on top
Hmm that's sweet. What do you mean by other information? Do you just design it all in inkscape and then export the individual objects?
For HA Floorplan I've created layers with the sensors, and other information, to make it easier to work with
Yeah, sorry talking about the new lovelace cards
Still makes it easier to work with the "fixed" components on it
Then you add the dynamic features in Lovelace, but also using SVG
@glossy birch tnx for the jinja magic yesterday, found the reason it didnt work though talked to balloob and state-label used nowrap on white-space but i learned more jinja when looking at that one
@azure scarab unsplash
@buoyant skiff hey thanks this looks dope
just remember that if you wanna reuse em by publishing there is a license
the unsplash license
author has to be credited etc
what do yo mean by publishing? IT looks like you don't need to credit the author?
you do if you register for the api
im using unsplash for my cards
as dynamic backgrounds
so my cards change every hour
there is an custom component that can be used to do this made by @wheat current
so the trick is to make an empty transparent background image and place the camera as an overlay
that way you achive dynamic backgrounds
think i finally found an really nice google font to use
@buoyant skiff that looks great!
tnx ๐
just need to find additional stuff to add to my greeter card
then im publishing it on sharethelove
updating it from the current one
I have some switches which I actually use for lights.
Using ui-loveloace.yaml I can adjust the icon using: icon: mdi:lightbulb
But on the on state of the switch the lightbulb icon is not yellow.
Is there any possibility to get the switch look like a light?
Use customize: instead is the easy option
Implementing this would be cooler :P
https://developers.home-assistant.io/img/en/frontend/lovelace-ui-custom-card-screenshot.png
We need more cards that look they were done by a 7 year old ๐
Agreed ๐
stop mocking my cards ๐
Yours were done by a 7 year old? Sheesh, they need remedial art lessons ๐
(own art skills resemble that of a tired 5 year old drawing in the dark, so I can't really throw stones here)
wtf updated to 0.76 cleared cache and its up but it doesnt connect
too tired take care of that mess some other day
Could it related to: "This release has a migration, initial startup can take ~20 minutes (depends on size DB)"
Ok so question, I have a script that triggers my tv/lights. I would like the image to be grey when the tv is off but light up when the tv is on. However, how do I do this when I need the entity to trigger the script?
Hehe "For example, weโll be able to say which user [...] triggered the party mode at 3am."
@azure scarab You could use a template switch
switch:
platform: template
switches:
tv:
value_template: {{ tv_is_on_or_whatever }}
turn_on:
- service: script.turn_on_tv
etc
yes
migh have been the auth too
but this is getting out of the area of lovelace
@polar kelp wait im a little confused, what does the value template do? If the TV is turned on what would I trigger my light script?
instead of having a script do the tv and the lights?
@polar kelp I am honestly unsure of how it currently handles input_number. Iโll have to run some testing.
I get sliders on mine
@azure scarab I suppose you already had some way of knowing if the tv was on or not?
well just the entity itself? TV shows as playing when its on and Off when it's off
Ok. So you assume a state? If you have clicked the button, the tv should be on until you run the turn_off script?
Then an input_boolean would be better. Automations to run the turn on/off scripts when the state of that changes, and then connect that to a picture-entity card.
I think? I want to click the image, the TV come on (trigger the lights script I have too) have the image icon be light up. and then when I click the image again it turn off the TV and restore my lights
I have scripts for the lights and the TV
and then had it all wrapped into one script
but this doesn't work since the primary script doesn't show as on/off
Template switch?
I think input_boolean. Template switch can't keep track on a state by itself.
But this is more #330944238910963714 than #frontend-archived, I think.
hmm ok thanks guys. I'll give the template switch a try
@polar kelp Yup, you're correct sir! (top = native, bottom = your custom elements)
There's an update to the slider .js
It doesn't show the slider now if the entity is not a dimmable lamp light.
@azure scarab Both the top and bottom contain the same entities: one input_number(type=slider), and one input_datetime. They are both just for testing. The bottom-top is a custom entity-slider (meant for lights), and the bottom-bottom is a custom datetime element. (both made by @polar kelp)
that's really cool, I need something like that for my ceiling fan
@polar kelp If you decide to publish to https://github.com/custom-cards, it will be available for testing to a lot more users. The tracker card will support one-click install of custom cards and custom components soon.
I'll make sure to get around to it
@empty heath The custom_updater has support for "third-pary" repos now ๐
For ceiling fan, it'd need 4 points on the slider (assuming the fan only supports off/low/med/high). 0=off, 1=low, 2=med, 3=high
@wheat current Woot! Even for one-click installs? ๐
the component yes, not the card (still awaiting a review for that) ๐
i.e. is there a repo file in custom-cards or custom-components that allows you to add third-party repos?
@empty heath yeah so it has off/auto/lowest/low/medium/high
Hey, an idea @wheat current. Does the version have to be a number, or can it be, say, a git hash?
So in that case, in my head, it would have a slider with a label above the four positions, with the current position being bold, and the others being gray.
Yeah... I'll pass on that one...
I'm not sure a slider is really the best input method for that anyway....
But that's subjective
True. How are fans currently handled in old UI and in Lovelace UI?
Never mind, I just found that there is a template fan -- I'll create one and test it out.
@empty heath for the cards and components repos I handle the creation and update of the json files, for "third-party" they would have to create a json file for their custom_* that the end user can add to the updater config like this https://github.com/robmarkcole/Hue-sensors-HASS/blob/master/custom_updater.json
custom_updater:
component_urls:
- https://raw.githubusercontent.com/robmarkcole/Hue-sensors-HASS/master/custom_updater.json
@polar kelp it can be whatever you want (whitin reason), as long as local and remote differ they will be able to update, but this do not look all that good ๐
Well... as long as it is different, you'll know it's newer at least.
@wheat current But there is a file in the updater repo that allows you to add third-party repos, right? You may have answered that already, but I don't think I fully understand your comment.
There kinda is, but that one is autogenerated by the repos in those orgs, it would be troublesome for a dev to update their own repo and remember to update that file to
If that is the file you where thinking of ๐
@wheat current AfterShip provides their own python module for integrating with their service: https://pypi.org/project/aftership/
This would be useful to make an AfterShip sensor(s).
๐
With the official one, you could easily add the ability to add new packages from the Home Assistant UI ๐ฎ
Could be a complete component, with services and everything.
๐
LOL!!! ๐
I guess since it's been over a year since you posted that, you forgot about it ๐
My google skils must have been better back then ๐
I guess so ๐
I will look at moving to the official package in comming versions of the platform, but for now it does it's job ๐
is the filter: saturate(.10) what adjusts the color ratio when my picture element is off?
or is there a list of filters somewhere?
~lmgtfy @azure scarab css filter
Here, try this @azure scarab => http://lmgtfy.com/?q=css+filter
lol
didn't realize it was that straight fwd
I do know how to go to google.com ๐
anything new in Lovelace in 0.76? doesnt seem like the changelog was posted yet
no news is good news? ๐คท
that is true lol
cards updater question : many times after restarting hassio , the card updaters , disappear from my card with no reason , after some ( dont know what ... ) , they appear again , so still dont have the method to make them appear correctly , im wondering if may be missing something else ??
@calm rock The tracker-card uses a sensor to display the data, some times if fails fetching new info (bug) as a workaround you should be able to hit the "Check" button to show it again
@wheat current , thanks , think i did , but will try again...
@wheat current , no change , will try to clear cache again
still no luck , probably , reboot will do ?
look for a sensor with an entity_id starting with sensor.custom in 
ok
thats, the prob : message: The following components and platforms could not be set up:
but , i made no mods..
restart should fix it
ok
@wheat current any idea why I had to do the following to get rid of errors about required key 'platform'?
- platfrom: aftership
platform: aftership
api_key: !secret aftership_key
Nothing stands out in the .py
no?
That just looks super wierd
yes, I feel dirty
That should not work
but it throws errors otherwise
What error?
Invalid config for [sensor]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 45). Please check the docs at https://home-assistant.io/components/sensor/
oh wait...
i'm dumb
i can't yaml
wait...i lied, i can yaml!
and i still get the error ๐ฆ
Make up your mind ๐
well I'm just not going to worry about it for now. It works
this is what I have:
- platform: aftership
api_key: 'xxxx-xxxx-xxxxx-xxxx'
yawn
you guys should go to bed...there's important drinking to do tomorrow
There are ๐ to fix today ๐
@wheat current , all good now , thankyou .
@wheat current see #330944238910963714
evening folks
is anyone able to assist with me trying to get a temp sensor to simply show the temp using lovelace
i ideally would like temp and switches in a row on a 'view'
rather than listed in a long line
the example provided is quite limited
maybe a link to working examples would be great if anyone has
@cobalt pendant https://www.home-assistant.io/lovelace/glance/
@wheat current thank you just spotted that one myself also
whats the best directory to put images for lovelace to use?
I have tried /config/images/living_room.png and its not picking it up
/config/www/potential_sub_dir_here/image_file.jpg
you reference that with /local/potential_sub_dir_here/image_file.jpg in the ui-lovelace.yaml file
@wheat current does it have to be a jpg?
no
if you created the www folder now, you need to restart HA for it to work
/local/living_room.png
ah
so that then creates a web facing folder
so in theory I can access via www.mydns.com/living_room.png
almost www.mydns.com/local/iving_room.png
@wheat current thanks all working!
I dont suppose its possible on a picture-glance template to have a temp sensor show as just the temp and not a temp icon you then need to click?
If there is not in the examples, there may be a custom card that does it ๐คท
or you can create one that does ;)
https://developers.home-assistant.io/docs/en/lovelace_custom_card.html
@calm rock the folks in #330990055533576204 migth be able to helpp you with that ๐
yes , sorry , didnt reallize i was missplaced
@wheat current btw you can switch your TV on by plugging in a Chomecast
@cobalt pendant Wrong channel, and no my TV does not support CEC ๐
ouch
yes, some people still live stoneage
But of course they can!
Are you wanting to rename the entity ID, or the friendly name?
Or the name that is displayed on Lovelace?
sorry didnt realize i was iin the wrong section
i just mean the actual entity
device_tracker.xxxxx
Ok, then let's hop over to #330944238910963714 ๐
morning
@buoyant skiff Why are you up so early?
Damn, that's way too early! It's only 2:18am here in Texas!
hehe well i dont need that much sleep ๐
currently back on the grind remaking my remote with custom state-elements
instead of state-label
12:24am in Washington, @buoyant skiff is way too cheerful when he wakes up, it's not normal.
haha
@dense roost tried custom-state-elements yet ?
sooo much better then state-label
@buoyant skiff look at you with your fancy ability to post images ๐ and no when did custom state elements become a thing?!
Where is this Black magic at I need a link
on the custom card repo
Oh
pin please @empty heath
its nice when epllipsis works
so long messages becomes ....
and not just cut
got that on filenames that drag on too long
now more coffee
Did you guys see this? https://23wlzq4l1r.codesandbox.io/
It's an open source UI toolkit and as example they build a smart home UI
nice
wow
Very pretty
makes my cards look like poo ๐
so average temperature of my apartment and humidity and sunrise sunset times
need to realign it a bit
looks kinda decent doesnt it ?
let me check
where i can see docs for ll76?
pretty huge
thats the actual image size
so i got that split with 2
since i got 2 cards per page
and im doing panel true
so i end up with alot of space that i can use for sensors and text etc
my plan is to use homesetter and do a mobile design later on with 1 card per page
so the stuff im working on now is the laptop/computer/tablet view
cool trying same ๐
@serene sierra if there is changes for LL in 76, no one has done a changelog for it yet
yeah documenation on 76 has been bad at best
@serene sierra to make things stick better do em or px when placing stuff that is what ive been doing
and if your gonna have long text that you want to split over serveral lines dont use state-label
cause that contains white-space: nowrap
only use % if you truly want to center stuff ๐ when aligning
thats some common sense tips from me atleast
will make for less headaches
@buoyant skiff but which size pick if it not a panel? and i was try using right: 2em i dunno why it return different effect
so you want regular cards ?
like smaller onces ?
yeah 2em on smaller areas isnt gonna be that noticeable
but on huge areas your gonna see the differance
in first row i use left: 3.7em and right: 0em for having same area from both sides
i will try thanks
np
share that so far the toolbar on top cant just be edited
would love to have this in the toolbar ๐
or this
as a texture for the toolbar
quick question folks, should lovelace be loading in the ios mobile app?
or is this not supported yet?
@cobalt pendant Works just fine in ios app
@subtle rune thanks. very odd I have set lovelace to default
but I just get the old version in the app
On your phone? It's per device
You also might have to quit the app and open again to get it
An awesome themometer pack for templating ๐
@subtle rune all working now thank you
now to get started templating the icons so the changes based on state
@buoyant skiff I am looking at the same thing, having issues with defining only an off state
(want the ON to be default)
figure it out! - define in customize.yaml and it only shows when OFF
simpler thing is to do a template sensor
@buoyant skiff posted a message that is more than 15 lines. It is now available at: https://hastebin.com/ehojikohoh
bah feek
thought it was under
anyways look at that template
thats how you do dynamic icons @cobalt pendant
or alteast one of the ways
could you help with the boolean statement for or?
value_template: "{{ is_state('media_player.denon', 'on') }}"
want it to be 'on' or 'playing'
"{{ is_state('media_player.denon', 'on') or is_state('media_player.denon', 'playing') should work
already solved ๐ in #330944238910963714 @undone egret the user asked there instead
sorry
well atleast they got comformation now ๐
Is there an official kiosk mode coming? The hack was nice, but the layout updates after a few seconds and it just looks bad when it happens
using vertical-stack-in-card custom card, I change something in the custom card's JS and get a red error saying the custom element doesn't exist, I hit ctrl-z to undo the only thing I've changed, save, update incrementing file name, still get the same error.... i don't understand.
Browser log might be more helpful with missing elements
has anybody already created a horizontal card where one could style the width's of each column?
so a horizontal card with two cards in it, first one 2/3, second one 1/3
Not that I know of. Not sure it is wise. A card might expect to be 300-500 px wide.
You can do quarters with normal horizontal-stack, though
ok, thx for the input
I managed to do something... it ain't pretty though
regarding your input of quarters: can I do 3/4 and 1/4?
is there a lovelace changelog for 0.76 anywhere?
Did anything change?
is it possible to force the order of tiles within Lovelace?
@cobalt pendant horizontal stacks within a single vertical stack with the view set to be a panel
@mild veldt stacks, thats a new one on me. I didnt know that existed
They are in the official docs
found the doc thanks
@polar kelp can your custom cards work with the custom updater ?
@mild veldt really stuggling with getting this working... I have a view called 'home'
it contacts a lot of different types:
but only one cards:
should I have more than one cards: for a view?
I am drunk at a music festival right now. So I probably wonโt be much help
The .76 podcast is out
hey guys
im getting a new message on LL after updating to .76
Do you want to save this login?
it doesnt go away even if i click on yes
any clue how to get rid of it?
Itโs a bug. Will be fixed in next
nice ๐
not the first person to ask that sjabby
@dense roost did you try state-elements ?
for text
@sudden lion :) these ones I actually got free freepik.com. sometimes I create my own, sometimes I edit other people's vector images.
@buoyant skiff I haven't yet I was working on my custom card the last couple days trying to figure things out.
@buoyant skiff trying to think of what I would use it for
well you are gonna have text at some point right ?
Oh I got some ideas
hehe good
@dense roost : care to share how you got the scrolling top row?
@rigid harness its a custom card I'm working on. I should release it soon, it just needs a little more work
@dense roost looks awesome! Please share when you have something working!
Will do!
added new sensors time spent at home and work got a remake along with a distance sensor that tracks the distance from device tracker to location
better the other way around ๐
anybody perhaps know why my lovelace isn't accepting buienradar?
works fine with darksky but I find darksky to be very inaccurate
isnt getting a state from it
yeah but I can't figure out why
it's two lines of code
weather:
- platform: buienradar
and
- type: weather-forecast
entity: weather.buienradar
check dev-info and see if it has a state
it has a state
working fine
but it's called differently here
weather.br_unknown_station
I think that's the problem
then thats not a lovelace issue
@vapid field its indeed that sensor nameyou need to use ->
- type: weather-forecast
entity: weather.br_unknown_station
Iโve tried setting a background to a view and iโm just unable to succeed. Iโv tried the example from the lovelace page but it didnโt work
can anyone help with adding a IP camera view to lovelace? Working fine in the regular UI, but could do with a pointer adding it to lovelace?
coalfield is the camera added to config ?
if not #330944238910963714 if it is then check picture-entity
@buoyant skiff its in homeassistant and working, just not in lovelace (it is not automatic)
automatic ?
in the old dashboard after adding to config it appears on the dashboard
(at least the man all inclusive one)
lets start with the basics
for picture-entity do I add the full URL?
is there an entry for the camera in ui-lovelace.yaml ?
camera_image: camera.blah
its all there in the docs you just missed it
to hide the black overlay with the name
you can do
show_name: false
thank you
Do you know if there is any way to make the title of an entity a URL / shortcut to the room?
can this be done on a 'entities' type?
with picture entites yes
again its all in the docs
i suggest you take the time to read it
Thanks I will keep playing and reading (but yes I am reading), but am not always understanding
we have release notes for changes in lovelace 0.76, I checked pins, nothing there
question or statement? ๐ค
I see the docs were finally updated the the 0.75 changes though - so maybe when 0.77 comes out ๐
no clue, thought i'd ask here
frontend_latest/app-2ca9355c.js:2:12805 Uncaught TypeError: t.forEach is not a function
Can someone point me in a direction, what I have to change and how to get Lovelae up and running again?
First draft of the perfect alarm clock... it adapts based on conditions, ...
Any idea how I could remove the header of the weather card, so where it says YWeather?
thats huge
Coping data is always tricky, especially when you have doubles due to coping. Well got it going again.
Does anyone know of a working example (or can provide some guidance) on how to incorporate the vaadin-date-picker into a custom card?
Forget that...didn't realize I could just re-use the component used by frontend, and not have to re-import in the custom element..
@midnight monolith beautiful, I'd be interested to know when you release it
Picture elements light bar http://imgur.com/a/NvIeJw5
Well now I need lights with color...
Is there a way to make the cards larger? I have a DarkSky card that shows some weather information, but I'd like it to be larger and use icons instead of text for i.e. humidity
@buoyant skiff When I tried that it just put everything to the left of the screen and messed up my vertical cards
Maybe I did something wrong.. (highly likely)
didnt say it was perfect you probly need to rework em
Ah ๐ Just tested it again, and I remembered wrong.. It makes the card take up all the space, from left to right. But it doesn't help with the icons instead of text
there is another weather card coming soon @north spear is working on one
Looks good @polar kelp but I'd still think icons instead of text would make it look more clean
Yeah. I just wanted to see if it could work with text too.
How did you get your weather prediction to show days? Mine will only shows the next couple of hours
Depends on the service, it seems. Darksky shows hours, yahoo shows days
yahoo is pretty decent
using that one also
although i got a diffrent take on the forecast and showing it
like summary instead of just stats
DarkSky have that as well, it's neat.
Hm.. units are set to SI, but it shows 12h time format.. fail
well that summary isnt just yahoo its also minutecast so i get the weather predictions for the next 120 min
24 hour clock isn't defined in SI. It is in ISO, though
ISO 8601. The most important one.
Yep, but defining SI units at least shouldn't show 12h time format
Should only be for US
As far as I'm concerned, nothing should show 12h time...
As far as I'm concerned, no one should use imperial units ๐
Is there no way to make darksky show 24 hour format in lovelace?
Can't see anything in the documentation about this
- type: entities
title: Front Door Cam
show_header_toggle: true
entities: camera.front_door
why is this wrong?
its wrong on so many levels
yeah well i suggest you ditch it and reread the lovelace documention
the part you want is picture-entity
@buoyant skiff was the "#homeassist" comment for me? My HA is in 24h, but darksky in lovelace isn't
it shouldnt since it only grabs the value from ha
so if its correct in ha then its should be correct in lovelace
unless your using custom cards to display it
then the custom card might have additional stuff
@mild veldt made it work with non-color lights and will use user defined colors for on and off ๐
working, thanks!
Nothing custom, Toast, just :
cards:
- type: weather-forecast
entity: weather.dark_sky
no idea why it acts that way @dreamy flint
@dreamy flint did you import all of the data it needs in your configuration..yaml file? I know with the custom animated weather card it requires you add everything it wants like wind_speed, wind_bearing etc
My config has this:
weather:
- platform: darksky
api_key: !secret darksky_api
units: si
how do I know what type of Card something will be?
well thats also in the docs
but its common sense that anything that displays an image etc uses picture
and the stuff thats only text is simple entities
@stable swift https://www.home-assistant.io/lovelace/ scroll down to the bottom to the cards section, each of those links will tell you what the card type is on those pages.
And if there's a sub card type it will tell you what it is
It is, you'll get there though
I am really pulling my hair out on this one
New to Lovelace btw
Is anyone able to tell me where I might be getting this wrong?
Lol, this one is simple and stands out to me.
I was hoping it would be somthing stupidly simple
@daring schooner Double check your spelling of the file name. ๐
oh for shits sake
๐ ๐ ๐ ๐ ๐ ๐
I'm just gonna go cry now
It happens to the best of us man, don't fret it.
I've seriously had it happen more times than I care to admit. Having another set of eyes take a look is usually pretty helpful.
Thanks guys... I know it would be something simple
Indeed, glad to be of assistance.
@daring schooner man I've done that and then asked for help too hahaha
i heard clean enerfy is the way to go
๐
@north spear any progress on that animated weather card or have you been super busy ?
@buoyant skiff world of warcraft bfa launched, so I kind of was away ๐ I'll probably get some time to look at it during my down time at work this week (i'm not taking cigarette breaks, so using that time for open source)
it's a tough one because I need to migrate it from jquery
and I lost some time investing in stenciljs which turned out to not be what I actually needed
yeah i knew it wasnt gonna be easy
not sure tho how it will integrate with the UI
because the current card has animation outside of the card itself
if you look at samples
yeah
but hey, one step at a time, to have it working with basics first ๐
yeah ๐
never expected it to be wow however ๐
A big release every two years, worth a week of holiday to enjoy the experience and awesome cut scenes
I think they have now almost worth 1 hour of cinematics, but anyway, offtopic for the channel
I've seen that 0.76 doesn't have much lovelace updates
nope not alot was all auth
but ill keep grinding on my interface ๐
got so much stuff going on the greeter card its insane now
@north spear Missed your presence and effort ๐
I'll be back in september probably with more full speed
I'm really hoping an SVG slideshow can be used as a background image ๐ฎ https://sendeyo.com/up/d/e8fc778614
I'll try to fix, 1 sec.
@empty heath all three images in that svg are from Unsplah, you can use this ;)
https://github.com/custom-components/camera.unsplash
Right, I was just trying something new ๐
And I was able to fix it.
Had to encode the images as base64 and include them as data URIs.
You can use base64 like this?
image: SUPERLONGBASE64URI
Yup.
(view source)
It would be easy to write a script to "generate" these slideshows based on a directory of images. ๐ฎ
Here's a screenshot of it working.
Well, duh ๐ It was for proof of concept, silly! lol
just thinking of ideas on where to use it in my head ๐
and yes i realize its a PoC
๐
was thinking untappd beer cards ๐
images of all my photos of beer
haha
noone is suprised by that ๐
It could be used anywhere you currently use camera.unsplash (however, camera.unsplash is a much cleaner implementation when you're using unsplash)
yeah ludeeus implementation is solid
@buoyant skiff You could setup a python script to check the Untappd API for new beers you've checked in, and when it finds a new one it can download the image and rebuild the beer background.
neat
How about I make a generic web img camera where you supply:
camera:
platform: webimages
images:
- https://example.com/image1.jpg
- https://example.com/image2.jpg
- https://example.com/image3.jpg
?
Well, then how would you dynamically add an image to that (for example, when he checks in a new beer?) ๐
Maybe do it as a config entries implementation ๐
Can be done with a service ;)
service: webimages.add_url
{"url": "https://example.com/image4.jpg"}
Right, but how would you retain on restart?
good point ๐ค
(that's why I said config entries)
Because that way you could use .storage (I think?)
Well, theoretically you could use it anyway.
I aint touching that with a 10ft pole (maybe in 10-15 versions)
Hahaha, it'd be just like having phue.conf or ios.conf or nest.conf or plex.conf files ๐