#frontend-archived
1 messages · Page 172 of 1
looks like there a bug with the drag to order entity list when editing a card. if i drag an item to the bottom it duplicates it. can anyone duplicate it before i open an issue?
in 115.0
Confirmed. And it adds - null to the entity list causing the card to break if you save it
mine doesnt show null, shows then name of the dragged entity
Oh it only adds - null if you try to move the duplicate
save works, but the dupe'd item doesnt appear.
yeah if click the x on it, it leaves a blank line
ha, acutally click the x on it removes all instances of that duped entity
im really good at updating my test environment with each beta... its the testing each beta part that i suck at
ive been going through the release notes today and check out all the stuff that I can.
that dark template editor is sexy
Version 10 released, @prime umbra
nice
2 days into homeassistant and i still have no idea how to use some custom modules/badges etc. Even installing HACS 😄
Is there anyone available for a few minutes to help me, forexample i want to use this: https://github.com/custom-cards/button-card#installation
Hello everyone! Has someone tested 0.115's calendar card with Home Assistant Cast yet? Calendar shows up but there are no entries ... What am I missing here?
hi folks, i'm taking my first steps into custom card modding 😉 and i'm currently wondering how to read the primary color out of HASS so that it matches the theme?
there are config params allowing to set the colors in the card itself but we'd like to fall back to the general primary color
In your css, just put color: var(--primary-color, #aabbcc); where #aabbcc is your fallback default.
Or css --my-color: ${color_from_card_settings}; color: var(--my-color, var(--primary-color, #aabbcc));
hmm k
currently the card is using
var sideColor2 = this.config.sideColor2 ? this.config.sideColor2 : '#b30000'
so it'd be great if i could just reference it in the javascript section
(which is what I haven't found yet)
Well, you could use window.getComputedStyle(this).getPropertyValue("--primary-color"), but that won't update automatically on theme changes the way CSS will.
I see. OK - thanks 🙂 i'll have some modding to do
is there a list of all colors HA sets? (probably)
Not really, there's this: https://github.com/home-assistant/frontend/blob/dev/src/resources/ha-style.ts, but then there's themes with varying support for those, and some themes set their own stuff, and it's complicated...
Just found that one 🙂 but for now i'm aiming on the default light/dark themes of HA.
Thanks again 🙂
Hmm, after that happened more than once already.... How about making the config scanner check for outdated/invalid entities used in configuration and automation? I try my best to find all of them coming with updates and still I way too often forget one and then later am wondering why my stuff is not working as expected. ^^
@lone halo posted a code wall, it is moved here --> https://paste.ubuntu.com/p/W3T628GqxC/
Hi all, I updated to 0.115 and now my fronted is not responding anymore. The VM in which HA is running is still there so I can se that the system il "working". I tried to use cli command to restore previous version (0.114.4) but after the restore part "ha core info" says that I'm still running 0.115 against 0.114.4. Can someone please support me?
https://paste.ubuntu.com/p/W3T628GqxC/
Finding the reason why it does not work might be a better idea, but.... ha core update --version=0.114.4
I do agree but at the moment the priority for me is restoring all my automations 😢
I know that feeling, see above 😛 Well, that command "should" downgrade your Core. Never recovered one of my snapshots tbh aka no clue if it does downgrade by itself
uhm output is processing....done (without waiting) and then ha core info show always 0.115
I tried to restart ha core but it says error
Hi
guys i have some problems with the netatmo integration.
https://pastebin.ubuntu.com/p/cXFzctZQzp/ i put this in my config, but get netatmo Error rendering template: UndefinedError: 'trigger' is undefined
this is the example from the homepage
someone know why their custom_panel example doesn't work anymore in last version? https://developers.home-assistant.io/docs/frontend/custom-ui/creating-custom-panels/
@lone halo in that case... No clue i fear
How do I make HA use 24 hour time instead of 12 hour time?
it's showing me PM and AM stuff in the log and it's annoying
question: did you guys know that media_player card doesn't let you to actually stop the video you playing, just start and pause? why not add a stop button? what am I missing?
@vapid field I believe you need to set your system's language to "English GB"
home assistant system or whatever client I'm accessing from? Because my browser is already using british english
my timezones are already set to CEST if that makes a difference
Go to your profile settings, there should be a language defined there
(Home Assistant profile that is)
I don't have a profile settings in my menu
oh wait I have to click my username
ha
there we go, english (GB) did the trick
thanks
Nice one 🙂 For reference, it's mentioned here - https://github.com/home-assistant/frontend/issues/3332
surprised it's not its own setting
I think it's all to do with browser settings etc. - There's a long forum thread here about it: https://community.home-assistant.io/t/24hr-format-instead-of-am-pm-in-europe/45252
I won't pretend I know much about it all to be honest, I just remember coming across this somewhere else before
I’m trying to set up an easy way for guests who are visiting my house to access Home Assistant...I’m 90% there and the only thing that’s holding me back is this: https://imgur.com/GfpcWaz.jpg
I’ve got this in my config:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.10.0/24
trusted_users:
192.168.10.0/24: !secret guest_user_id
allow_bypass_login: true
I've got the bypass login there but users still get the prompt to log in with a username & password or Trusted Networks. I'd assume with there only being one user available to that subnet, they'd be logged straight in thanks to the trusted_networks and trusted_users config combined with allow_bypass_login: true?
is sth like this: https://nopaste.xyz/?81e85ee6c0b6568e#wHkvQqSLSQcodNaW2nbGEvkNiDXeNt5hP6UQZPfvQQV no longer working? the ui is frightening red Custom element doesn't exist: hui-conditional-card.
@whole heron is the relevant resource for that custom element in Config > Lovelace Dashboards > Resources?
I couldn't say to be honest, I was just double checking the basics 🙂
ah.. is the conditional card not part of the basic lovelace install?
just did type: custom:hui-conditional-card because i added this part below - type: vertical-stack what is a custom module
I think there is a conditional card included normallt (I could be wrong) but the hui-conditional-card is not standard - https://github.com/gadgetchnnel/lovelace-card-preloader/
That hasn't worked for a while. There are two solutions
Well, three, of which the preloader is the worst
ah
The second best is to use this: https://github.com/thomasloven/lovelace-hui-element
The best is to use the conditonal functionality that's built into the entities card by default nowadays: https://www.home-assistant.io/lovelace/entities/#conditional
Is there a way to remove the Calendar entry from the sidebar. I have a card that adapts theshown calendar to the users and its useless if my wife can access my work calendar through the sidebar anyway
@polar kelp that's only on a per device basis though isn't it? So @lone kite will have to get his wife to remove it from her device?
(Unless that's good enough of course!)
nope UI config propagates from the admin to all users
Thanks, been searching for that for hours
Oh, that's my bad! I saw this These settings are stored on your device in the local storage of your browser, this means that this setting is device-based and will be cleared when you logout. which doesn't sound like what you describe - Good to know!
Does it?
I've struggled with similar recently for trying to restrict access for my guests. I think the only way to 'fix' it would be to have user privilege settings eg. Can user X access 'calendar'...or something like that. - Paulus did a post about it last year but I don't think there has been any movement on 'real' permissions yet - https://developers.home-assistant.io/blog/2019/03/11/user-permissions/#:~:text=Users can create their own,like managing users and integrations.
wich means i now need a way to restrict certain users from certain entitys
Yeah, which is where the permissions aspect is needed unfortunately 👍
Hi there, one question. In picture-elements, can I show an image based on its entity state? To be clear, I want to set "the presence" of the image based on the state and not replace the image using state_image. That is, only when a light is "on", then I want to show an image. Of course, I could rescale the image or make it transparent in the "off" case, but I would like to know whether there is a better solution.
Nice and easy with a "Conditional Card" @mighty tree
Edit the UI, click + in the bottom right and select 'Conditional'
ahh right... I need to get more "versatile" with the cards. 🙂 thanks! I use yaml mode... but I got it... also, I now find the transparent image even better as I need the "hit box" for the tap action 😄
There may be another way but the only drawback is that you'd have to have multiple cards for multiple states (ie. one for on and one for off)
yeah.. i recogn'd that there is the N/A state, which I didn't capture yet
@lone halo in that case... No clue i fear
@loud thistle I managed it this way: I removed "all" my config and 0.115 loaded. Then tried to fix issue without success (TOO DAMN MANY) and restored previous sn via gui. Man...what a journey.
What piss me off is that I was hoping that a longer development was more secure. Now I have an ERROR output checking my config but only warning inside the log!
Hi all, how can I change the appearance of a switch in an entities card, between 2 lightnings and a "switch-bar"?
Is there a way to retrieve the current resolution or deviceID on which the lovelaceUI is currently shown in a way that I can change the font-size of a state-label in the picture-elements card. (I hesitate to define a whole new dashboard yet just for the scaling of the labels...).
So I didn't see anything in the breaking changes but is anyone else having issues with the thermostat card after this update?
Issues such as what?
So if I turn on the AC side of it the setting tries to go all the way up to 162
and the card also doesn't display the current temp
@elder pendant if you'd like me to send a screenshot to you let me know. Thanks
@elder pendant you can disregard. Apparently my thermostat decided now was a good time to also need a power reset so that it could start talking to the network again
666
Hello, everyone
Excuse me, how to use "hui-entity-editor" "hui-*" in "getConfigElement"
@polar kelp Hope to get help, thanks
@polar kelp I wish to do the other way around, I want to have the 2 buttons instead of the switch which I have now..
Then set it to true
hey guys, I have just updated HA to 0.115 and as a result I am getting an error when starting up, indicating customizer cannot be loaded. I had installed customizer as AFAIK it was the only way to do template base global customization. Has anyone run into this?
custom_ui is pretty much unsupported now. You’ll be better off using cards that support templates/colors natively (like the venerable custom button card) or card_mod
I don’t know if custom_ui broke with 0.115, but it wouldn’t surprise me
Is there a good way to embed a lovelace dashboard into another page without loading the rest of HA (e.g. sidebar and header?) Right now I have custom header hiding all thecomponents and trusted users handling an auto-login, but it's a pretty ugly hack.
No, there's no way to do that.
That's what I figured. Debating keeping it this way or brushing up on my wss://. I'm injecting custom JS into mopidy to use my HA controlled speakers in the output-control panel. Do I deal with what I have or do I make my own? #lockdownproblems.
thanks @dark dirge I was trying to color/change icons based on state mosty, to be used on PictureElements cards, for example. I am not wedded to using CustomUI but hadn't found any other way to do this at the time... Maybe this has changed?
That’s mostly what I want too. I don’t use picture-elements, but it looks like the conditional element + custom element + style may do what you want, assuming that you can encapsulate the logic in template sensors
Or someone will come along with the perfect solution 🙂
Is there a way to build a card that only shows the the list of stations on my sonos app. I tried something like this, attribute: source_list entity: media_player.sonos_connect type: entitybut want to have a list of the sources not just the current one. Can anyone point me in the right direction?
Hello, Is there anyone to remove this from the logs''20:30:56
Cleared (no motion detected)'' I don't want to see when there is no motion
Hi, I upgraded to 0.115.1, I got the media browser enabled in my Chromecast card, but I couldn't find out how to enable it for Spotify. Any hints?
@lucid bronze take a look here, you can exclude entities from the logbook
https://www.home-assistant.io/integrations/logbook/
I want the detected motion though, just not the cleared no motion... is that still possible?
Thanks for reply
I want the motion detected in logbook, just the (no motion)
I don’t think that’s possible
okay, I can see they added the new history in the ui which is really nice
shame its filled up with no motion status's
I could be wrong but I don’t think you can have one without the other
You can exclude it and make an automation to add a custom entry https://www.home-assistant.io/integrations/logbook/#custom-entries
genius
Haha, I was literally just about to say that after reading the link I posted 🙈
Ha getting so slick
Apologies for giving you the wrong information though 👍
What device domain is a motion sensor?
sorry was leading from my previous frontent question
@lucid bronze if you look in Dev Tools > States and search for the entity in question the prefix for the entity will tell you eg. binary_sensor.xxx = a binary sensor
So used the yaml to remove the entity from log book, that worked great, then adding custom added it back but added both the motion and the no motion detected, any thoughts? - https://pastebin.com/mP9eEdgR
Do you have an automation adding those entries to the logbook with that script? If so can you share?
It’s probably my misunderstanding, I assumed that you’d have to call the script via an automation in order to get information added to the log. I didn’t realise just a script on its own could add stuff to the log
Either that or you’ve omitted your automation from the Pastebin?
more likely mine im a noob, I took both the code and through them in my configution.yaml and changes few lines
Did you restart HA after making the change to your configuration?
It sounds like the normal events are still firing so my guess is you haven’t?
I did the removal of the logs first and restarted that seem to work as I went to set it off and it did not show in the logbook
I added the part to add it back with the script and now it adds both both
I guess they can't be seperated?
motion and no motion comes with the entity?
I’d love to help but as I don’t fully understand it I don’t want to give you any rubbish advice 👎
You might have to give it a different entity_id. It's custom, so call it whatever you want
For my understanding @elder pendant do you need to combine the script with an automation or will the script fire on its own?
You need to make an automation to call the script. In this case it would be a state trigger only when the motion sensor goes to on
Yeah so sounds like something is wrong @lucid bronze as you shouldn’t be getting anything in your log without an automation calling the script
okay going to do just the remove part from the log and see if that part is working
heyo. is it expected that 0.115.1 update from 0.114.3 should take over 15 minutes?
it seems that one of the integrations isn't properly installing it's new version?
Okay Looks like the first one i did to remove the entity from logbook is not working - https://pastebin.com/LuqKaUek
The syntax looks fine to me - You haven’t already got logbook: in your configuration or anything like that?
default_config is but not logbook
And the entity_id is definitely called binary_sensor.shed?
(Sorry for the stupid questions!)
yes it is, I've just moved the yaml below the default config to see if that was needed
hey guys I'm having a problem trying to start after upgrading to 115.1 - it's giving me an error that I need to upgrade pillow to 7.2?
Are there any errors in the log (not logbook)? @lucid bronze
not related to this no
I am not reading anywhere that I have to build a wheel for this "pillow" but it seems like that is blocking me from doing anything
@swift marten might be best to try the relevant “installation method” channel?
is this an installation method when all I did was upgrade?
and now the frontend won't load?
@lucid bronze I’m at a loss then! If you go to Configuration > Server Controls > Check Configuration does everything pass?
thinking this too short? https://pastebin.com/DG4nQ3m9
@swift marten That’s fair to be honest, I’m new around here and thought those channels weren’t just for installing HA but issues that you have with that setup
It’s not sat within the default_config is it? It’d have to have two spaces indented, no?
One of your pastes says binary_sensor.presence_13 and the other says binary_sensor.shed so I'm confused at what you're trying to do
i changed it after i realised it was not working as you said about changing it
it now is named .shed
And you're saying after you restart HA you still see binary_sensor.shed in the logbook?
if I go stand in front of it yes it adds to logbook
Well that's not supposed to happen 🤷 I'm not sure what's going on
does my pastebin look fine?
And you are definitely restarting the whole of Home Assistant? Configuration > Server Controls > Restart?
https://tinyurl.com/y6kjdfhe and yes several
I have literally no idea then 👎 Something isn’t right somewhere!
wait, does a manual refresh in the top right overide the yaml?
What do you mean “top right”?
You are sure that it's not just old entries you are seeing?
Pressing that refresh button doesn’t restart Home Assistant, if that’s what you’re asking?
That button just refreshes in case any new entries have been added to the log
that will obey the yaml that says don't include?
Correct
no. It ignores excludes if you manually refresh.
Oh, I did not know that (sorry!)
ahh maybe my bad then
Excluding something from logbook does not exclude it from the recorder
let me check again
the events are still recorded, it's just showing you a filtered view
dont press refresh basically then 😄
I thought that button would just refresh the logbook entries that you’re able to see - Interesting
I can confirm it is working, was just me refreshing it 😛
thanks all, will move onto the next step
Next step is creating an automation that calls the script you created every time the state of that binary sensor turns to on
good stuff 🙂
Hello! I'm interested in that if i could modify the minimum and maximum temperatures displayed on the thermostat card?
When I said "change the entity_id" I just meant in the custom entry, not the actual entity
I'd like to increase the min and max values (for aquarium heating) or should i use a custom component for that?
sorry what is the ''custom entry''?
the script you made
the alias or the entity id in the ''options'' section?
the entity_id that you're passing
ahh okay so that one is creating one, gotcha
It might work as is, but it depends on how the filtering functions
Gotcha so basically you have a sciprt that says, Log this action, you then have an automation that says if motin detected then run this script that then logs it... nice 🙂
how is it posseble that i cant access my rasp pi ? it says ERR_CONNECTION_REFUSED , what can i do about this becouse samba is not working too so i cant access the logs. hope someone can help me , thanks.
Hey All, i have most of my switches in entity lists.. but one of them is pretty major if i hit it by accident.. is there a way for that specific switch to have it prompt for a confirmation before i toggle the power?
I have a custom card, restriction-card that will help you with that
Should add simple toggle switch confirms to core though
I've actually removed it from my interface, because as i'm sat here trying to figure it out, i've realised that if i hit that power toggle.. i wont actually be able to turn it back on as it powers off my proxmox server lol..
i'll have to hit the tasmota interface to power it back on so i just need to document the IP
its one of those rabbit holes.. i'm now thinking i need to move my HASSOS off my main proxmox server.. but that in turn means that i'd have to add mroe hardware.. and remember the HASSOS Ip as the main proxmox runs my reverse proxy too.. so maybe that needs to be on seperate hardware.. i think i'll just document the plug IP 😄
i have a very basic IPAM that i wrote myself.. but again.. that'll be down if i power off the server 🙂
I upgraded to 0.115.1 and now it can't find Weather-card or multiple-entity-row. Anyone else have this problem or know how to solve it?
Actually.... it's working in the web ui but not the mac app. Fixed the mac app with a close and reopen.
Anybody else having problems with HA and Safari 14.0?
Update to 0.115
@polar kelp Sorry for bothering you again. The custom:hui-element card, does it work with iframe? I get an error that the card_type is not set, although it is clearly set:
- type: custom:hui-element
card_type: iframe
Any idea?
Sorry, I made a mistake elsewhere... explaining the problem gave me the hint...
How can i change code-editor-background-colors ? after update i have invisible colons and dashes.
Where can i find the file ? 😄
or can i change the color another way ?
No need helpt anymore, i fixed it ! :p
can i reload the sensors without restarting HA? Couldn't find this in the UI.
What sensors? Lots of new things can be reloaded at configuration > server controls in 0.115
How do I remove the margin on the left and right of cards that's new in 0.115.0?
a template sensor... hmm I hesitated to update now... but why not 🙂
Wasn't it possible to turn off mediaplayers through the default mediaplayer card before?
I think it used to be in the popup that you get when clicking the 3 dots, but I can't find it there or anywhere else.
Hi all,
I am attempting to load ha front-end on a crappy old tablet I had lying around.
I am using fully-kiosk browser.
Based on the colours, it seems I am getting to ha, but it is not loading correctly...
Could this be a hardware issue?
I haven't even seen the log in prompt yet, so it can't be due to the lovelace contents.
If it's old. The webview may not be updated enough to run it.
@finite pond you can't
@queen rivet it is possible if your media player is on or off to show the power button if your player supports on and off. If you aren't seeing that I would raise a bug in the frontend repo
I just noticed that the Off button appears when I start playing something. So the power button is missing when the mediaplayer is idle (but still on). Will submit a bug for that.
@devout hatch https://www.home-assistant.io/lovelace/conditional/
Thx NKDZCK. Let's give updating apps on it another shot. (I suddenly remembered why I hate troubleshooting old android devices)
I have a custom button card in which i use a sensor for text color, it doesn't like the variable primary-text-color. If I put e.g. white it works. Any suggestions ?
- '--text-color-sensor': |
[[[
if (entity.attributes.cpu_use_pct > 80) return "red";
else return var(--primary-text-color);
]]]```
@finite pond you can't
@raw brook just to be clear, I meant the padding on the left and right of cards. Surely that can’t be right since the frontend can be customized in a very nit-picky manner.
You cant
There is no variable that we have available to modify this
Sure maybe you can hack it via a custom card or custom header
But not via a theme or easily way
Ackshyually
With card-mod you can do it in a theme
I need to take like a week off work some day to document that. It's got so much potential.
is there a way that maybe I am not seeing to push a media file from within the new media browser to a player? I don't think there is cause i haven't read anything about it yet, but wanted to ask as I am setting this up.
nm i see how it works I think
hey guys, i'm trying to change icon based on status of PIR sensor in the glance card, this is what i have, but icons don't appear: https://paste.ubuntu.com/p/WX9vdTYSfB/
is that the way the if statement is possible
where should i read more, i found that somewhere on the forum
how is that functionality "inline if" named
@mighty tree https://hastebin.com/itupaxapoh.bash
Im having this horizontal stack, and I want to implement conditions for each light
but I cant figure it out where to put type: conditional conditions: - entity: light.bedroom_wardrobe_left_light state_not: "unavailable"
also I need condition and for the right light
you want to hide those lights from the horizontal stack if they are unavailable?
From your pastebin code, I would assume that you have to split up these lights to individual cards and surround each of them with the conditional card as in your example
now that makes it perfectly useless
@lone kite I was just listening to the latest podcast - At 1:03:30 Paulas actually mentions making what you want into an actual feature in the future 👍 Thought I’d let you know as I heard it and thought of this conversation
@mighty tree https://hastebin.com/exodagihip.bash
I added just one card, but how to wrap it?
@frosty crane Thanks for letting mr know. i was just reading through the article and it sseems a rather large hassle to exclude access to just one entity for 1 user. Having an actual permission system would allow for some pretty powerfull stuff. Like me forbiddiung my kids to switch the lights off in rooms other than their own
I guess something like this:
- type: horizontal-stack
cards:
- type: conditional
conditions: #first light
card:
type:'custom:light-entity-card'
....
- type: conditional
conditions: # second light
Does this work?
updated the code example. I would try something like that.
of course, this is not complete. the actual condition is missing
ok, tnx I will try and let you know 🙂
@mighty tree https://i.imgur.com/ChLIieJ.png
here it is..all in red 🙂
something Im missing apparently
here is the code from the image
wrong indentation. move everything from "-card" two positions to the right
card is nested in the conditional card and not in the horizontal-stack card
Remove the first - and dedent EVERYTHING two spaces
@polar kelp is it possible to change the appearance of the slider in your custom slider-card to have it look more like a bar? something like the https://github.com/konnectedvn/lovelace-vertical-slider-cover-card . Or are such changes only possible with an "own" custom card?
The slider-entity-row uses the slider that's built into lovelace, so it can't be changed much.
Ahh, I see. I thought that there might be css magic possible to apply there, but I am not really in to web dev 🙂
Hello! It seems like that a long press on a switch in 0.115.1 doesn't work anymore to show the history dialog of the switch. Is this correct? Has this feature been removed?
The slider-entity-row has the nice option: hide_when_off: true. Is there a way to achieve this (without a conditional card) in case the entity is unavailable?
Oh boy, it seems to work "out of the box". The doc is just not saying this.
My fold entity rows got broken after updating to 0.115.1, any idea where to look for a fix?
Also my mini-media-player custom elements got broken
@polar kelp, I've updated from 0.114.4 to 0.115.1 and this is the result: https://imgur.com/a/3ifqERg
I don't really see anything wrong in the logs
4th server restart in a time span of 30 minutes did the trick
so I guess all good now
Is it possible to have badges show ping times?
Hi all - I was using the light entity card in previous HA, but 0.115 broke it (https://community.home-assistant.io/t/light-entity-card/96146). I was using it for my hue lights. What do people use instead now?
Hello! I'd like to create an automation where i'd manually input a number the number minimum is would be the last number from the automation's last run. For example if i typed 5 the last time it starts from 5, is it possible with automation helpers or should i use a database to store the last values?
How do I call a script through the UI?
The Netflix Script is the Script that I want to call
I don’t know what the ‘Netflix script’ is, but it’s less about the script and more how you want it to appear in the UI. You could use a button card, for instance
Did you read the docs?
Yes but I dont understand it 😅
That’s hard to fix
Ohh wait... Its working kind of
When I hit the button a pop up is comming up with the details and there I can call it...
can I do it to run immediately?
The one example in the button card docs is for a calling a script
where? (link?)
What docs did you read?
That’s not for the button card
How do I make a switch (on/off with 2 scripts)?
Is it possible to prevent an image in the Picture card from being stretched past its original dimensions?
EDIT: Very janky workaround; use Picture Elements instead with a transparent background and set max-width: 100%
EDIT 2: That's still not quite doing what I want, but it's closer.
LAST EDIT: I settled on the following:
style:
left: 50%
margin-right: -50%
max-width: 100%
top: 0
transform: translate(-50%, 0)
Hello folks, I'm running 0.115.1, docker version. Just noticed that the UI configuration validator seems to run forever. Has anypne else noticed this?
https://github.com/thomasloven/lovelace-card-mod/blob/master/test/themes/airy.yaml#L38-L40
@polar kelp I tried this, but can't seem to get it to work. I do have card-mod installed.
Hi,
I am looking to customize a couple of sensors to use specific icons per state. the device class is using icons I don't like, so i want to assign different once. Was hoping to easily do this in the customize.yaml, but don't seem to find the right way...
has anyone does this and can give me a hint
@finite pond you also need to set card-mod-theme to the name of your theme. See line 2 in that file
Thanks! That worked nicely!
is it possible to !include something and then add additional arguments to it? I feel like I've done it before but I get an error now. e.g.
cards:
- !include ../../cards/house_info.yaml
gridrow: 1 / 1
gridcol: 1 / 3
error: "mapping values are not allowed here"
I want to define my cards in separate files but keep layout together
this is in a custom:layout-card
aha, just found lovelace-gen
new toys \o/
cards:
- type: conditional
conditions:
- entity: switch.zone_1
state: on
- entity: switch.zone_2
state: off
cards:
- type: vertical-stack
cards:
- type: 'custom:light-entity-card'
entity: light.bedroom_wardrobe_right_light
header: Bedroom Right Door Lights```
@mighty tree @polar kelp thanks for your comments, Ive tried several different options but Im still in a red zone
this is shorthend code, due to simplicity, for better view
Where are you entering this? Becasue what you have there is one card in a List of cards.
yes, Im trying just to figure it out how to put conditions for each card (left and right)
so, I need to wrap each card with conditional card but without success
Ok, so it’s the conditional card complaining about no card type?
Try card: Instead of cards:
can you enter the full code again? the error of indicates wrong indentation
of == often
I set a statistics sensor to look at the last 24h of a temperature sensor. Everything works except that it seems to lag 2 hours, i.e., the 24h window starts from two hours ago and then covers 24h back from that. This is on HA OS on a NUC. System time is correct. What could the reason for this be?
Wrong channel, sorry.
I have a question regarding css animation within a picture-elements card. Originally i tried to change positions and fading using keyframes with a state-label. This didn't work, probably the state-label is not a real card and animations wouldn't work. So, I used the custom:button-card. Here also, the animation did not work that I defined in the picture-elements card:
- type: picture-elements
image: /local/lcars/rightS_generic.svg
styles: |
@keyframes mymove {
from {top: 0px;}
to {top: 120px;}
}
What worked is to define this animation in the extra_styles area of the custom:button-card. However, then I need to redefine the same animation in each button-card. Is there a better way? Where is my error?
@mighty tree https://hastebin.com/exodagihip.bash here it is
intact code
and this is what I tried https://hastebin.com/ipodoparex.bash
@devout hatch You need to follow exactly the syntax given in the conditional card. Your code has several errors. Based on your example, I made a running code snippet that works for me. See here: https://hastebin.com/quhusufevo.css
The main issue was the following:
- type: conditional
conditions:
...
cards: <--- Needs to be "card"
- type: vertical-stack <--- remove the "-" and then move everything two spaces left
cards:
has my message been deleted?
hi everyone
I recently updated my system and in my tablet, in the side menu the Notifications and User icons won't show up
does anybody know why?
thanks @mighty tree now its working
can I put a template into one of the properties
head: switch.bedroom_led_light_trafo
label: Bed LED Strip
open: false
entities:
- entity: light.bedroom_go_color_bed
toggle: true
type: 'custom:slider-entity-row'
- entity: light.bedroom_go_temp_bed
toggle: true
type: 'custom:slider-entity-row'```\
open: false => if(light.bedroom_go_temp_bed and light.bedroom_go_color_bed are both equals to unavailable states)
and open: true => if one of those entites are off/on
Anyone have ideas why some things on the floorplan are scaled differently on desktop (Windows) than on mobile (Android)?
can someone please tell me how to hide some entites that are unavailable
also I want to add slider when they are available to be presented with a slider
For someone reason I cant paste it into hastebin
@devout hatch posted a code wall, it is moved here --> https://paste.ubuntu.com/p/J9DnFFC7TR/
There's a custom card that allows you to hide stuff. I can't remember the name of it from the top of my head though
Conditional something
yes, but Im using auto-entities with fold-entity-row and also slider-entity-row cards
It'll be card within a card in that case
I really dont know why this is not working
it shows me the fold entit row and the entites allright
but it does not hiding when those entities unavailable
I hope this is the right place – I have searched the online documentation, but could not find any info - I have a z-wave dimmer module in HA and I want to connect to a flood light that is not dimable - is there a way to configure an HA dimmer to be a straight forward on/off switch in the UI (no dimming)?
OK I have a purely stupid question. Met.no blew up on me after upgrades, I had some badges & sensors that were looking at sensor.weather_temperature and working great, and now, no dice. Of course I can do {{states.weather.home.attributes.temperature}} and get what I want in a template, but how do I put that in to a lovelace badge or a lovelace gauge or whatever?
yeah I saw that breaking change, but..didn't think it applied to me
Hi
Why --ha-card-background does'nt work with blur ?
Is there any way to blur the background of my cards ?
OK well... here's the better question. Can I show a state attribute (states.weather.home.attributes.temperature) in a lovelace history graph without making a template sensor of it?
because as far as I can tell all my met.no sensors turned in to state attributes.. which is FINE... but
or check to see if I've been using yr.no
I installed met.no from the integrations UI, it's dead simple, and have deleted and reinstalled it too
sensor.weather_temperature just used to...work
that's just the way the integration works. I think you're stuck with template sensors for what you want to graph
otherwise, you're stuck with a PR or FR
OK, so how in the heck did I have sensors before 115 is the thing - Not that it matters now
it was just the update to the new API
but did yr.no provide sensors?
I'm interested in where my life went wrong 😋
maybe I've just been doing it wrong all along
hard to say since the yr.no and its documentation have been scrubbed, but you're using a different integration now
well... no matter. I have an ESPhome and a nice SHT sensor strapped to a tree
Thanks for the help all the same folks
Nobody would help me ? 🙏🏽
@errant grail Your screen looks real pretty....
Yes but i would like to add blur effect on background cards
(i've already done on the background : https://nsa40.casimages.com/img/2020/09/20/200920074220844355.png )
anyone used card-mod styles together with the style entry of picture-elements card?
hi, I'm trying to activate a scene with a button card and getting an error that the scene.turn_on call doesn't contain entity_id
but afaict it does. what am I missing? https://pastebin.ubuntu.com/p/Q9HMVZpzvp/
ahhh
i was trying to figure it out from https://www.home-assistant.io/integrations/scene/
that worked! thanks
I try to get a custom:swipe-card in a picture-elements card running. Although the dashboard tells me that it has been loaded, i get an error that the custom element doesn't exist. Any hint?
would it be possible to get some slight differentiation between the favicons for home-assistant.io and the actual homeassistant frontend?
can you anchor a card to another for layouting? (do not mean the yaml anchor)
hello all. how i change the image of the button on UI ? the image in my local media
https://paste.ubuntu.com/p/78hk7BwMdP/
I'm trying to call a shell script from a button but all im getting is Error 255
and NoneType: None
@alpine dagger the error 255 is usually a a no connection or connected refused error sent by SSH. It can also be an error sent from the remote for a bad script. but generally it's a connection issue.
@vocal kiln https://github.com/thomasloven/hass-favicon
nice, thanks @smoky depot
what don't get is it works fine through terminal
but calling it through shell_commands and entity button isn't going well
@alpine dagger maybe this? https://community.home-assistant.io/t/running-a-shell-command-from-home-assistant-to-remote-linux-pc/135221 dunno
Is this just me or it's general situation. I have a card showing the binary sensor status. Once i click on it, i get details that are corect, howevet, despire sometimes showing correct value, usually it toesn't update on the dashboard although when ic lick on the sensor i get exact detailed view.
Hi everybody, I'm trying to create a weather card on lovelace which displays my own personal weather station info (ambient weather station) but I'm having a hard time getting something that looks nice. Is it possible to create a weather.XXX entity out of a bunch of sensor entities? The ambient weather integration only provides sensors, not a weather.XXX entity which can be used with the default weather card.
There is (used to be) a custom card meant for DarkSky with a ridiculous ammount of options. I think you can use that to specify a separate sensor for each parameter.
I think you should be able to find it by googling Dark Sky Lovelace Card or something.
Also, someone should make an mqtt weather integration.
Is it possible to define anchors for different dashboards? An example defined them within the customize object, but this is not dashboard specific. Basically, I want to define pixel sizes for different dashboards and replace only the file for the anchor and leave the UI-yaml files with pointers to the anchors the same.
Yaml anchors? They only work within the same file.
Is there a way I can prevent data from deleted devices from appearing in the History page?
This is a screenshot of a device added and then deleted via the UPnP integration https://i.imgur.com/jAwuPTQ.jpg
Yes, Yaml anchors. That is a pitty... I guess I will try then either the decluttering card or lovelace-gen. Not sure what es better for now.
@polar kelp Is lovelace-gen still maintained or encouraged to use?
To an extent. I've had a bit of a burn-out on custom development, but I'm slowly getting back into it. Though I'm not aware of any current problems with lovelace-gen.
(probably mainly because I don't use it)
ahh, okay. And what do you use instead, if I may ask? The ambition is to reuse YAML-code as much as possible for different screen sizes and so I would like to define constants at one place. 🙂
I'm full out in the GUI now
Automations
Bet you wouldn't expect I have a total of 2 lovelace plugins installed either.
No... I wouldn't. As I dive deeper into lovelace. Somehow you are the backbone of some of the most important custom cards and now knowing that there you don't use it, is a bummer. 🙂
Don't worry - I still like developing and improving them.
Hehe, good to here. I experienced this in many open-source systems. A large user base is key to get a large dev base and so to survive. So stay healthy and thanks for your effort.
I hope someone can help me. I am not even sure where my problem lies. What I want to do: start netflix/disney+/amazon video on my android tv by clicking on a picture of the according logo in the frontend. I figured, putting a call-service adb_command with logged adb shell command there might do the trick. Mind you, I have no idea what any of it means. I just went through the android TV documentation and tried to follow along...but it doesnt work.
yaml here: https://hastebin.com/egozajequt.sql
I don't know if I made a mistake in the yaml or if I don't use the shell commands correctly or if I need a script for that (tried that, script editor in HA is still.... well...)
since my most recent update, my first page of my home screen will not load. I t will show for a second and then it disappears
anyone know how to torubleshoot?
Any custom plugins?
@polar kelp Unfortunately, lovelace_gen seems not working: File "/config/custom_components/lovelace_gen/init.py", line 57, in _include_yaml
raise HomeAssistantError(exc) -> during loading.
Start by removing them, then.
😔
Then, if it works, add them back one at a time.
@mighty tree That error should also have told you "Unable to include file <filename>", as in !include <filename> was not found.
You could start with custom-compact-header, if you have that.
That is correct... it seems to several lines down and I haven't connected it with that. I followed the documentation with "-FILENAME" without space between "-" and "FILENAME". But, obviously I made somehow an error there. Thanks
@polar kelp ?disablech fixed it
@polar kelp Ok, I tried now a couple of things, but I don't get to the error here:
omeassistant.exceptions.HomeAssistantError: mapping values are not allowed here
in "/config/lifesupportRightMenuS.yaml", line 3, column 8
Here is the line:
# lovelace_gen
type: picture-elements
image: !file /local/lcars/rightS_generic.svg
So, it is just an image. The error exists with and without the !file command. Any idea?
New user <--- Just got HA up and running and did basic configs. I went through the integrations wizard to add my ring cameras. For the video doorbell, the sensor to report/show battery life is not showing up on the dashboard (the circle/badge at the top of the overview page). However I do see it in the entities list under integrations.
Top right corner
-> Take control and then you can do what you want
Never mind...
So uh... today suddenly my home assistant started doing this:
oh i can't upload images
basically it doesn't load.. but it also isn't showing errors
in the console no errors, all return 200 ok
ha core logs doesn't show anything wrong
https://imgur.com/63Y0c5L Basically this
Just removed all data from the application from storage, and it keeps doing the same 😦
Note that, in chrome (which i never use) it works fine
well wtf.. I restarted my browser and all is well xD
@mighty tree ”mapping value is not allowed here” is almost always an indentation problem.
Oh. You solved it. Good
@mighty tree posted a code wall, it is moved here --> https://paste.ubuntu.com/p/9jMRbv73Fg/
@polar kelp Good to know. 🙂 It came in fact while I tried to do something with lovelace_gen. While refactoring, the indentation error happend 😅 But now, I try something crazy?! with Jinja2. The idea is to have some global variables:
lovelace_gen:
screen:
PC_screen:
button_text_size: 14px
Tab_scree: ...
Then, pass the actual screen to a yaml file:
- !include
- lifesupport.yaml
- screen: PC_screen
font-size: {{ _global.screen[screen].button_text_size }}
In the square brackets, I want to evaluate the variable passed through the include, to get the corresponding variable. But, it does not work.
Does Color based on icon state? toggle in entity cards not work for Person types with Home/Away?
@mighty tree That's not easy, but it can be done to some extent with the tojson and fromjson filters. I think there's an example in the readme.
Thank you for the pointer. I had it somehow running but unstable. I often get "unknown error" in lovelace. Just once, it worked but then never again. I'll try the suggested tojson option. Thanks again!
Hello - I had the zwave graph working via custom_panel but after an upgrade to .115 it is no longer showing up in the side panel.
panel_custom:
- name: zwavegraph2
sidebar_title: Z-Wave Graph
sidebar_icon: mdi:access-point-network
url_path: zwave
Got it working, even without the tojson
_global.screen[kind].button_text_size
The downside is that I have to restart HA when I want to test it. Reloading lovelace is not sufficient.
hello All,
might not be the right place to ask but do you know if there is a way now to add a custom panel (my router's admin page as a link) to the left panel of the Home Assistant GUI?
in other words is panel_iframe still working?
@fringe chasm https://www.home-assistant.io/integrations/panel_custom
what do people use for a floorplan visualization these days?
seems ha-floorplan uses some outdated components
i have switched to picture-elements card with an SVG
ah so that's basically the same thing
not quite
the floorplan has the advantage to manipulate every object in the svg. The picture-elements card just renders it, but no access to the elements in the svg. However, you could place existing cards on the SVG using picture-elements, which is not possible with floorplan
of what?
does look a little dead
Anyway of getting a state_attr display in a custom:button-card? (without creating an additional sensor for it..)
is there any way retrieve and display some kind of artwork for YouTubeTV/Netflix/Hulu, etc. in the Media Control Card or Mini Media Player?
I know there are facets of having mutiple accounts which are under development still, but I've notice that regardless which user logs in, the first lovelace panel (the leftmost on by default with the url .../lovelace/0 I think) is ALWAYS shown. Even if that screen is hidden from that user. I that a known thing already?
BTW I'm loving it so far: I can let my kids control their bedrooms, but not each others'! Whoot!
Hi, where can I find the code for the vertical stack card included in home assistant, I want to make a custom card but I want the editor similar to vertical stack, Thanks
Hi there ... I've setup a 'map card' with device trackers and assigned entity pictures and wondering if there is a way to set the 'round/circle' element as transparent? Here is an example of the current image ... Ideally I'd like to remove the white background ... https://imgur.com/a/Tbn7HFO
Does Color based on icon state? toggle in glance cards not work for Person types with Home/Away?
https://imgur.com/a/8zK3jyp
@normal shell that'd be on the integration to provide
@gilded swallow yes, you can use temates in the card itself
@charred fable person/device_tracker is not colored
Hi, I am trying to install custom cards, and I put this in new "Resource" - /local/button-card.js . However I am not sure where to actually put the js file, the system doesn't seem to find it. I tried to create "www" folder in /config but that doesn't seem to work. I an on Pi
You need to restart after creating the www directory, but this would all be much easier with HACS
Home Assistant Community Store is the successor to the old Custom Updater, and can do so much more - you should check it out. They even have a Discord server for issues with HACS itself.
I did see HACS mentioned, so you'd recommend installing it?
Yes
hm i'll look into it. Rebooting doesn't seem to fix the issue. Just to make sure - i try to add new card and type: - type: 'custom:button-card'
and it says No card type found
- type: 'custom:button-card'
I assume it's because it couldn't load the .js file for some reason?
Just stop trying to do this manually and install hacs
haha ok 🙂
It will do all this for you
I am also trying to learn the system a bit, with limited success in this case 🙂
I did get my first few templates to work though, so I feel good about that
Everyone uses HACS, it’s no sin
Not me 😛
Where can I run that curl command? Do I need to ssh in? I don't see SSH/Terminal in the add-ons
doh! I see it now. I only enabled advanced few min ago to mess with Resources, and didn't realize SSH is there now
ok, HACS installed and custom cards as well
and built my first dynamic garage door/open closed card, thanks @dark dirge !
Evening, looking for info on how to authenticate via ip, as in if I come from 10.2.3.4 then I am user "kiosk" to force the user?
I understand "trusted_networks" gives a list of available users, including admins. Can I limit to one specifically?
hi all.. wondering is there a page on community forum that people show their lovelace configuration.. need to get some inspirations...
😊
@last compass some or alot of this may be out of date but you can glance it over to get some ideas. https://www.awesome-ha.com/#public-configurations
hey so none of my dockers are starting after an update
how do i get the backup folder out of the HA docker on hassio
or get the box working again
@radiant stirrup did/do you have ftp access? this on an rpi?
oh, then I can't help ya lol
@radiant stirrup need to know how you build the system.. running raspbianOS?
are u making it headless?
SSH working?
if you can get into the unix core.. then there is a lot of way..
can you enter the console?
if yes.. the fastest way is to back up your home-assistant folder
did you run portainer?
so we've made another VM disk and we're trying to mount it
can you access it?
no portainer
you should
its a pretty vanilla setup
portainer is a good safe if you have it running
alright.. one thing I dont like about running hassio./supervisor is not being able to handle each docker manually
yeah thats fair
which this happen like yours then basically you kind of f**k
anyway as long you have the directory backup.. you should just run the hass installation again..
be sure to downgrade hass
cause the problem might happen due to breaking change
Is there any way to sort entities in Entity Card by state? Need this for my fuel price card.
we've done a port scan and nothing is open
mine keep breaking up due to running watchtower
already have idea on how to change it hahahaha.. but have no time to implemeted as of yet
but I'm not running hassio so, its much simpler and easy.. just fixed the hass...
yup
ssh is the best way
in my case used FTP apps through SSH
and its should also work
scp from VM to VM should also work
@smoky depot is there a pages on community pages?
how do i install ssh?
theres no docker so i cant run the ssh server
so id have to install ssh on the HASSIO OS
from its?
you need to install it from home-assistant
which is crash and you have no access to it
correct
again that is why I'm avoiding this methods
yeah just need to get my files back
i've got root access
then those command line should be at your disposal
that doesnt get me files
try to downgrade.. so your hass can run
"Automatically close connection" in Profile Settings is always changed back to "ON" after a restart/time spent, I cannot say for sure which one indicates, I just see this is the 15th time since last week I modified this. Any Idea? Thank you 🙂
It's a user/device setting, so if you open a new browser/client and/or log out, it will reset
I have a question regarding style and card-mod. Usually, you have a style attribute in every card, such as the swiper-card:
style:
top: 430px
Now, if I want to add custom CSS to change, for instance, the scrollbar color, I am supposed to write something like this:
style: |
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
}
How can I combine both style attribute definitions?
Having a weird problem with browser_mod after updating to core 0.115.2 for some reason popups ignore the device_id: this and display on all open devices. Any thoughts?
don't know. just try it? 🙂
Is there any way of getting 24h notations on stuff like logs AND having the language to english? Setting it to swedish does the trick but i don't actually want to see my stuff in swedish, i prefer english for that 🙂
English (GB)
hey guys is it possible to have the input select of one card control the display of a separate card? I have looked at the stock card and I am not seeing anything.
@feral rivet condition card maybe?
or custom state switch card for more advanced stuff, change whole layouts
Hey guys. I have just installed and have been having fun learning. I edited my config file to add my Yamaha Receiver and its working. I am trying to figure out how to add a volume slider and have read through several forum articles and am not grasping it. Anyone feel like helping out?
I can give you a few pointers but no time to go in depth
install HACS if you haven't, it gives a nice frontend for installing additional features created by the community
after you put in your github personal access token it may take a while to get set up - 15m+ - so be patient and don't restart HA
once that's all set up you can use it to install this https://github.com/thomasloven/lovelace-slider-entity-row
thanks @maiden dagger
@maiden dagger this is what I am trying to make work https://community.home-assistant.io/t/lovelace-mini-media-player/68459/1942?u=tmidi
we'll need to see what you have above the yaml where you're getting the error
when an input_select option is selected then i want it to change the now playing card.
so when you select dining room, it should show the now playing card for the dining room, correct?
and when you select bedroom, show the bedroom card?
yes
one minute
@feral rivet https://paste.ubuntu.com/p/SWQ5rCSNZR/
a condition card can only show/hide a single card, so you need a totally separate card for each media player you want to show/hide
there are other ways
https://github.com/thomasloven/lovelace-auto-entities can show individual entities based on conditions, on the same card
but lovelace updates fast
you won't see any flicker even if cards are being removed and replaced
auto-entities would also allow you to use input_booleans to turn media players on/off so you can have multiple active at the same time on one card
wow ok. so the first option may not be the best as I have currently 4 sonos media player which means 4 different input. having to create a card for each does not seem very "smarthouse". The auto-entities is interesting but based on what you have stated this would only work if it was the same card.
I don't think there's anything necessarily wrong with your approach
nothing wrong with having 4 conditional cards
just pointing out some other ways
depends on whether you will ever want to see more than one at a time
and whether you'd want them to be on the same card, or separate cards - purely an aesthetic choice
yes I would if there were 2 mediaplayer on at the same time I would like to see the now playing card scroll through them possibly every 30 sec, but to really make it smart I would not want it to scroll though if the only thing playing was the grandfather clock automation.
"and whether you'd want them to be on the same card, or separate cards - purely an aesthetic choice" not sure I understand this part.
automatically flipping between 2 cards gets a bit tricky, I'll put that aside for now
I'll show you
https://i.imgur.com/X9oKNFM.png @feral rivet
on the left, 2 players on one card
on the right, 2 separate cards
if you use auto-entities, and show/hide players on a card based on some helpers (input_*) the two players will be on the same card
if you use condition card, as in the example, they'll be on separate cards - one media player per condition card
it may help to give a bit of background
I'm sure you know by now what entities are
each media player is an entity, your input_select is an entity, etc
cards typically present data from those entities in some way. your card where you select a media player is an entities card
entities cards can show several different entities at the same time, so you could potentially show ALL your media players on that one card
but since you want to show/hide media players based on other factors, you need another card that can do that
the only card with that ability that's built into HA is the condition card
that card will evaluate your configured conditions and then show/hide another card
technically that card, that it's showing or hiding, is INSIDE the condition card
key concept there: cards can be nested, one in another
so the condition card is only really a card in a very loose sense, it's more like a container for another card
so we know we can put an entities card (which can show multiple media players at the same time) inside a condition card to show/hide it
hello i have issues with the mini media player (https://github.com/kalkih/mini-media-player). I get always the message that it dosnt exist. I already tried the suggestions under "getting errors?". it worked well until it stopped working 😦
but you want to show/hide individual entities
so you'll need 4 separate condition cards each containing 1 entities card each containing 1 entity
or you'll need a card that can show/hide entities - e.g. auto-entities
@willow garden did you install it using HACS or manually?
apologies in advance if it sounds like I am set on this. https://i.imgur.com/CP9D2P7.png the vision I have for this card speaks to a single card .
manually
then use the example I gave earlier
are you talking to me?
no
lovelace will report that a card doesn't exist for two reasons generally
- the file is missing
- there's a javascript error in the file causing it to fail to load
check browser dev console network tab, search for "media", look for 404 errors
and console tab for javascript errors
and /config/lovelace/resources to make sure it's actually set to load
but if it suddenly stopped working I don't know, maybe an HA update broke it and it needs to be updated?
use HACS, makes this stuff pretty fool-proof
trivial to uninstall/reinstall stuff to fix it and it takes care of nonsense like browser caching
the cache shouldnt be a problem using it in inkognito. i will try your tips, thanks.
@maiden dagger I installed HACS, but get this: HACS is waiting
HACS is waiting for Home Assistant to finish startup before starting startup tasks been about an hour
I am attempting to convert the output of a sensor that is showing bytes recieived to Mb. I've tried a few different syntax - here are the current versions: https://paste.ubuntu.com/p/nxBjkWQVth/
With no parens around the float section, I don't get any rounding.
Hey again ... Is anyone savy with CSS/card-mod style and would be able to help me out in regards to attempting to remove the white background on the marker/entity_picture on the Map card? I've managed to do this in Chrome Inspector but struggling when it comes to knocking up a 'style' element to do this ... https://imgur.com/gallery/vBOYVPH
Hi guys, I'm trying to use Markdown in lovelace UI but it not working. I think it should be quite easy, but I'm really struggle here, any help?
content: |
O carro está estacionado em: {{ states('sensor.car_location_address') }}```
Is this in a stack card or something?
Is this in a stack card or something?
@polar kelp , yes. It is
And what is the problem?
Interesting. There are only 19 places where that error message appears, and none of them are anywhere near lovelace
So when you added this code, the interface stopped loading, and I suppose you're stuck there because you can't remove it again?
@hot stag, I already encountered this issue. The only way I found to avoid it is to use a variable:
{%set s = states('sensor.arris_sbg10_router_b_sent') | float / 10**6 %} {{s|round(1)}}
Oh this apparently is working :
{{ (states('sensor.arris_sbg10_router_b_sent') | float / 10**6 ) | round(1)}}
this is pretty weird syntax: (float / 10**6)
yes, that last one will work
without the parens, you're just rounding 10**6
@azure elk Thanks! That did the trick. Took me a minute to see where the open paren was.
@dark dirge I was grasping at straws at that point. My coding skills are ... rudimentery at best. 🙂
hi. all the codes in my customize.yaml file are not being loaded. any clue?
Is there a way to give a user a default dashboard? (Use: want to give my wife the specific buttons she wants when she connects to hass. 🙂 )
Just added a bunch of stuff she asked for, for her WFH setup, and I don't want to make her crawl through views to find it all.
Yes, in the profile
Is that in the Users tab?
Oh, "Default Dashboard for this Device" once you're logged in. Got it, sorry!
Hi guys, I have an issue since 115.2 (I think) I'm stuck on the blank retry page
if I clean up storage & cookie I can access again, but if I close my browser and re-open I'm stuck again
same for the android app
private navigation do the trick but I do not want to be forced to launch it and log in each time I wanna go on HA
is it possible to customize the media browser view?
e.g. display a list or sort by ?
and I have customized my sidebar in one browser but it did not apply it on other devices,
I believe this is correct behaviour but how can I make these changes for all browsers/devices?
ok so I thought about that... and don't see any possibility to make this sync across devices 😄
thanks anyway
You can create a custom js file that is loaded in HA that sets the values in localStorage on load
I see what you did there, this could also make a good custom component
https://github.com/Villhellm/custom-sidebar Like this?
goddamn
Hi, I've got an issue with state-label, state-badge, these are just keep stacking into left bottom corner and I can't move them by css's style, top, left positions etc.
- type: state-label entity: climate.ground_floor_temperature prefix: "Ground Floor Temp " tap_action: action: navigate navigation_path: /lovelace/2 style: top: 50% left: 50% font-size: 20px
Indentation
Everything below style: goes two spaces to the right.
Same goes for your tap_action: section.
In yaml, whatever: starts a new block that continues on until the next line which is indented to the same level. yaml for_example: everything: here belongs: to the same block: but, this: is: an entirely new: one unrelated to whatever: is in for_example
thanks mate, got this, dunno why it has been copied without spaces, anyway I've got this correctly, still doesn't work 😦
do you need https://www.home-assistant.io/lovelace/horizontal-stack/ ?
Guys, I need you help for a sensor that has its data in its attributes. I can't rely on the state value because it is not updated on regular basis. I'd like to generate a graph with the data in the attributes. Is that possible? I don't think template sensor may help in my case.
Why not? A template sensor can turn an attribute into a value and that can then be graphed.
Because the sensor, each time it is updated, gathers the history water consumption (days of the current month, and the last months). And I'd like to graph the data in the attributes and not from the database. If I'm not wrong, if I create a template sensor, I will have a unique value entered into the database and associated with the date it has been gathered right?
Yes. Without some form of timestamp-value stored, you can't make a graph.
Can I change the date associated to a value without doing it directly in the database?
Tell me again what you have, please.
Oh...
As you can see, on the 23rd, I still don't have data from the 22nd
So I cannot rely on the instant I have it
Normally, in cases like this, I'd advise to make a template sensor that finds the latest value and over time builds its own history.
That's probably still doable here, but with some really advanced black jinja magic.
That sounds good. Anything I can read about building history?
What do you mean by "doable here"?
What I mean is if you had an attribute which was a list of the last 30 days data in order, you'd read the last piece of that into a template sensor, and in 30 days you'd have 30 days of data.
But in this case getting the last piece is kind of tricky
I'd says that it's the last non null value. But how to associate it with the right date
The last non-zero data would always be for todays date, right?
is it possible to do something like this in an entity option? fallback: {icon['mdi:leaf']}
But it can be 4 days ago, that depends on how the webservice is willing to provide it
Wow that's useless...
Absolutely
if I make it {sometihng} is outputs [object Object]
But unfortunately, that's the only way we can have data regarding water consumption here
The only solution I can think of is to make a custom card for it...
I was thinking about that
@keen bobcat Try putting quotes around it.
And drawing the graph with the data in the attributes and not getting it from the db, right?
what would be the correct format though? I was guessing with icon[mdi:icon] which doesn't work
What is it supposed to do?
I don't know how much easy it to hack the mini-graph card. You did it right?
Nope
One of the few that was someone else 😜
It's made by my neighbor, pretty much.
Seriously. We live in the same small town in Sweden. Never met.
That's a coincidence
I'm going to investigate if I have some spare time
Thanks Thomas
Have to leave
why is the sidebar menu burger not working on my surface tablet? only touch, cursor works fine
Where's the best place to report a bug (with log excerpt) causing the Media Player Card to fail to display cover art after upgrading to v115.x?
Hey guys, hoping someone here can help me out with this (most likely) easy question. I've been searching high and low for a way to have an entity on my dashboard add all of the devices from Shelly. I know it's possible, seen it somewhere on a blog not all to long ago, but like I said, I've been searching high and low and can't seem to find it. Anyone can point me in the right direction on how to approach this?
Simple question: How is it possible to show the history of a switch in the current version of Home Assistant? In the previous versions, a long press brought up a dialog showing the history but that doesn't seem to work anymore ...
@grim beacon that should still work. Which version of HA are you on and which card are you using?
@dreamy raven are you looking for something dynamic? auto-entities is probably what you want. If you just want to add all entities from a device, go to the integration's config page and select "add to lovelace"
@mild veldt Thanks for your response. I am running 0.115.2. As far as I remember, when I performed a long press on the name "Office" in the screenshot below (not the switch image), a dialog popped up showing the history. Now it just turn on/off the office light. I am using custom:layout-card
Seems like that I can't upload a small image here.
Please use imgur or other image sharing web sites, and share the link here.
Hope that works: https://imgur.com/a/nq2wYqJ
anyone able to help steer me in the right direction to make a decent sensor card for my Xiaomi humidifier?
when i put it on entity card i can only add 1 attribure? i want several..
basicly these 2 combined into 1 card/tile? so i have the "click" controll options, but still see those 3 value's
https://imgur.com/a/NesUMUM
@mild veldt Something dynamic idd. I'll have a look at auto-entities, it just has to be able to do some kind of filtering, so only add the entities that start with light.shelly* for instance. But Thanks for the response, I'll have a look and see what I can find.
@dreamy raven yes, that will support that
@kind shell works for me in 0.115.2. Check your config that you don't have something populated for the hold_action
Is there a way to make a button which calls a service with different data on press (hold) and release?
@raven quartz I believe that is a function of the custom button-card
I used HACS to install card-tools and auto-entities, but I don't see any /local or /community_plugin folders anywhere... where did they get installed?
oh, nvm, they told me when I installed: /config/www/community/lovelace-auto-entities
seems their location is ever changing
that one is pretty consistent for HACS
but you refer to the files in there with /hacsfiles/xxx and it redirects
the historic graph just continues drawing the last known value of a sensor, even if the sensor is currently unavailable.. is this correct behaviour?
Hi. How do we assign devices to different areas? All my old areas and their contents have been ported over but they're mostly out of date now. Thanks.
from the cog in the upper right of the device page
can anyone tell me why this service call isn't working from a picture elements card? works fine from 🔨 > Services - action: none hold_action: action: none image: /local/btns/volumeUp.png style: left: 67.2% top: 88% width: 12.2% tap_action: action: call-service service: remote.send_command data: entity_id: remote.theater_hub command: - VolumeUp device: RX-V675 A67B39 delay_secs: 0.5
the error i get is Failed to call service remote/send_command. required key not provided @ data['command']
had to change to service_data i guess
what the difference is, 🤷♂️
Lovelace uses service_data: instead of data:
aha, thanks
because it just had to be different
and here i am missing an easy WTH entry
One line change
from the cog in the upper right of the device page
@dark dirge Thank you! I swear I tried clicking every other thing on devices and areas. Never even saw the cog.
Hi
I've a question about mini-graph-card and the group_by: hour function.
Is this the right channel?
yes
Ok. thx.
I've a issue and don't know why this happens. I try to explain what I want to achive and what I did.
I've a sensor which measures rain. This sensor is based on utitlity_meter. Configured hourly. So every hour the counter gets resetted.
I did now a bar graph with mini-graph-card. I want one bar for every hour 08:00-08:59.
So I did the following:
https://paste.ubuntu.com/p/jwrK8HzQth/
The problem I now see is that group_by: hour soesnt work propperly as it shows bars with timeframe like 08:45-09:30 or 22:30-00:14
I expcet that it should exactly use 22:00-22:59 for one bar in the graph. Anyone know what I do wrong?
Ah one more thing I want to mention: with group_by: date i do not have this issue... this is wokring fine and always uses 00:00-23:59
Hi All, can I ask, are you able to set inputdatetime on the frontend gui? I'd like to have an option for guests to enter their custom bedtime via tablet interface?
Hello everyone!
I've created template binary sensor and added it into the lovelace. It's all working fine, but the states of this sensor is "on/off" while I need them to be "yes/no". As far as I understand, I need to apply device class to change that appearance, but in list of predefined classes there is no one that will have "yes/no" states.
Do I need to create new device class and if so, how can I do that? I didn't found any docs about that.
Moreover, maybe I just need to customize my entity, but I didn't figure out how I can do what I need via customization.
Hello, If i understand correctly: there is no easy way to add a lovelace ui to a specific user? I want to be able to make one page for my parents to control their lighting. But i can't figure out how to hide all the other stuff.
@placid swift create a separate dashboard for them
I did now, and the only downside is that its browser/device bound. But after asking them they will only use 1 mobile phone for it so its fine! 😄
Is there any way to stop panel mode webpage cards from reloading when revisiting? I have a node-red in a panel and when I get back to it, it reloads.
This is always open in a browser tab.
@neat olive You can either switch to a template sensor and return yes/no, or use a card that allows you to change the displayed state name (like the custom button card)
what's the easiest way of putting a background-image inside a media player card or a vertical stack card?
@outer gulch you mean if there isn't a native option?
Then you can take a look at this: https://github.com/thomasloven/lovelace-card-mod
can someone help me out with a picture card entity - I am trying to point the card to the photo to use.
Ive dropped the photo in a folder created (www) within the config folder (and restarted HA)
So would the address be : https://192.168.1.123:8123/local/testcard.jpg even though the photo is in /config/www/
yes if you have ssl installed otherwise only http
you should be able to preview it in your browser
I will see if i can
ah ok - I can , but i have to accept a security error - so the ssl might need updating ( i though letsencrypt did this )
i cant see it on http, only https
so everything is fine? If you can access everything via https there is no issues with the certificates
Just curious...has there be any discussion or planning to allow for the configuration of groups in the frontend/UI?
there actually has been a discussion about this yesterday with the frontend devs... altough i don't know the results of the call
light groups would probably be the most likely. but any such change requires a backend change to move it to a collection which complicates things
is somebody using this card?
seems I cannot click or drag and it also looks like i need some select box plugin, can't figure it out :/
https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card
dev tools say everything is alright
oh
https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/issues/57
mystery solved, it's a bug
anybody knows what has changed with click/drag - essentially focus - on cards in 115?
seems like the dev is baffled too
@formal tide I commented on the issue
Is it possible to override the displayed temperature for a certain thermostat card in Lovelace?
awesome thank you! so it should temporarily work in 115.3?
No guarantees that's the full issue, but it sounds like it without looking at code
@vapid field can you elaborate?
I have a thermostat card displaying the current_temperature value of the climate entity it is linked to. But I want it so display the temperature from a different sensor
@vapid field maybe you can use the generic thermostat integration to do that?
@mild veldt I see how that would work, but that does lose some functionality that the climate integration offers (dehumidify-only, fan-only mode etc.), the generic thermostat is a more binary solution..
I'm guessing I'm going to have to look into making a custom Lovelace card and integration some sort of current_temperature override function?
I started seeing this Entity Not Found on the middle top icon of lovelace overview but I can't tell what that icon was for to fix it. It's the one between Updater and Sun
how does one use attributes in an entities card?
Hi! Anyone having login issue? I'm regulary (once a day) stuck on blank page with retry.
On android I have to stop the app, clear storage, than manually log in again 😦
it is doing the same from a simple browser, once a day I have to remove session token related cookie to solve this.
I'm on 115.2 btw
that's pretty annoying
did not have this issue before the upgrade from 114
Hi! Anyone having login issue? I'm regulary (once a day) stuck on blank page with retry.
On android I have to stop the app, clear storage, than manually log in again 😦
it is doing the same from a simple browser, once a day I have to remove session token related cookie to solve this.
I'm on 115.2 btw
@open coyote I came here to find a solution to the same (or similar) problem. The first tab I open HA in loads without issues, the moment I attempt to open it again (2nd tab or restarting my browser) it just give me 'Unable to connect to Home Assistant'. I have to clear cache & cookies before it loads again.
Running 115.2, getting the same issue in both Chrome and Firefox
Initial tests on 115.3 looks like it's been fixed
Everytime I add
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
To my config yaml my front end of haasio wont start
does anyone know why or what command I can use to see why the front end wont start?
Firefox gives the error "The site at https://192.168.1.20:8123/ has experienced a network protocol violation that cannot be repaired."
I've checked the cert that letsencrypt gave me and it seems valid
You could lint your yaml config here to check if it is correct http://www.yamllint.com/
hi, I'm trying to fix the xiaomi vacuum map card, which currently uses the camera_thumbnail webservice (see https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/blob/master/dist/xiaomi-vacuum-map-card.js#L662). Since using that ws is deprecated, I'm trying to replace that with a call to this._hass.callApi('get', 'camera_proxy/' + this._config.map_camera), but that doesn't seem to work to get binary data. I also tried to just set the src attribute to '/api/camera_proxy/camera.entity' but that gives a 403 Forbidden error, since it's not using the bearer header. Any idea on what to replace the hass.callWS camera_thumbnail call with?
I started seeing this Entity Not Found on the middle top icon of lovelace overview but I can't tell what that icon was for to fix it. It's the one between Updater and Sun https://imgur.com/a/LR1zkIx
How do I change the icons used for open/closed state of a cover from window to garage?
I'm attempting to use picture-entity. I've got /config/www/ created, rebooted HA, yet everything under there when referencing /local 404s. Any ideas?
@ me if you have ideas
@civic trout just remove that badge
it is in the view config once in edit mode
@cyan lintel customize the device class
@mild veldt what badge is suppose to be there? I'd like to fix it and not just remove it
do you know how to edit the dashboard?
when in lovelace, I click on the 3 dots and hit configure UI, right?
yeah, then hit the pencil for the view you're on. then there is a tab for badges
that will list the badges you have
@mild veldt configuration.yaml > homeassistant > customize_bglob > "cover.garage_*" > device_class = garage ?
err s/customizebglob/customize_glob/
@cyan lintel I don't remember for sure. There should be some docs on the site regarding device_class customization
Is there a place in the UI to see the class for the cover entity to see if it took?
or in the cli?
If you customize it, it should show up in the attributes of the entity in
-> States
Worked using the UI. What I had in the configs didn't. meh
Is it possible to use the state !home or the equivalent for state based images? I have a picture entity card and I want to display a b&w image when I am anywhere except home. I have it set to not_home: but that doesn’t work when I’m in another defined zone such as work.
Trying to figure out if this is a just me problem. When I go to scenes I can create a new one, but then nothing shows up in the UI. The scenes.yaml reflects what I've created though. Has anyone had this experience?
I'm trying to wrap my head around the proper way to add PTZ control for my camera to lovelace. I would like a dropdown menu that, when selected, will fire off a REST API call. The syntax for the URL is just a GET.
My question is do I need to define 14 different "rest_command"s then somehow wrap those with a dropdown or can I variablize a single rest_command?
Has anyone an idea how I could add the media browser button to the mini-media-player card?
Hi there ... I've recently setup the 'opensky' integration and have push notifications sent when a plane is flying over my house. The sensor itself (sensor.opensky) open has the output of how many flights are overhead however the automation setup manages to capture the actual flight number via an event ( {{ trigger.event.data.callsign }} ). I am struggling to try and capture this value in order to display it in a card instead of simply the amount. Does anyone know how to capture this value and include it in some sort of card (Glance)? https://imgur.com/a/vCo9Ql7
Sounds like you'd want to make a template sensor to isolate the attribute and show that in an entities card, etc. That would be more of a topic for #templates-archived But you could also try something like https://github.com/benct/lovelace-multiple-entity-row#entity-objects and look into the attribute option as your entity-object
Or look into the event-sensor custom integration, that creates a sensor from events
Shweeeet thanks!
So in my case:
platform: eventsensor
name: OpenskyFlights
event: opensky_entry
state: callsign
I'll move my questions over to #templates-archived
Thanks @mint geode ... Got it working!
Guys, i'm trying to learn how to play more with "custom:button-card",
but for some reason i'm getting an error with this one, and I can't understand why..
Could anyone help, please? :)
hi all , i'm trying to set up a 2am job to turn off all the lights just in case they've been left on. Can't see a simple way in the UI to make a group?
is it possilbe to make a group in the UI?
How could I use the icon (from the last post) in the custom button-card, that it will fill the whole card, and use as a background...? So I could place, let's say, the 'name', 'icon', 'label' - ON TOP of the icon (which is a entity_picture)..
@gilded swallow the custom button card docs has a section that shows how to change the background of a button https://github.com/custom-cards/button-card#injecting-css-with-extra_styles
It's a bit hard to understand (for me at least) from that example, how can I set a one-frame background.. I don't want any animation or changing pictures..
is there a way to force the integrated calendar-card to show the list view by default and not the month view?
Can anyone help with correct syntax: I want to show brithness of my lamp (data.new_state.attributes.brightness) but i dont know how to write it in this context: [[[ return (states['light.lampa_baksida'].state) ]]]