#frontend-archived
1 messages Β· Page 145 of 1
Hi dont know if this right place to ask, but try to fix today why not getting custom cards working my Hass.IO. First time try to get them working, use picture elements view on my tablet and try to add custom cards there but not worked. Every time i try add custom card i get this error (now try to get this working, but i try other custom cards too and they not worked)
Custom element doesn't exist: bar-card.
This doesn't seem right:
- url: /local/custom-lovelace/bar-card
type: js
Change to this
resources:
- url: /local/custom-lovelace/bar-card/bar-card.js?v=1.0.0
type: js
is there a way to add a markdown link without it being in a card like this?
https://imgur.com/H5paMSB
@icy patrol Use https://www.home-assistant.io/lovelace/entities/#weblink
@raven nacelle thanks - however, the weblink still shows in a card
i just want the link to display and not inside a card
https://imgur.com/H5paMSB
this is an example of how it looks
display where?
just under an exisiting card
use a vertical stack
i guess everything needs to be in a card?
Yes, things have to be in cards
ok
is there a way i can make the card transparent
don't know....look at themes
@raven nacelle
this did it
style: |
ha-card {
--paper-card-background-color: rgba(0, 0, 0, 0.2)
border-radius: 15px;
overflow: hidden;
width: 14%;
margin: auto auto;
padding-top: 0px;
box-shadow: 0px 0px 0px 0px
}
with a markdown
I have a strange issue that I need help trying to resolve. I had trouble updating from .104.3 to .105.x. Lovelace would not load and no error messages in ny of my logs. What I have tried is updating and then using samba to modify my Config to just the default and also delete lovelace file. This allowed me to load lovelace in my browser. I then slowly added my configuration.yaml and rebooted to test to see if there were any issues. There were none. I then started addin my HACS custom devices and all that I had before added with no issues. I can reboot and lovelace loads. I then started adding my cards. After one added, I could not load Lovelace after a reboot. They only way that I was able to get Lovelace back was to start again with a default config and no lovelace. This makes no sense. How come it doesn't load safe mode? Again, there are no errors in the logs. Is there anyway for me to try and figure out what the issue is?
@heavy pasture in 0.105 safe mode activates when there is an issue with your core configuration. 0.106 adds safe mode if there is issues with lovelace
https://rc.home-assistant.io/blog/2020/02/17/release-106/
how are you editing lovelace?
lovelace errors would be in the browser's console window, not the HA logs
I have tried in the raw editor. I was going to switch over to yaml mode, but it failed again.
The errors were manifest json, iconset.js and I believe a lovelace error. Not up right now. Trying again.
.104.3 works great. I have had all types of issues trying to update. First, nothing shows in the config check. I have 11 breaking issues listed, but none of them are any of my addons.
ssh, automation and samba work
Why I have been trying is slowly load my configuration.yaml, reboot and then see if it loads. All of it has loaded. I then try loading lovelace HACS add on. This seems to work. When I start added my old cards, lovelace fails to load
i disabled a couple entities in HA via registry - but now i want to add 1 back, where do all my disabled entities go?
I have the code saved in a txt file and I add each card one by one to the raw editor.
Without any errors, it is hard to figure out which custom integration / component / add in is preventing lovelace from loading.
@heavy pasture did you look at the browser console output?
I did. What am I looking for?
I have posted all the errors before and was told to look at either su or core logs and not the browser
well I'm not going to scroll through chat looking for when you posted console errors π
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs.
well I'm not going to scroll through chat looking for when you posted console errors π
@mild veldt I'm not asking you to. I will find the error and post. What I asked is what am I looking for?
By the way, I posted the error and several others on Github. I am looking for it now
20-02-06 16:04:19 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
hmm, websocket issues shouldn't be be related to Lovelace changes
Unless the backend is rate limiting the frontend because of bad behavior...I do lots of Lovelace dev work, but am not too knowledgable about the websocket behavior
What repo did you report this to on github?
There are several. One is 31560
I am a fairly new user, less than 8 months, but I am familiar with coding. I am a retired ee and understand directions, etc. I know I am most likely using something that is custom, untested, etc that is causing the issue. I would like to help and make it better. Just need more knowledge to try and figure out what is going wrong.
Unless the backend is rate limiting the frontend because of bad behavior...I do lots of Lovelace dev work, but am not too knowledgeable about the websocket behavior
@mild veldt Is there a different support category I should be posting in? There were a lot of people posting on the forums when .105 came out with very similar issues.
That was different
They did not read, and just updated
A good start for you, is to share the active config + browser console logs.
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs.
They did not read, and just updated
@wheat current What does they did not read mean? I May have a different issue also. I just added to my config.yaml file just the line to change lovelace to yaml. Did a restart and lovelace loaded, but no other tab worked correctly. Right now I am trying a ha core rebuild. My configuration.yaml right now is very basic (default plus lovelace and duckdns). Lovelace is just what HA built. No custom cards added. I have tried a fresh install and using my current lovelace and configuration as a guide I tried to build a similar system. I would only get so far and I would be back in the same lovelace not loading boat. I also tried a fresh install and restore a snapshot and that failed to load lovelace. Something in the code changed from .104.3 to .105 that is causing me issues with my custom system.
I really dislike that quote "feature", bad move discord!
I really dislike that quote "feature", bad move discord!
@wheat current I also hate it
@wheat current I also hate it
@mortal cape I wonder how deed the rabbit hole goes?
(probably that's it, fortunately)
Hi there, I have a problem with my UI setup: I use the custom:floorplan-card to integrate an SVG-file with some nice effects, etc. into lovelace. This works all very well without issues. However, when navigating on the left menu to another page in HA (e.g., from lovelace to profile or from supervisor to community) to whole web page gets stuck. Also reloading does not work. The browser needs to "stop the webpage" because it hang. When then loading from scratch the webpage gets loaded without a problem, but again navigating to another page gets the browser stuck. This could be verified with firefox, chrome (desktop) and fully kiosk (pad). Any help, suggestion?
Good thing the block feature still works

cleared the cache?
@muted inlet yes. no difference.
I changed back to the standard lovelace ui from the yaml mode and all the tabs work again.
I am sure it is something to do with your ui-lovelace.yaml. Start simple...one card at a time. You mentioned Did a restart and lovelace loaded, but no other tab worked correctly. Sounds like issues with ui-lovelace.yaml
I'll try again tomorrow. I just copied the text file that ha created and pasted it into the ui-lovelace.yaml. I'll start with a very minimal one and work from there.
Still not understanding all the connections. Why would Lovelace load but the other tabs not?
what do you mean Lovelace load but the other tabs not?
may be you have not defined tabs correctly
When I added in my configuration.yaml the Lovelace.yalm mode and rebooted the overview that shows Lovelace loaded. All the other tabs had errors. When I reverted back all the tabs work again.
yeah, that just sounds like your ui-lovelace was not quite right
Ok. I'll try again either later tonight or tomorrow with the minimal Lovelace.yaml shown in the docs.
Why would a bad Lovelace file make all the other tabs go bad?
garbage in -> garbage out
I created the file by copying the raw editor text and pasting it like the direction said. Hopefully with the minimum one I can figure what is going on. My issue is that I am not getting any errors in the logs.
I just got HAC up and running. When installing custom cards for love lace, I add the two lines to the lovelace raw config (type: module, and the URL to the .js file)
Should that be enough to get the card to appear in lovelace or do I need to do something else, because I don't see anything getting added
You won't see a new button for it in the UI, you'll need to do a manual card
Ah ok, now I got it, thanks
how do the calendar cards (ie atomic) load more than the next event if there are no sensors for it
Ah. Ok
I assumed it did with the calendar.yaml change to get more than 5 events
I wonder what the reason is
Question for a programmer haha.
try that too, but not helped
@pastel valley Whats inside of your www folder?
@stiff quail No, you can later revert, but obviously all your customisations are then gone
@split granite how do you revert?
~irc @stiff quail
@stiff quail Discord isn't like IRC, you don't have to tag people on every response. Keep in mind that every time you tag somebody, they get a notification ping. That can very quickly become annoying and people may block you.
I think you just have to delete .storage/lovelace, but I've never understood why anybody would want the auto generated UI so I'm not sure π€·
How can I troubleshoot the frontend?
When ever i open a overlay/popup the whole page freezes for good
edit:
Huh.. only got this issue with the android app and the brave browser π
Firefox is working fine
thanks Tinkerer - I've had a good play and I am enjoying lovelace
do you know why this wouldn't work
resources:
- type: module
url:
/community_plugin/custom-header/custom-header.js
/local/timer-card.js
how can I get two modules to work?
- type: module
url: /community_plugin/custom-header/custom-header.js
- url: /local/timer-card.js
type: module
Is this the way to get the timer-card and custom-header to work?
Yup, standard YAML
thanks π sidenote: have you ever used Glances?
Why does the custom state switch want to use up room in LL even though the states match was false.
https://imgur.com/5Gv0GrK
@icy patrol I haven't used state-switch to 'swap' cards depending on the state of an entity much, but AFAIK it has to hold the place in your lovelace view so it has a place to display when the state matches. Not the same way that a conditional-card does. Which sounds like you may be thinking of π€·π»ββοΈ
I am using custom-header. in the below code, if there a way to check for the active tab to invoke animation only when the referenced tab (with index 3 in this case) is active header_text: >- {{ user|title }} <font size=2>{{ hours12 }}:{{ minutesLZ }} {{AMPM}}, {{ dayNum }} {{monthNameShort }} {{ year4d }} </font><style> @keyframes rotate_ {0%{transform:rotate(-360deg)}} @keyframes sar-utha {45%{transform:rotate(45deg)}} </style> tabs_css: '3': 'animation: rotate_ 2s linear infinite;'
Just updated to 106.0 and my entity buttons won't change color now when the entity is on
Any fix?
that is intended
you can manually set them one by one I believe
no universal turning back on
Ok I can do that but how? :)
I think it goes under customization
state_color: true
in 0.106 more cards support it is what changed i believe
havent updated yet so not 100%
after 106.0 some of my lovelace pages are not showing any cards, even tough they're still present in the lovelace config. Any ideas?
@tropic pike any errors in the browser console?
@sage lance state_color should be true by default on the entity button. Can you log an issue on the polymer repo?
@mild veldt Yes: https://imgur.com/a/6EeIDHH
No access to PC today. Would be nice if someone could do it quickly
@sage lance state_color should be true by default on the entity button. Can you log an issue on the polymer repo?
@mild veldt It doesn't seem that way, i just changed it on mine, and now it works..
Problem seems to have fixed itself, thanks for trying to help anyway @mild veldt
Hi, with the 0.106 HA Core update, all my Lovelace cards (dual gauge and gauge) are giving the error in the card "Attempted to assign to readonly property."... Anyone able to help with this?
@tropic pike @sage lance yeah, I messed up adding state_color to button card. I'll have it fixed in the next point release
@wooden latch I have that issue with one of my cards that use the mini graph card
@mild veldt it was quickly fixed by adding a line but nice to fix it globaly before more users start noticing :)
@wooden latch yes, the config is frozen now and custom cards should not be writing to the config. The custom cards need to be updated
@mild veldt thanks for the explanation
Suggest logging issues on the respective cards if there isn't already one
hi, after upgrade to 0.106. I have problem with custom mini-graph-crds, they does not work together with build in cards
Check what version you have installed
I had some old version, but upgraded right now to 0.9.3, and it is working, thx
HACS is handy for letting you know when you're running an outdated version of something you installed (with it)
we should add that bit to the breaking change and maybe also mention it when we link to the blog post for custom card devs
seems a lot of people are gonna run into that one
Yeah, but that'll come up in many releases. Remember to update your custom components shouldn't be a surprise π€·
yea true
That said, a footnote of Remember to update any custom components isn't a bad thing
i wonder if the frontend can detect if the card is custom and display a friendly reminder to update it
Apologies if this is the wrong area, but does anyone know if it's possible to change the names of an entity on the glance card? I'd like to make the names shorter, but not change the entity title in general everywhere else.
@rich trellis https://www.home-assistant.io/lovelace/entities/#name
Perfect! Exactly what I was looking for, thank you! π
Slightly different question. Since the resource is a binary sensor, is there a way to change the label of On/Off to something else?
Thank you! Will try to read through this. Moo
Hi all i just did a upgrade to the new version and now i cant see anything and i am getting a error Don't use 'server_host' options with Hass.io
i am so lost
So within the ui when I enable panel mode for view, all the other cards on that page disappear. Anyone able to shed some light on why this happens?
It will only display the first card
hey Dino, man I am still trying to wrap my mind around your mobile UI, that is some serious stuff. Well okay that is a bit of an odd setting
...but first card can be layout-card though...or vertical-stack etc...
And contain other cards within the first card. That's how you get the layout effect to be what you want
I see ok I need to dive into that a bit more
Is that what you are using for some of your cards?
Pretty much layout card for all views...flexible
@muted inlet so I tried reading through the doc and I've struggling to understand it. I've added the following to my configuration.xml to try and set device_class, but when I run the tool to check the syntax of configuration.yaml, it fails on the line with device_class
homeassistant:
customize:
binary_sensor.leak_sensor
device_class: moisture
should be binary_sensor.leak_sensor: (note the colon at the end)
though, without your code formatted properly it's hard to tell if that's the only issue
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
Nice that was it! I had to restart home assistant for it to take effect, just reloading config didn't see to update the UI. Thank you for catching that!
Sorry one last question for tonight. How do you leverage tap_action on entities card? I see the type is of map and am trying the following code, but it doesn't seem to like that
type: glance
entities:
- entity: switch.rain_mode
tap_action:
action: more-info
@rich trellis you've indented too far
type: glance
entities:
- entity: switch.rain_mode
tap_action:
action: more-info
After removing one space, here's the error I receive:
Expected a value of type {entity,name,icon} | entity-id for entities.1.tap_action but received {"action":"more-info"}.
yeah, the UI editor doesn't support actions, but it's a editor error. Not an error in your configuration
ah, so it's just a false positive?
yeah, FYI more-info is the default action https://www.home-assistant.io/lovelace/glance/#action
oh interesting, I didn't even notice that the entities card was different from glance. sorry, still learning. Thank you for the help, I see it's an editor issue, I tried changing the action type and it behaved as expected.
π
Hi guys, are there anyway to change the individual icons of the command line switch i created? Like the command_off button to X icon and the command_on button to Check icon.
Trying to do some conditional card in lovelace base on check or x option.
ok yeh everyone is having issues with custom-bar card and mini-grpah card i guess we need to wait for updates
thats for 106 i ment
when I click a binary sensor, I see more details below the graph. How do I access them and display them in an entities card? e.g.: device_tracker for my cellphone has gps accuracy displayed when I click the entity.
@slim cave those are called attributes, you can create a template sensor to show them in the Entities card, more info here https://www.home-assistant.io/integrations/template/
@pastel valley Whats inside of your www folder?
@rustic coral thanks for help. Problem is solved now, my resources list be wrong place in my lovelace-ui.yaml
is it possible to remove the 'Map' entry, from HA sidebar?
The maps that HA uses have been updated today π₯³
updated?
no nothing to do with hiding the map though π
I upgraded to 0.106 last night and this morning none of my lovelace pages render unless i refresh them
@short jetty clear your browser cache and look for errors in your browser's console
I get Cannot assign to read only property '0' of object '[object Array] error on mini-graph-card, what could be this? Started yesterday after upgrade 106
It's an error in how the card handles its configuration. It is trying to write to a frozen config
The author will have to update the card
thank you, will wait! thought I must change something
hello everybody is this the right channel for a few questions by a newb on the Lovelace UI setup?
man I am so stuck in my ways....i held on to monster card until its death π time to switch to auto entities π
here is my current attempt at personalizing my UI if anyone would be so kind to address a few questions I have π https://www.dropbox.com/s/fd3ayrxjh1v110k/Screenshot 2020-02-27 18.12.14.png?dl=0
a) I would like to move a couple of those cards to a screen called "Server" with CPU temp, Fastweb ADSL speed etc ... is it possible? What is the best practice for groui
sorry grouping things?
b) Can I remove those little circles above when I expand them into a full size card below? As an example of this Salotto Temo (living room temp) which is both as a circle at the top but also a Gauge in a card
and lastly c) I see beautiful smooter graphs as opposed to the very basice ugly Fastweb card, what type of card would give me more control on graphing a time based value in time?
aw sorry really the last one π The iframe card allows scrolling the image within it. Can I avoid that? When it's on my cellphone instead of scrolling down the UI to the next card, I scroll the map within the iFrame
Rright click the 3 dots in the upper right and select configure UI. Then click the + sign to add a new tab. I have one I named Testing. I try new cards there and once happy with them i click the 3 dots on the card and move it to my home screen.
well that was much easier than anticipated lol
Is there an example gallery of how cards look and how they can be customized
not that I've seen but i havent spen much time looking either. That is why i have a tab for testing.. try a card and if i dont liek it , delete it. move to the home screen when happy. I' havent tried any custom cards yet.
yea this is defnitely a case of "why didnt i do this earlier" lol
@vapid field soon there will be https://github.com/home-assistant/home-assistant-polymer/pull/4975
looks cool!
Did I dream or are resources changing/has changed?
@wheat current https://github.com/home-assistant/home-assistant/pull/32224 this?
That will definitely probably break HACS :/
Is it possible to combine an Entity-Filter with a 'custom:auto-entities' filter? Looking to show all entities that are doors and are "Open"
This may have been a question that has been asked a few times now, but why do my fan no longer show up in an entities card?
What do you mean?
@wheat current Yes, that's an anoying one. But I'm sure we'll solve it. It breaks lovelace_gen too.
in the entities card it shows that an item has basically gone missing. I have double checked the item and it is correct
@woven merlin auto-entities can do that by itself. Compare to the example with entities that are lights and on.
Thanks I'll look for the examples and go from there.
@tiny trellis you sure the entity ID matches?
yes triple checked it
@mild veldt thank you it looks very nice
Adding support for the new, will probably not be that hard (at least not for HACS), but supporting both the old and the new π€·ββοΈ
yeah
Good thing I implemented a minimum HA version HACS looks for, worst case I can just use that π
@wheat current just breaks the "add to Lovelace" part, right?
That and all cards will show as "not loaded"
I'm guessing, will pull dev branches this weekend and try
Well guess the fans issue is not important now. Just updated hassio and now when it tries to start this is the error I am left with "[FATAL tini (7)] exec /bin/entry.sh failed: Exec format error"
Is there any good documentation on what to CSS when creating a theme... All main divs and ids?
is it possible to have a gauge that has a normal (say green) range between 40 and 60 and "too low" (under 40 in red) and "too high" (over 60 in blue) ??? For humidity
@vapid field Mini Graph Card (Custom card)
@tulip pagoda thank you. sorry but first time user ... do I find the custom cards in the same way I do for the standard ones or do I need to add them in some other way?
I do not see them jusy by clicking the orange ADD button
HACS is the easiest...
@tulip pagoda Your message has been deleted as it contains a link or a domain name 'pasteboard_dot_co' that is on the blocked list because of: 'Virus detected!'.
Please re-post by removing/changing the domain name/link. Your original message has been DM'ed to you.
@vapid field Sent picture how it can look and some of the config...
You need to read up on custom components
ok thanks
anyone able to help me see why this weather card is not showing up in my custom layout card? https://paste.ubuntu.com/p/pD8VxXBzBx/
this is the fan in an entity card issue that I am running into
Unknown type encountered: entity.
type: entity
entity: fan.jasco_products_14287_fan_control_switch_level
In themes i have nice rounded borders round each card... Creating a vertical stack i want borders round the entire stack...anyone who can drop me the css ids ?
@tulip pagoda you're only option is the custom vertical-stack-in-card as core stacks are not cards
@mild veldt https://community.home-assistant.io/t/system-monitoring-how-does-your-look/109713/17
klogg posted a screenshot he has done this with vertical stack...
AFAIK he must have themed it?
The processor use inside of System
those are just rows in the entities card
anyone experienced this bug? https://streamable.com/gslsz
its switching for two seconds between the panels when clicking on overview
yeah, my fkin keyboard does that once in a while, unplugging it makes it stop for me
but else, no
for me its on every computer, like macbook and pc, ..
I am trying to wrap my mind around layout cards. I have an example from HACs that I have copied and pasted . I want to card take up the whole space , but no change to the code are showing this. Can anyone take a look and point me in the correct direction to fix this. https://paste.ubuntu.com/p/Z5gnG8zHmx/
so when I toggle the panel switch in the ui I am only able to add one card? Do I add panel: true to the code ? if yes is there a particular spot?
You add one card, which could be a layout card holding other cards
Is there an easy way to add links to the sidebar that open in a new window/tab ?
yes. edit your config.yaml file. I have a link for my router page
router:
title: Router
icon: mdi:network-router
url: http://192.168.1.1
in configuration.yaml ? just put anything like that? ie.
mysite:
title: mysite
url: myurl
?
i get an error integration 'router' not found using your example
sorry.. i missed the first line
panel_iframe:
router:
title: Router
icon: mdi:network-router
url: http://192.168.1.1
that doesn't open in a new window or tab though does it? it opens side the ha ui
i basically want an <a target="_blank">my link</a>
oh right, switches the tab you're on
you can right click and open in a new tab though
goota run. good luck!
thx
@feral rivet IMO...unless you are very familiar with grids you will drive yourself nuts trying to learn layout-card with those settings. I had to search to find this old post, but it is a more basic working example.
Here:
"lovelace-layout-card basic example:
screenshot: https://imgur.com/a/HsQLL29
code: https://paste.ubuntu.com/p/Vkz22WbTcv/ A bunch can be done with this layout style for anyone needing direction..."
is there som sort of divider i can add in glance
I have been using home assistant for a couple weeks now and have been looking for some dashboard examples with not much luck. anyone have a good spot for me to start at?
Mainly interested in just seeing what other people may be doing so I can get some ideas on how I want my layout to look like.
@atomic glacier thank for that man, that does look a lot simpler
so Dinotech, this card is vertical, If I want to take up the whole page how do I make that happen?
So I tried to break up the code a bit in order for me to understand it. unfortunately I am getting a no card type found https://paste.ubuntu.com/p/3Kxyp62c8K/
With the latest push, I love the map being in the more info when clicking a person entity...but it clamps the map extent to the ground, and even if you zoom out, it zooms right back in - and I can't tell where someone is. Is this only me, or is this a bug?
dang.. upgraded to 106.1 and tons of my cards broke :S looks like they're still broken in upstream with some open issues π¦ damn me and my eagerness to update
Can always roll back
eh, it's just some button rows that i don't use a lot, so i'll live with it for now
@feral rivet for starters...max_width has to be this way in layout-card: max_width: [5%, 70%, 5%, 15%, 5%] not an array.
@atomic glacier so I did not place them that way once I copied and pasted into the manual card , that's the way it saved. I manually changed them.
yeah, I forget you use the editor. Changes things up a bit...
Lol yep
So for this to work, I would need to work in yamal, but I would loose all my other cards and settings.
Should work in editor, it's just different format, but works the same. Let me get a really simple one that should get you going
hey guys how do i refresh app.yaml with out rebooting hassio
is it possible to do so?
Thanks much. Hoping to be able to create 3 views using layout card. Mobile, tablet and desktop
@feral rivet this will give you 2 columns with one bigger card on left...https://paste.ubuntu.com/p/ydgmr4Xj6r/
just a test layout
oops! ignore the last entity, copy error
How do I get the max width to show this way in the card and not change up?
Since the latest update, my Garbage Collection card is bugging out, I found out that mod-card is giving issues and it just outputs a red card with an error.
I found out that changing mod-card to auto-entities helped it function again.
However now my whole home screen is empty and not showing any cards anymore.
My current code uses a custom:auto-entities for the card type, and custom:card-templater for the 3 garbage picture-entities.
Sorry i mean the picture entities uses card-templater
and the whole card is a auto-entities
I can change the picture-entity type to mod-card ad the home screen is visable again, but then the name(status) of the 3 garbage icons is showing its entity name instead of the remaining days untill collection.
... huh?
General question, with all the push for UI config handling You guys think there'll be a way to edit picture elements via GUI? That's only thing I hate about YAML, placing things on my floorplan is pita
@polar kelp was that towards me? I can post the code to make it more clear
Why are you using mod-card with a card that has a ha-card element? Mod-card is the workaround to be avoided at all cost.
How can auto-entities replace mod-card? They do totally different things
And did you update to the latest card-mod?
I got all the updates for the cards, I havn't created the code myself, just dived into HA, still figuring stuff out, loaning codes from others.
This code is giving me an empty home screen
This one is showing the 3 garbage collection buttons, but giving the entity names instead of the amount of days left to collect.
Is your repo private?
And as I said, I'm just dipping my toes into HA, trying to learn from the code I use.
Hold on
Could you try again?
The links work now, but I have to run. Sorry.
No problem, thanks
I'd recommend you start over with this one. And work from the inside out. Start with the picture-entities card, then add style: to that, and then - once that's all working - wrap each picture-entities in card-templater.
Alright, thanks, I'll look into it.
Hello, I'm trying to use ADA or MOPIDY and it does not detect my vmware soundcard in hassio, can anyone help?
Has anyone profiled the front end? The entities page is very slow to respond and makes safari and chrome unresponsive when you have say 700 entities,.
Also there seems to be bugs with removing entities. I select all matching a filter, and I go to delete, I have 40 selected and it's like do you want to delete 3? I click yes any way then my selection always says 0
@rose garden I'd try in #330944238910963714 to start with - that's nothing to do with the frontend
Also, noticed last night if you have any automations or scripts defined in yaml on disk. You can go through adding a new one via the ui but it never saves. It doesn't tell you why, this is a bad experience.
That should still work, lots of people have done that before
Of course, the recommendation is don't do that
Split your own automations out from automations.yaml
yeah, I don't have any in that file, it's a dir merged list. But thinking I just need to move everything into .storage and get over the fact that they all live on github :\
If you've only got automation: !include_dir_... then that's the problem
You need automation: !include automations.yaml for the editor
Worth opening an issue though
ok
think it's worth opening for the front end issues I'm seeing too
I should just dig into it and figure out what's going on
@split granite I thought it was only for instalation, I'll try there, thanks!
@split granite It wasn't a merged list after all automation: !include config/automation.yaml hmm, any ideas on this one? Perhaps because it's not at the root? Well this has to do with the front end not allowing me to edit or add existing automations.
I can move it to that channel but this has to do with the front end not allowing me to edit or add existing/new automations.
Well, sorting out your include isn't about the frontend
The problem there is that you're including a file that the UI isn't editing
automation: !include automations.yaml
I'm just stating it's a simple include and my automations are working but my sole problem is I can't edit it or add new ones in the ui
Because you're including the wrong file π
and there are no validation messages or errors in the ui. It's just a terrible experience :\
So open an issue
I'm pretty sure though that it's editing and saving just fine
Your config:
automation: !include config/automation.yaml
Correct config:
automation: !include automations.yaml
looking.... yep I see a new file in the root (I don't want any of my configuration in the root), it's just not respecting my configuration location and it's not updating in the front end... that's the problem. I'll create an issue
it should throw an error then π If the yaml file isn't in the right spot
fail fast!
not ignore, I told it to load it from where I want to, using a config structure many many people are using
Well, then I wish you luck with opening an issue on that one... I doubt you'll have any luck π€·
does anyone know an easy way to set the duration for timer from the frontend?
like to auto log out?
No, like I need timers for items (lights, food and such) and I need them to be albe to have a custom duration established in the frontend
The input_number component allows the user to define values that can be controlled via the frontend and can be used within conditions of automation. The frontend can display a slider, or a numeric input box. Changes to the slider or numeric input box generate state events. These state events can be utilized as automation triggers as well.
# Example configuration.yaml entry
input_number:
slider1:
name: Slider
initial: 30
min: -20
max: 35
step: 1```
That'll be nice for those new to it
I'm looking forward to dynamic timers, which would really be the best solution for @tiny trellis
Aye
oooo fan π¨
I appreciate your help. Just got to add a few extra steps to do what I need not too bad for now.
I am looking to integrate barcode scanner to my HA instance. Anyone has done something similar?
Recently just had a new addition to the family and wife keeps cooking meals and getting side tracked and not hearing the timers in the kitchen. Time to make the entire house yell that food is done.
You can also try #node-red-archived timer node is super simple
Integrating the scanner itself would be an #integrations-archived thing @tired willow
@odd light I have it as a node red timer node now. But I have not found a way to change it easily.
Double click the node?
I mean yes, but I need to be able change it from front end. Wife does not have access to nodered and never will.
@split granite ok, will try the integration channel
Hey friends. I have this coming up in my config checker, but I can't, for the life of me, find it, what's referencing it, where it is. Scripts, automations are blank.
Component error: automation.reloadhomeassistant - Integration 'automation.reloadhomeassistant' not found.
oh my lord, I found it.
line 1 of configuration.yaml - why, I have no idea.
because I did not place it there. Anyway, crisis averted, thanks for listening!
Anyone want to take a swap at this and help me understand what I am doing incorrectly. this is the code that Dinotech provide to me last night after trying out a few other options for using layout card https://paste.ubuntu.com/p/ydgmr4Xj6r/ this is what I am getting from the UI https://imgur.com/h9IjDUC. I have changed the entities, but still no success. Here is my code https://paste.ubuntu.com/p/pqCMKqyYc8/.
I have discovered entities that I need to turn into devices.
like some Tuya lights
And some VeSync plugs
anyone to help use mini graph cards? I have installed HACS and installed the mini graph cards in its plugins but I am at a loss on how to use the card inside Lovelace (when I click on Configure UI and hit the orang + button I do not have the choice of the mini card nor do I have a ui-lovelace.yaml' ). THANKS
@sage epoch thank you very much
@vapid field https://imgur.com/a/QMrDzCx
@vapid field I use a horizontal stack, and that's how I've got it used at the moment, does that help?
ok in what file do you have that? I only have a configuration.yaml file as far as I know (warning beginner here) π
not sure where I have the cards I have defined via the UI customization interactive interface
@vapid field That is using the Lovelace UI editor, top right ---> Configure UI
ok
when I do that I ususally click on the large orange Plus signs
and choose the card type
but the mini-card is not amongst them
On the bottom right, yep, then you can do "Manual card"
aw ok
In that manual card, is where you can specify the custom card type
OK thanks a lot will try
type: 'custom:mini-graph-card'
@vapid field in HACS, you have to make sure you integrate that into your lovelace raw UI,
Edited: Some plugins will have you click a button to add it automatically, some don't. This one doesn't, you have to add it manually
It should ask you to click on it, and in your lovelace UI, if you click "edit raw config" you have to add that line:
- url: /community_plugin/mini-graph-card/mini-graph-card-bundle.js
type: module
OK FOUND IT !!!! When trying to add cards use the three little vertical button up on the right !!!! Finally found it π Thanks
but that text is already there I think .. the first two lines say:
resources:
- type: module
url: /community_plugin/mini-graph-card/mini-graph-card-bundle.js
and on the RPi4 filesystem I see ./ha/homeassistant/www/community/mini-graph-card/mini-graph-card-bundle.js
ok thanks a lot @sage epoch, now that I copied your example in a manual card it works !!! Slightly annoying I have to remember the device names manually though π¦
can anyone spot the error in this mini-graph custom card? The first subcard with just the red line works but the second one in which I attempt changing the color line with thresholds gives an error -> https://hastebin.com/hubalibipu.bash
haven't tried that card myself, but the only thing I can see is that in the example the thresholds are the other way, starting with low and goes up while you have the other order
Did last update disable state colour on entitys ?
@frigid gale entities card? 0.105 did, by default. Check the release notes
well, you could read the release notes
but the answer is by adding state_color: true to the card
okay thanks
but seriously, always read the release notes
you did not notice or your stuff was cached
Is there an easy way to implement state_color: true to all of the UI?
use an IDE and ctrl + f 'type: entities'
In which file ?
Is there a way to control the placement of cards in LoveLace where they're FIXED in place vs. moving when you resize browser?
@woven merlin layout-card
Iβll look that up
Hello
I haven't been able to find a solution on the forums. I updated to the latest build last night. I tried the new sensor card.
My sensor card shows up but the graph is blank
I've wait thinking maybe it needs time to populate
Nothing still so I clicked on the card
It says, "No state history found"
check your logs. do you see anything like "database disk image is malformed"?
Ok I'll look now thanks
@muted inlet yes
Error executing query: (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO events (event_type, event_data, origin, time_fired, created, context_id, context_user_id) VALUES (?, ?, ?, ?, ?, ?, ?)] [parameters: ('hacs/config', '{}', 'LOCAL', '2020-02-28 22:09:58.622716', '2020-02-28 22:09:58.655746', '1ea1a9e86431419385f465bc551d4284', None)] (Background on this error at: http://sqlalche.me/e/4xp6)
delete home-assistant_v2.db and restart home assistant
Ok ty
Ok that didn't help
But I figured it out
I uninstalled the disk space integration from HACS
Thanks as it helped me track down the problem
Anyone can help with mini graph card?
Im trying to make an daily consumption bar graph
I'm trying to add a custom card, how do I do this part?
Add to your lovelace global config as type: module
Add custom card (works best in panel mode): - type: 'custom:zha-network-visualization-card'
I got it
what is panel mode though
I added this and now my whole frontend is wonky https://github.com/zha-ng/zha-map
like I can't delete the card
where is the raw config stored?
I need to totally remove this card I think from frontend
Well that's not a card so...
Hey can someone please tell me what I am doing incorrectly with this card code? https://paste.ubuntu.com/p/pqCMKqyYc8/.
it was a card, and some other stuff, I got rid of all of it LOL
@odd light zha-map is an integration
yes, but they are two distinct things
well one of them barfed on itself
I run them both without issue
well thats awesome for you lol I had issues.
explain
and its not like its complicated to set up.
so like, I couldn't add a view to front end anymore, it would do nothing, if I tried to delete the card it did nothing, if I tried to go into something like configuration it wouldn't load.
its like it broke my whole interface in strange ways, but I could see the card and my devices on it.
sounds like a browser cache issue
I wanna say I tried loading it in incognito but I can't remember now.
so you created a new view, added the card and turned on panel mode? or did you try adding it to a view with other cards?
well no, first I added a custom card to a view I already had, then I went to make a new video to do panel and it wouldn't let me.
yes
it said works best with panel, not it will break your interface unless you do it this way
wouldn't let you do what?
turn on panel mode?
@odd light what version of core are you running?
sorry, no it wouldn't let me do panel mode after I added the card to another view, which I think is what broke it
I'm on 105.5
haven't gone to 106.2 yet, been hearing people say they had issues.
very strange, I added it to a view and experienced some issues as well. But after removing still having some strange issues when editing cards; chunks not loaded in time. not sure what's going on
I thought you said it was working fine?
It has been. I can't say for sure that things are directly related
the card itself is pretty resouce intensive due to the library it uses
might be affecting performance and how quickly some pieces of code are loaded
the edit mode stuff is loaded on demand, and I saw that failing to load sometimes
I installed the guys card through hacs ans its not working in a new view picking panel mode
should I do it manually?
I did it through hacs
- type: js
url: /community_plugin/zha-network-card/zha-network-card.js
module
- title: zha_scan
path: zha-scan
panel: true
badges: []
cards:
- type: 'custom:zha-network-visualization-card'
I think
his installer did it that way lol
those are two different cards
there's the network-card which is a table/grid
and the visualization-card
the visualization-card should be type: module
Custom element doesn't exist: zha-network-visualization-card.
type: 'custom:zha-network-visualization-card'
what you posted for network-card is correct, it can be type: js
okay
so did you only install the network card?
and /config/custom_components/zha_map
do I need something else?
the module also?
zha-network-visualization-card-master
I got farther earlier haha
you don't need the zha-network-card
I find it useful, but you don't need it
it doesn't use data from zha_map, it just shows data from zha itself
I think I have everything actually but am I missing something from lovelace config
I've only got this
- type: js
url: /community_plugin/zha-network-card/zha-network-card.js
oh you have to configure that thing
so I have custom_components/zha_map
and I added zha_map: to my configuration.yaml
what am I missing
okay its working
lol
good lord
I see the nodes and stuff on a black background
yep
i started on a rewrite of the visualization card tonight, see it can't be trimmed down and polished
it started making my HA run like crap again so I just got rid of it, I dunno why it hates me install.
hi everyone, I am trying to have a card where, if i click on a timestamp, it assigns the current time and date
type: vertical-stack
cards:
- type: entities
title: Plants
show_header_toggle: false
entities:
- entity: input_datetime.plants_time
name: Watered Plants
icon: mdi:flower
tap_action:
action: call-service
service: input_datetime.set_datetime
service_data:
time: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
the problem is that
oh, i guess i am missing an indentation on action
π
but yeah now that the indentation is fixed, the datetime doesnt get correctly updated, it stays the same
@modern plume I haven't used input_datetime, but I suspect you'll need to specify the entity_id in your service call, otherwise it won't know which input_datetime to update
That does help too π
isn't that what i am doing on the first line of entities?
oh
After all, you may be making a service call on something else
yeah makes sense
service: input_datetime.set_datetime
service_data:
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
entity_id: input_datetime.plants_time
``` _probably_
uhm, no luck. reading the docs a bit more to see if i can spot the issue
The log file will likely have something useful
{{ as_timestamp(now().strftime('%Y-%m-%d %H:%M:%S')) }}
{{ state_attr('input_datetime.plants_time','timestamp') }}
return
1582970153.0
1577833200.0
so I am not sure why this is not working π¦
log doesnt seem to show anything related to this
tap_action:
action: call-service
service: input_datetime.set_datetime
service_data:
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
entity_id: input_datetime.plants_time
oh weird
<template state input_datetime.plants_time=2020-01-01 00:00:00; has_date=True, has_time=True, year=2020, month=1, day=1, hour=0, minute=0, second=0, timestamp=1577833200.0, friendly_name=Last Time Watered @ 2020-02-29T10:58:54.194468+01:00>```
what's the last part?
that seems to be the correct timestamp
or is that just the time when the info was retrieved?
friendly_name=Last Time Watered @ 2020-02-29T10:58:54.194468+01:00
@modern plume Per the docs, try:
tap_action:
action: call-service
service: input_datetime.set_datetime
service_data:
data_template:
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
entity_id: input_datetime.plants_time
(Note the addition of data_template: above the datetime:)
thought it was it, damn, but no luck still
tap_action:
action: call-service
service: input_datetime.set_datetime
service_data:
data_template:
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
entity_id: input_datetime.plants_time
trying to call this from the developers tools now
and i get an error
Failed to call service input_datetime/set_datetime. extra keys not allowed @ data['data_template']
What did you put in the Service Data box?
service data looking like
entity_id: input_datetime.plants_time
data_template:
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
and if i remove data template
Failed to call service input_datetime/set_datetime. Invalid datetime specified: {{ now().strftime('%Y-%m-%d %H:%M:%S') }} for dictionary value @ data['datetime']
but the example shows "datetime": "2019-04-22 05:30:00"
oh is it the format of m and d that should be capital?
yeah already did, i just dont understand why it doesnt like the datetime specified
in templates it shows as 2020-02-29 11:32:32
which seems to be the correct format
Oh, I misread the docs. The data_template would be instead of data in a regular automation etc - but for a tap_action you'd have to replace service_data... but I'm not sure if there's such a thing as service_data_template
as a test, try a static date/time like:
tap_action:
action: call-service
service: input_datetime.set_datetime
service_data:
datetime: "2020-02-29 23:34:00"
entity_id: input_datetime.plants_time
and see if it sets it as expected
i dont think thats it cause if i do
entity_id: input_datetime.plants_time
datetime: "2019-04-22 05:30:00"
it works
oh wow, read my mind π
oh man, this is annoying
entity_id: input_datetime.plants_time
date: >
{{ now().timestamp() | timestamp_custom("%Y-%m-%d", true) }}
time: >
{{ now().timestamp() | timestamp_custom("%H:%M:%S", true) }}
this also doesnt work (taken from the docs)
starting to think this might just be broken somehow
i think i figured it out
no i didnt
i did the Fill Example Data which resulted in
entity_id: input_datetime.test_date_time
date:
date: '2019-04-22'
time:
time: '05:30:00'
datetime:
datetime: '2019-04-22 05:30:00'
but that's possibly an error with the example data
anyway I tried and do it this way and still got an error
(just with datetime)
I think the issue is that the tap_action doesn't support templating, so you'll have to take a more roundabout approach. Create a script, hit the menu button for the first action/step in the sequence and choose to "Edit as YAML" (as the UI doesn't support data_template) and paste in:
data_template:
datetime: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'
entity_id: input_datetime.plants_time
service: input_datetime.set_datetime
Then once you've saved the script, edit it again and check the URL for its ID (i.e. script.1582973996257), and put that into the following in your card:
tap_action:
action: call-service
service: script.1582973996257
mmm never worked with scripts but i'll give it a try. but just to clarify, i am trying to call the service from the dev tool, skipping tap_action entirely
Yeah, I don't think the dev tool supports templating either.
Once you've created the script, there will be a little "play button" next to it in the list of scripts - you can click that to test it before you put it into the tap_action
do i need the url? can't i call script.scriptname ?
(asking because i usually set things up directly in my yaml files, skipping the UI
I don't see a way to name it like that from the UI. If you set the script up directly in YAML, sure, call it whatever you want
the URL was just the easiest way I could see to get the entity ID from the UI
ok cool
ok so here's te neverending story
if i manually call the script via the dev tools, it works, the timestamp gets updated
if i call it via the tap_action, nothing happens
ffs XD
but i feel like we are definitely closer no
w
It works via tap_action for me - I set up an input_datetime to test with and tested the script approach before I posted it here... what's your current yaml for the card?
- entity: input_datetime.plants_time
name: Watered Plants
icon: mdi:flower
tap_action:
action: call-service
service: script.plants_time
oh
indentation i think
That does look like an indentation issue π
oh shiiiiiiiiit it works β€οΈ
π
man, this is awesome, thank you so much
no worries
Might be worth putting in a feature request for data_template support in various places - the dev tool, but most importantly in Lovelace card actions π
(that's assuming there isn't already such a request, of course)
i'll look into it. now i just need to make my card not to look like ass, wire up some notifications, and my plants will be safe π
"hey shitbag, you havent watered the plants in 3 days"
Heh. I've gone for the more automated approach of using Mi Flora sensors in the pot plants at work, with HA sending a Slack message when a plant needs watering
yeah didnt feel ready for that level of engineering π
i've got too many plants anyway ;d
but it is tempting to stick a buncha sensors
Fair enough. I'm pretty sure the price of the Mi Flora sensors went up after I bought my first batch, and not by a small amount either. They're pretty good though, a complete drop-in BLE sensor - and you can either add them directly to HA, or (as I've switched to due to reliability issues with bluetooth on the Compute Stick I run HA on) an ESP32 with ESPHome, which just listens to the sensors' BLE broadcasts and relays the state back to HA
any way I can "merge" an entity and a markdown card?
just would like to have some markdown at the bottom without having to separate two cards
@modern plume you could use a vertical stack to embed them both, but you lose ability to edit visually via lovelace
i do have a vertical stack but they are still separated :S
oh you mean a border is appearing between them?
hrm, not sure, sorry :/
if i understand this correctly, it creates an entity which generates markdown
and then you may be able to just add that to your entity card instead of a markdown card, not 100% sure though
thanks
@modern plume Another option might be to put the datetime entity in the footer of the markdown card: https://www.home-assistant.io/lovelace/header-footer/
I've had an automation set up to switch between the default theme and a "dark" theme based on time of day for quite a while now, but I'm having some trouble when trying to set up a separate theme for use on a greyscale e-ink screen (one theme for all times of the day). I'm getting weird crossover between the "backend-selected" theme (the dark one right now) and the manually selected theme - for instance, I can't convince the text within cards (other than their headers) to be visible, because it's white in the "dark" theme and my e-ink theme makes the card backgrounds white. Does anyone know a way to stop this crossover?
It's quite odd - the ha-card polymer component seems to set the --primary-text-color to white all by itself when the "dark" theme is enabled on the backend - even though I'm specifically setting primary-text-color: '#000000' in my manually selected theme
I keep getting my tablet which logs in using it's own account and I have 'Custom Header' installed and this use automatically goes into KIOSK mode... The thing is.. every 45-60secs it does a page reload/refresh.. is this normal? can it be stopped? it's distracting when you see it out the corner of your eye have the page refresh
Hey, I have a history stats sensor that I want to display a graph of. I would like a bar chart, with a bar for each day. I have the interval set to start at 00:00:00, and it ends at now. The sensor displays the proper time, but I am unsure how to display it in a meaningful way. I tried mini-graph-card but I couldn't get it to display the right values ..
Not sure if this is a front end question, but I'm having a problem accessing my HA web from an old ipad 2. It just skips the uname/pw form and says "accessing from [HA LAN ip address]" before it says "something went wrong" . All other devices works just fine. Here's the log: https://hastebin.com/vemovinuga.sql. Can anyone please help me?
Hey all, good evening. I feel a little bit lost and I need some advice. What is the best practice (in your opinion ofc) to create a Lovelace dashboard? In my actual setup I divided rooms to tabs and I can't be sure is it useful or not? So what do you prefer? See your entire home in one page or divide the rooms, floors etc to tabs and pages. Thanks a lot!
Use what works for you
I have an overview tab (showing all the lights and sockets that are currently on, the rooms that are occupied, windows and doors open), a tab for HA Floorplan, one tab for each floor, and then a bunch of admin tabs
That works for me - though really I rarely use any of them
@split granite thanks for your answer do you use conditional cards to for lights or is lights & sockets always there?
and one more thing ( I am not so sure that is it related to front end) Is there a way to delete discovered devices from integration page? I have a Ikea tradfri gateway couple months ago HA still thinks that there is a device but I totally disconnect it from network so it stuck somehow and send notifications time to time
thanks tinkerer I will look at it
#integrations-archived would be where to ask about that - I think you have to remove the integration, but you you can disable and hide things
I've created a "Horizontal stack card" with 4 entities in it (they are temperatures) is there any way I can remote the small thermometer icon to the right of the title?
it seems everything I tried, affected the "content" of the card but not the title of it (where the icon is located)
@split granite entity filter is a great card. Thanks for the tip π
Yeah, I like having only things I need to know about in the default view
@small badge posted a code wall, it is moved here --> https://paste.ubuntu.com/p/y5YfkwwzSB/
I have a little problem with mini-media-player. I have an Onkyo AVR and wanna see in the UI which source is currently selected, therefore I am using attribute, but nothing is highlighted. The buttons themselves work as expected.
Here is my config: https://paste.ubuntu.com/p/y5YfkwwzSB/
Okay, I figured it out. I have changed the id (formerly pc and game) to the "friendly names" in the config.
sources:
pc: "LibreELEC"
game: "HTPC"
I feel like I might be stepping on a land mine here, but what's the deal with areas and groups? Areas can be configured on the front end, but I can't really figure out what to do with them past there. I can't add areas to an entities panel to toggle things on and off in them. I can configure groups in the configuration YAMLs, and then I can add them to the front end entity panel.
Is this just an oversight or are areas intentionally not set up for this type of use case? If not, what use case do areas really have?
@uncut wave areas just haven't been fully realized yet. More to come
I figured that might be the case
Is there a road map for them? I am interested in contributing but don't want to just recreate groups
@uncut wave there's probably some info in the architecture repo, but I'm not sure
Thanks for the info, I appreciate it
Does anyone know of a tabbed card that I could use as a panel? I'd really like to be able to drill down from the views menu, into foors and rooms - and with the number we have, a submenu similar to this: https://www.patternfly.org/v3/pattern-library/navigation/horizontal-navigation/img/menu-bar-two-level@2x.png would really help there.
If one does not exist, Id really like to get some advice on how to go about constructing one, polymer is a lot more sophisticated than previous frameworks I've used (bootstrap/django etc)
I'm trying to make a device-specific theme, and I currently have backend-selected themes based on time of day. For some reason, the primary-text-color in the device-specific theme is being ignored if the backend-selected theme is a custom theme which also changes primary-text-color - so I end up with white text inside white cards, making it unreadable. Does anyone know how to either make the device-specific theme "reset to defaults" before applying, or to at least force its primary-text-color to "win" over the other theme's?
It seems weird that it tries to apply both themes - I would've expected manually selecting a theme to override the backend-selected theme, not to apply on top of it.
Seems like it's the issue described in https://github.com/home-assistant/home-assistant-polymer/issues/3464 (specifically the comment thread)
Given that the description of the frontend.set_theme service call is Set a theme unless the client selected per-device theme, this definitely seems like a bug.
Ah, found a more direct issue (only after writing my own, and having Github suggest similar issues... I did search, but didn't see this one!) - https://github.com/home-assistant/home-assistant-polymer/issues/4418
just updated to HA 0.106.2 and the google theme from Juan looks white in the panels. anyone have a way to fix it?
which was the card that lets you filter entities AND hide it when they aren't 'on'?
Just updated Home Assistant and getting this in the logs and some cards are not showing. What's the issue with monster card and how to fix it? ERROR (MainThread) [frontend.js.latest.202002205] https://myurl/local/custom-lovelace/monster-card/monster-card.js?v=1:111:28 Uncaught TypeError: Cannot add property entities, object is not extensible
Alright, took about three seconds of googling: Monster card has been decprecated in favor of it successor, auto-entities
alright so i'm trying to setup home assistant behind a nginx proxy, trying to follow the instructions here https://www.home-assistant.io/docs/ecosystem/nginx_subdomain/ but when i try to change the root url for home assistant server it doesn't change
oh wait it doesn't support another base path, nevermind me
guys, can you tell me which one is the element that changes the background color on this dropdown menu?
https://imgur.com/a/N9uUmCQ
@vapid anchor that's states UI. Read 0.105 release notes.
ok i will check
@mild veldt i already read the problem is in app phone apears everything ok, only in web brower
you are looking at /states and not /lovelace
Go-to developer tools > info
See what the default is set to for that device
yes i already do that but in few seconds change back to the same
Try clearing your browser a cache
but in a few seconds come back to another
i already clear the cache and no changes, i put it back like a charm, and when i click in "global vison" turn back all and show was i show in image
try a private session
ok i will try
apears ok, but without the theme
i think its the cache -.-'' i clear again and close everything and its work -.-''
@vapid anchor Have a look at https://www.home-assistant.io/lovelace/conditional/ for hiding cards
thks @split granite i will check
Anyone knows an easy way to get the background of lovelace to black? I've only managed to get the cards themselves to be black.
@split granite sorry for call you, but i want to do this directly on group not in card, because my card have to groups
You can't
Not unless you can find some custom card that does that, but I don't know any
ok thk, i have to think a little bit to see what i do...
wasn't there a card that lets you regex entities on a card that only shows ones meeting a state filter?
Good evening Guys... Might I ask a quick question about Icon color / states ?
I wonder why the input_boolean icons have colours on lovelace glance cards based on state, but when it comes to binary_sensors they just dont have colours...
I'd like glance cards to show entities with icons depending of their state...
This seems like a real simple and basic need and tons of discussion is going on about using template sensors, and custom_ui and so on...
But using template sensor adds a second entity - while custom UI is an extra addon
I mean if I use the entity_filter card than the entity again has teh colours - but just by itself it doesnt...
how yo revert back to 105 in hassio on Pi?
#330944238910963714 could tell you
sup guys,
i got this led strip (rgb_color: https://prnt.sc/ra0iuy) .. when i click on the entity i get this screen where i can dynamically select the color (https://prnt.sc/ra0j8q).. i want to move this into one button. this button should contain a tap action (which turns on the strip) and a hold action (where i can pick the color like in the second link).. any hints for me?
i would like to use the custom button card plugin from hacs
HI, when I test to add ifram on overview the ifram is smal , I put 100% but the ifram don't size all the large page
do you have idea
? π¦
thank's
@crystal moat Use a dark theme. Here's a good getting started article https://www.juanmtech.com/themes-in-home-assistant/
And here's the official docs https://www.home-assistant.io/integrations/frontend/#defining-themes
So I added my Sony Bravia tv to lovelace. If I add the entity, all i see is a play button but if I click on the component, it gives me options for a source and volume. I want those addtional features on the main lovelace ui
hi - I'd like to try and run the following as a card: https://hastebin.com/ovekoxidag.xml
ive made a bit of progress here: https://hastebin.com/apapuruban.xml
which renders the paper-tabs, but I cannot work out how to initialise iron-pages
as im not sure how to put the following into a custom panel:
@turbid root posted a code wall, it is moved here --> https://paste.ubuntu.com/p/yqZY5gYYq9/
any advice would be greatly appreciated - I'm trying to solve for my post the other day:
Does anyone know of a tabbed card that I could use as a panel? I'd really like to be able to drill down from the views menu, into foors and rooms - and with the number we have, a submenu similar to this: https://www.patternfly.org/v3/pattern-library/navigation/horizontal-navigation/img/menu-bar-two-level@2x.png would really help there.
Where this would be used along with @polar kelp's fantastic state-switch card https://github.com/thomasloven/lovelace-state-switch#hash
OlΓ‘! Does someone is having problem to create buttons using lovelace UI after 0.106 update?
the error is: "Expected a value of type undefined for state_color but received true.""
hi, i dont know where to ask my porblem about cast on google hub.
Is there a place where people post their customized cards with the code? I'd like to see more examples of what people are able to build
In lovelace, is there a way to view a list of activity for a binary sensor (motion)? There history graph is nice but if rather just have a list of on events with the duration and time of each
I have a view that has like 50 cards in it that were auto generated like media_player.plex_chrome_7 etc. Since I took control of the lovelace UI It won't let me delete that view because it has cards in it. Is there any way to delete those cards in bulk? Deleting them one at a time is extremely tedious and I want to avoid it.
Solved: Didn't know there was a Raw Config editor.
I gat a question about Lovelace config. Am I in the right channel ?
Question is : on a sensor card, I use line graph. I'd like to have the X and Y axis values. Is it possible ?
anyone know how to disable kiosk mode with custom-header? I enabled it to test and now I can't get back to my menus...
?disable_ch
@finite horizon yes if you have history and there is a unit of measure for the sensor
Thanks @mild veldt. That saved me from having to restore from backup
@fading sorrel advised me (@twitter) to switch to Lovelace (I was under the impression that I already was, but apparently not...). Because I have everything in YAML, I added lovelace: mode: yaml to my configuration.yaml (See: https://www.home-assistant.io/lovelace/yaml-mode/)
Uh
If you are running Lovelace in YAML mode that is fine
Your twitter message was about groups and views
Now, when I reload the UI, I get Lovelace. I had Groups defined as Views, and that is not supported any more.
You are now mixing up things
the 'view' parameter on a group is not Lovelace related
So, I copied my groups.yaml to views.yaml, and switched Name to Title, and Entities to Badges
a group is a group of entities in Home Assistant (the engine), which is not related to how it is visual represented in a Lovelace view
(I hope I'm not mixing up thing, but moving from one config to another...)
you can represent a group entity in Lovelace
but the view option on a group, is not for Lovelace
that is for the states UI, which is deprecated (pre-Lovelace)
But I want to save my old groups-as-views as real views, which I need to specify differently.
@mild veldt I know, but I had to keep it somewhere. I still have my groups, and I see that I 'must' somehow "Create a new file <config>/ui-lovelace.yaml and add your Lovelace configuration" by copying from the raw YAML that Lovelace configurator can generate.
No, you don't need to do that
Remove the lovelace section in configuration.yaml and restart
Then go to <ha-ip>/lovelace and see how it looks
You should see your groups properly represented
Yes, they are. But, I also wanted views.
You can then take control of the UI by going to the top right menu and selection Configure UI
One you have taken control you can move things to views
From the UI itself
much easier, IMO
HI all, I am Dhanish from India, I am new member in this community, I have a query related to the more-info dialog opening from a custom-card which I created. Do I need to wait for the current conversation to finish?
I'll see if that works, after I've removed the 'Lovelace' section. Last time I clicked 'Configure UI', it told me that I needed to take care of everything myself, and when I clicked to consent, I got a popup saying 'Save failed'. Now, it seems to work (I get arrows in the UI). Not sure why it wasn't working in the first place, but thanks for your patience!
...and time
I am trying to find an example on how to open the more-info dialog from a custom-card. Can anyone pointout any examples or starting point.
@swift ingot yeah, no problem
I am able to extend the HTMLElement to create a card and is able to show in the view. What I am aiming is that, I just need to open the default more-info dialog on a button click in the card.
I have added the button on card called "More Info", and I am hoping to open the more-info dialog pressing this button. I am able to run a function in js by adding an event listner, but after that totatlly blank. π’
@heady gorge
const event = new Event("hass-more-info", { bubbles: true, cancelable: false, composed: true })
event.detail = { entity_id }
this.dispatchEvent(event)
@heady gorge you might want to check out this template I made as well https://github.com/custom-cards/boilerplate-card
Thank you so much for the update. I will now be able to figure it out
Sorry got called away there for a sec, glad it is resolved @swift ingot π
I will watch the conversations over here to make myself more familiar with the frontend development.
Happy to see you all working hard to build such a great platform
Hi, Got it working. Thank you so much.
is there a good way to count the number of lights that are on in lovelace?
would love to have a "9 lights currently on" type thing
@heady gorge actual dev questions are best asked in #devs_frontend-archived
@craggy schooner #templates-archived
I'm using MQTT to push info from various sources into HA. Unfortunately, HA isn't seeing integers as numbers. Is there a way to tell HA that sensor data is numeric instead of string?
Hello,
I've encountered a problem that I haven't been able to fix. I recently downloaded custom card Fold Entity Row to be able to put my entities in a foldable card to save space in my UI. But I can't seem to get it to look like a card. The only way I got it to work was using section and there is no styling.
My code is here. imgur link to how it looks in my frontend included in the text at the bottom.
well it's not a card, it's a row, per the name
it is meant to be put in an entities card
@mild veldt Yeah I figured as much, sort of. Since it seems to be used for groups of lights mostly such as spotlights.
Is tehre anyway to style it as a card, or is there any other custom plugin that enables a folding card sort of?
You can hide cards - https://www.home-assistant.io/lovelace/conditional/
@dull sandal you could do something like this
entities:
- entities:
- entity: alarm_control_panel.home_alarm
states:
- arm_home
- arm_away
type: 'custom:hui-alarm-panel-card'
head:
entity: alarm_control_panel.home_alarm
type: 'custom:fold-entity-row'
show_header_toggle: false
type: entities
entities:
- entities:
- entity: light.office
type: 'custom:hui-light-card'
head:
icon: 'mdi:gift'
name: My Card
type: 'custom:template-entity-row'
type: 'custom:fold-entity-row'
show_header_toggle: false
type: entities
use the template-entity-row if you want to not use an entity for the initial header
@mild veldt Yeah, that is a slick solution if there is an entity to build the fold card upon. I'm looking for something to create a fold and then populate the fold with entities. Maybe that isn't currently possible or there hasn't been created a plugin for it
Maybe I'll let it be unfolded as of now since I don't need the plugin that badly. I thought it could fix what I wanted.
I'm not sure where this problem belongs but I'll stick in here as it manifests itself in the frontend. If I restart the ha server either with "ha core restart" or via the server management controls in the frontend, it restarts but the frontend never comes back until I do a hardware reboot. Pressing F12 to look at the console while the frontend is broken gives this:
core.019f4c68.js:1 WebSocket connection to 'wss://192.168.100.5:8123/api/websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
e @ core.019f4c68.js:1
It's like the web server never comes back. It's reproduceable after the system has been running for 10-15 minutes, core will restart fine before then after a hard reboot - IYSWIM
Anything having issues with there themes going white in the panels? If so how could I fix it
@dull sandal have you looked at auto-entities?
updated hassio to latest, it fails to load some of my tabs , i have to refresh page
very annoying
i reverted back, all good, reupdate to latest again the simptom
haapens on ios apps (ipad, iphone) and browser (chrome and safary)
https://share.getcloudapp.com/NQuZr8jK
on all browsers, all devices , including the ios app v2
hi, I have each room in own lovelace tab, is there some kind of button, on panel, which I'll place on 1st page and will be linked with selected lovelace tab, then when I touch it, I'll be switched to configured tab ?
@blissful anchor you cleared your browser cache?
if i refresh the tab with problem it shows the content, but then another one fails that previously worked
is 100% reproducible
I did downgrade and update to latest twice
custom cards?
which custom cards are you using @blissful anchor
mini graph card
that was definitely a problem card
oh, there is an update
for the mini graph
yes
is there an original alternative to that?
well see if the update addresses the issue first
I'm not sure where this problem belongs but I'll stick in here as it manifests itself in the frontend. If I restart the ha server either with "ha core restart" or via the server management controls in the frontend, it restarts but the frontend never comes back until I do a hardware reboot. Pressing F12 to look at the console while the frontend is broken gives this:
core.019f4c68.js:1 WebSocket connection to 'wss://192.168.100.5:8123/api/websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
e @ core.019f4c68.js:1
It's like the web server never comes back. It's reproduceable after the system has been running for 10-15 minutes, core will restart fine before then after a hard reboot - IYSWIM
@mild veldt thx for info, but it does not work, tried to add path in '' but same warning.. > https://i.imgur.com/iLSEDPO.png
Hi all, I'm struggling with the cast to Next Hub Max, starting with the demo at https://cast.home-assistant.io/, when I click show demo and select my Nest Hub, it shows a blank white screen, not even the Hass β€οΈ Nabu Casa logo is showing
problem went away, custom card needed the update
@sweet sail should be under tap_action
oh wait.. in the meantime i forgot I reverted back to 105.5 :))
i will move back to latest and report...
@mild veldt thx, now it is ok
back to latest 106.2, all good
is mdi icon supported on button card ? this example does not show icon
- type: button
name: outside
tap_action:
action: navigate
navigation_path: /lovelace/outside
show_icon: true
show_name: true
state_color: true
icon: 'mdi:bulb'
@sweet sail are you sure that's an actual MDI?
I saw it somewhere in doc, but that is maybe outdated, You have right, when I tried another MDI, it works..
Hi all, Im having a hard time with my lovelace config , one of my views disappeared completely , if i refresh the page i can see the view for a split second after that all goes to white , i can see in the "raw config" that the configuration is there , this si the first time something like this happened to me, i have tried to reboot, restar, reload backup , nothing , NADA , same thing still happened , any ideas ?
So I've got my hassio.local/lovelace/default_view, how do I make a new lovelace entry like hassio.local/lovelace/office that will just be for my Fully Kiosk tablet in the office?
custom:state-switch or Compact Header
Was that for me? I don't mean just a new card, I mean whole new URL to browse to
yes..another view has a different URL
I'm 100% lost. I'm a nerd, I've got a good grasp on the non-lovelace aspect, but what you're saying doesn't make sense to me. When I google those things they look like custom addons for lovelace
at this point I don't even see a lovelace.yaml in my /config dir
@calm rock got an out of date custom card?
@iron locust did you take control of lovelace?
hi , @mortal cape , i have just updated all HACCs but same ..
was one of them the mini-graph-card?
nope, that looked pretty final so I didn't want to hit until I was sure I needed to
so I take it that's the first step?
@iron locust then you're not going to see a lovelace.yaml
minigraph YES
@iron locust https://www.home-assistant.io/lovelace/views/
but what if I don't want to just have a new view, what if I want my office tablet to have an entirely different lovelace setup than my bedroom?
@iron locust you're in automatic mode. You take control and that's "level 2" where you have control of the UI and can add cards from the UI and also the raw editor. Level three is "yaml mode" where your layout and card choices are strictly yaml. No UI editing.
ok, now if you go up to those same 3 dots you'll see "configure ui"
and you will be in edit mode
You can add views, add cards, add badges to views. When you integrate something in to HA now it will no longer appear automatically. You'll have to specifically add a card for whatever it is yourself
@mortal cape if i select "panel mode" for that view then i can see the first card, but when back to normal and refresh , just the whole page for a second , and then all white , nada
got that so far. I feel like I can play with the WYSIWIG editor with no problem, where does it store the YAML if I want to hand edit outside of the browser window?
it doesn't store yaml. It stores json in the hidden .storage directory. But there is a "raw config editor" in those same three dots. You can "yaml edit" that way, it will still be stored as json in .storage
ok, thanks again
I'd stick to this mode for a while. There's plenty to do. You can make views that look completely different from one another.
when you're talking about level 3, are you takling about clicking "edit" under a card then clicking code editor?
π€
no. that's still level 2
That's why I'm saying there's plenty to do and tons of custom stuff you can edit still by hand. When you're familiar with it more, then hit up @atomic glacier for advanced stuff. π
oh derp, I see the YAML mode now
that's ok. I'll play with it a bit, but I'd like to add in a nice interactive floorplan. I've got the assets complete mostly
You only have a separate file(s) to edit. There is none of this UI editing. (in level 3)
so I've got these three views: https://i.imgur.com/4hB6pQM.png , is there a way I can have a URL that ONLY shows the bedroom view without the tabs for "Home" and "Office" at the top?
ah, it comes full circle now
got it, thanks, and thanks @atomic glacier
Perhaps in the future we'll see some more built-in access controls. We just within the last year or so got off of a single API key so who knows what's to come?
Just finally moved into my house after three years of renovations so now I get to play with HA for real. I've been messing with HA in preparation for about a year.
It's come a long way in just the year.
Now if I could just stop somehow IP banning myself from within the same network over reverse proxy that would be great π
I just got one of the netgate appliance routers in the mail a couple of hours ago. Can't wait to see how badly I can screw myself with pfsense
pfSense is amazing.
I've used it for about 3 years now, built a $400 10Gb/s router and it's been rock solid.
I really am looking forward to playing with it. I'm in pretty deep with Ubiquiti, but I just didn't want their gateway
Ahhhh yeah the gateway is hit or miss, especially if you start adding on Suricata and Snort and pfBlockerNG
it's not a fun homelab if everything is in a pretty GUI
hey pfSense isn't bad.
the old days (red UI) it was quite 2000esque but it's quite a bit better.
Hi guys , I wanted to know if it's possible to have a card that dislpay only when the state of an entity match a value.
I want for example to display mqtt stuff only when the lwt is "on" meaning the hardware is connected and display something else when last will or death is "active"
I've tried with the state-switch card but the card use the default state instead of the correct one (my entity is a binary_sensor display on or off in the dev tools but "connected disconnected" in lovelace)
Yes that's what is tried to use but no luck
i try the conditional card as well but nothing shows up
Yes
it doesn't seem to make much sense
the two entities are scripts, why does it behave differently?
It will if you read the documentation for script ;)
is it because of this?
"If a script contains only 1 action, the wrapping list can be omitted."
Further down
Sorry, but I didn't understand
Thank you very much for the clarification. Now it became clear
@here, the new addons page under supervisor is all pretty with icons, but has lost the ability to show addons that can be updated.. (i dont use auto-update), is there a feature request to add this functionality back?
There will be a colored line in the top of the card if it has an update
There will be a colored line in the top of the card if it has an update
@wheat current when was this added? or is to be done?
The same time as the icons
hmm.. i am not seeing this, however I have do not have any addons that need updating as of now.I will keep an eye out for it.
it uses accent-color
i do have that in my skin.. anyhow next time I see an update i see why I cannot see it.
I have posted in several forums and researched the web for the past week and for some reason I can not find the answer I am looking for.
I want to add a picture to all my person entities and have the picture show up on the badge on each view I have it added to.
I also want to add a new icon to my scene entities and have that show up on the badge on each view I have it added to as well. I have uploaded the picture I am testing with to my server and added the config to my customize.yaml file but neither are working. Is there a good "How To" for this kind of thing?
I'm not sure where this problem belongs but I'll stick in here as it manifests itself in the frontend. If I restart the ha server either with "ha core restart" or via the server management controls in the frontend, it restarts but the frontend never comes back until I do a hardware reboot. Pressing F12 to look at the console while the frontend is broken gives this:
core.019f4c68.js:1 WebSocket connection to 'wss://192.168.100.5:8123/api/websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
e @ core.019f4c68.js:1
It's like the web server never comes back. It's reproduceable after the system has been running for 10-15 minutes, core will restart fine before then after a hard reboot - IYSWIM
hi, i removed some devices from recorder, but they still exist in history
I added new ones that appear now, but the ones I deleted from configuration are still there
any ideas?
the deleted ones are some 5 sensors and 2 track device. one tracked device is gone but the other and the sensors are still present
hmm.. deleted the db and all good now, weird
@blissful anchor more of a #integrations-archived question however next time you remove devices from recorder you will want to purge the recorder https://www.home-assistant.io/integrations/recorder#service-purge that way the rest of your data is kept instead of deleting the db
Is there anything additional i need to do to get the dark themes dark? I've tried a few of them, but the panels stay white regardless of what i do
"the panels"? π€
cards*
refresh your browser
done that
remove the theme option on the card config
Then you have not set it
and my guesses has run out, so you need to share more logs/config/screenshots
This is Google Dark theme, it still has the card colors from the Google Light Theme
clear cache
@craggy schooner posted a code wall, it is moved here --> https://paste.ubuntu.com/p/HPFBQHwfcB/
That's just the past 24h
and the view: https://paste.ubuntu.com/p/zrJDtJmwvM/
if windows ctrl+shift+r
use inkognito window
Then the theme is broken, make it better
tried with google light, google dark, synthwave, slate etc.
all have the google light panels
the settings have the card cards
oddly enough
rstarting HA again
off chance it might help
Suddnely.. weirdly it works.
can you see which custom card types are installed somewhere?
types?
added layout-card from HACS
no card is "installed", they are downloaded and refrensed in your configuration
type: custom:layout-card doesn't seem to exist though
trying to figure out of it didn't install correctly
Click the "open card" buttong in HACS, if you see a wall of code, it's downloaded
yeah its downloaded.. can see it in my file structure.. just doesn't seem to trigger on the custom type
is it in your resources?
ah
