#frontend-archived
1 messages Β· Page 114 of 1
I am dealing with a small thing but i dont understand where to start
Custom element doesn't exist: secondaryinfo-entity-row
cant upload a screenshot
dont know why
post it to imgur and paste the link
Are you creating a lovelace card?
Can you paste the code?
`type: entities
title: Moon
show_header_toggle: false
entities:
- entity: sun.sun
name: Moon
type: "custom:secondaryinfo-entity-row"
secondary_info: "Next Dawn: "`
i was testing this https://github.com/custom-cards/secondaryinfo-entity-row
Did you add:
resources:
- url: /local/card-tools.js
type: js
To your lovelace config?
and download the JS and put it in the www folder in your config file?
for good measure ... restart HA once that is in place.
You don't.
okey
create www inside the config directory.
That maps to /local
The instructions at: https://github.com/custom-cards/secondaryinfo-entity-row are pretty thorough.
perfect
To edit your lovelace config to include those resource statements.
so <home assistant config root> is /config/
Go to the the three dots in the upper right, select Configure UI, the click it again and select "raw config editor"
If you are on hassio its the directory that has configuration.yaml in it.
If on hassos thats /config... then yes π
someone is using https://github.com/custom-cards/upcoming-media-card ?
could I configure entry buttons or whatever as weblinks?
the Idea is to open the link
entity: sensor.franck_nijhof
name: Franck
tap_action:
action: navigate
navigation_path: url([[sensor.franck_nijhof.attributes.url]])
type: entity-button
style:
background-image: url([[sensor.franck_nijhof.attributes.entity_picture ]])
is there any guide to resizing elements in lovelace somewhere?
i know for instance '--iron-icon-height': 42px will set an icon to a given pixel size
but what if i want the size to be relative, to make it fit on different screen sizes+
?
I think card modder or layout card can help there
https://github.com/thomasloven/lovelace-card-modder
https://github.com/thomasloven/lovelace-layout-card
@sour crag
I just look for a smaller light card.
they look ugly in a 3x4 stack
for px the '--iron-icon-height': 42px seems to work fine
but i will try to just use widh 10%
hmm, doesn't seem like the "width" actually does anything with the size of the icon?
also style with css
https://www.home-assistant.io/lovelace/picture-elements/#icon-element
yeah, but none of the examples there resize the icon?
yeah the irdon -icon height is what i was using to get them a given pixel size, but wanted to have it a percentage instead, let me try the scale thing
Here , try this:
http://lmgtfy.com/?q=lovelace+state-icon+bigger
thanks google for that ^^
I tried googling it, but not with that much luck
the scale does indeed change the icon size, however it is not consistent between screen sizes relative to the image
so it doesn't actually provide a constant relative size
Then your work around is an image entety
hmm, i guess it is, a bit more hassle, but i guess it is safer to have the icons stored locally anyway
the current gauge card has 3 different severity colours. Is it possible to have more (like 5 or 6)
Not currently...
@haughty dragon , check this: https://community.home-assistant.io/t/fire-danger-rating/96264
@raven nacelle , it works!
- platform: generic
name: Mapa Sismo IGN
framerate: 1
still_image_url: "{{ states('sensor.sismo_mapa_ign') }}"
@torpid smelt thanks, that looks promising.
Lovelace is part of your home assistant installation. It is the default UI
Check out the docs on how you can start using it https://www.home-assistant.io/lovelace
note; groups are not deprecated
but using them to dictate your UI is not necessary/encouraged with Lovelace
is there a good custom card that filters on the time since an entity's last state change?
or do i need to make a template binary sensor?
Perhaps it can be done with auto-entities.
Hey, is it possible to show "group.all_covers" as a "real" cover?
Like up/down and not only the icon?
https://grtdlks.eu/index.php/s/YHECMcxTYP5oKaH/preview
to
https://grtdlks.eu/index.php/s/kABC8dG7kFNio8x/preview
for example, i want that the group.all_covers will look like a normal cover with up/down button
You could try adding type: hui-cover-entity-row to the entity definition, but I'm not sure it's supported in the backend
How can I make a horizontal-stack look good? π look at this pic
can't upload pics here apparently, uploading somewhere
In general - you can't. Horizontal stacks should never have been in the first place.
oh ok
In some cases it's possible, though. What are you trying to do?
I was just trying out some different layouts for some of my views and wanted to see how it looked. It's just 3 cards with entities, one for each bedroom in the house
oh nice, will try that
@polar kelp didn't work, but I won't dig so much deeper into this since I guess the cards already are in a horizontal-stack by default
panel: true should solve that.
got it working now π found an error in my code
i had two horizontal-stack entries since one of them was a vertical-stack before and I changed both of them to horizontal during my testing
just need one.
If a custom card tells you to add it to the resources in ui-lovelace.yaml , but you're using lovelace in the non-YAML mode,
where do you add that registration?
There's the trick, thanks @polar kelp ! Got a nice custom guage card working now π
New update with card links... https://community.home-assistant.io/t/dinotechs-march-update-lovelace-screens/84271/75
I keep having issues with the frontend getting stuck in a "a new version of the frontend is available" loop, do we know what causes this?
is there a custom card available that can only show the last changed time of an entity (and not the state)?
i guess this is my best bet? https://github.com/custom-cards/config-template-card
text-align is ignored in a state-label
Someone have a working style for align?
and I guess I have to create a template sensor to use Attributes in a state-label?
Almost Happy
https://imgur.com/a/zM0fzZV
Since 0.92.2 the input_datetime looks weird.
https://pix.toile-libre.org/upload/original/1556796785.png
Is there anything to adjust?
I'll see what I can do.
what's the easiest way to replace default circles with values from various stuff with some nicer tiles with history graph for example?
witouth breaking automatic updates of dashboard
- cards: - type: entities entities: - entity: switch.pack_aircone_switch - entity: switch.pastry_aircone_door_switch - entity: switch.pastry_aircone_table_switch title: All Aircone G - type: entities entities: - entity: switch.raw_warehouse_chilling icon: 'mdi:air-conditioner' name: Warehouse tap_action: action: toggle title: Cooling Raw G
Can someone please help me and tell me what i'm doing wrong.
These 2 cards are great seperate but when I.try to put them both in one card, it doesn't work
Ubuntu 18.04
@fervent fern That sounds like badges https://www.home-assistant.io/lovelace/views/#badges
is this something that should be put in customize.yaml?
not sure how to start modifying look & feel
Not at all, but those "circles with values" are badges
Take control of your UI and you can do what you want
Three dots in the top right of the UI π
but then it will stop autopopulate it... which is for now scary to me π
is it possible to reload a defined theme file without reloading HA completely?
perfect, thanks @split granite
I'm trying to have to cards in one, like I see in ur settings but cant make it, for example the state-switch card in ur sample, have entity card and then some state switch card in one card.
I just cant make it, evevn when I use ur format @
@polar kelp
A sec, ill try to attach a picture link
Please use imgur or other image sharing web sites, and share the link here.
@pallid lance posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/SMVKjk8GDw/
In yaml, indentation is everything.
YAML is the mark up language used by Home Assistant. Consistent indenting (two spaces per level) is key
Dinotec helped me with this yesterday but it doesn't work unless I remove every thing above the type : state-switch
I'm trying everything I can, still doesn't work π©
Give us more context
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs.
And provide the lines above and below - so we can tell if what we see is a copy/paste error, or because you've messed up formatting, or...
Ill try to do so, i'm in china and the only way to access now.discord is from my mobile phone
type: 'custom:state-switch'
Code, shared as an image... π€·
I want to add the input_Boolean entity before this card, but both will be in one card
In one card?
@split granite I really apologize
Like this, i'm sorry, cant install on my computer discord in china, trying to find solution
Otherwise would have paste my code
You're not actually answering the question
Posting code doesn't tell us what you're trying to do
You said this earlier: https://discordapp.com/channels/330944238910963714/460846676358332417/573493490948898826
And then gave us no further detail on what the heck you're talking about
Until you can actually describe it meaningfully, or show a picture, it's pretty much impossible to help you
I posted a link above explaining the trick of putting multiple things in the same card. Read that one, compare your code to the example
@split granite on the first picture I've attached these are the settings for state-switch card. The entity that the state dependent on is the input_Boolean, I would like that switch to be in the same card.
I hope I made myself clear enough.
@polar kelp tks, ill look into it
hi
Trying to add a floorplan with lamp actions but video;s I see are all with older version of hassio, just started with this and have latest version, is there any video or tutorial to set up floorplan in newest version?
@polar kelp Do you know of anyone that has done this? working examples? "If you design a very good package, you may want to distribute it to other users. It might then be a good idea to put a number of definitions near the top of the code, in a customize: section, for example, with values the user may want to customize. Slow learner here I suppose, π€·π»
Thanks kind sirππ»
just realized that @split granite equals DubhAd on github
enjoy a coffee!
didnt you wanted to dial back your coffe consum? π
I've cut back to only two - two urns
π
still on 2 until alive - 5 to feel well π€£
How can I find the element class/id/name for theming using the code inspector in chrome? for example <div main-title="">Home Assistant</div>
thanks!
Dont realy know - but its primary-color
here a random theme copyed from the forums
https://hastebin.com/sayomobixe.bash
thanks @civic sedge , however i know what it is, just wanted to know how to actually find it using the inspector
lol just found it
just under elements - the styles
could imagene that you have to set a theme - But I can be wrong
yes, that is your theme. there is another section of inline css with the stock colors
so you found it? π
yea thanks!
@split granite two per coffee break?
I used to drink that kind of volume of coffee
Then my body started sending some pretty serious warnings about impending caffeine triggered death
Me too. My guts still hate me, and itβs been eight years.
Two, maybe three, cups of coffee a day is my limit now, and the third is a bad sign of how the day's going
Tea oddly doesn't impact me the same way
Or I'm not drinking enough of it ... π€
Tea has different chemicals that change the reaction of caffeine in your body. It's a much more gradual boost rather than an immediate result
β or π ...that's a tough decision
Anyone know how to install Mini Media Player Custom card? When i paste the .js file into www folder it looks wrong. Just one row of code.
Follow this guide to add your first custom plugin to your lovelace configuration
@foggy hornet Yeah...it does appear all together. That is fine.
It doesnt seem to work. Cant fint the raw file and with one row the problem is still there
can anyone advise on ways to display camera streams?
Did you try the steps listed in the docs?
@raven nacelle I think so yes. It just state download and place it under www folder and and the text to ui-lovelace.yaml
yes...do that and it should work
reboot after?
reboot is not required...just make sure to refresh the cache
Thx for the help but It doesnt work...
restart is required if it's the first time creating www folder i believe.
i have plenty of other custom cards in www folder
...thx anyway
- url: /local/mini-media-player-bundle.js?v=1.0.4
type: module
do you get a red error message where the card is supposed to be?
i think when you downloaded the .js file it may have been incomplete or something, i would try redownloading it again
No card type found
[
{
"type": "custom:mini-media-player",
"entity": "media_player.kallare",
"icon": "mdi:spotify",
"artwork": "cover",
"hide": {
"volume": true,
"source": true,
"power_state": false
}
}
]
can you get this file "raw". I have to download the hole file but the problem is the code is written in one row and HA is complaining. https://github.com/kalkih/mini-media-player/releases/tag/v1.0.4
do right click and save link as (in chrome at least). mine is on one line too and i have no issues with it, i think that's the way the file was compressed
It works know. Thanks for the help. I added examples texts wrong into HA
great π
@latent moss (L)
Trying to figure out how to add custom css and target some lit elements. Is there a custom card which would allow this? Should I make a custom card to apply some inline css styles? perhaps something else?
adding a custom css resource works for things like body but will not apply to lit elements like app-toolbar
There's card-modder which applies css to the ha-card element.
In some cases it also works for other elements.
saw that, assumed it was limited to cards and couldnt escape them
It also works for entity rows most of the times, and picture-elements elements can be styled by default...
What are you trying to do?
atm i want to add text-shadow to app-toolbar
but thats just the start of what i want to do
Ok. Then card-modder won't help you.
ok, thought so
Your best bet is probably, indeed, to make something yourself, but that something doesn't have to be a card.
This one doesn't work anymore, but it should give you a good starting point: https://gist.github.com/ciotlosm/1f09b330aa5bd5ea87b59f33609cc931
You sound like you know your way around css and js (?)
im not great at JS. but i can get around
that looks like a good starting point, thanks!
hi in some way the hassio is not retrieving my images saved in the www folder when I use this image: /local/www/Zolder.PNG , any suggestion what I could do?
I know bit new to this.....
config/www/....
nope still no picture shown in picture-elements
type: picture-elements
image: config/www/Zolder.PNG
elements:
Fancy
im making a revolutionary theme
@vapid field Did you restart hass after creating www/?
will try again, but think yes but to be sure I will do again
after restart still same can it have anything to do with https setting due to installing duckdns?
nah
Wait. I didn't read your messages carefully enough. <config dir>/www/ corresponds to /local/, so <config dir>/www/Zolder.PNG is /local/Zolder.PNG.
yup works~!
I'm having problems with my cards staying updated to current condition. Reset will sometimes fix it. Anything I can check for this?
what cards are people using for displaying camera streams in frontend?
any of the built-in picture-* cards with camera_view: live
Hi, i have a question
i tasmoted a sonoff and i set it (with tasmota and pulse function) to close and open relay after 0.5 seconds
but setted on home assistant like a switch, it appear with the slider
You're using an entities card?
yes
Switch to a glance card and you can set it up to toggle the state of it on click
ok
done but i can't button directly
*press
if i press on an'entity on glance card, it open a new windows when i can use the slider
https://www.home-assistant.io/lovelace/glance/#tap_action - define the tap action to be toggle
Tinkerer is away for 5m 54s with a message :point_right: Bad spellers of the world untie!
hello, is there a simple way to turn the bottom switches into a toggle switch like the one above?
@gray kernel many thanks
Does anyone know how to configure the harmony hub to look like the love lace demo? I can not figure it out, currently my harmony hub can turn on or off the last activity listed in my yaml file, but thats it
how can i add nest smoke detector and lock. i have tried the developer account but nest doesnt have that option anymore
@vapid field if you figure it out let me know, I have the smoke detectors but have not been able to get them working. I would ask in HA instead of this room thou
thanks will do @cold garnet
anyone here have a firestick in a card in their lovelace front end?
yea @smoky peak
Which card did you use?
My what....card? Or firestick?
firestick
adb addon
mine keeps dissappearing every time i restart hassio
Easy fix. NEVER restart, lol
lol
So, did you use ADB?
thats not possible always making changing
teasing
yea adb
So, on your screen for the firestick, did you click the checkbox which says something like "always trust this device"?
yep
Hmm. Well, can't help you then. I just got mine added to ha tonight.
Have you tried simply restarting ADB after the reboot?
adb restarts like everything else when hassio reboots
I know, but after, is what I was saying. I'll take the easy route out of this and say it is @fading sorrel 's fault
lol
lol
He'll appreciate that.
i hope u dont get that poblem with yours
so for your card you have to install the custom card
Too early to tell. I rebooted HA and the firestick to get it all done, and haven't rebooted again tonight. Can you point me at how to install the custom card, i.e. is there a github on it, or a doc of some kind?
yea
And, I may have the "opportunity" to reboot soon. Tornados in the area.
Nice. Thanks. I'll work on that in a minute.
wind just went to zero outside....makes me nervous. It was about 20 a minute ago.
Thanks, bud
np
hey there,
i am still new to home assistant (a couple of hours) and have a question about colouring the state icons of entities:
is it possible to change the color of an entity-icon based on its state?
@vapid field this custom card lets you do that easily https://github.com/custom-cards/button-card
ah ok - tjank you @latent moss. is there a possibility of doing so with sensors too?
on that card yes
Also via custom_ui
any chance to do with this card? https://www.home-assistant.io/lovelace/glance/
Yes, with custom_ui
Yes
Iβm doing exactly what you want
Just follow the instructions to install and use the customize: and customize_glob: tags to set colors based on logic
ok thx. do i have to set it in an customize.yaml or direct in the configuration.yaml?
Either way
I recommend the former to keep things neat and tidy
But the tag in configuration.yaml just includes the the other file
So itβs really the same thing
ok thx. i will try and perhaps come back soon π
hey there - back again. I tried it. the detail popup shows me the choosen color but in the badge the color is still the old one. can i change this color (in the badge) too?
@old karma I think I found it. Had to install ubuntu on a vm to test... https://github.com/home-assistant/home-assistant-polymer/pull/3150
Firefox likes to do things differently from everyone else. Including firefox on other platforms, it seems...
@polar kelp , Thanks for your effort.
I installed Win7 in a VM to test it and have seen the same in FF.π
π€· I had only tested on osx before
@polar kelp Still haven't got my head around the node anchors, but at least I have a start and it works like a charm. Thanks for the code! After translating π I added a popup that opens when my alarm goes off to set the coffee timer...hmm...coffee timeβ Thanks!!! https://imgur.com/a/ac6NS7C
@polar kelp @split granite @atomic glacier I would like to thank you 3 for helping me with the Ymal . i've found out the reason why i couldnt get it all right. my HA is installed on my office server as i'm using it for work not really home automation. when i'm at home i'm controling my office computer thru VNC software, sometime also thru VNC app from my mobile, apperantly that is making some spacing issiue which i was not aware of
as i live in china discord is blocked here and i couldnt untill today install the disscord on my office computer, so i couldnt also paste the YMAL in the correct way with spacing. i have solved this today so from now on it will not be an issiue.
once again, thank you for the help and patients (most of the time π )
@pallid lance posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/nDbnYsgNRW/
Hi guys. I'm new to HA and my lovelace weather card is showing hourly forecasts in GMT rather than my timezone. Any ideas why?
Hi. I have an issue dafang (hacked) camera. I've added it with generic cam platform, with stream_source added. ffmpeg and stream component is also enabled. However, when i click the still image, i does not load the live stream. Any tips on that?
The home assistant log might be able to give you some hints.
Hey there, i am still new to ha (just a couple of hours). I would like to change the color of the state in a badge depending on the entitiys (sensor) state. I installed custom-UI to change the color of the icon in cards. That works great, but just do not know how to change the state-color in a badge
@polar kelp Unfortunately not. The only thing i see there is 2019-05-03 11:26:04 INFO (MainThread) [homeassistant.components.stream] Started stream: rtsp://10.0.0.63:8554/unicast
That stream url works from VLC though
@mellow pier - Try putting ?latest at the end of the Lovelace URL
@green ice Like this? http://ip:8123/lovelace/2?latest
Doesn't make any difference. Maybe i should attempt to switch to ffmpeg platform for my cam?
That wouldnβt make a difference either. Are there any errors in your browser console?
Also, is your stream unauthenticated?
If not, you need to put the user:pass in the stream source URL in config
Do you use chrome? Firefox? Edge?
ctrl+shift+j in chrome
any way to change the colors of the history-graph card?
is there a way to make a icon showing options (in the form of other icons maybe?) when pressing on it in lovelace?
example, having a lightbulb-icon in a floorplan
and when longpressing, letting me choose between 4 scenes
Anyone know how to get an entity-button card to activate a scene?
Does this look correct?
type: entity-button
tap_action:
action: call-service
service: scene.turn_on
hold_action:
action: none
show_icon: true
show_name: true
entity: scene.biorum_blind_down
name: Test
icon: 'mdi:blinds'
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
And no, you're missing information
What is missing?
where exactly should I put extra custom cards when I reference them in ui-lovelace.yaml like url: /tracker-card.js
in www?
where should I put files like tracker-card.js or layout-card.js?
@elder pendant I solved it, thanks for pointing out about the service_data
anyone?
@fervent fern FYI lots of people in different time zones. Sometimes takes time for people to check in on the chat. Check this out https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins
any chance, to make a up/down/stop button card for group.all_covers?
Hey there, i am still new to ha (just a couple of hours). I would like to change the color of the state in a badge depending on the entitiys (sensor) state. I installed custom-UI to change the color of the icon in cards. That works great, but just do not know how to change the state-color in a badge
Don't think there's any built in way to change the colour of a badge
Is it possible to have one card that toggles blinds up or down based on their current state?
am I right that you still can use badges in lovelace?
Yes you can
is it also somewhere documented? π
AKA, no, HA tend to avoid documenting anything π
(yes, there are bits where the documentation has a hole, or fifty, but by and large it doesn't miss much - finding it's usually the hard part)
Trying a picture elements card, I don't want to scroll to see the entire picture
So i tried this:
image: /local/floorplan/floorplan_small.svg
type: picture-elements
height: 100%
but it doesn't seem to resize the picture
@sour crag To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
I know about the backticks, but it is 3 lines, and just to show the context, it not really a code block
It is literally a code block. That is what it is.
Hey guys, any ideas on why the default weather card is showing forecasts in GMT instead of my home timezone? I can't find anything in the forums or docs that mentions adjusting it
@meager swift have you set your location (long/lat)?
@nocturne dust That I have. And my timezone.
That's weird then
I think mine reset correctly but I haven't paid much attention
I'll check on it soon
@nocturne dust thanks π
Just to clarify the timezone should be using the country/region format noted in the TZ wiki page?
Ok, so I apologize
I just realized I've used the darkysky platform not the default (yr or whatever)
and yes, this is the line from my config file: time_zone: America/Chicago
Ah. Maybe that's my issue. I've got quotes round mine. Thanks @nocturne dust
Sure thing
@vapid field you'd likely want to write a script for that
@limpid cloud look at the custom button-card. You can change things based on state
Trying a picture elements card, I don't want to scroll to see the entire picture
So i tried this:
image: /local/floorplan/floorplan_small.svg
type: picture-elements
height: 100%
but it doesn't seem to resize the picture
Resize you actual image
Then it will be to small for big screens
if i resize it to be the right height for a smaller display to not need scrolling
im using picture elements and im trying to make so my google home has a grayscale image of the song its playing when its paused and a normal when i play, i got the grayscale working but not getting the right picture
@mild veldt Love the enhancements to radial-menu. When the menu expands, is there anyway to use text that has adjustable font size ? Looks great on wall mount, but with a 10.1 screen, when using the picture-entity instead of icons, the text is not readable. Any ideas on how to 'upsize'? (umm...aside from a bigger tabletπ )
Iβd have to add style support. Iβll give it some thought
nice
looks just like what i need
i use pictures for turning on and off lights with picture elments
but i looks like i can use this to select one of 4 scenes on a long press
I actually asked about this very thing yesterday π
ugle43Yesterday at 9:40 PM
is there a way to make a icon showing options (in the form of other icons maybe?) when pressing on it in lovelace?
example, having a lightbulb-icon in a floorplan
and when longpressing, letting me choose between 4 scenes
@polar kelp so I'm guessing that it's not possible to have radial-menu as a popup and then have that open other pop-ups? Haven't been successful, only to have the radial-menu popup and then navigate to another view.
No. Popups can't be opened from popups.
π kinda figured that. Thanks for confirming
what's the policy of adding new custom cards to official distribution supported by config UI editor?
when can we expect (if we can) to have layout-card like options by default? π
Hey! I just bought a brand new Delonghi PAC N77 ECO portable AC with a regular IR remote. Ive learned most of the commands through iTach, and have added them to HA with the iTach component. How would I go about using Lovelace to present this? It needs to send remote commands over IR to control
the remote is a regular AC remote, meaning it transfers the entire set of commands every time I change something. Therefore I had to add 16-24C x3 due to FAN SPEED setting 1, 2 and 3. Some kind of dropdown list with commands would probably be wise?
aloha
im running some cheap chinese tablet with android 4.1.1. and chrome42.0.311
and i cant access the login page
its just the header and a blank site
it says "initializing" while reloading but it goes away once the page is loaded
or is there any other way to access HA on this tablet? i bought sorta solely for that reason
I suspect that the version of webkit on it is too old - that's the problem that the Fire tablets suffer from
I tried to add a plant status card and i see that message : ''Your config is not supported by the UI editor:
Expected a value of type string for entity but received undefined.
Falling back to YAML editor.''
What is wrong?
@fervent fern most custom cards will likely not make it into core. My dream is to get https://haltu.github.io/muuri/ into core, but that will take time and of course effort
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs.
I can't figure out what I'm doing wrong here:
{
"type": "picture-glance",
"entities": [
"binary_sensor.front_door",
"sensor.downstairs_temperature"
]
} ```
this is the very simple yaml
title: Downstairs
entities:
- binary_sensor.front_door
- sensor.downstairs_temperature ```
(well after i added a title)
that's how i quoted it here
so it looks like the lovelace ui has a glance card, and a picture-glance
the glance card seems to work, and the picture-glance doesn't
i guess they are different card types, from the raw config
@brisk ridge it just means the plant card is not supported by the gui editor yet.
@prime topaz picture-glance requires an image source as well. Image/camera_image/camera_view
can anyone tell me whats wrong with this? https://pastebin.com/pGNFZ3vX i'm getting this error while parsing a block mapping in "/home/homeassistant/.homeassistant/lovelace/frontpage-newer.yaml", line 7, column 9 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/lovelace/frontpage-newer.yaml", line 14, column 10 using the layout-card
@quick gulch your indentation seems way off, see the lines it mentions
hmm i copied from the docs
its just indentation right
it looks clean to me - what looks way off to you?
i'm doing it as per - https://github.com/thomasloven/lovelace-layout-card instructions
@quick gulch i think your problem is on line 2. you have 4 spaces indent, should be 2?
it might look that way however its being included from another file
oh
like this `views:
- !include /home/homeassistant/.homeassistant/lovelace/frontpage-newer.yaml`
For me line 14 looks off π€·
its the same as line 10 though
good catch, is one space off
Which also makes all the lines under one off
lol wow, thanks and there was two spacesafter the -
u know it looked perfect in Atom
my eyes r playing tricks on me
I was in awe after I noticed notepad++ could show spaces and tabs, that helped me a lot while troubleshooting my own codeπ
yeah i'm goign back to notepad++
So I'm trying to change the color of an icon based on the state of an entity. In customize.yaml I have the following:
device_tracker.mobile:
friendly_name: Mobile
icon: mdi:account
template:
icon_color: >
{% if is_state('device_tracker.mobile', 'home') %}
hsl(49, 98%, 60%)
{% else %}
hsl(220, 5%, 40%)
{% endif %}
I found out that for icon_color I needed Custom UI and after installing assigning a color works, but it doesn't work with the if statement.
Any idea how to solve this?
Also the if statement works in the template dev tool.
@polar kelp Thank you for your reply. Yes i configured plant status through yaml and after i added the card in ui
@tender burrow custom ui uses javascript templates, not jinja
whats the best way to get a dropdown menu in Lovelace? I cant use the Thermostat card, cause the portable AC I wanna control with IR commands aint a Climate device
@polar kelp Thanks I'll try that
Good morning. I have Dark Sky weather on Lovelace WebUI using... entity: weather.dark_sky name: Weather type: weather-forecast
The weather by the hour is correct on my desktop WebUI, however on iOS mobile UI, it's using GMT Time. Any suggestions on where / how to fix?
iOS app or Safari? Same result?
hi, is there any documentation on themes? like what is what, i have looked at so many themes and they all reference different things, it's very confusing.
@slow wave same issue on mobile Chrome as well.
@silk dragon and same on any other devices? Except your desktop? Sounds like some kind of localisation error π€·
agreed... I'm unsure how to fix such a thing
been wondering where this error is coming from , cant seem to figuer out what is causing this, any thoughts?
http://192.168.1.10:8123/lovelace/0:0:0 Uncaught TypeError: Failed to resolve module specifier "lit-element". Relative references must start with either "/", "./", or "../".
@prime umbra show us the top of your Lovelace file, where you import that module
what the raw editor?
@prime umbra posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/Yddfh7G4V4/
Thatβs the error from your home assistant log, right?
If so, try checking the browser console. There might be more info there.
yes
it seems putting the
popup_cards:
switch.wc:
card:
entities:
- sensor.power
- sensor.current
type: entities
large: true
title: test12
under resources made the error go away, at least not showing now
hmm still shows
Hello, I was wondering when editing the lovelace from the ui, how can i make a backup of this setup ? Is there a file stored somewhere on the pi ? If so can I just edit this file instead of using the UI?
the file is stored in .storage folder, file lovelace
Thank you !
Yup thanks, i've been using the old way and wanted to fresh install everything because i had an issue with my sdcard
I think i'm gonna use the old way
I prefer yaml by faaar
Is it because you are used to yaml or because you found some limitations ?
The raw editor used to sort my code alphabetically, which really screwed with my syntax when I started learning yaml, so I moved to yaml so the code doesn't change for every time I open the editor, it was really frustrating at the time
Ok that's understandable
Yaml itself is useful to learn since I'm going to learn some software defined stuff, so I would rather learn it properly than work with something that makes life hard π
Ahah
anyone know if there is a link to the update.json for the circle-sensor-card for the tracker component?
nice... I lost like several hours trying to get generic ip camera working and it seems that it was enough to add "default_view?latest" to url address bar to probably majority of my configs
how to force HA / Lovelace to always load that latest thing?
I am new to Home Assistant and am running a fresh install on a Raspberry PI
I have copied in themes and can select them ok using the Theme selector under Profile
I have used the following code from Juan's page, tweaking it by adding an ID to get it to show up in the Automation Editor under Configuration,which according to the logs runs on start up but the theme does not change.
- id: a_start_theme
alias: 'Set theme at startup'
trigger:
platform: homeassistant
event: start
action:
service: frontend.set_theme
data:
name: midnight
As a further check I have tried using the Service Tab using "frontend.set_theme" and {"name": "midnight"}
Again the theme does not change though I don't see any error messages.
I suspect it something simple but have not been able to find where to look next
@fervent fern if it's js file, when you include it in the url, include the ? for it to always update. Example:
- url: /local/lovelace/button-card.js?
type: module
@lyric sequoia wrong chat room, try #330944238910963714
ok, thanks for the pointer
Trying a picture elements card, I don't want to scroll to see the entire picture
So i tried this:
image: /local/floorplan/floorplan_small.svg
type: picture-elements
height: 100%
but it doesn't seem to resize the picture
whats the best way to get a dropdown menu in Lovelace? I cant use the Thermostat card, cause the portable AC I wanna control with IR commands aint a Climate device
input_select, which looks like
https://i.imgur.com/0eqfX7W.png
does that look good to you?
also aint a Climate device you may want to try https://www.home-assistant.io/components/generic_thermostat/
is there a card called input_select or could it be part of another card?
I wanna control a portable AC, but it needs 3 lists, cause it sends the entire command in each IR signal
sorry, you need to make aninput_select entity in your configuration and then place it into an entities card type
3 lists? or 3 items in a list?
like, if I record 16C with fan at lvl1, I need another for 16C with fan at lvl2 and 3
so I need 3 lists. FAN Lvl 1: temp 16-24C
FAN Lvl2: temp 16-24C, and FAN lvl3: temp 16-24C
dunno if a slider can work with remote.send_command ?
it could if you template it I think
ok, so it could send IR command FAN1/16C - FAN1/24C in a slider format based on the remote commands? hmm
Has anyone had any success with modifying CSS for the 'list-card' custom card using border-collapse: separate and border-spacing values? It doesn't seem to take in either the list-card or card-modder lovelace sections, or even throwing it into the table css in list-card.js ?
Update: Got it. If style: doesn't do it in ui-lovelace.yaml, it can be put under table { } in list-card.js and refresh browser cache.
Is there any way to have a glance card, and instead of listing every entitiy, do something like light.* ?
found a way to do it with a custom card: monster-card
@prime topaz may wanna check this card out. very flexible https://github.com/thomasloven/lovelace-auto-entities
@prime umbra I currently have 30+ popups in my set up and this is what I use: https://paste.ubuntu.com/p/Dwv9t4rWxg/ Using width: as a percentage
@polar kelp , if you get a minute...is there a way around to 'not' show sensor states when using custom:fold-entity-row? I've tried several different ways, but no success. https://pastebin.com/BMB9fUbw I feel as if I am missing a method that maybe I haven't tried?
Do you mean like this? https://github.com/thomasloven/lovelace-dummy-entity-row
and I just used that the other day for my coffee popup.... π Thanks...
Hi, i have following :
- icon: 'mdi:playstation'
style:
color: '#87BF50'
left: 39%
top: 65%
tap_action:
action: call-service
service: switch.turn_on
service_data:
entity_id: switch.hdmi_switch_ps4
how do i size the icon to be bigger ?
it's a picture-elements
and above is of type icon
can I do a conditional to only show cards to a single user \ device ? π€
@slow wave you have a couple different ways to do that; https://github.com/thomasloven/lovelace-state-switch or https://github.com/maykar/compact-custom-header or https://github.com/custom-cards/config-template-card
@mild veldt thanks, now I just need to figure out which one is for me π€
What do you all think about camera_view: live? I have had so many problems streaming live video to Lovelace and this works like a charm.
So I have an old ipad 1, and using custom cards causes safari not to properly work. I understand we dont put to much effort into an old ipad, but anyone been able to use an ipad 1 as a homescreen for homeassistant with lovelace?
So now that we have the stream component I've set up tensorflow to trigger recordings (awsome thank you devs!). But how can I play back my .mp4's in the frontend?
@paper ledge there's no such functionality built-in for such dynamic data yet. Only thing I can think of is a template input_select that uses a script to grep your recordings folder for a list of files and that selection is then used as that path for a picture card using the config-template-card. I'm not sure how to setup that template input_select.
Better solution would be a custom card for viewing recordings
This sounds like a good a fun one, I might look into it tonight. Not sure if my HA laptop can handle tensorflow, though, but not necessary for initial development π
@paper ledge are you able to specify the recording location? The only stipulation for a custom card would be that the recording path would have to be inside www folder
Hi. I'm hoping to create a "attention-card" that shows only "error"-states of mulitple services. I know it's easy to create one condintional card. But I want to gather a bunch of them .
Anyone done anything similar?
you could use monster-card
@mild veldt For now I'm saving the recordings as: www/recordings/camera_name/latest.mp4. I just started playing with this yesterday but stuff just worked out of the box so I immediately moved onto trying figure out how to have the recording available in the front end. The idea was to use this on the mobile phone so you can quickly look at the latest recording. Having the recordings time stamped and then be able to select a recording I figured was the next step. I assumed I would have to write a custom media player or some such. But if video can be rendered and controlled directly in the browser, so much better! I'm fluent in python but the lovelace/js stuff is greek to me.
and then only include where state is error
i do something similar, where I only show doors/windows that are open
Well. In some case the state is error, but others are not really errors (garage is open for more than 10 minutes and nobody is home) etc.
i would try to do the garage one with like a virtual device or something, which is managed by timers and logic
Or Tesla-charge is less than 30% and we are home, and it's not connected and it has been home for a while.... That's not an error. Unless I make a template sensor for it
@paper ledge cool. Mind sending me a PM with the tensorflow/recording docs? I haven't really looked into that at all yet. My only internal debate is if I should create a new card or revamp the existing surveillance card
it would seem like creating sensors which encapsulate your error logic would be the way to go
But I would like to not print that template-error-sensor, but rather the orignal sensor (open close garage)
@atomic glacier thanks alot for the sharing π
@prime umbra NP, not sure if it was what you were looking for
so frustrated :(
im trying to use a conditional card with state_not = null but cant get it to work... is it even possible?
been hunting for hours & havent been able to find any mention of people using conditional cards to filter a state that is empty π¦
@atomic glacier wasnt what i was looking for, but i appreciate you having share your popup code
i been having this error for awhile http://192.168.1.150:8123/lovelace/3:0:0 Uncaught TypeError: Failed to resolve module specifier "lit-element". Relative references must start with either "/", "./", or "../". and i have been trying to identify what's causing it, so far with out a luck, thought it might be the popup card causing it, but isn't π¦
i have been following some of your work, its a amazing, thanks for the share with community π
@merry pilot what entity do you have with a null state?
a sensor
In
it just shows blank or it says "null"?
shows nothing
in
try to get the value of the sensor. What is the value that comes up
@merry pilot what is the name of the sensor?
@elder pendant how do i do that? sorry, not super familiar with all this
Thanks! I'm actually driving right now, but I can look at it when I get back if you haven't found an answer by then. @prime umbra
sensor.todays_forecast_max
In
paste {{ states('sensor.todays_forecast_max') }}
What does it say in the right-hand panel?
nothing
It seems like it's not null then. It's just an empty string
so should i be using quotes or something? ive tried everything i can think off & cant get it to work
if i just insert quotes for the state_not then i get an "Error in card configuration."
What component is this sensor from?
I don't think empty strings are supposed to be allowed in an entity state
ah. that would make sense.
the component is a community made one (https://community.home-assistant.io/t/australian-weather-forecast-using-bom-public-ftp/71195)
I am using a sensor template to make a sensor from states.sensor.bom_forecast_adelaide_0.attributes['Max Temp C']
as i dont know how to access that sensor with a space in its name from inside a card.
After about 5pm the max temperature value doesnt exist from the bom website, so this happens.
@elder pendant the obvious answer is i need to understand all this more! lol
Can you screenshot the original entity you made the template sensor from?
is this what you mean?
hmm.... upload.....
seems the attribute disappears after 5pm
which is why i thought the sensor woulr report null... maybe.. obviously not though
Hey I had a quick question. Anyone know how to get custom icos to show up for Persons like the emojii DrZzz has in his "Who's Home" card? I've uploade a .png file to my /config/www/ directory and then specified enetity_picture to point to /local/image.png but it doesnt show up. Although If I click on Map in the Left Admin panel the image shows up there. Just not in my entities card for "WHo's Home". Been working on making a Harry Potter "Weasley Clock" so to say
@elder pendant if you have any suggestions how to fix my issue please let me know. there are obviously a few ways to fix it, like making the template return a value/string if the attribute is missing, but i dont know how to type that out in YAML. Thanks for your help, its been much appreciated. (going to bed now, 5:30am!)
hi all, I have ecobee sensors all over the house and was trying to make a nice view for them. Any suggestions on how I can make this better? Using a horzontal stack with a glance and mini-graph-card https://imgur.com/a/RjhYA1X
mini-graph-card looks awesome, but not sure I can just embed or overlay the living room icon as a state image or something...?
Lovelace indentation is unhappy. Can someone look at what I've written and explain why its broken?
it gives similar complaints to the lovelace ui
I just don't understand the indentation i think
and old code examples give errors
if you put that into the yamllint thing, it tells you the problem starts at line 32. everything from line 32 to the bottom has 2 spaces too many
if you remove 2 spaces from 32-36, it's valid
Did that. I get "Unable to parse YAML: YAMLException: duplicated mapping key at line 32, column 5:
type: state-badge
^
From lovelace
Hi there... anyone interested in trying Floorplan for Lovelace? Send me a PM as I'd like to get a few people to test it out... thanks!
I'm in
so that is because you have a duplicate type mapping. you either need a - in front of the type on line 32 or change that key to something else if that's not the correct key
Sorry, where is the conflicting line?
line 32 needs a - in front of type
My brain is melting and ibupofen isn't helping. But what line does 32 conflict with?
you have type: already mapped in that same block
picture-elements?
yeah
hmm. its sort of clicking. Thanks. And indent 33+ by 2, right?
entity: automation.noah_s_evening_light_off
style:
top: 30%
left: 30%```
New error, no lines: Your config is not valid: TypeError: Expected a value of type [object] for views but received undefined.
views: empty at the top?
no error on save button, but...
"invalid configuration: elements reqiured
{
"type": "picture-elements",
"image": "/home/home,,,,,.png",
"elements": null
hmmm, I guess I need to add elements
so.... type: state-badge was something in the elements
but by indenting it to remove errors, nothing is in elements
Pretty good, no error on save or refresh. The image isn't displaying but I don't know what lovelace can even access right now
i find the file paths in lovelace to be kinda weird
anyone using mini-media-card with some kind of filter to pick up every possible media_player.yyy/xxx?
like, every unit playing from Plex for example
or my file that came out of gimp wasn't formatted exactly the way lovelace wants
sorry, I haven't got to plex integration yet
My tap_action: toggle isn't working for my switch I typed the yaml code for, but the one but together by the UI controls the light just fine. Ideas?
hey HA Peeps, is there any way to launch apps (Android) from a lovelace card? I'm trying to build a simple UI for wall mounted tablets running Android - I can control most things from Lovelace but it would be nice to provide quick access to full apps for deeper control. e.g. page of media devices with an icon to launch Play Movies, Netflix, Hulu etc.. to browse and cast... I know other dashboard tools such as ImperiHome can link to installed apps etc, just wondering if anyone has created examples with deeplinks?? thoughts? Thanks in advance. M
hi, anyone using the alarm panel card ? i am using it with a manual alarm and i keep getting Invalid code given for disarmed but the code is correct, i know that because i can use it from the State panel on the alarm panel entity.
@limpid radish You won't need card-modder to use slider-entity-row, though, if that's what you mean. I just used card-modder as an example in the instructions.
Thank you :) @polar kelp
Hi there. I got it working now but the slider doesn't change my input_number, why's that? π³
the regular slider within the card works tho π @polar kelp
Code and (preferably) a screenshot
Also, check the logs: https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins#common-problems
@limpid radish posted a message that is too long, it is moved here --> https://paste.ubuntu.com/p/vxgC67PNyn/
Ah
logs dont show anything regarding that (as far as I can tell) π€·
Slider-entity-row only supports integer values at the moment
oy okay, merci though :)
(without the screenshot, this could have taken a while for you to see π )
@polar kelp Thank you so much, got it working now. I set my input_number to be an integer from 1 to 100 and afterwards divide it by 100 in the automation that controls the music with a float value. π thanks!
Can I hide the value of input_number, that is displayed to the right of the slider? :)
Is it possible to only show sensors that has a numeric value above certain number?
@limpid radish hide_state: true
@thick bronze https://github.com/thomasloven/lovelace-auto-entities
oh god, i thought that would hide the slider π€¦ π€¦ π€¦ thank you
Oh thanks Thomas I'll look into it!
If you want to hide the slider, the best way is to not use the slider π
i read sth about hiding a slider when the value is 0 so i thought... haha anyways that was a lil stupid, thank you! π
That's hide_when_off
is there a simple and dynamic scaling way to get access to an entities specific attribute and show a graph. I have several devices tracked by a device tracker and want to show the battery level in a graph. I dont always want to change my configuration.yaml and restart the application just to create a new sensor template. Is there any plan or easy way to work on attributes as it already is for states?
@mild veldt But thats not what all the stuff I read says! But you're right. Thanks. It works now.
That's how it used to be, so I'm sure you can find examples out there like that. But when in doubt, check the official docs
@polar kelp found a cool trick with fold-entity-row(umm..you may already knowπ€ ). If you mod the height of the card, the card doesn't drop down and the contents overlay on what is below it without shifting the card underneath...in case anyone has a need. https://imgur.com/a/gDLTiuv
Hehe. Well enjoy, I guess. That only works because balloob won't allow me to fix it XD
Can anyone share the images size they use for floorplans with picture-element ?
im struggeling to get a custom card installed: https://github.com/benct/lovelace-xiaomi-vacuum-card
i copied the *.js to the www folder and added the ressource in the lovelaceui file. still i get an error that the custom card does not exists
hmm ok tried but i still get the error "custom element does not exist"
resources:
- url: /local/xiaomi-vacuum-card.js?v=2.1.0
type: js
title: Home
views:
anything wrong with that?
Can you access the js file directly?
( http://<your-ha-ip>/local/xiaomi-vacuum-card.js )?
Did you restart HA after creating the www directory?
No
i have a subfolder in www which contains backgrounds for other cards, could this interfere?
Nope
stange
Are you sure you're spelling everything correctly?
guess so, i just copy pasted from the instruction on git
Double check that it is in fact in the root of www and it is spelled correctly. It's also possible there is a permission issue going on
just relaized something: the ui-lovelace.yaml in the config folder does not comprise resources that i added via the editor in the gui, is this supposed to be the case?
If you're using the gui then you cannot use ui-lovelace.yaml. You choose one.
i actually never used the yaml file and was not aware its there, should i delete it?
If you're not using it I don't know why it would be there to begin with
could be a leftover from the transition to lovelace back when it was introduced
is there any additional way of troubleshooting a custom card not loading that i can do?
Did you verify the location of the file?
Is there any news on fixing the Y scale of history graphs? I always wanna see 0 to 100%... π€
Quick question ... is there a template to use for publishing an mqtt message in lovelace ?
seems my mqtt buttons are broken π¦
i just installed a random custom card an that worked right away
maybe there is something wrong with the specific card (xiaomi-vacuum-card)
Did you follow the troubleshooting steps in the guide Ian linked?
The browser console usually has some really good information, for example.
i did but the log file did not have any specific entries related to this custom component
hold on i misunderstood something, will check the console
ok well that ist strange: i just opened the HA webinterface using chrome to check the console as suggested in the documentation
actually in chrome the custom card loaded as intended
but in safari i get the error message

any idea on what could be the problem here?
@wind spire add a version number to your script as @polar kelp documented here: https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins#updating-a-plugin
thanks for the suggestion, will do so, actually i just trying to get the custom_updater and tracker card working
ok i got the custom card, the custom_updater and tracker card working
however the tracker card does not recognize the version of the installed vustom vacuum card allthough i provided it via ```resources:
- url: /local/xiaomi-vacuum-card.js?v=2.1.0
type: js```
but is actually shows the version available on git
anyone have an idea why my images (jpg) for picture entities are black and white?
im just using them as a toggle to start a radio station to heos
@honest herald that's by design https://www.home-assistant.io/lovelace/picture-entity/ for when off. It is to represent the state of the entity you are controlling. If you entity doesn't have an on state, I wouldn't recommend picture entity
@wind spire you don't have to match the version of the actual script from git, you just have to change the version number in your yaml via ?v=3to tell your browser that he has to request a new copy of the script from homeassistant. Read through the link I provided to understand the concept of it. π
@wind spire AFAI this version spec is no longer req'd. Just change /local/ for /customcards/ and the caching mechanism isn't applied anymore. Any changes to the files in this folder are applied after a refresh. I think you also need to add "?track=true" instead of the "?v=1234".
It's still the same actual physical folder (www) but uses some jiggerypockery to disable the caching
@limpid radish and @sleek swift: thanks for looking into this. I just pressed update all in the tracker card and now itβs working.
A typical local entry might look like - url: /customcards/custom/dark-sky-weather-card.js?track=true type: js
A github version like this: - url: /customcards/github/thomasloven/card-tools.js?track=true type: js
I think you don't need track=true either. It should be the default behavior. But I'm not entirely sure.
It should be needed but I think there is a bug (feature?) So you don't have to π€·ββοΈ
I have no clue about this as I just got into custom cards, but I'm glad it works! π
is there a way to resize a picture element to always be one screen-size tall?
Hey I had a quick question. Anyone know how to get custom icons to show up for Persons like the emojii DrZzz has in his "Who's Home" card? I've uploaded a .png file to my /config/www/ directory and then specified enetity_picture to point to /local/image.png but it doesn't show up. Although If I click on Map in the Left Admin panel the image shows up there. Just not in my entities card for "WHo's Home". Been working on making a Harry Potter "Weasley Clock" so to say
can you browse to local/image.png in a browser and see it?
yep
and it removed the blue little person icon next to my name, but wont show the image I selected
but if I goto States and Click the Entity Dropdown the image shows there
the image is 64x64px BTW
ive also tried it as a .jpg
Anyone know if it's possible to have a lovelace button to toggle blinds up and down? As for now I've got one button for down and one for up.
You can make it a conditional card that shows one button or the other depending on the state of the blinds
What kind of entity are the blinds?
name: Network Usage
icon: mdi:earth
show:
icon: false
name: true
entities:
- entity: sensor.speedtest_download
name: Download
- entity: sensor.speedtest_upload
name: Upload```
Anyone that can explain why I just get a straight line ?
@honest herald I've used the same pic for both states and that works type: picture-entity entity: light.bed_light state_image: "on": /local/bed_light_on.png "off": /local/bed_light_on.png
Oh that can done? ool because I'm not sure another way I can use a jog as an button
il try that out later. I also thought about just using an input list
I've had a few situations where I wanted the pic to stay and the above works fine as long as the states are correct. You can add 'unavailable' as well if needed. I use that for a few dummy sensors that have pics
Looks like im going to have to add an idle @atomic glacier
Hi community! I have multiple 10" Samsung tablet mounted on my walls,, running Fully Kiosk with Home Assistant. I have a vertical stack card running 3 picture entities with live camera feed with cameras running in Blue Iris. My problem, scaling/resizing. When I reload to web ui, or refresh Lovelace, the cameras shows perfectly. But when time goes (minutes, hours) the camera pictures resizes. I want them to stay at the excact point, same scaling++ as they are after reloading. I've tried using aspect_ratio 16x9 under each camera, that results in the picture height/width stay the same size, but the camera inside will zoom in when time goes. Aspect ratio 16:9 and without aspect ratio results in resizing the cards. Can anyone please help? Thank you
Hey, I'm having some issues with the label_template and I can't seem to figure out what I'm doing wrong... if I for example copy the example from https://github.com/custom-cards/button-card#templates-support (changing the entity to something else that is valid) I never seem to be able to get a label to show at all
I've tried all kinds of configurations and I just don't seem to be able to get a label showing
did you just plug that into manual editor of love lace?
I want to imitate what you did and see if it doesn't work on my machine too
yeah, I just copied the template into a yaml and reloaded lovelace
Well when I go into my love lave raw editor and paste your code
it says it can't find the custom button card type
oh forgot to mention that it's a from a custom card type
Ooooooh
Derp
I really need to get Samba running so I can transfer files quickly to my Pi
Shit
if you have more stuff running on your rpi, I highly recommend getting a k8s cluster going
I don't have a config/www folder
a k8s cluster...
back to google
This looks complicated. All I need is to occasionally copy files over to the pi one or two at a time.
right now all my Pi has going on is HA, Pi-Hole, Grafana, and Influx DB and Mosquitto
goddamnit, I just found out that I don't even the latest version of that custom card going on
I updated and everything is working now
sorry for troubling, thanks for the help!
Happy to...have listened!?
can anyone tell whats going on with this why its "undefined"?? - type: "custom:button-card" icon: mdi:lightbulb name: Office Dark tap_action: action: call-service service: scene.turn_on service_data: entity_id: scene.office_dark
Wed May 08 2019 21:26:04 GMT-0400 (Eastern Daylight Time)
https://ha.mydomain.ca/local/button-card.js?v=1:235:30 Uncaught TypeError: Cannot read property 'entity_id' of undefined```
Hi guys I have a new Xiaomi Roborock and try to integrate it to the lovelace UI. Currently, I am struggling with the vacuum.set_fan_speed function. How do I get a dropdown select box where I can choose and set the fan speed?
If I take a look to the entity at the dev section in hassio there IS a dropdown to set the available fan speed option but I had no luck to get the same in Lovelace π¦
Do I have to build this by myself with an input select definition and corresponding automation?
Yes. Or this: https://github.com/thomasloven/lovelace-more-info-card
@polar kelp thanks
but how does hassio build the input select in the more info screen of the entity?
and why can't this function used directly by the user in lovelace?
There are several reasons.
- The more-info screens are highly specialized to each integration. Lovelace is meant to be more general.
- Most integrations are much older than the lovelace interface and have not had it as their focus.
- The idea behind Home Assistant is home automation. You shouldn't have to poke around in the settings manually.
etc.
@polar kelp thanks for clarification π
I run into another "problem", can I use an entity attribute for initializing options of an input_select?
what I have tried was:
roborock_fan_speed:
name: Leistung
options: "{{ states.vacuum.rockrobo.attributes.fan_speed_list }}"
initial: "{{ states.vacuum.rockrobo.attributes.fan_speed }}"
icon: mdi:fan
states.vacuum.rockrobo.attributes.fan_speed_list contains a list like [min,medium,high,max]
Generally, if you can use templates in a parameter, its name will tell you so.
I don't know how this should look like
You'd have to enter the options manually, and then have an automation set it to the correct state when Home Assistant starts.
You can't be sure that the xiaomi component will load before your input_select, after all.
ok but I can get this also from my mqtt server which still have the list of values,
but I cant find a way to build a list for the options dynamically
How often do you expect it to change?
not that often, the thing is I have a source that provides the possible values and to set this values manually in the input_select feels like a bad practice
also when the options changed in the remote source i have to remember to change also the input_select options
I'm trying to use custom icons to create a sliding-gate cover. Is it possible to use .png files for template icons? Can anyone point me to the appropriate attributes required for using custom .png images? Thanks in advance
I've tried 600x600 sized .png - no image shows... files were placed in /config/www/icons/ and referenced from /local/icons/
@polar kelp ok I got it to work with a python script
I think the main issue is that home assistant parses jija generated contructs as string
And also, again, that vacuum.rockrobo doesn't necessarily exist at the time your input_select is set up.
That means no entity is available necessarily at the time input_select, templating and so on is set up?
How do I know which entity is available for templating and other customizations?
Just found the entity_picture_template, and allows use of a custom .png icon. Still can't get it to fit/format correctly, any tips on attributes of .png?
@opaque lark If you can use a template somewhere, it will usually tell you, like template_data: as opposed to data:. And that will always be in things that are used long after the bootup process is completed, like in automations and stuff.
@polar kelp ok thanks again
@polar kelp Is there any advantages or disadvantages between globally located popups or placing them in scripts and calling them up that way? Are they equal from an executable stand point or other reasons you would use one over the other? (aside from code being located in scripts vs. lovelace-UI) I have several that are in both places and have tested, but thought I'd ask the expert...
popup-card vs browser-commander?
yes
Well, popup-card doesn't require a restart of home-assistant to change something, but it locks up one of your entities' more-info dialog.
Other than that, they're the same.
Okay, I can deal with that part, I have 30+ dummy entities, THANKS!!
can someone confirm this strange behaviour I'm seeing:
if I render a view in 'panel' mode (panel: true) the configured theme isn't applied
in other words, this combination doesn't work:
panel: true
Hello guys, what's the best way to make Lovelace look like LCARS form star trek? where should I look for custumizing lovelace?
@simple finch there has been a few that have done that with HADash/AppDaemon, but w/LL you can pretty much do what you need
@fair ibex does all the other themes change as expected?
the theme is applied as soon as I comment out panel: true
it does work if I choose the theme in the user's config, but that is not what I want, I want it to be auto-applied for this specific view
(if that didn't answer your question, please rephrase π )
other themes aren't applied either if it's in panel mode
so to me it looks like a bug where theme isn't taken into account for panel mode
@fair ibex checking mine now
Appears to be working here...not sure what changes you are trying to make, but the view overrides the themes setting at the card level, eg. font, card backs, border radius, etc...
I don't use headers, but that can be set as well on views
@atomic glacier
icon: mdi:tablet-android
id: tablet
path: tablet
background: black
theme: 'Kiosk'
#panel: true
cards:
# main container
- type: vertical-stack
cards:```
this is the config for this view
btw, I noticed that override since the theme's background wasn't applied, so I had to configure it in the view
but I don't understand how toggling panel changes the rendering of the theme ?
I need to start playing with Love Lace more. Right now I have it on a meh looking Solarized theme
I should do some kind of Black and Orange look.
I've never placed quotes around the theme name, not sure that matters, but changing the elements at the view and card level is what I tend to do and my main theme is for basic colors@fair ibex
I think my main obstacle is that it feels like I'll have to a lot of reloading and F5ing as I slowly adjust and fiddle with the colors. Is there some kind of "WYSIWYG" color editor?
well
the use case is, I had a spare crappy android tablet which I'm turning into a home automation panel, so everything on the 'tablet' view needs to be dark to not be too obnoxious
but my main usage (ios app + regular webinterface) needs to stay the same ...
@lament fulcrum a lot of info here: https://www.w3schools.com/colors/colors_picker.asp
I've heard that Love Lace is currently bad that kind of thing
the quotes don't matter in this case, as far as I "get" yaml
with seperate users/devices having totally seperate views
@lament fulcrum yeah that's why I made a separate view for the tablet
and the 'embedded' browser omn the tablet points directly to that view
Oooh.
I wonder if I could set up my old fire tablet to be a HA panel
I don't really use it anymore
(it's quite cool actually: the browser leverages the camera for motion detection, so the screen turns on if I'm in front of it)
@fair ibex I am using the same thing...crappy android spare, but the view level is where I set everything. Probably why I don't have that problem and I don't use headers either
Ooooh
I remember I toyed with Android IP Camera on my old Samsung
It was....not fun
1% battery loss PER MINUTE
also my mount kept falling off the wall ^_^
is it even possible to define a complete theme at the view level?
I do, well let's say...the elements that I want to change can be
lemme show a pic of my themed tablet view
the annoying thing is that, since I can't use panel: true , there is some padding on both sides
so it doesn't align properly now (some elements are too squished together)
@fair ibex ahh...I see. I have everything in custom cards to leverage the customization and sizing like here: https://imgur.com/a/7pdFLoR each screen is set by pixels so sizing stays in tact
need to find or make a decent mount though
ooh that's nice! I aligned everything by leveraging stacks a LOT
so it also kindof works on different screens
I want to customise as little as possible, since homeassistant is still changing all the time
like you, I just designed a different one for the screen sizes
@lament fulcrum if I use panel: true, the theme is not applied, which I believe to be a bug
:/
if hte theme is chosen at the user config level, then it is applied
I wonder if you could hack the theme
but whenever I have lo re-login, that setting is gone
Like how Google's inspect element can change the look of a page.
Then again how you'd do that on a tablet I have no idea
you can easily create custom themes
and it could be possible to write some javascript to re-write some element but that feels to complicated for what I want to achieve
Fair enuff
I think it is strange that it does work for @atomic glacier though (theme defined in view + panel mode)
@fair ibex you are correct. I had some styles still overriding the theme. I just made a new view and tested your issue and confirmed on Chrome browser that theme isn't applied while in panel view.
okay, so it's not isolated to me, I'm glad π
so, how/where do I file a bug report?
not sure of the process for an issue haven't raised one yet, aside from maybe Googling, @elder pendant may have direction
https://github.com/home-assistant/home-assistant-polymer/issues/new it lays out the instructions for posting an issue in the issue template
you need a github acct for that though π¦
... yeah? Is that a problem?
well... I don't have one and have (for most people strange) reasons not to make one
Then you don't get to submit issues π€·
funnily enough, these reasons are also why home assistant is the preferred domotics system for me π
(keep everything local, no tracking, etc)
if it annoys me enough to override my ethics I'll submit it π
thanks for the link (and the awesome work on homeassistant!!)
I'm okay with GitHub tracking me do you want me to submit the issue for you
that would be mighty kind of you!
for github.com, you can just make an anonymous account with no ties to your real identity
yeah that's not the problem... the problem is that it's owned by Microsoft and every click is fed into their analytics
@fair ibex known issue: https://github.com/home-assistant/home-assistant-polymer/issues/2839
aha! cool! thanks @mild veldt
I have an entity filter and glance combo card showing how is home, but when noone is home I want to hide the card entirely, is there a way to do that?
@elder pendant How do I make it so all conditions don't need to be met for the card to show, meaning everyone doesn't need to be home for the card to show up
I thought there was an "or" option, guess not. You could make a template binary sensor that returns true if anyone is home
Oh true! I'm dumb! I already have something like that i could've used!
Thanks for the quick help!
Or a group of the device trackers/person entities
Is a group of person entities the cleanest way to say if the house is occupied or not? (Barring using any other logic)
Depends on who you ask. It is probably the easiest way
I feel like home occupancy and presence detection is such a complicated thing. I have so many sensors and device trackers available, but i'm not sure where to start. Right now I have 3 persons, which i have a good handle on. But that doesn't account for things like the cleaners being there
More a #330944238910963714 question really π
yep
Hi community! I have multiple 10" Samsung tablet mounted on my walls,, running Fully Kiosk with Home Assistant. I have a vertical stack card running 3 picture entities with live camera feed with cameras running in Blue Iris. My problem, scaling/resizing. When I reload the webpage, or refresh Lovelace, the cameras shows perfectly. But when time goes (minutes, hours) the camera pictures resizes. I want them to stay at the excact same point, same scaling, size, zoom level ++ as they are after reloading. I've tried using aspect_ratio 16x9 under each camera, that results in the picture height/width stay the same size, but the camera inside will zoom in when time goes. Aspect ratio 16:9 and without aspect ratio results in resizing the cards to adjust to the fit the whole camera picture. Is this a Blue Iris issue? This also happens in a webbrowser on my laptop. Can anyone please help? Thank you
@polar kelp with your useful markdown card, can you do a if entity <0 then 0 else return a state/attribute? Im struggling to make it work. Im trying to report the brightness of a light but when its off the attribute doesn't exist so trying to avoid "Brightness unavailable%"
Show me what you tried
off the top of my head I tried
[[ if(light.yeelight1.state != on, "0", "[[ light.yeelight1.attributes.brightness ]]" ) ]]
[[ if(light.yeelight1.state != on, "0", "[ light.yeelight1.attributes.brightness ]" ) ]]
[[ if(light.yeelight1.state != on, "0", "{ light.yeelight1.attributes.brightness }" ) ]]
"on"
[[ if(light.yeelight1.state != "on", "0", light.yeelight1.attributes.brightness) ]]
Awesome! Thanks that works. Since the readme says it needs to be a template, does not need the additional [[]] as its already inside a set?
correct
I've seen others have the issue where the error Custom element doesn't exist: hui-empty-state-card. { "type": "custom:hui-empty-state-card" }. Was there a cause identified. I've recreated a fresh configuration.yaml file and I still see it. This is using version 0.92.2
Do you have that custom card installed properly?
I will admin I don't know much about custom cards. I am coming from HA version 0.42 π¬
This is a fresh install, so I would think it would be included?
Custom cards are not included. That's why they are "custom"
Follow this guide to add your first custom plugin to your lovelace configuration
I guess I don't really understand. I don't think I've asked for any customizations yet
Anything involving the word custom in a card means it doesn't come with stock home assistant
You get 26 default card types
@slate scroll are you saying that your default config is throwing that error and that you haven't added or changed any cards yet?
Is it something in configuration.yaml that is causing it to look for this?
no. but the place to look depends on whether you're using yaml or storage mode
if you're using yaml mode I think it's lovelace-ui ui-lovelace.yaml in your config dir
bet you can't guess who uses storage mode π
if you're using storage mode, click the 3 dots in the upper right, go to edit, then you can click the 3 dots again and go to Raw config editor and look for custom:hui-empty-state-card in there
I don't see a ui-lovelace.yaml file in my config dir, just automations, configuration, scripts, secrets, customize, and groups
ok, looks like storage, which is probably the default (again this is a fresh install)
yeah
views:
- badges:
- person.will
- sensor.yr_symbol
- sun.sun
cards:
- type: 'custom:hui-empty-state-card'
title: Home
path: default_view
so I guess I can just delete the card then? that's the entire contents of my raw config
sure π€·
I have no clue how that got in there. I installed HA, added an MQTT Broker, then 1 MQTT switch and started to see that error, so I blanked out my configuration.yaml and still saw it
That seems to have fixed it for now. thanks for walking me through that. seem like a lot of stuff was added since 0.42
Yeah just like one or two things π
no joke. I feel super lost at the moment
I'm working on a new view in lovelace and everytime I go to the three dots and then refresh I get prompted to "take control over lovelace"
why?
no matter what I choose my UI gets messed up
never mind, my fault - I'm using !include to load my views and I renamed one of my yaml files so HA couldn't find it
any reason why this is undefined? can't figure it out.
'''custom:button-card"
icon: mdi:lightbulb
name: Office Dark
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.office_dark'''
Log Details (ERROR)
Wed May 08 2019 21:26:04 GMT-0400 (Eastern Daylight Time)
https://ha.mydomain.ca/local/button-card.js?v=1:235:30 Uncaught TypeError: Cannot read property 'entity_id' of undefined
does the card not do scenes?
Can you paste that somewhere?
The formatting is all off and I can't tell what the spacing looks like
` is the symbol you want
im on my phone I posted this yesterday with no reply. I am able to refer to it?
if not il have to post it again later. but I'm pretty sure the spacing is correct in the original
Change service_data to just data
Oh so thee docs on github is wrong?
No. I'm getting that from the page that I found on github
can you link me pls
https://github.com/custom-cards/button-card#action this is the custom card. What are you looking at @leaden raft ?
yeah so I do have it right
and look under lovelace