#frontend-archived
1 messages Β· Page 169 of 1
in the example this would make nearly no difference but when you start working with higher res images, it would be kinda insane to reload the image every time... even if its cached
right, so you should be able to change the children of the content only when a relevant change is detected
that means the example is actually not optimised right? because the image is reloaded every time, apart from the fact that it doesn't change...
Here's an example which updates a label and stuff.
https://gist.github.com/thomasloven/1de8c62d691e754f95b023105fe4b74b
this makes a lot more sense @polar kelp π thank you very much...
the naming with this.button.innerHTML makes it more clear aswell..
I would vote for adding the second example to the docs
Anyone can make a PR to the docs
i know... i will keep it in mind and create a PR once i finished what i am working on ... 
Hey guys i think i might of found a bug with the logbook
I have the excluded the air_quality domain from my logbook.yaml config and i do not see it in the logbook, unless i manually select the date of today, they magically appear from somewhere
When did you exclude it?
Wait you excluded it from just the logbook, not the recorder?
correct
hmm, that does sound like a bug then
ok i will file a bug report
thanks for your help
would you categorize this bug under frontend or core
I think the core integration is where the actual logic is for the data queries
so I would put it under core. Someone will let you know if that's not correct (hopefully)
thanks
hi All,
I have a shutter switch flashed with Tasmota, all works fine but i would like to display the current shutter position in HA. Is this possible?
Does tasmota report the shutter position?
Then it would just be a matter of setting the position topic and closed/open positions in your mqtt cover config in HA
okay uhm, how should i do that?π
Did you define the cover manually?
And have you tried adding it to an entities card?
there is an "shutter status" entity, but it always hows 100%. no matter what the position really is
Sounds like itβs misconfigured then. Did you define it manually?
no i did not, the enitity showed up when i used setoption19 1 on tasmota
It seems like it's not properly defining topics for discovery then. I would ask in the tasmota discord
In the payload, it looks like it displays some "RSSI" value, which in tasmota also always is 100%
i'll ask there. thanks!
RSSI isn't the shutter... Rssi is the value for the wifi connection strenght of your esp (https://en.wikipedia.org/wiki/Received_signal_strength_indicationhttps://en.wikipedia.org/wiki/Received_signal_strength_indication)
@hybrid berry Okay thanks, but if i understand the payload, that is the value it shows
name: Tasmota_Shutter status
state_topic: tele/tasmota_shutter/HASS_STATE
availability_topic: tele/tasmota_shutter/LWT
payload_available: Online
payload_not_available: Offline
json_attributes_topic: tele/tasmota_shutter/HASS_STATE
unit_of_measurement: '%'
value_template: '{{value_json[''RSSI'']}}'
icon: 'mdi:information-outline'
this is the payload of that entity
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
Hey is there any way to see the config for the new dark mode theme? I really like it but would love to make a couple of minor tweaks to it and be able to turn it on/off with time.
Looks like you just set it in conjunction with your theme:
For custom themes, there is a new option on the set_theme service call, mode: 'dark'; this allows to set a theme that will be used when your device is in dark mode.
Lastly, when using the set_theme service, the settings are now persistent across restarts. So if you have an automation that calls set_theme on startup, you donβt need it anymore. π
I don't see a way to set it via a service call without also invoking a theme.
I tried to add "hours_to_show: 48" to a map card on my UI im using to track a device and i get the message "Expected a value type 'undefined' for 'hours_to_show' but received 48. Does this mean i am using a version of HA that doesn't have this ability? Im on HA .102.0b1
You are running a beta version from 12 versions ago, you should update anyway
we have a units mismatch
Frontend version: 20191114.0
Lovelace has been the default since 0.86
Speaking of units, I love the extra precision I'm seeing for rainfall in this version:http://prntscr.com/tyj8r0
Heh unit
oh.. version.. not years.. kek
I have a the manual install method, wish me luck, every time i update i nuke HA
If it's only positive, does that make it an absolute unit?
Maybe try not waiting 12 major versions to update π
If HA wasn't such an awesome program that never gives me issues maybe i would update all the time
I update daily π
I don't think you count.
probably not π
But seriously, you're not, like, running your prod server on dev, right?
why not?
Actually, you're right. That's probably pretty safe. And I think Paulus does too...
I updated mine to .113 yesterday...
I don't think I have ever needed to do a roll back after upgrading to nightly
I would not recomend it, but it works for me
Not sure my heart is ready for nightly. Betas are generally fine though, I've only had to roll back once due to a bad build
I pulled up my bigboy pants and upgraded to 0.112.5
that's an odd choice
But i still get the same error when adding hours_to_show to a map on the UI
You talking to me RobC?
I just ran python3.7 -m pip install --upgrade homeassistant to update my instance
thats what it gave me.
anyway, off-topic for this channel and probably unrelated to your issue
~share your card config
Please use https://paste.ubuntu.com/ or https://www.hastebin.com/ to share code or logs.
"Expected a value type 'undefined' for 'hours_to_show' but received 48" That's in yellow, right?
It was introduced in 0.108
Make sure your cache is cleared
Should also be part of UI editor
If so, it's not an error but a warning saying that the GUI editor won't work because that doesn'... ok, then it's your cache.
@vestal scaffold do you still need help?
I think your problem isn't frontend related though you can PM me if you want to.. I have some esps with tasmota setup aswell
I figured out my issue with the map. I had to update the frontend. I guess it doesn't do that when you upgrade HA. --upgrade home-assistant-frontend ... or maybe it was my cache after update
holy crapolla there are a lot of changes.
like driving a new car
I remember driving.
Hi, what is the main purpose of button "Reconfigure device" in device screen ? What does it exactly do ?
I just upgraded to 114, when I open my front page it instantly asks me which card I want to add.... every time i refrsh
who can help?
For my second YAML-based dashboard, how can I split it into multiple files per view?
lovelace:
mode: yaml
dashboards:
lovelace-mobile:
mode: yaml
title: Mobil
icon: mdi:cellphone-android
filename: lovelace-mobile.yaml
I
I'm guessing something with the filename:, but what?
You shouldn't need to have card-tools at all.
spot on, thanks
Hi all,
I am Johan and am new here. Great to find this forum. I have a quick question regarding the new 0.114 update. When switching to the new "dark mode" (great new feature), the standard map also is set to dark mode. Is there anyway to keep dark mode active but have the map stay light?
I have googled but not found any information how to accomplish that.
Setting a custom theme could of course work around the problem, but it would be great to not have to install custom themes.
That's probably the only way though.
Kudos for actually trying to google intricacies of a feature that was released 10 hours ago, though.
You could create a Lovelace dashboard with a map card in panel mode
That has an option for light/dark mode
I was wondering how to use the xbox logo mdi icon in home assistant? I type in mdi:microsoft-xbox but it does not work
Thanks, not sure how to make a feature request. But I believe forcing the map to light mode should be possible since it is overlooked when the theme mode is dark.
I suppose I have to switch back to using custom themese then for now. Thanks for confirming there is no easy soluton I have missed.
in the forum @halcyon olive
@compact pebble Look at the simpleicons integration for brands: https://github.com/vigonotion/hass-simpleicons
Thanks @dark dirge
@compact pebble mdi:microsoft-xbox should work without needing simpleicons actually (I use it in my personal setup), but you need to be on Home Assistant 0.113 or later. If you're sticking on an older version of HA for a bit, use the old icon name mdi:xbox instead.
Hello, I have sometimes problems in my HA installation, I see this error when I want to go to Configuration, or Developer tools, or other page: "Error while loading page dashboard.". When I look to the console I see this log:
{
"message": "Loading chunk 105 failed.\n(missing: https://<hidden>/frontend_latest/chunk.164c04a47708c1514dcf.js)"
}
In browser I can do refresh, then it load page, but I see this error on Android device too, and there is no refresh, I need to kill app, a then start it again.
Does anyone know what it means ?, How to solve this issue ? Thx.
Is it possible to do math in card using entity value? π€
Is there a way to get more context on these warnings? I have searched my config and found nothing. I have even had a look in the config entry json:
Icon mdi:timer was renamed to mdi:timer-outline, please change your config, it will be removed in version 0.115.```
How can I have a different styling for the last button clicked in a group of buttons, using custom button card?
You'd need some way of determining which one was clicked last before you can style them. Cards don't remember that, so it'll probably have to be some kind of template using states.
Even then, checking states of entities just means something changed, not that the button in question changed it.
I have jinja2 I can use in YAML files - I'm using Dwains-Theme, from scratch. I know how to use jinja, but no idea how to save the button state on click or something. I have a web development background and things work very differently there.
I will have a better look at states. Any pointers where to get me started I would appreciate. Are states only boolean?
A state can be anything. Entities each have a state and may have several optional attributes.
But you don't set states from the UI. Nor, I think, can you keep track of them over time like you're suggesting.
If you're used to MVC, Lovelace is just the View. The Model and Controller are elsewhere.
Or maybe it's closer to MVVM, I forget π
But if you're using something as heavily-customised as Dwain's Theme, you might need to raise a feature request over there instead of trying to hack something together.
Could be somewhere in between too π
I know he does it, and I can see where the code is, but doesn't make sense logically, I'm missing something or I'm not placing things properly in YAML
@true jungle most likely an addon
In his theme, he's giving a YAML key a value, and then checks if that key matches another value using jinja
If you can link me to the code, I can have a quick look. But I'll warn you, I'm not great with Lovelace or Jinja π
Haha! no worries, me neither, I just started playing around 2 days ago. Thank you though! I'll PM you the code links.
In here is fine, that way other people might see something.
I'm not hanging around long, just having a quick break from work.
Sure then π Here it goes:
It starts from here: https://github.com/dwainscheeren/lovelace-dwains-theme/blob/1.4/dwains-theme/views/main/01.homepage.yaml#L232
The way he !includes the header switch YAML file is weird to me. Inside that file, he basically loops to create a horizontal-stack made of custom:button-card - which is the group of buttons for the menu. Can be found here https://github.com/dwainscheeren/lovelace-dwains-theme/blob/1.4/dwains-theme/views/partials/heading_switch.yaml
Note that he uses active and headings as variables which are YAML keys provided just under the includes.
Changing active to another variable name still works.
Yeah, that's beyond me π
That's fine! Thanks for you help anyway. I'll post in here when I'll figure it out π
Hi. Is there an option to order panel_iframes using e.g. an index?
Regards, setting up a menu with last clicked button with different styling - this is a possibility in Dwains Theme. In your Lovelace YAML file
cards:
- !include
- ../partials/menu/menu.yaml
- active: {{ _d_t_trans.main.title }}
Whatever is inside ../partials/menu/menu.yaml can use the variables stated under it ( active ). The !include and the YAML mapping as shown are key factors to get this working. This is only possible because of how Dwain is parsing YAML in his component and because he enhances YAML up with Jinja. Quite a wizard!
This is my best how I could understand it π
Aha log viewer, thanks @wheat current
Here's the documentation for that function, xiki: https://github.com/thomasloven/hass-lovelace_gen#passing-arguments-to-included-files
Browsing through the last couple of messages; what you want can't be done only in the frontend without changing how the button card works. As Mono said, you need something in the backend to store the latest clicked button.
Kudos to you @polar kelp ! Really glad to find this, I will be refactoring my code to depend on this. Thank you very much to your awesome components for HA!
Anyone have GDACS and have a markdown on Lovelace? I have the Mt Sinabung volcano message but the issue date is 2019. Any reason why is it so? Last I heard was Aug 10th.
I'm using state.attributes.from_date.strftime
hm, if HA finds a broken image, it apparently replaces it with /static/images/image-broken.svg; how can I find out what the original broken image was? or, rephrase, when does HA send out an image-broken.svg file?
are themes not available in yaml mode?
I mean the color pickers and all the other goodies https://www.home-assistant.io/blog/2020/08/12/release-114/#dark-mode-and-theme-color-pickers
Can anyone see why this conditional is not working. I initially thought it was because the integration didn't expose a state for 'No Scheduled Game', but the dev patched the proper state into the integration. The conditional still isn't working though (card should be hidden when 'No Scheduled Game'), but it is not.
card:
cards:
- name: Current Games
template: header
type: 'custom:button-card'
- entities:
- entity: sensor.toronto_maple_leafs
show_header_toggle: false
type: entities
type: vertical-stack
conditions:
- entity: sensor.toronto_maple_leafs
state_not: No Scheduled Game
type: conditional
I tried that as well. It didn't work either way. Also tried single quotes.
state_not: No Scheduled Game
state_not: "No Scheduled Game"
state_not: 'No Scheduled Game'
None of the above formats work. The card shows up for all three.
I'm not sure if there is some weird thing I'm missing, if its a bug with the integration, or a bug with homeassistant.
try all lower case?
I tried that as well already.
what does "states('sensor.toronto_maple_leafs')" give?
The state in Dev Tools is listed as "No Scheduled Game"
It just returns: states('sensor.toronto_maple_leafs')
Knew that didn't look quite like jinja..lol
"No Scheduled Game "
Looks like the state has an extra space
Thankee Sir
As I expected π
Hello
Can you tell me if entites car, type conditionnal, can work with template stat of a sensor. To make a conditionnal card for battery
Doc don't specify that
Hey guys, since the new version whenever I load the main lovelace page I get the add a card popup "Which card would you like to add to your "default_view" view?"
any ideas? this guy had the same issue but deleted his post https://community.home-assistant.io/t/114-0-resulting-in-which-card-would-you-like-to-add-to-your-default-view-view/218269
Remove card-tools unless one of the cards you are currently using explicitly tells you that you need to have it installed. If one does, upgrade it.
thanks, removed card-tools.. restarted HA and its still there
Are you using the old beta version of card-mod which introduced theme styling?
yes I think I was, I removed it from lovelace resources and the box is gone. Much appreciated
Then you should upgrade that if you're using it. That functionality is in the main version now, and much improved (albeit undocumented so far).
I have had a habit of installing mods and never using them, Ill see if anything breaks from removing it. so far so good
Why, if i do a "ha core stop", HA server will always restart automatically after the stop? Which is the correct command to only stop the server?
I'm not sure how that's anything to do with Lovelace. Try asking in the installation channel for the method you used:
Not sure which install you're using? If you have system_health enabled you can check Configuration -> Info, or see the following.
-
If you're using HassOS, flashed an image, or booted a VM with an image you're using #330990055533576204
-
If you installed Linux and then ran a script to install HA and have add-ons then you have #330944238910963714
-
If you're running
dockercommands or use a Docker manager and have no add-ons then you have #449717345808547842 -
Finally, if you use
pipto install or upgrade you have #551864459891703809
Having difficulty chosing an install method? See this blog post for guidance.
@karmic tiger are you answering to my question?
Ok, but i think it's not related to the installation... i have hassos running on a RPi4 so the command must be "ha core stop" but there is something that after the stop restart automatically the server...
It's definitely not about your Lovelace dashboard.
And the behaviour of how the back-end stuff works is likely going to depend on how you're running it... i.e. how you installed it.
Pick an installation channel, ask there.
It is related to the installation, you can not stop Home Assistant on HAOS
If you don't believe me, believe the dev π
Ah, so which is the command to really stop HA ? I am only following the instructions i have about hassos
Ask in #330990055533576204
ok i'll do it, thanks...
Will not help, there is none :D
https://github.com/home-assistant/frontend/issues/6609 Proof
I don't disagree. Just figured this is the wrong channel to be having the discussion π
That I agree to π
But this problem is not related to a single release of HA as since i installed for the first time hassos (one years ago i think) i had always the same issue... If i do the command from the frontend or from a terminal i always get the same behaviour...
The behaviour of the backend of your HA setup depends on how you installed it.
This channel is for all the pretty UI stuff people make, not questions about the backend.
π
nobody know conditional cards ? Or conditionnal type on entities cards ?
It cannot. It only works for the state.
You can try this instead: https://github.com/thomasloven/lovelace-auto-entities
how do I reference a local icon? icon: mdi:'localpath\filename' is that right?
'mdi' = Material Design icon
that makes sense. just never put 2 and 2 together
I have used those icons many times.
but now, I am wanting to use a custom animated icon that changes per a template
so, then it is just icon: 'local/path/filename'
Thanks.
You have to use entity_picture not icon
OK, thanks
Iβm redecorating Lovelace and I need some help. I have a particular theme that includes transparency on all the cards. In one particular view, Iβve chosen a different theme, but the transparency persists.
Some themes manage to override this transparency, but I canβt figure out how theyβre doing it. What am I missing?
is this the correct channel to ask about errors in log showing up on frontend?
basically im getting "Login attempt or request with invalid authentication from 192.168.1.93" which is my unraid server. i'm unable to figure out what would be causing that
@wet schooner I've tended to use a theme that uses the same color of the background. rgba(0,0,0,0) or transparent might work too
Sorry. I probably wasnβt clear... The transparency works fine. My issue is that Iβm trying to make the cards solid on one particular view by changing the theme for that view. Unfortunately, they are still picking up the transparency from the global theme.
@umbral harness could it be that your unraid server is trying to access the samba share in Home assistant?
oh possibly
im a noob with smb.. but iirc it tries to add it to a swarm with a master?
Sorry, I have no idea.
Hi, does anyone know if it's possible to switch the image that a picture glance card references so that it displays one image in dark mode and another image in light mode?
I would think you can do that with a template, but exactly sure how.
@gilded tiger i added guest in smb to see if that's it.
good call. if this fixes it i will
@junior anchor if you figure it out, let me know. I would be interested in the full solution
@gilded tiger will do, I have poked around the templating some but hadn't gotten anything working yet.
i have another question regarding streams from a camera. i'm using the picture entity card with a stream from my unifi doorbell (exposed as camera.doorbell entity) and after some time the card kinda.. disapppears? i have to refresh the browser for it to come back with a stream on lovelace
check out this card. https://github.com/dimagoltsman/refreshable-picture-card
it may fix your problem.
it might
but i just realized it's really low fps
i think i need to try rtsp instead
yes, I would agree try rtsp. I had a camera running the rtsp stream that worked well.
I don't think so.
the picture glance cards, via the UI, has an option for camera feed.
i can figure it out
i think i need to read the docs on the hacs unifi protect integration
in unifi protect you can enable an rtsp feed.
and setup a camera in you configuration.yaml file
something like this:
- platform: generic
name: Cam1
still_image_url: "null"
stream_source: rtsp://admin:password@192.168.x.x/live
verify_ssl: false
i did enable the rtsp feed within protect on the camera
yeah i think he is already exposing that to doorbell.camera
make sure you put a static ip on the camera.
but at low fps
yeah
good call
thx, i'll play with it
check out this card. https://github.com/dimagoltsman/refreshable-picture-card
@gilded tiger for this do i need to add his repo before installing with hacs?
buena suerte
i just moved from the docker container hass to hassos so i'm new to all the fancy stuff
no, just install via hacs
there are instructions within the repo for installing via hacs.
ah it's under frontend
sure enough
yea
i noticed the documentation.. was surprised it was so good
tyty
on my install, I aways have to add the resources manually
that's how my setup was
i really like moving things to docker and away from VMs, but i bit the bullet
btw looks like samba was the culprit to that error in logs
good call!
@gilded tiger another noob level question regarding the refreshable picture card..
in the github repo it shows "resources:" then a bit of code
does that mean it wants me to add that to the configuration.yaml?
i assume so
if you're managing Loveloace through the UI, you can go to Configuriation->Lovelace->Resources
are you building your pages via yaml? or via the gui?
mostly gui
you're either in "storage"mode (UI) or YAML mode (YAML)
i see it in resources now
so that means it is linking it to the config via gui instead of adding to the configuration.yaml file?
it keeps them in .storage for you
ok
so then i think i was a bit confused with what i added
i thought the refreshable picture card would then show up as an option to add an entity to
similar to picture glance card etc
instead, is it allowing me to add those cards via the manual card setup?
you have to select custom card at the bottom, the enter the code for it, like in the repo
gotcha
that was my misunderstanding
i thought the repo was just showing how i could manually add it, not as a requirement
success! appreciate it.
Glad to help. Lord knows I have received plenty of help here myself.
Since I have updated to 114 my Mini Graph Card graphs are not visible anymore. Anyone any idea how to resolve this ?
hey guys, to use decluttering card its necessary use lovelace mode yaml? or can use it by UI?
Hey guys, I'm new to Home Assistant and have been playing with custom dashboards. I've scoured the docs, but cant seem to find a way to customize the entity buttons at the top, above the cards. Is this possible?
Theyβre called βbadgesβ
thank you, that helps.
The only thing I could do with one is disable the entity, but that didn't seem to help. left the badge there with a warning.
I've created multiple dashboards, one for our rental home and one for our primary home, and I want to have only the badges that apply to that house. Fixing the cards was easy, but I'm stuck on the badges.
now that I know what they are called, I've been able to find a little more info online on how to customize them.
Since I have updated to 114 my Mini Graph Card graphs are not visible anymore. Anyone any idea how to resolve this ?
@primal idol
I have recent updatet to 114 my mini graph card is working maybe you need to update the mini graph card
im wondering if its possible to reformat date in this format 2020-08-17T00:00:00+00:00 to a just "17-08" within flex-table-card lovelace card
ok, dont mind me, i have found something even better. Will share on the forums shortly
@vagrant summit Badges are specified when editing the options for the view / tab, along with the URL and icon.
Question: How should i create a card, where the hold tap action turns on/off all the entities in it. double tap action opens up the card as a popup? :)
especially having several entities
Have you checked the documentation for defining the different actions? https://www.home-assistant.io/lovelace/actions/#hold-action
I have just added the new accuweather integration. Is there a good frontend card that I can start with to learn how to use this integration?
Is there any way to fix the weather app? The text is too long for the card widht
When you are using snapshots to restore, is there any reasons HA could not allow you to upload snapshots through the web ui? currently I have been having to install an addon and mess around with that to get access to put snapshots in, would see a easy way to get back going, is this something that can't happen for a reason or worth posting as suggestion.. thoughts?
hey, quick question, i'm on the latest 114.1 build, and i am unable to add any helpers via the GUI, all of the options in the dialog are grayed out. i originally had one input_datetime configured in yaml, and that one showed up as available but the others aren't. in testing, removing it from my config makes them all gray out.
is there something i'm missing? the documentation doesn't state it has to be turned on in the yaml config, but i'm wondering if i need to
well, enabling them in the config enabled them to be added via the gui, so i guess it's required
ah -- it's listed in default_configuration now, and i don't have that enabled. that's why!
@chrome island you need to either have default_config: or add them all manually
beaten
π yup, just figured that out! i'll keep an eye on default_config during updates and such. thanks @latent moss!
Hi, I have the mini-media-player configured and I'd like to setup the "label" field so that it picks the value from a sensor.
my current working configuration is:
label: Radio
what I would like is:
label: { states(sensor.radio_station) }
but that gets evaluated to '[object object]' and I don't know enough of yaml to fix it... can anyone help please?
Since I upgraded to 0.114 I have this notification:
Invalid config
The following integrations and platforms could not be set up:
history
logbook
default_config
Please check your config.
My configuration is valid though.
And default_config: is in configuration.yamml
And there are no Logbook and History items in my menu anymore.
How can I get them back?
Easy way:
Delete the DB file and restart Home Assistant
Thanks @wheat current! That was it.
@little barn You gave it an object, not a template. Jinja templates are surrounded in a pair of double curly braces {{ }}.
any cool sensors that work with pfsense?
not really a #frontend-archived question, more #integrations-archived
Anyone else have a problem with Lovelace showing the pop-up "Which card would you like to add to your "Home" view?" every time you load your dashboard? It's really annoying π«
Yes, they are. And if you used the search, you'd find the answer π
You have card-tools installed. Don't.
Only answer I found was to update HACS integrations and restart. Tried that but it's still happening
Unless you explicitly need it, don't use it.
Is there a way to reset Lovelace and let it rebuild its automatic screen?
Just make a new dashboard and don't take control of it.
I'm pretty sure I don't have card-tools installed. Can't see it in HACS or Supervisor
Most people there are reporting card-tools as the culprit. Even if you didn't install it via HACS, it sounds like you installed it manually.
Just make a new dashboard and don't take control of it.
@karmic tiger how do I do that?
> Lovelace dashboards > +
Thanks mono, I'll take a look at the issue
That did it, thanks a bunch!
@karmic tiger That worked, I found it in Resources π
the names of some icons are changing and others are being added or deleted
which version of HA are you using?
it's working fine for me
you may want to enclose it in quotes
'mdi:sleep'
ok
it seems home assistant automatically sets the radius around my house to like 200meters. where or how can i change it i cant find it in the config folder anywhere
the database has nothing to do with icons. other than reviewing the logs, I don't know what else to suggest
@hexed socket Did you configure a home zone? In YAML or the UI?
you can change the radius if you do
it wont let me under the maps tab
i have another zone setup and it has a with thing to shrink the size home is organge and wont shrink
I configured mine in YAML, so I don't know what it looks like in the UI
can i add something to my config.yaml?
yes
ok ill research a bit more
Hi there, super basic and probably silly question. Running Home Assistant in docker, have hacs setup, I install a front end custom card, then go to lovelace>dashboards> resources and add the card I just installed i.e. /hacsfiles/slider-entity-row/slider-entity-row.js then restart HA, and yet when I try to add it into my lovelace it says that the custom element doesnt exist. Im sure im just missing a simple step, but I cant figure out what it is.
are you managing Lovelace in YAML or the UI?
currently in UI
i think hacs auto adds the resources may be wrong
I think HACS should automatically the resource for you
is there a way to tell if it has or hasnt?
what does your card config look like?
it should show up where you say you added it
and it should auto-reload resources, so no restart should be needed
- type: 'custom:slider-entity-row'
entity: light.hanging_lamp```
there wasn't anything in there, and so ive been trying to figure out what file path it desires to see the module
tried like /www/community/slider-entity-row/slider-entity-row.js as well as just /hacsfiles/slider-entity-row.js etc
odd i just install via hacs install button and rebooted and the resource showed up
Hmm
it tells you when you add it:
url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
type: module
that came from HACS when I just installed it
it can be confusing because the docs for the cards usually have a different path, and you can put it whereever you want manually
Ah, I missed the lovelace part there...my bad :(
but it looks like you're using the wrong path
np
that's why HACS should really do it for you, so you don't have to worry about it
Next I need to figure out the best way to add a whole room slider
There should be a "flex" channel here for people to share what their lovelace looks like, would be fun to drool over them
@hexed socket BTW, this speaks to your zone radius question: https://community.home-assistant.io/t/setting-home-radius-in-new-zones-ui/169497/2
there's a "Share your projects!" section in the forum
ill have to browse
probably better there than to have them lost to history in Discord
hahaha that link fixed it in 2 seconds
Googled for "home assistant zone radius" π
Man I copy pasted from another one, and it didnt work for some reason... /hacsfiles/mini-media-player/mini-media-player-bundle.js url: /hacsfiles/mini-media-player/mini-media-player-bundle.js type: module
you can always browse the directory yourself and find the file
"/hacsfiles" is just "www" and everything else is below it
I know the file path is /www/community/mini-media-player/mini-media-player-bundle.js
oh, "/hacsfiles" may be "/www/community", then
and I copy pasted the card from the github, so that shouldn't be an issue
yea, because the slider thing worked with /hacsfiles/
is there a way to pin a card? like badges but pinned card that always on top no matter what viewport is
You could take control of your dashboard and come up with a sensible layout. A mix of horizontal and vertical stacks can work. Or use layout-card.
when bringing up cctv-cameras in the lovelace ui, is it possible to also get the sound from the microphone on the camera?
I have a card for my Harmony activities. 2 of these should lower the projector screen. However, as the screen takes a bit to lower down I would like it to start at the press of the button - not via automation based on remote entity status change (the status change only occurs after the activity is fully launched). Is it possible to build this command into the button for the activity?
- action: toggle
entity: cover.shutter_screen_switch
- action: call-service
service: remote.turn_on
service_data:
activity: Leinwand
entity_id: remote.wohnzimmer
type: button```
i.e. like this, but I am not in a position to test this right now.
Having an issue that started sometime after updating to .114 where certain cards are not showing up in Chrome on Windows or Fully Kiosk on Android. The cards are still showing up on iOS Companion and Fully Kiosk on Fire Tablets. The cards in question are custom button cards with the same configuration. Any thoughts?
actually on above, it should look like this but I am afraid the 3 action items under tap won't work: ```tap_action:
- action: toggle
entity: cover.shutter_screen_switch - action: call-service
service: input_boolean.turn_on
service_data:
entity: input_boolean.harmony_activity - action: call-service
service: remote.turn_on
service_data:
activity: Kino
entity_id: remote.wohnzimmer
type: button
I believe a tap action has to be a singular action. However, that tap action could be a service call to invoke a script, and your script could have all those steps π
oh perfect - thats the solution I was looking for. I will give it a try, thanks
Good morning. I have a zwave motion sensor that shows 'on' or 'off' as the state. I'd like the icon on the screen to show a diff icon for the on or off state. Is there a way to do this from the standard lovelace ui config? or on the entity itself when setting the icon?
hey, is it only me that the weather widget's precipitation value is badly rounded, always renders like 0.99999999999 instead of 1? (can't attach picture on this channel)
It's happening for all of us. Someone forgot about floating point math.
It'll get fixed π
If you ever want to know if other people have a problem, it's usually better to search the issues
Want to see what issues are open (or were open and are now closed)?
There's one open for this: https://github.com/home-assistant/core/issues/38807
And you only got 22?
Totally wrong. This is unacceptable.
I know, I need to see a manager and a refund
oh wait
it's me. I'm the manager.
LOL
I might get fired over this brb
ok so the boss is a prick and I hate it here
LOL
anyway back to work I go, I'm a slave driver too
Still trying to wrap my head around yaml, and json, and how sensitive it is on the formation of text.
I have a switch: statement in my configuration.yaml from before, and now im trying to add an integration from reolink cameras, that also seem to contain a switch: statement, how can i make this work?
switch:
- platform: foo
...
- platform: bar
...
including the new code in a separate file and calling it with !unclude does not help?
Oh @muted inlet i can do that even if they are completely unrelated to eachother?
yeah, you can only have one of each primary key (switch: in this case)
.packages are an exception to that rule, but those are handled differently
To enable packages, add packages: !include_dir_named packages to your configuration.yaml so that it looks similar to this:
homeassistant:
name: Home
latitude: !secret home_latitude
...
packages: !include_dir_named packages
Important: The packages: line must be nested under homeassistant:!
For more information on packages, please refer to the packages docs: https://home-assistant.io/docs/configuration/packages/
For some reason i have always figured that code close together needed to be related
Yeah i have read several posts regarding how great packages are, being able to call a dir of your own yaml files
well, they are related. they're both switch: platforms
but the hyphen makes them a list which separates them
But splitting it into packages also makes troubleshooting somewhat more dificult?
oh this is an #integrations-archived topic by the way
Right you are, ill ask in that channel next time π
I have a button card. I want haptic feedback when it is pressed (i.e. I want my phone to vibrate when I click it). Any way to force this?
go to your profile and make sure "Vibrate" is turned on
It is, but the button doesn't vibrate my phone. It vibrates for some other things, so I know that the vibration works.
That's why I'm asking about the button card specifically.
hmm, that's weird. works for me with button cards π€· maybe try force closing the app
Hmm. I'll keep messing with it then. Thanks!
Anyone know where to start with this issue?http://homeassistant.local:8123/frontend_latest/chunk.cf565e41b8a8dce0642a.js:133:238 Uncaught TypeError: Cannot read property 'header' of null
It seems like all my zigbee devices has bugged out somehow during the day
- verify that the file exist
- clear browser cache
- Check browser console for issues
Where is the proper place to request MDI icon additions?
That would probably be over on the Material Design project.
HA uses what's in MDI. HA doesn't add to MDI.
Thanks! I already had MDI create the icons I want. Just need HA to include them.
So is there a specific area in GitHub for those requests or are we just at the developer mercy? Haha. I had MDI create an alarm panel icon for my custom alarm
The specific area is on that page Ludeeus just linked.
HA will eventually use a newer version of MDI, at which point you'll have access to all the icons in that version.
Thatβs actually where you request for MDI themselves to add an icon, but alright.
Thatβs where they come from
If the icon already exists in a newer MDI release, itβll eventually be picked up. If you want a new icon that doesnβt exist, you need to go to the source
Hi everyone, i have a toggle script in my frontend and i want that when i toggle the script with a button card, it switches between two different mdi icons, is this possible ?
Don't hesitate to mention me if i don't reply under 1 hour from 10am (UTC+2) because i'm very busy with notifications on discord
I'm french so sorry for my english if it is bad
@candid acorn you could make a template switch which turns on the script as the turn_on action, and then use icon_template to tell it which icon to use. probably use an input boolean in the template
or just put the whole script in the template switch and dont use the script at all
my script which is called in the button card in the frontend is a call service of a rest command which mute / unmute my speaker
you could put the rest command in a template switch.
can you explain me more please, i don't understand well what you're thinking about
a template switch runs actions (like in a script) as 'turn on' and 'turn off'. and you can define the icon and value template.
you'll just have to look into it, but it can do what you want.
good luck!
thx
i've tried that but the switch doesn't change state :
switch:
- platform: template
switches:
toggle_mute_cdj_speaker:
value_template: "{{ is_state('switch.toggle_mute_cdj_speaker', 'on') }}"
turn_on:
service: rest_command.toggle_mute_cdj_speaker
turn_off:
service: rest_command.toggle_mute_cdj_speaker
icon_template: >-
{% if is_state('switch.toggle_mute_cdj_speaker', 'on') %}
mdi:volume-high
{% else %}
mdi:volume-mute
{% endif %}
Can you help me
please
i go to bed, so i will see that tomorrow
good night
you still can reply to me, i will read all at my wake up
Anyone else having an issue where history-graph cards don't update unless you refresh the entire page?
since upgrading to 114, I get a card popup when opening the lovelace frontend, and when refreshing. "Which card would you like to add to your "default_view" view?". any ideas?
@flint shard Thatβs been an issue for a long time, and one of the reasons I moved to mini-graph-card
Might have to look into that. Is it possible to label the graph's axis with that add-on?
Yeaaah, that's why I don't use the graph on HA's built-in sensor cards
No axis labels kinda make graphs worthless
Yeah, looks like it doesn't label the X axis at all, and labeling the Y axis is limited
I have yet to find a graph solution that meets my needs
Same, the history-graph card is the closest, but it's buggy in a number of ways
And the lack of auto-refresh is killing me
@dark dirge Hmm, installed it, set my card to show Y axis labels, and... nothing. Still only shows them on hover even though they're set to always show
Yeah, thatβs how it works. Itβs all about minimal design
Except the documentation appears to show you can make it always show labels...
Default: Hover. Options: Hover / True / False
Fine for trends, not so great for visualizing actual data points
I would assume "True" = always show
Actually, even setting them all to "False" doesn't work...
Still shows them on hover
Or file an issue
I'm probably just going to uninstall it, it really doesn't do anything the Sensor card doesn't already do
There's a little more here, but not much
Hi Is there a known bug with "Select which users should see this view in the navigation" in the lovelace panel view.
Me the admin have 3 tabs A,B,C in lovelace
i only want my daughter with her own login to see tab C
when she logs in she can see tab A
somethings not right has anyone else see this or is it just me.
I have a feeling that was fixed recently. What's your version?
@polar kelp Hi im running 0.114.1
@polar kelp i just noticed 0.114.2 is out ill update to that as well
I don't know if the fix is merged to the released version, but I'm pretty sure someone mentioned making it.
@polar kelp Ok great thank you
Quickfix is to move tab C to the first spot, iirc.
@polar kelp Lol yes ive been doing that thanks
hello all... is it possible to a card-mod (or somting similar) to all the cards at the same time, with template? I have a lot of entityes that have the same attribute, and I would like, for example, taht if that atribute is true to change things in the style, like background or the icon color
Hiii. Is it possible to do jinja template within auto-entities?
Like - entity: "{{ 'this.entity_id_uptime' | replace('light', 'sensor') }}"
The this.entity_id contains light.shelly_*
Full config: https://pastebin.com/raw/ti0NmpdR
Layout looks like this: https://imgur.com/tsGCBLi
My real question is: Am I able to modify the this.entity variable? Like prefixes, suffixes and replacements
Wondering if anyone else is having a bug that I'm having.
When I open home assistant on either my phone or PC. I get the add card interface pop. I can cancel it and carry on as normal. Strange thing is I'm not even in the edit UI screen.
should state_color: true should work on a glance card with any mdi icon?
pretty sure the answer is yes
@round lily are you doing that ui display w/o an intermediate template sensor?
@round lily are you doing that ui display w/o an intermediate template sensor?
@lavish solar its the garbage collection custom component
oh ok, i thought that was a google calendar entity directly displayed
my google cals show up in the new calendar tab tho π like that feature
me too,
Hi guys, I've got a weird problem...apologies if I'm not searching for this properly on the HA forums.
Every time I "refresh" the Lovelace UI (F5 on Chrome, drag down from top on my phone), I get a popup asking which card I would like to add to my Home view. It's the default "Add new entities" card, it happens every time without fail.
I am not in the "Configure UI" view. I'm literally just refreshing my frontend
Not letting me upload a screenshot here...not sure how to proceed.
I have tried:
- Restarting HA from Configuration -> Server Controls -> Restart
- Restarting HA through Supervisor -> System -> Reboot
- Rebooting the actual VM (ESXi, Hass.io VMDK image)
^ None of the above work
It's even happening on my wife's HomeAssistant mobile dashboard - she's not an Admin user and does NOT have permission to create new UI elements!
Please use imgur or other image sharing web sites, and share the link here.
What version of HA are you using and are you using any custom frontend cards/plugins?
Thank you Villhelm - I'll upload a screenshot via imgur right now.
I'm using:
- HassOS 4.12
- HomeAssistant 0.114.2
- ESXi 6.7, VMDK image
- HACS, with a few "frontend" components. button-card, fold-entity-row, Secondaryinfo Entity Row, card-mod, Atomic Calendar, auto-entities, card-tools
^ These frontend components are primarily for the Simplified ZWave Lock Manager that FutureTense and firstof9 put together
Here's the view that pops up each time I refresh. Both on my Admin account (Desktop, Mobile) and my wife's non-admin account with a personal dashboard I've built just for her (non-admin, both desktop and mobile) https://i.imgur.com/ddVQgCz.png
Does it let you actually add a card?
Yes, if I click say "Gauge" (the second icon in the screenshot above) it'll happily add the SM-G965W Battery Level gauge in. Even on the non-admin acc
Interesting. Definitely seems like a pretty major bug
Correction: it'll add it on my Admin account. On the NON-Admin account it'll get to the "add" part but won't actually add. It'll just keep spinning on the "Submit" page
Well at least there's that
Makes sense, since non-Admin account does not have Configure UI permissions - it's only a dashboard for the wife with no modify privs
yep. To make it go away, on desktop I hit esc and the dashboard behind it, behaves as normal. On mobile (Android) I have to go to "Cancel". My wife pointed it out since the "popup" shows up each time and she has to dismiss it to control any lights etc
One thing to note, I'm on HACS 1.3.0b1, whereas 1.4.1 is available. And card-tools (custom card) version 10, version 11 is available. I will update those and report back
HACS doesn't "nag" to update, I have to go to the HACS template page to see any updates available, so I usually miss it
https://hacs.xyz/docs/basic/automation#updates-pending You can make it "nag"
@rocky arrow do you have card-tools?
They said they did have card-tools
@wheat current thank you for that HACS notification piece! I'll take a look at that next π
@elder pendant @polar kelp yep - I do have card-tools. Just updated HACS to 1.4.1, will try updating card-tools next. It was on v10, available is v11
@polar kelp can you tell me a bit about that? Why remove? I understand update, it should always be latest of course
FYI, after updating HACS to 1.4.1 (figured it's unrelated) the popup still happens every time so far
Since... idk... 6 months, maybe(?) all my cards have the relevant pieces of card-tools built in rather than require it being installed.
You should only have card-tools installed if the documentation for a card specifically says so.
And if you find one of those, let the developer know Iβll gladly help them update to the new, better method.
ah, you're the developer for card-tools! Very cool. Just saw the github page for it, ty π
For reference, I got to card-tools from here: https://community.home-assistant.io/t/simplified-zwave-lock-manager-update/166419/1
^ Here the description states to have lovelace-auto-entities and lovelace-card-tools in order for the UI to behave properly. Not sure if this is the most up-to-date method
Yeah... those instructions seem to be just over a year old...
Yep they're definitely out of date. I followed the original + a combination of @round lily 's followup instructions in the (long) HA Community thread above - thanks for that, by the way!
Ok, just updated card-tools to 11. Restarting - will let you know how it behaves after
looks like 23 days ago, firstof9 suggested (in that same discussion thread above) to ensure HACS card-tools and auto-entities are still added
Holy moly the things this developer does!
Itβs more hacky than if I had made it!
Amazing!
lol
all i did was convert FutureTense's .sh into a similar python and intergationized it
Canβt see anything in there that requires card-tools, though.
π hey! yay more people to the party
I can't speak on what the hacks are, but I know simplified-zwave-lock-manager was built off ANOTHER lock-manager project, so card-tools might be dead code in there
@round lily i'm referring to the immense help you provided me and several others on the HA discussion thread, especially between May/June π
Iβm sure it works, and probably consistently too, but... letβs say itβs not how things were meant to be done...
Fair enough haha - good to know
Then again, itβs not things that were meant to be done either...
The modability of Home Assistant keeps blowing my mind.
Ha, agreed!
hopefully that's a good thing π
i think lock manager's only using the fold-entity-row card now
@rocky arrow i posted my UI on github in case you'd like to have a look: https://github.com/firstof9/my-ha-config
@polar kelp so I CAN confirm..updating to card-tools v11 DOES solve my problem. The HomeAssistant UI new card/entity popup no longer shows up. Tried after a fresh restart, login, both on the admin (mine) + non-admin (wife's) account. So that did it - thank you very much!
@round lily I really appreciate this, very detailed screenshots. Lots of good stuff in your UI, will take a look - thank you!
you're welcome π
Around 0.113 I started getting an issue after home assistant was up for a couple days. I refresh a page in lovelace and just get a blue spinning circle. In the logs I see ```
2020-08-18 14:27:31 INFO (MainThread) [backoff] Backing off call_api(...) for 0.4s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:32 INFO (MainThread) [backoff] Backing off call_api(...) for 0.7s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:33 INFO (MainThread) [backoff] Backing off call_api(...) for 0.8s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:33 INFO (MainThread) [backoff] Backing off call_api(...) for 0.7s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:33 INFO (MainThread) [backoff] Backing off call_api(...) for 0.8s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:33 INFO (MainThread) [backoff] Backing off call_api(...) for 0.2s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:35 INFO (MainThread) [backoff] Backing off call_api(...) for 0.4s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:45 INFO (MainThread) [backoff] Backing off call_api(...) for 0.6s (asyncio.exceptions.TimeoutError)
2020-08-18 14:27:45 ERROR (MainThread) [pyhaversion] Timeout error fetching version information from PyPi,
2020-08-18 14:27:46 INFO (MainThread) [backoff] Backing off call_api(...) for 1.7s (asyncio.exceptions.TimeoutError)
If I have an entity called sensor.door_contact how can I display the corresponding state.last_updated on a card in lovelace?
nm, found it: - entity: sensor.door_contact
secondary_info: last-changed
Hello everyone
i made 2 scripts : start stream and stop stream and i wonder if i can use 1 nice button for this in lovelace in stead of 2 seperate buttons ? Play/Stop
can someone maybe help me please
I have such a weird error
whenever I open something like a badge and close it, it will act like i hit the back button and go in to the last menu I was in
not sure why heh
@rocky arrow I am getting the same thing. Can you let me know if you get a fix or a reply?
The answer was to either uninstall or update card-tools
@unique jay ^ this exactly, what @elder pendant said. I had to update card-tools to v11. Didn't chance uninstalling it because it claims to be needed for Simplified Zwave Lock Manager
@rocky arrow Thankyou. :) Just did it and it's seemed to have worked now. I didn't see what Villhellm had said previously unfortunately.
Thanks for the help!
any ideas why my map wont show tile nicely? It shows one of them on the "map" sidebar thing. It shows all properly in a map card. Why wont it show in the map sidebar thing? I've reconnected tile, etc with no dice
(I dont think it's a tile issue since it works fine in a map card just not the main map)
looks like it will only show items not at Home... π¦
Does anyone know how to force Lovelace to stick to 2 columns without putting everything inside two vertical stacks side by side (assuming that would even work)?
Also, can badges receive custom names?
Morning all, Was hoping for some advice please. I have a Fibaro RGB dimmer and setup the custom:light-entity-card and I can cycle through colours however the colours on the card don't match the output from the lights for instance setting red comes out yellow and was wondering if there is a way to correct that?
does customize_glob: "switch.*": state_color: true
not work anymore? i got it in my config but in lovelace my switches still dont show state color
I donβt think thatβs a customization, but a property for a card
A bunch of people thinking the same as you, a bunch of people realizing it doesnβt work, general pitchforks and arguments, and the whole thing fizzled out months ago
so i have to add it on every single damn card?
that sounds like a horrible idea
even more so as it does not work with folding entity row
got it to work, but thats just a horribly dumb way to have it tbh. now i gotta set it to every single damn card
wierd thing is it does show state for some switches anyway, without having it inside the card or customize section of the config..
im ok with haveing the option for it, but it should default to true, i cant imagine a single person going "oh shit, why does it change color, i dont want that"
I everyone. I just updated from 0.113.3 to 0.114.2 and now the webpage is down. I can ping my server
Custom element doesn't exist: monster-card.
what might be the problem, it seems that i set up the monster-card correctly
In /config/ui-lovelace.yaml i have:
- url: /local/monster-card.js
type: js```
with the monster-card.js in this folder:
config/www/monster-card.js
what is going wrong?
first time messing with lovelace btw, so might be an easy solution im missing
I posted in the homeassistant OS channel, I'm unable to view my front end... Or anything, if anyone could help I'm desperate..
@vapid field i suggest you google lovelace-auto-entities instead.
You also need to restart hass after first creating www/
Or better yet, get HACS over at https://hacs.xyz and all your troubles will be replaced with less severe ones.
Is there a way to add a subtitle to a lovelace card? I have a simple entity card with three booleans my wife can turn on and off, and I'd like to show a subtitle or some text under the card's title that explains something.
@somber harness wrap it in a vertical stack with a markdown card below the entity card with your text
Can't be directly below the title
@mild veldt Ah, good thinking. I'll look into it. Thanks!
This isn't quite an answer to my original question, but I can also use a dummy-entity-row combined with custom-card's secondaryinfo-entity-row to add custom text below a dummy entity. Not quite what i wanted but it will work for what I'm after.
It'd probably be an automation but you have the right idea.
Scripts are just a series of actions. Automations have a trigger, condition and set of actions (just a script at the end, really).
If it has to respond to something happening, it's an automation.
Not a support question, just wanted to mention something I thought of that I thought would be a really great improvement for the HA UI. Adding customize options into the entity dialog boxes.
https://i.imgur.com/9gfiFTh.png
I already made the thread on the forums, but wanted to mention it here too.
https://community.home-assistant.io/t/request-add-customize-options-into-entity-settings-dialog/220146/2
Hey all, i'm looking for some help, cant figure out where this went wrong, but i jsut updated Hass.io and it now shows multiple entities not available. they are all entities connected to my RFXcom 433 receiver. The receiver still shows up in the hardware list and i havent changed anything in my config. Just ran the update. Hope someone can point me in the right direction...
i updated to HassOS 4.12, after this the enities are unavailable
Nothing in the logs about that integration?
nothing i can find...i use the log viewer addon to check logs
before the update i see a lot, stuff like 0b1101180001400c02010f40 turned of
but since the update there is just nothing..
Generally, don't tag people to ask for help - it comes across as bad manners, youβre demanding somebody answers you. Itβs different if youβre thanking somebody, obviously. If you do tag somebody keep it polite and respectful. Remember that everybody is a volunteer, and nobody has to help you, and people may block you.
Similarly, please donβt DM (direct message) people asking for help. It also comes across as demanding, and means that others canβt learn from what you do.
Finally, please keep tagging people in replies to a minimum. That too can become annoying very quickly and should be used only when it's necessary (such as if it's been a long time, or there's multiple conversations going on).
There isn't a card trigger type. The reason I suggested automations over scripts is that presumably you'll want to keep the 'radio buttons' in sync regardless of what sets them.
Also, script and automations questions belong in #automations-archived, where you can ask your question without tagging people. Someone will answer when they're ready.
Hi, I hav added my remote control commands as switches (broadlink). In Lovelace, is there a way to only show the on command and hide the off. Tryed to google it but I'm not sure what to google.
Is there a place to share screenshots of your lovelace UI? Would like to see what novel things people are doing
wife forgot her password to the ios app. I found an article on how to reset it but I can't figure it out
says use the console? I am using docker
@junior topaz there's no password to the app, it's just your home assistant password. That being said, are you an owner? If you are you can delete her user and re-create it
Configuration > users
If you're actually using a docker install. Do you have the Supervisor menu in the sidebar?
I am logged in as admin. I have developer tools and configuration
currently on 0.100.3
Ok so yeah the auth reset things won't work for you since that's a Supervisor specific thing
Oof. That's pretty far behind, I'd consider updating
i plan to soon. haven't had time and disabled docker updates because the updated images were breaking everything constantly
Yeah, auto-updates aren't advised
can you put the add automation in the sidebar?
Quick question - is it possible to have a Lovelace card showing the state history line chart like you get in the history panel?
Nothing coming up in the searches in making. TIA :)
@lime portal ... and that would be why. It's the the same history graph as I'm using for my numeric states. I was specifically removing/ignoring the history graph in my searches!
Don't presume the thumbnail is what you get!
can we still do custom icon colors based on state?
looking for two different color for both active and inactive
i have state_color: true implemented now for an input boolean, but i'm looking for a way to have the inactive state green and active state red.
Be nice, mono.
Card-mod is probably your solution, bwze. It's one of the first hits on google, and iirc there's an example in the readme.
thanks @polar kelp, and @karmic tiger, thanks for the sarcasm...
I'm saving this here for later. I have a feeling it might come in handy...
Do you guys remember the days when the answer to half of the questions around here was "monster-card"?
So @polar kelp , this is new to me...i'
I've been using customUI before this....anyway, I've added card-mod.js to my www/plugins folder and created the resource as directed in the documentation.
for testing purposes, I tried to style the using one of the examples in the documentation...
style: |
ha-card {
color: red;
}
but I'm getting this message after doing so...
UI editor is not supported for this config:
Key "style" is not supported by the UI editor.You can still edit your config in yaml.
That's right. The editor can't handle style: for now, unfortunately.
gotcha
But the card still works.
And if you remove the style part, the editor will come back.
No. Everything with card-mod is done in the frontend configuration and on a card-by-card basis.
It's not a complete replacement for customUI.
Ok, I hate to be a complete tool...but how would change icon color based on state then?
Is it not possible to search (CTRL+F) after devices in the History panel?
@fiery sail First of all, did it work? Did the text of the card you tested on turn red?
@polar kelp , nope
Even after saving?
correct
Did you follow the instructions here for adding the resource? https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins They are more up to date.
And I notice you said you added the .js file to www/plugins/card-mod.js, did you use /local/plugins/card-mod.js for your resource url?
you must be a mind reader
it's working now
so by that logic....if,
style: |
ha-card {
background: {% if is_state('light.bed_light', 'on') %} green {% endif %};
}
results in the background changing color...instead of background would I use icon?
that did it....is there a way to direct that toward only one entity?
Yep. And there's the example I mentioned too: https://github.com/thomasloven/lovelace-card-mod#styling-entity-and-glance-cards
ahhhh....i see it now
working like a charm....thanks for the education my friend
i notice that if you add state_color: true back to the config...it overrides the card-mod changes
Yes, because then the icons use different color variables.
I think it could be --paper-item-icon-active-color and --paper-itm-icon-inactive-color, but I'm not 100% sure.
Hey folks! What cards/configs are people using to put Netatmo weather data in Lovelace?
Not sure if this is the right channel, but here goes: I'm completely unable to sign in to my HASS install. I have one browser that's currently signed in, but nothing else can authenticate successfully (Chrome and Safari). This is a big problem for me right now, as I was trying to reauth my mobile integrations
https://imgur.com/a/WJEtei3 is a screen recording of my issue (i know that's iPad Safari, but neither macOS Safari or macOS Chrome work)
As per the topic, this channel's for Lovelace dashboard stuff.
If you've messed up your setup somehow, a better place to ask would be the relevant installation channel
Not sure which install you're using? If you have system_health enabled you can check Configuration -> Info, or see the following.
-
If you're using HassOS, flashed an image, or booted a VM with an image you're using #330990055533576204
-
If you installed Linux and then ran a script to install HA and have add-ons then you have #330944238910963714
-
If you're running
dockercommands or use a Docker manager and have no add-ons then you have #449717345808547842 -
Finally, if you use
pipto install or upgrade you have #551864459891703809
Having difficulty chosing an install method? See this blog post for guidance.
ok. thanks π
Can someone tell me, why the history on my sensor shows me "5 hours ago", but the history graph shows no action for at least 24 hours?
Screenshot: https://d.pr/i/UGvP7I
Sensors can be updated without changing states. Usually it's because attributes are being updated
Alright, thanks :)
I read about the Diagnostics & Crash reports sharing in the patch notes and I want to turn it on. Why is it so hard to find this option? What is the supervisor panel? a one time prompt after updating would have been appreciated
Supervisor is only available in Supervised installations, and the Supervisor handles the diagnostics and crash reporting
ahh... I just have the standard home assistant core in a docker instance. Is there any metrics or reporting I can turn on that would be useful to the team?
probably better asked in your respective installation method channel. In this case, #449717345808547842
I thought there was an integration
Hi, can you suggest some sensor, integration or plugin which will count days from specific time ? Something like this ? https://www.timeanddate.com/date/durationresult.html?d1=1&m1=1&y1=1990&d2=&m2=&y2=
I have found only for anniversaries,
#templates-archived can help you make a sensor to do that @sweet sail
Anybody have a suggestion of a card that can increase/decrease value with a plus/minus/arrows? Basically time picker card, but not for datetime
Thx
hoping this is the right channel, but I keep getting an invalid config for resources, but the only place i can add resources is in the configuration.yaml...
on HA 0.114.2, in a container.
Trying to be able to setup a custom lovelace card right now
This is how I am adding it into my config yaml
resources:
- url: /config/www/mini-media-player-bundle.js
type: module```
Change /config/www/ to /local/
if i docker exec into the container there is no /local/
thats also what it was originally
There should never be a local directory
ah ok... well i still get the same error when it is set to local
ah alright i get that now for the hosting... but I still am getting an invalid config for it
Can you have a markdown card with a tap action? I have a card displaying some text and using templates but I'd really like to be able to click on it to take me to another lovelace view?
If you're getting an invalid config error then it doesn't relate to the validity of the url, the actual configuration is incorrect
@pulsar fractal posted a code wall, it is moved here --> https://paste.ubuntu.com/p/2R5RHq7zYY/
sorry didnt realize that much was a code wall. My question was
would someone mind walking a n00b through some basic Floorplan questions?
I created a bunch of files in sweethome 3d, put them in www/Floorplan and now I am trying to create a card. However I am getting no card type configured error with the above setup
this exists in Config -> Lovelace -> Resources
/hacsfiles/config-template-card/config-template-card.js
I am trying to create a card.
How are you doing that?
What you shared is a view, not a card
are you using the "manual-card" in the UI for this?
where all can we use !include file.yaml for lovelace UI? Trying to split up my yaml config, but I'm getting unknown tag !<!include> at ...
Current config:
views:
- cards:
- type: 'custom:mod-card'
card:
type: vertical-stack
cards:
- !include top-row.yaml # here
where top-row.yaml is in ~/.homeassistant/top-row.yaml
You're using lovelace in yaml mode?
yup
Using includes like that works fine for me
hmm shit
Where are you seeing that error?
in the in-browser UI yaml editor
If you're in YAML mode then there is no UI yaml editor
uh
I meant more so editing in the browser using the lovelace yaml editor, as opposted to doing it through a text editor (i.e. vim, nano)
https://i.imgur.com/Z24NITj.png <-- screenshot of what I mean
so does include not work in storage mode?
no
oh ok, good to know
I presume I lose the ability to configure anything via the ui altogether in yaml mode?
yup
entities:
- entity: sensor.on_zoom
icon: 'mdi:video-account'
state_color: true
type: glance
That should show yellow when on, right?
Would this be the right place to ask about a mini-graph-card?
Cool. I've got a card that recently started acting very funky. sensor.smartweather_feels_like displays on the card as a flat line at the bottom of the graph. Code is here: https://paste.ubuntu.com/p/WmgVxYDDtn/
I've seen mini-graph-card go crazy sometimes
When mousing over the points, the historical value changes, so it KNOWS the value it should be.
The weird thing is, I've got some other cards tracking server loads and they're working perfectly.
it's usually related to me constantly reloading the page/clearing the cache to test other stuff
I've had some luck with clearing the local data for mini-graph-card in the browser console
Hmmm.
but it usually just resolves itself
I'd have to dig around to find it π It's in "local storage" or something
Every time I open a new HA tab on Firefox on Windows, my theme is set back to Auto (white), even though I continue to set it to Dark. Is this a feature?
This is on 0.114
if it's not saving local data per tab
I don't follow, Rob
Is this because I'm using private mode in FF, perhaps? I was thinking this is a system setting, but now remember that it is per client. Does this also mean 'per tab'?
the browser saves your choice, so if you have some sort of "privacy mode" turned on in Firefox where it doesn't save any data, then it may not "remember" between tabs
Roger that. I'll dig into it from that angle. Thanks!
here's a snapshot of my browser console where it's stored: https://imgur.com/a/syhLxhm
(from Chrome)
Ah, about to ask. That's why it didn't look familiar. I have an "application" in FF console, but it says I need a Service Worker? I've not used the Dev Tools in FF for anything other than Web and CSS stuff.
I really don't know, other than browsers are tightening their privacy features all the time
np. Mystery solved. I'll dig a little deeper. Cheers.
is it possible to make the state font in a glace card bigger?
Thought maybe with card-mod but cant figure out how
Why is my dashboard doing this? https://i.imgur.com/xGGKOmw.png
also the the Celsius temperature is wrong
I've put a grafana chart in my dashboard however I get a "401: Unauthorized" displayed inside the panel every now and then. Problem gets solved once I load the Grafana plugin from the sidebar. Anyone can help to get it to load without having to go into the Grafna plugin every time
is there a way to make it only show devices assosiated with a person so that i dont have a billion deviecs i dont care about showing up on the home screen
it currnetly shows all devices, even if they arent assosiated with a person, so it shows things like the xbox and the tv that are always connected
@lofty geyser Take control of your dash. The default Lovelace-controller one will show every entity. If you take control, you can decide what's shown.
is it possible to have full width horizontal stack w/o panel mode, in panel mode i am missing the badge icons on top and some padding around
Nope. Panel mode is always full width.
Lovelace will always pick the right number of columns for your device too, so you don't control that.
You could try layout-card and see if that'll do what you're after.
i think i do not understand the grid system, i decided not to use the horizontal stacks as i probably do not understand it's purpose and it does not to behave like e.g. in grafana.
now i am using it with 3 items weather forecarst card, vertical stack (with two graphs), vertical stack (with two graphs). i can have the cards next to each other but only vertical, vertical, weather, but weather, vertical, vertical is not possible looks like a bug to me
I don't know what you mean. Could you share an image?
Please use imgur or other image sharing web sites, and share the link here.
hm okay probably "the automatic responsive system" tries to "reuse" the space under the weather card and puts the other vertical underneath, i really like the ui, would be great if it can be more intuitive
That's not a bug. It's just Lovelace's algorithm deciding how many columns to use.
If you want control, use panel mode + vertical stacks...
And if you really want something that looks like badges, you can use other custom cards like button-card to make them.
how do I set the color of the name when in a particular state with button-card?
Something like this should work:
styles:
icon:
- color: >
[[[
if (entity.state < 60) return 'lime';
if (entity.state >= 60 && entity.state < 80) return 'orange';
else return 'red';
]]]```
Obviously for name instead of icon, and update the logic as needed.
Looks like I need to learn JS. Thanks as always.
Yeah, for any logic in the frontend with custom cards, you're almost always going to have to use JS. Fortunately, it's a simple language to pick up.
hello
i'm trying to change the color of a icon based on their state
i tried this, but didn't work
- entity: switch.sonoff_1000606d26
icon: mdi:fire
style:
color: |
if state === 'off'
return 'gray'
else
return 'red'
left: 26%
top: 30%
transform: scale(2,2)
type: icon
only show the gray color
What card are you using?
@tranquil crane posted a code wall, it is moved here --> https://paste.ubuntu.com/p/q63qmCZzNT/
i tested turning on and off return state on and off
Maybe I'm missing something but I don't see where the picture-elements card says it accepts templates.
idk if it accept i just tried
Yeah.. you can't just make stuff up π
If it's not documented, it probably won't work.
As a general rule, built-in cards don't accept templates, custom cards do.
π€·ββοΈ
There's a floorplan custom card that's basically a more powerful picture-elements. And there's button-card which can do almost anything.
Long time since I have added a Custom-card - have I been missing out on something ? As custom elements doesn't exist even though then card seems to be installed and loaded https://imgur.com/bxIQZQG and https://imgur.com/Jd5tBll
Refresh your cache. Ctrl+F5 in most browsers.
Thanks - that did the trick
I wonder if "Refresh your cache" should be added to the installation guide for Front-end HACS
'Refresh your cache' is basically just a 'something in my browser isn't working' troubleshooting step.
Nothing specific to HACS.
Hey guys, I'm trying to add an image to lovelace using the "picture" element. However, it requires a url (external source) or a file in 'local' like: /config/www/image.jpg
But this make this image publicly accessible. Is there a way to just use the things own fileshare?
what is "the thing" in this case?
Probably stupid simple but how can I hide the icon from a sensor entity in a glance card? I have 3 in the card but just one hidden. I didnt see the option in customize
The "thing" in this case is Home assistant
you mean like embedding the image into the page that's being served?
otherwise, it's just a reference that needs to be resolved by the browser that's displaying it
I'm a bit confused why you're forced to make an image publicly accessible before you can use it :/
because that's how browsers work
Well yeah, I get that, but websites work by hosting their own text and images usually
Not exactly, if I host an apache2 server at home and dont forward it on the router, it's not publicly accessible
It's accessible, just not publicly
Is the image in www/
I know that
the bottom line is that if your browser can't get to it from where you're viewing it, it can't display it
I understand that part, I get that the browser needs to access it. I also know that if you want to access the lovelace environment that you need to enter a username and password before you can access it
@honest herald You can choose to hide all icons, but I don't think you can selectively disable some icons in a glance card
I get that the image has to be accessible
@dark dirge hmm okay il play around with it.
When I tell the device to use a local website that I run at home and use a locally stored image, it works for me since I am at home and I can access the internal website. However, why am I not able to add an image to the home assistant config folder and not make it publicly accessible without any credentials
I'm okay with the people that can login, they can see the image. But people that are unable to can see the image once you browse to my public address.
My question was simple, at least, that's what I thought. I want to locally host the image (on the home assistant) so that the image is only visible to the users of the device
Why? Because it's a picture of me and my partner. Not everyone has to have access to that image, otherwise I would have just used imgur
I understand your use case now, but I don't know of a way to solve it with Lovelace
It's odd to me though, since it's perfectly fine browsing through it's own folders when looking for the cert files
one way would be to run your own web server that has whatever access control you like and serve the image from there
Seems a bit much for a single image lol
If you have a feature request for the frontend you can open one here, for Home Assistant itself please post on the forum. All other feature requests should be made to the developer of that custom card/component.
I'm trying to read through it, not much of a github expert yet. I'm guessing this is a feature similar to that what I'm looking for
Yes
Has this been released yet or is this still in beta or
merged 3 days ago
Does that mean that it has been added to the current release?
Will be in 0.115
Ah right, we're on 0.114.3 right now
I cant make it work the add--on from HACS
circle-sensor-card
I installed via HACS then I restarted my HA
this ios my setup of the card
in my logs I couldnt find anything
How do I change the color of the icon when the switch is on in button-card?
i have 3 cards, the one in the middle is a climate (ac) and this card in the middle of other 2 is a conditional card, it will appear only in the summer, now for testing proposes i've changed season.season to winter and idd the card disappears like it should do, the problem is i remain with a space that displays nothing between the other 2 cards, how can i fix it? this happens to you ?
Normal from what I understand
seriously π
lol
okay
merci I appreciate the answer but the logic of this is at least to be blunt incredible bad, basically for 3 seasons i'll have a space with the hole dimension of climate card empty between the other 2 cards
There's any number of ways you can get around that. Complaining about HA isn't exactly productive.
Hi, is it possible to change the font size of an Entity Card especially from the status ?
Can someone hlep me to understand why the first custom:layout-card works and not the second (Custom element doesn't exist: layout-card.)?
cards:
type: custom:layout-card
layout: vertical
column_width: 100%
cards:
- type: weather-forecast
entity: weather.dark_sky
- type: custom:layout-card
layout: grid
@clever blade posted a code wall, it is moved here --> https://paste.ubuntu.com/p/HxWHnXCYgB/
I'm trying to get multiple actions into 1 button card, is that even possible?
I want to turn the volume up on a chromecast device, before playing a sound.
@clever blade make a script and call it from the button
Awesome, i will try that. Thanks @tacit cave
@tacit cave any idea for my customcard maybe ? :3
could be a number of things, not enough information in your yaml or screenshot
clear cache and reload page, you don't need to restart for the front end
oh
CTRL+F5
are you sure that the frontend doesn't need a restart ? Without includes maybe
Changing includes require at least touching ui-lovelace.yaml
any way I can easily change the <app-toolbar>'s height? It's too big for the mobile view :/
Every time I click a button or switch in the frontend the page just 'hard refreshes' without actually doing the action. This happens for me on iOS (both iPhone and iPad). It also happens on both the companion app as well as from the browser (safari/chrome/brave).
safari beta bug
Hmm, didn't see any open tickets for that?
Aha, right. That exactly sums it up, thanks Ludeeus.
Anyone help me with getting the ZHA_MAP custom component to work? or more precisely the zha-network-vizualization-card custom card in Lovelace that I just cannot get to work
I've followed: https://github.com/dmulcahey/zha-network-visualization-card
but in Step 6 I get the error: Custom element doesn't exist: zha-network-visualization-card.
You sure you followed all the steps? You might also need to refresh the page before the card is available
I've done it a few times now and I get the same thing
try clearing your browser's cache
OMG! I just tried it in a different browser and it's worked!!
thank you @muted inlet
now you made me curious and I also tried installing zha-network-visualization-card but I end up having a "Custom element doesn't exist: zha-network-visualization-card"
that's what i had @fierce vale
but I tried another browser and it does NOT help
try a different browser or close the tab, clear cache,
still the same
did u do step 2 and 3?
at zha-map, what does that mean: 5. Add to your lovelace global config as type: module
restart HA and started a scan?
In HA click on Configuration Β¦ Lovelace Dashboards Β¦ Resources Β¦ β Β¦ URL:/local/zha-network-visualization-card.js & Resource Type JavaScript Module Β¦ Update
and did u install zha_map via HACS?
yes. Did all that
used copy&paste mostly, so also typos more or less to exclude
the file I created is now in /config/www/zha-network-vizualization-card/zha-network-visualization-card.js
and the lovelace resource points to /local/zha-network-visualization-card.js
yes
where can I see a result?
in the debug logs I think it says?