#frontend-archived
1 messages Β· Page 153 of 1
hm yes that might work @split granite
Can someone explain the basci steps needed to use a custom card I found on github? Do I need HACS, do I need to add the .js file to my local folder? Can I simply copy/paste? Do I use a manual card when I add it to the UI?
sure, no, yes, yes, yes
OK, I added the .js in the www folder
I also added it in the resource section of the lovelace config. Gave it the same location (/local)
When I simply copy/paste it into a custom card it says no card type found
Should I do a restart first?
Remove - in front of "type"
"Custom element doesn't exist: button-card."
Better
Progress π
Now if you just created the www you need to restart (like the docs say)
Still the same error
LEt me check the location of that .js
Weird, it wasn't there. I added it again.
And restarting
OK, restarted, the .js file (button-card.js) is sitting in the /www folder. But: "Custom element doesn't exist: button-card."
Clear cache
Can't find that in the UI anywhere.
Ah!
One sec
I think that did it. The card isn't working but I'm not getting any error at least.
Got to double check all the entities
Thank you @wheat current. Got other more work to do but you solved the custom card thing it seems π
If you had hacs, you would be able to skip most of these issues π
You should've said that in the beginning! π€¦ββοΈ π€£
Seems to be an error in the later part of the card. Got 90% of it working
The errors I have tend to be between my chair and my keyboard
π Got it!!! It was a whole bunch of entity id's I forgot to change π€¦ββοΈ π
can someone please point me in the right direction where to add the Cast entity row to the Lovelace UI ?
who or what is a cast entity row
who or what is a cast entity row
@compact nexus Trying to work off - https://www.home-assistant.io/integrations/cast/
yeah i just found that
like an external url? that you want to show up in lovelace @fierce vale ?
no, vice versa I do not want to show something external in lovelace, I want to get lovelace like something external π I have a floor plan in use and there I can place my items. Also I can add for clicks to open URLs. If I do not do, by default it opens the "more info" for the entity
but for climate or dimmers or so, the more-info doesnΒ΄t look that good like the card does
so you want the floorplan page to pop up when you click a button?
d like to have the card opened instead
I have the floorplan as a panel
and in the floorplan I placed the entity with a state-label
e.g. a thermostat
showing up the actual temp
when I click it I get the entityΒ΄s more information "card" with buttons for "temp up/temp down". But I like more the card with the gauge like "drag it where you want", but donΒ΄t know how to call it - if there is a way at all
understand?
kind of. you want it to popup and show a different lovelace card basically?
pop up I would prefer
ok for that you'll probably want to use Browser Mod, found in HACS
tap - pop up - set temp - close it --> back to the floorplan
yeah browser mod can do that
there is good documentation on how to set it up. take a look there
Cheers first time trying to integrate a cast and pulling hair out here
make an entities card and put this in it:
type: entities
title: My Title
entities:
- type: cast
view: alarm-panel
name: thing to cast
obv change the stuff to your own stuff
that link has all the different variables you can change
just reading about the browser_mod thing... I have the impression this does then utilize the browsers popup functionality from the lovelace, is it? So new device/browser, other behaviour
it is a lovelace popup
not a new browser tab or anything
just like a normal lovelace popup
can I configure it to always do this popup anyway which browser comes?
so it is client neutral?
IΒ΄ll give it a try
PS, for dimmers itΒ΄s the same: boring design on the default "more info" with alinear slider and much for simple use not interesting stuff but a good looking gauge slider on the lovelace card
yes when you write the script for the popup you can just put 'this' as the deviceID and it should popup wherever it was triggered
but i've never tested that
it works somehow - but not as I want. It shows up the deviceΒ΄s card, yes - but without the slider
this is a thermostat?
what card type did you specify in your script?
you need to use the actual thermostat card not an entity card
type: thermostat
entity: climate.thermostat_307
great! you're welcome
is there also a way to show it without a Title? I guess no, didnΒ΄t find any option for that in the readme
if I fire it without, it does not show up
good question, hang on
not that important
make an entities card and put this in it:
type: entities title: My Title entities: - type: cast view: alarm-panel name: thing to cast
@compact nexus Thanks for that, just need to try configure my bas url for https and should be sorted π
np @trim bronze .
@fierce vale now that you brought that up i want that for my own popups haha. never noticed it until now
@fierce vale if you just put title: " " (with a space) there is no title but still the space is there
hmm... this works, yes. But the "X" to close it keeps the same big so didnΒ΄t help a lot though π Anyway
I can fire it in developer area but when I set the same up as a tap_action it does not work
shall I post my code?
action: call-service
service: browser_mod.popup
service_data:
data:
title: " "
card:
type: thermostat
entity: climate.peq2166824
deviceID:
- this```
if I pick the service in developer tools and paste the same data, it works
make it into a script and use script.turn_on as the tap action
hmpf... first script
big day!
if it doesn't work then it is because of the deviceID part. that is the part i wasn't sure would work. you might need to specify the device
but it works when I fire it from developer tools area!
that is strange
try clearing your browser cache
that fixes a lot of problems with browser mod
nope
maybe too late today (2 am).
IΒ΄ll try my best another day π
thank you anyway
yeah i'm not sure. i'll probably be on tomorrow if you need help
very much!
Hi HA Friends.
I have integrated Philips Air-Purifiers in Home Assistant. I can add it to an entity card and see the attributes values. Attributes include allergen index (values 1-12) and PM25 values that change dynamically with air quality and the sensors on the air-purifier. How can I display the attributes' values in a gauge card? i want to display the range 1-12 with critical level indicators. I know how to use a gauge card with eg a temperature sensor where the values are states but I don't know how to display attributes. I'm not a coder and I've read about templating but not managed to put the pieces together. Any help is much appreciated.
I am looking to have an input select option prompt with a confirmation dialogue. Anyone have some ideas as to how to accomplish this? I have seen some people trying to route through a button/input Boolean/switch but I was wanting to know if there was a plug-in or better solution to accomplish this? Thoughts/suggestions would be great! Thanks
if the confirm button was in a secondary info window, clicking anywhere outside that would be canceling, right? @twilit light
@twilit light @vapid field https://github.com/iantrich/restriction-card can be used all sorts of ways with confirmation alternatives and combined with most all cards and rows as well π€·π»ββοΈ
Hi, has anybody tried to convert a sensor with "bytes" value, to a gigabyte value ?
That'd be a template, and lots of people have written those
Ok, ill look into that, thanks
Hi. If I want to put a input_select next to a input_text on the same line in a card what is the best card to do that and do I need a plugin from HACS to do it?
is it possible to stack the cards in such a manner that there's always 1 card in a row??
So HACS is the way to go?
Should I run this in my shell or activate the virtual env and run it?
curl -sfSL https://hacs.xyz/install | bash -
right so run it in the venv?
In the config folder
/home/homeassistant/.homeassistant?
If that's your config folder, yes
the user I'm running the script as wont matter?
It will π
hi all. In the sun.sun entity (default in HA) you also have details when the sun is going in digits for example 20:35 sun is under... is there a way to get this info in a card ? i would like to have the sun.sun back information also
Template sensor, but also some weather cards do that
Hi @split granite You mean i need to put sun.sun in sensor: conf.yaml ?
sorry still learning π
You can use one of those to pull any attribute and turn it into an entity
The example there shows a next rising example
aah oke
https://github.com/bramkragten/weather-card also is a weather card that displays the next sunrise/sunset
great that should work also going to look at that card.
Thx!
that card is even better π
trying to install that π thx @split granite
why do people make cards available and not put a picture of it on the info page...
Hi all, can I reference a png image that is out of HomeAssistant path?
- card:
entity: sensor.face_veranda
image: '${states[''sensor.face_veranda''].attributes.file}'
type: 'custom:hui-image-element'
entities:
- sensor.face_veranda
path is: C:/GoogleHome/Python/Output/2020-04-23 15.55.10.833290 Veranda.png
@dapper grotto 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
Any idea why sometimes I take a whole lot of time for the UI to load after a restart?
I can access HA via SSH after a few seconds from the restart.. But sometimes, it can take a very long time until the UI is reachable...
The log should tell you a bit about that
You may need to up the log level to info, but the problem isn't the UI, it's Home Assistant
The UI is the last thing to launch
If the log doesn't tell you, increase logger to info and restart, then see #330944238910963714 or #672217570283094017 to help track down the problem
Alright... Once it will load now, I will change the logger and will try to restart again. Tho now it can take a really long time.. Well, time for a Puff.. π
What option to use media tts in actions, call service?
Yes, with the name of the tts service, and appropriate options
@dapper grotto examples can be found here: https://github.com/thomasloven/lovelace-card-mod/blob/master/src/example.yaml
https://paste.ubuntu.com/p/M6BRtfW8Xg/
layout is still the same
I have my lovelace resources in configuration.yaml as I only use lovelace-mode. Is it possible to reload that section without reboot HA ?
Sadly no
I dont want to stop using yaml mode either. So I hope for a fix then π
https://paste.ubuntu.com/p/wW6mPxDY3Z/ works for me @finite pond - it looks like you've got some formatting errors, the card definition isn't in the cards section for a start
@finite pond would probaby get better/more consistent results setting the size, e.g. max_width: [60%, 40%] or max_width: [100%] or max_width: [962px, 316px] whichever type applies to where you are placing the layout
would anyone know how to send a payload to a telegram service node?
i have tried {"message":"{{payload}}"}
@atomic glacier thanks, I already solved it π
Good evening everybody. I have a big issue π I am trying to solve my issue for days now but i cant do any progress. Is it possible to have a card in my dashboard with 4 sliders and added 4 entity conditions to each slider? So when i turn on slider 1, my entities 1,2,3 will be on, the 4th off. Visa verca it should show me the activated slider as "on" depending on the status of the for entities.
This is my trial :))
I already tried it with groups, but there are no conditions allowed
Probably a stupid question, is there an easy way to add a shortcut to the entities screen in the sidebar?
Not a stupid question, but it's not possible
Ah ok thanks
@split granite Do you have an idea how i can do my thing? π
a) if I did, I'd have said
b) Tagging folks like that is rude - please don't, or people will block you π
https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371/ has a lot of good advice
π alright
Anyone else having problems with the new card interfase? I just updated to 0.108.8, now when i try to add a new card it freezes
no, works fine here
i try to rewrite my question: is it possible to use the combination of the status from more than one entitiy to get a status on a card?
sounds like a template
thanks for the hint. i am asking google..
https://www.home-assistant.io/docs/automation/templating/
https://www.home-assistant.io/docs/configuration/templating/
I figgured it out. it appears to be the IPP that is doing it
@polar kelp Is there a way to access the state machine with lovelace_gen?
No
There was in its predecessor. Didnβt work well and was more confusing than useful.
@polar kelp thanks
Hi
Does anyone know if it's possible on my home assistant device to redirect 404 errors to 444 instead?
π
Without modifying the source... no
Thanks @split granite . That's a shame, π
Nothing stopping you submitting a PR to add a feature π
Haha, apart from my coding skills
anyone know where some docs are for adding an mp4 as the background for the front end?
Sorry for the basic question but I can not get this simple button to work or find online how to get it to work. I just want to make a button card to activate a scene and I'm stuck at what to put in for the service data string
@jade bough This should work. I do think it should be eaiser though, gonna open a feature request for it.
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.night_watch
Thanks, I literally just figured it out too. I keep forgetting _id. Thanks
Why is it that every time I open the card options for my stuff, my HA tab freezes and uses a TON of resource. Only way to fix is force close the tab and re-open the tab.
hi! is this the place for lovelace questions?
Yup
nice
Discussion regarding the Lovelace UI and configuration.
Docs at https://www.home-assistant.io/lovelace. Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs
in an entities card: is it possible to change the toggle switch that gets presented for each entity to some icon that can be clicked?
whats the easiest way to move a lovelace tab to a secondary dashbaord?
Hi togheter
I just look for a nice solution. Something like a conditional card but... let me explain
I have 6 entities for 3 devices.
Example Device 1:
sensor.entity1.state
sensor.entity1.timeleft
Now I want to display sensor.entity1.timeleft just if sensor.entity1.state is On.
So that should be easy with a conditional card. But... I want this for all three devices in one card.
So basicly... if sensor.entityX.state is On show sensor.entityX.timeleft value in card.
@timber locust https://github.com/custom-cards/button-card should do it or maybe take a look at state-switch as well
@ripe bison you can use a button card inside an entities card or just use a glance card, maybe
Uff... this looks complicaded
Do people have two automations for motion for on and off or do you use conditions to do both? IE if motion detect turn on, if no motion turn off?
Sounds like a #automations-archived question π
The answer will be yes - some people do one, some do the other (with templates)
Frontend automation question though? or it wanted to just be mentioned π ?
Automations... aren't a frontend thing π
Sure, there's a "pretty" editor, but there's a separate channel for a reason
trying to install iantrich's custom:list-card but I am not understand the install instructions: ```Step 1
Save list-card to <config directory>/www/list-card.js on your Home Assistant instanse.```. Am I supposed to be creating a folder called list card and then placing the list card code inside of it?
Use HACS if you can
the example really confuses me wget https://raw.githubusercontent.com/custom-cards/list-card/master/list-card.js mv list-card.js /config/www/
I don't see it in HACS. I looked for list-card and custom:list-card and found nothing.
you can add repos in the settings
but it should be default
just search "list"
I lied, it is not default
lol. yea I figured it was not default
@mild veldt I am not seeing the repo in the card page, could you please point to where it is?
the github page IS the repo
does it matter which category I select in the HACS settings when adding the repo?
wow that was fast
Hi All, does someone know a card which shows history and works with HA Cast? Tried the logbook-card and home-feed-card, but no luck yet..
hey iantrich, so although I have added the card in HACS and have rebooted my system, I am getting this errorCustom element doesn't exist: list-card.
I imported it using the information iantrich provide in the above lines. It looks good in HACS. this is how i am currently using it title: ' Quote of the day' entity: sensor.bible_gateway_feed feed_attribute: entries style: | ha-card { height: 128px; overflow: hidden; } type: 'custom:list-card'
Let me try again.
How did you define it in your lovelace resources?
so if i understand the question, I have it defined as a plugin.
So that is in HACS, I'm asking about lovelace
my bad , I don't know where to go find that information. So I don't think I have it defined in lovelace. With iantrich 's update to the card this morning their is no reference or guide to adding the card to lovelace.
okey..
Are you using YAML or UI (storage) mode for lovelace?
UI
Good π
In HACS, when you view the plugin, do you see a "Add to lovelace button"?
i did when I first added it, but I clicked on the button.
Good π
Now if you click on the "Open plugin" button, do you get an error, or a wall of text/code?
wall of text/code
Good good, what OS and which browser are you using?
hassio . firefox
hassio is not a OS, sooo windows probably?
Try holding down (ctrl) and (shift) then hit the "R" key and see if that helps
I'm running HA in a VM. What should I expect to see when I hit these keys?
How you run it is not important, how you access it is :)
You should see the page refresh
Hello, is it possible, on a tap_action of an image, open a bigger version of the image (like a popup) ?
Hey Frontenders! Why is it that every time I open the card options for my stuff on my desktop, my HA tab freezes and uses a TON of resource. Only way to fix is force close the tab and re-open the tab. It is fine on the mobile app
https://cloudup.com/cEYeIJAGGlW
Thanks Ludeeus, that fixed the card
@little ridge are you using layout-card?
How do I automatically collapse the side menu?
@tired quail no. But it's any card, including media cards
Has anyone got a voice agent (like Siri-esque) working for Home Assistant? I've been looking into Mycroft tbh
how can I in my glance to have toggles sliders for on off instead just icon with status On/Off?
here is my code now ```type: glance
entities:
- entity: media_player.denon_avr
- entity: media_player.denon_zone2
show_icon: true
title: Denon AVR Zones```
is it doable?
Not in glance, no, that's kind of the whole point of the glance card π
ok I figure it out
and how to change dynamically icon of a entity
based on status on/off ?
icon: >
{% if is_state('switch.xiaomi_gateway_alarm','on') %} mdi:shield-home-
{% else %} mdi:shield-home-outline
% endif %}```
Generally speaking, that's the purpose of device classes
probably like this
For sensors
Some other integrations support icon templates, but you'll mostly have to tackle that in the frontend, with CSS AFAIK
ahh, too much hassle
nevermind π
@split granite you were right, switching to UI Lovelace is just so much easier!
π
Wait until you start exploring the custom cards... that's where the real crazy begins π
I use https://github.com/kalkih/mini-graph-card instead of the stock sensor card, and https://github.com/kalkih/mini-media-player for media players
Hello, is it possible, on a tap_action of an image, open a bigger version of the image (like a popup) ?
by defualt, cameras do that
@uncut dew I deleted my IPP, but my cards are still causing my broswer tab to become unresponsive. Is there anything else that you did to keep the cards from freezing?
I removed it and restarted, seemed to do the trick for me. what do the logs say?
The logs say this error shows up 27 times: Config entry for roku not ready yet.
Also, Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8123): address in use
I might have rebooted the device as well. it happened again for me so restarted my VM, seemed to sort it a second time
Just read the YAML announcement. I've been using HA since before Lovelace, and since Lovelace started I've been using yaml mode. If I use custom cards, including decluttering card, is there anyway to switch yet to normal editing mode in the browser for on the fly previews?
YAML for Lovelace is not going away
@harsh mauve this can get you previews while in YAML mode https://github.com/thomasloven/lovelace-gui-sandbox
Hi everyone! Is there a way to force refresh of cached picture-glance image every 15 minutes? I know I can add a version at the end, but not sure how I can continue to do that every 10 minutes programatically. I have a generated picture with Text that I am displaying in picture-glance.
I also notice I can give a camera_image: attribute but that cannot take a picture and seems to require a camera entity
Is there a way to drag and drop to arrange cards? I should need a custom card to prevent 3 columns, 1 with 15 items and 2 with 1 each??
AKA.. how do I stop whatever sorting is occuring??
is there a way to enable scrolling for the home feed card so that a list can be tracked without expanding the card size?
got it. thanks
Since I've been meesing around with the state-switch transitions a few days, I had a more useful idea that came to mind. Would it be possible/easier to add the ability to assign a different transition for each state that is met?
e.g.
...
states:
buttonshow:
transition: slide-left
...
...
buttonhide:
transition: slide-right
...
Just thought I'd ask. π€·π»ββοΈ @polar kelp Thanks!
Hello, is it possible, on a tap_action of an image, open a bigger version of the image (like a popup) ? --> I have a thumbnail and I want to show the real size images
How about a popup? https://github.com/thomasloven/hass-browser_mod
If you have it as a camera then that'll happen automatically - https://www.home-assistant.io/integrations/local_file/
See the link π
it's a set on shapshots with face/person identification
coming from a sensor template
Have a look at the docs
I will thanks
Is there a way to retrive (and backup) my lovelace UI config and ressources config without switching to mode yaml ?
mode: yaml```
Ah, just a matter of .gitignore then hehe. thanks !
There's a lot in .storage/ you don't want to make public π
yeah, i wont go full .storage i'll filter no worries
thanks for amazing support tho
i belive putting !.storage/lovelace !.storage/lovelace_resources in the documentation default .gitignore could be interesing. i dont know if there is security concerns.
Security, unlikely. Your lovelace is unlikely to hold any secrets
in the same time i also think ignoring *.db ... as no one want to upload 200mb of binary data to github
Can the value of a sensor be changed only in Badges?
Basically I want to show the value of a sensor in MB/s in a badge...
Can value_template be used in the frontend?
Tinkerer, I don't think local file is fitting my needs
I need to have a parametric file (template)
of my last snapshot from my camera
where a person/face has been detected
and when I click, I want to see it full size
but local file is a sort of fix file camera
stefano - I'm not sure there's a way to do exactly what you're asking for (maybe with a combination of https://github.com/iantrich/config-template-card and popup from https://github.com/thomasloven/hass-browser_mod, but that looks unnecessarily complicated).
Can't you copy the file to a known name as well and use that for the camera?
do we have an easy way to add HA restart, group reload etc to the front end yet? a custom card perhaps?
If you have no control over the name of the file being created you could use an automation based on https://www.home-assistant.io/integrations/folder_watcher/ to trigger a copy
hmjgriffon - yes
anything with tap_action etc. can be configured to run a service such as homeassistant.restart or any of the reload services (just go to developer tools -> services and type reload into the service box to see a list of options.
yeah, you have to make big buttons for that though, was trying to avoid but I guess its good enough
why big buttons?
you can't do it with an entity card, I don't think
you can do it with most cards. For example glance - use any old entity, change the icon / name to something appropriate and set tap_action to do what you want
or use button and put several in a horizontal-stack (you can also set the height now)
or use a call-service special entities row in an entities card
there are many ways to skin that cat π
true
this also looks like a nice way to do it. https://github.com/custom-cards/button-entity-row
Quick one I hope - have a Deebot and a Roomba that I've got now set up - creating an entities card for them, how can I add the attribute battery-level to these cards? Not sure if it's possible or not from the documentation?
I don't see anything in the docs to say it can be shown
@split granite yes, I was looking at plugins like Canary in HACS that seem to suggest they can do this, but I could be misunderstanding completely??
Custom cards can do many things π€·
Stock cards can do whatever the docs say they can, until you modify them with one of the many custom things
Heh, in your experience is it better to stay away from custom cards then?
I use a few, I have nothing against them π
On the other hand, I make relatively little use of the UI, so I'm not a great person to ask about custom cards
The Canary card looks handy though, allowing you to achieve what you want
Would anyone know how to capture the state of an entity attribute?
I have a camera that has a attribute of 'Is Online' and i want to capture that into a sensor that i can display
so if it changes to false; i will know
@spiral pasture I will check that
Template sensor #integrations-archived @icy patrol
thanks - i looked into template sensor but it does not update as the entity state always remains 'idle' only the attribute changes
Then you got the template wrong π€·
Share it over in #templates-archived and somebody can help
hi every one. i want to build a smart hab with lcd (raspberry pi and hdmi lcd or spi lcd) so i need set panel on hdmi instead of hassio cmd or use raspberry gpio and spi by python. is there any solution ? i search many in internet but i didn find any thing
thanks @split granite ahhh templates dont like quotes around true and false!
@gilded thicket Hey, I know you were looking at flex layouts. I have a snip that might help.
https://pastebin.com/8cHmGg5Q
This is a fully flexible layout
I hope it makes sense. I have done a bit of tweaking. Let me know if it doesnt work for you.
π
This is a true story based on my last 15 minutes of not seeing what's in front of me (in my code). The instant I typed my question, I realized what was wrong. Just thought I'd let you all know.
I almost always only recognize my issue once I ask the question >_>
That being said, does anyone have a working Lovelace floorplan? I have the original floorplan working fine, but I am trying to add the new one, followed the docs, and its not recognizing the resource.
Followed it to the letter. I think.
Yup, since 0.107 I think it is there are some things that don't work, but the card itself works fine
Whenever I try to add the card, it says the setConfig is wrong, which I am reading as its no seeing he resources
Ive placed floorplan folder in my www folder. And I have added the resources as the docs state...
I see. That is a big help π
Enabled Advanced mode in your user profile, add them to the Resources section of
-> Lovelace dashboards
I am there. I added it in there...
Maybe if I better understood what Cannot read property 'setConfig' of undefined means I could troubleshoot this better.
As for adding the resources, this is what I have placed under my configuration > lovelace > resources > /local/floorplan/floorplan-card.js?v=1.1.14
- type: module
url: /local/floorplan/floorplan-card.js?v=1.1.14
It needs to be a module
Well yes, but I added it the new way, so I just used the dropdown.
That is correct right?
Then as long as you have the type set, you should be good
Hmm. I deleted the resource. And when I try to add the example snip from github, it still says that its undefined. That makes me think its not seeing anything at all.
So I opened the js file and it says the version is 1.1.8
If I am calling 1.1.14 then could that be the problem?
Nah
Is there an updated docs somewhere? Im trying everything on that forum post... trying removing things, it doesnt seem to make a difference.
I have other HACS based modules, so I have a general understanding of how to add stuff in lol
config is the root right? I don't need to include that I assume?
Is there a way to add a Media Control card for a group of devices?
or do they all have to be on one card?
sorry on their own card
im trying to set up google cast on my HA, but im confused where to put - type: cast entity in my lovelace
That?
yeah, although here documentation isnt very informative, i found the best example of usage here https://www.home-assistant.io/blog/2019/08/06/home-assistant-cast/ but still it doesnt work
So, you've already set up the integration, and you're just trying to cast the view?
https://github.com/DubhAd/Home-AssistantConfig/blob/master/lovelace/view-cast.yaml#L8 is one of my configs for casting the view
ive got the script all right i believe, but when i run it, a page with Nabu Casa & Home Assistant logos shows up on Google Nest, with a message that url was not found
so im assuming that i messed up the entity as the url in the script matches the url of lovelace tab
but where can i find the path if its not url
why you have four different casts defined in one view?
They each cast a different view
- type: cast
name: Overview
view: home
``` casts the view with the path `home`
ah i get it
so the cast entity is actually used to cast a view not to define a view to be cast?
Yes
ah, im trying to do that from script though
It still casts an existing view
i mean make a script which will cast a view and then run the script from Google voice assistant
Right, but it still casts an existing view
ive got a view called Weather with url weather, maybe that's the problem
does this configurator exist for the alternative install? https://github.com/home-assistant/hassio-addons/blob/master/configurator/
It used to
Yup
Add-ons are, generally speaking, just software in containers
So, if there's an add-on, you can install manually
Oh, it's an addon
AH.. THAT's what I was looking for.. couldn't figure out how to use the hassio addons tuff... thanks!
Wait.. a better question would be.. is this the best way to edit files in HA?
inlcuing with the phone hahaha.. that's the main issue
I also use SSH so I can run a config check after every change π
without jumping around in the UI you mean?
Yup, and also because ...
Always run the configuration check command when you make changes. Don't trust the UI check - it misses some problems.
I thought I read this configurator had a config check button... we'll see. I just need to easily edit via the phone
Ok, I'll start doing that correctly too
I think the only thing the GUI really messes up is not spotting duplicate switch: (etc)
Oh yeah.. it only checks strict formatting... ?
I'm not sure to be honest, I just know that problem has caught a few folks out
Hello, I have been researching how to implement our own HTML and CSS code, I have seen and tried many user solutions to do it and the furthest I have come has been to put a theme and change some colors. I have also read that even if it is OpenSource HomeAssistant limits many things, for example when editing the CSS in the menu on the left.
If there is any way I can edit the full HomeAssistant style please let me know
fork the source?
yes
well, that was easy π
Tinkerer is your HA in docker?
I am trying to figure out how to daemonize the configurator, but I have no systemd dir
Nah
do I just crate it and the OS reads the service file like normal?
If you're in Docker, use docker-compose
oh, I thought you were a docker guy
the file wouldn't start for me
Just ... not with HA π
(not that Docker, or not, is very frontend related π )
no, this is about the configurator still hahah
I have an issue with my background JPG in my themes, which doesn't work anymore. I'd been using the "lovelace-background" and just tried to rename it to only "background:" - but still without success. Have the definition been renamed or how do I get my backgrounds back?
Been viewing the discussion of Google Cast as I cant get it to work with my Google Hub. The first time I tried it worked and since then zip just the screen showing HA/Love/Nabu Casa. I get a not connected and Error: unable to connect to the Home Assistant websocket API. Have http defined, have followed https://www.home-assistant.io/integrations/cast/ and Tinkerer you posted https://github.com/DubhAd/Home-AssistantConfig/blob/master/lovelace/view-cast.yaml#L8 added the cast section as a view-cast.yaml but how do I call that up? Understand the conf.yaml include but I am lost to how where you are defining the views?
Guys
I have a sensor with a timestamp
I would like to show this sensor on the gui in a more readable way
I don't want to create another sensor
Just not to create another write on my ssd (this sensor if wrote often)
Is there a way to do it?
is there a good dark theme with transparent cards?
Can I create a sensor that "format the data" but not log ?
@uncut dew figured out that my cards were causing my system to freeze because I was using the Brave browser. Works fine in Firefox and Vivaldi. 3 hrs installing and uninstalling well spent lol
@tranquil pollen just use Chrome
@random root I try and avoid Google products if possible.
Just curious. Why?
Once a company knows everywhere you go, everything you eat, everything you search, everything you gmail, etc. you're pretty muched p0wned. Just trying to spread decentralization π
google. is. evil.
is there STILL no way to filter the history view???
Hello, I have been reading manuals and none has helped me, I would like to know what files I have to access to change the CSS to FULL and what code I have to paste in. I know that to edit them they are .yaml files, but I don't know where to start the truth ... if anyone can help me I really appreciate it.
change the CSS to FULL?
I mean being able to change everything, like setting the display of a menu window to none, or changing their icons
Hi
I'm trying to use HACS to add some custom cards that I can only make work using lovelace in yaml mode, but if I try to use it in interactive mode from config lovelace resources, I see that the .js modules load from the chrome but I get the message "No card type configured". Any idea what I might be doing wrong
No card type configured is not related to correct loading of resources, it means youβve not got the yaml right. You need a βtype: custom:cardnameβ in the card config. Obviously replacing card name with the name of the card.
@storm rampart card-mod is very flexible with styles
@spiral pasture why the same -type: custom:mini-graph-card works on yaml mode and not in interactive mode ?
@shrewd condor it shouldnβt be any different - when you say interactive mode, where are you typing it?
@shrewd condor When you add it in the UI with a a manual card, there should not be - before type
anyone know why my packaged customisations might have stopped working?
never mind my bad fixed it #idiot
getting an error in log
Logger: frontend.js.latest.202004072
Source: components/system_log/__init__.py:209
First occurred: 11:33:54 AM (1 occurrences)
Last logged: 11:33:54 AM
http://hassio.local:8123/lovelace/0:0:0 Uncaught
my last error i need to fix any help appreciated
How do I change icon of a media_player card?
This doesn't seem to work...
- cards:
- entity: media_player.plex_plex_for_android_tv_sony_bravia
name: Plex - Sony Bravia
icon: 'mdi:plex'
type: media-control
layout: vertical
type: 'custom:layout-card'
Does the card say it supports that?
oh because its a custom one?
Well, no, more that each card document what the options are
For that card, does it say you can change the icon?
erm where do I find this info?
In the documentation for the card π
All core integrations and cards are documented on the HA site, see the channel topic
Custom components and cards should also have docs provided by the devs
That'd be how I'd read it too
If I want vertical layout for every card in a view or every view, do I have to manually add it to each item in the view?
Correct. However, you could change the icon for the entity (as long as you don't mind it changing wherever it's displayed). Click on it to get the more-info popup and the click the gear top-right
Is it possible to show a media player card in the main view only when its playing?
Yup
for the layout-card question you choose vertical for the layout-card which then displays your other cards in a vertical stack
type: conditional
conditions:
- entity: media_player.{{ player }}
state_not: "off"
- entity: media_player.{{ player }}
state_not: "unavailable"
card:
type: media-control
entity: media_player.{{ player }}
change {{ player }} to your media player name
Yeah
Worth taking the time to read the descriptions of all the stock cards π
yup there's a lot to uncover. ideas keep popping in my head
thank you
Correct. However, you could change the icon for the entity (as long as you don't mind it changing wherever it's displayed). Click on it to get the more-info popup and the click the gear top-right
@spiral pasture this did it! thanks
Integrated a bunch of hue lights into HA, can control the on/off state and the brightness through the lights card, is there a way to also control the color in the same card?
is there a way to go back to the fully automated UI ?
how do I apply layout-card vertical to a stack?
How do I delete a dashboard I added accidentally?
Configuration -> Lovelace Dashboards @prime osprey
Is there any way to conditionally change the icon for an entity in an entities card?
Aka show an open window icon if it's open instead of a closed window icon
@vapid field go to the raw configuration editor, delete everything and save
you can also have auto generated UI in one dashboard and manual in others
you can even mix yaml and gui editted dashboards
@finite pond not sure what you mean, the cards in layout-card will for a vertical stack if you use layout:vertical
If I add ```
layout: vertical
type: 'custom:layout-card'
I'm still confused how layout-card works.
@finite pond posted a code wall, it is moved here --> https://paste.ubuntu.com/p/JPD3tJvrR4/
Basically I want every card to be vertical so they scale regardless of the screen size. Is there a better way?
layout-card is a 'container' for other cards - as are horizontal-stack and vertical-stack. If you want all your cards to be in a single vertical column then vertical-stack is the easiest
- type: vertical-stack
cards:
- type: conditional-card
...
then list all your cards under cards:
if you want something more complex that layout-card has various options, if you set layout: vertical it'll work similar to a vertical-stack but allows you to add -break between cards to force them to the next column.
layout-card is generally best used in panel mode
Hello, I have been investigating how to change the menu icon that minimizes it for a .jpg image without success. If someone knows something I will appreciate it very much. π
And if anyone knows how to also change the name above βHome Assistantβ
Hi is there any way to use markdown or any of the LaTeX inspired systems to format strings? I could not find information about it.
E.g. instead if having something like m^3 as a unit I would like to get the real mathematicla correct $m^3$
Which works not in discord either π
other example would be fractions like m/s which would be $\dfrac{m}{s}$ as LaTeX notation and resulting in a nicely set of a real fraction unit
@wheat current thanks! That was it!
The f$%Β·%& middle script that was left over
Hi folks! I have lost my internet connection. My ISP wonΒ΄t be able to fix it before the end of the week. I am also unable to load the HA frontend. I guess there is a connection there?
Is there a way to get a proper frontend without an internet connection?
I guess you put your HA online?
@fallow oak would help if you tell us, where you installed your HA
That does not matter, if you do not have internet you need to use IP to access, since the ssl validation will fail
I am within the same network using the IP, all good. I can authenticate but the elements within the UI won't load...
AFAIK nothing default uses internet (other than the new brand images)
Some custom cards might, maybe?
Hmmm... nothing loads, only a bit of color background for the left menu bar... Then it might be something else... Thanks everyone! π
Can anyone please help me work out how to avoid this warning message I am seeing?
The warning is "YAML file /config/lovelace/views/covid.yaml contains duplicate key "type". Check lines 122 and 127."
Above are links to the code and what it looks like
I tried removing the "type:entities" portion (line 6 in pastebin) but that breaks things and it no longer looks correct.
@split granite so frontend automation is action I have set as ''call service'' and service of tts.google_translate_say , what do I put in the service data? ... how do I know how to code for it to to x speaker and what to say
Service data is the same as the normal TTS call's data section
You need an entity, and the message
thanks π
it changes the order, what am I doing wrong π - https://tinyurl.com/yajor97t
The order largely doesn't matter
As long as it works, it works. If it doesn't, check the log
ah okay, need to get in habit of checking logs - Invalid data for call_service at pos 1: extra keys not allowed @ data['data']
That box you put those things in - the title is service data - aka the data: section
You don't need to enter data:
Cool working, still new so not first instict to check logs π
If you're having problems with your updates to your configuration:
- Check the troubleshooting steps
- Check your log file - remembering you may need to set logger to
notice - Explain what the problem you're having is - sharing configuration, errors, and logs
next milestone is getting it to play mp3 files... doorbell noise
It particularly easy/med/hard?
Largely pretty trivial
okay :), think them aqara buttons look quite good as a doorbell
- service: media_player.play_media
data:
entity_id: media_player.cast_second_bedroom_speaker
media_content_id: http://192.168.0.42:8123/local/sounds/sub_alert.mp3
media_content_type: music
Brill, will copy and paste, job for tommorow when I am supposed to be working!
hi all, i have asked a few times to get one thing sorted, that is the krisinfo lovelace card, i get the sensor and all working but i cannot figure out how to put it in a card, is there anyone using it that can share some insight in this ? i have installed it trhough hacs both the integration (krisinformation) and the lovelace card (Krisinfo card)
I just get the "Custom element doesn't exist: krisinfo-card."
@split granite inside the www folder do you have mp3 in the root or do you have them in a folder called ''sounds''?
www/ maps to local/ in the URL, so ... /config/www/sounds/ is the folder
sorry for being blonde but that means you do have it in a folder called sounds ?
Yes
it essential or na?
As long as it's somewhere under www/ it doesn't matter where
However, I'd suggest it to avoid things getting cluttered
okay yes sure will do was just asking in case techinical reasoning π
@split granite thanks got it working... had issue but turns out my ip for HA is not what I thought, I normal use homeassistant:local π ..all good
Worth setting a static lease if you haven't already π
Yes will check that, my server does but not sure about vm, π
Hello, is there any way to remove the hommeassistant sidebar for a user without permissions? And when the administrator enters, the bar is there?
@storm rampart I use https://github.com/maykar/custom-header and https://github.com/thomasloven/lovelace-state-switch . Just depends on how custom you need it. Both are very flexible
Hi everyone. I am having an issues viewing the devices on Home-assistant. everything else works as expected but this page just returns an error. Error while loading page devices.
@shy tapir Any clues in Developer/Logs? Maybe restart (after first trying a browser cache clearing). Have you run a config check? What config changes have you recently made (particularly related to devices)? Need more clues and investigatory results to help.
only change i did today was to add adgaurd add-on and that should not do anything.
but last hardware change was to add wyzesense2mqtt
just rebooted but still same
Then look into duckdns looking for a ')'. That can't be good
actually '(' it seems
having a bit of trouble with themes I can't see any of the themes i installed
Solved: Had frontend: in my configuration.yaml twice
I'm a little stuck with changing my home zone. The docs suggest that I can create another zone with the name "Home" and expect that it overrides the default one but I just end up with two. I found some tickets in github that talk about enabling the ability to edit the Home zone in the ui, but that hasn't been done yet.
I have the following in my configuration.yml, checked the config and restarted. Now I have two Home zones...
zone:
- name: Home
latitude: <snip>
longitude: <snip>
radius: 60
icon: mdi:home
Are the names in the main homeassistant section and the home zone the same, including case?
Mine are both lowercase home and itβs working fine
I don't have anything in the homeassistant section, I have the default_config: and the rest of the params were configured in the UI.
"location_name": "Home",```
Interestingly, I changed name: Home to name: "Home" and now it works.
The states are home and βnot_homeβ for your home zone, so hopefully what you choose accurately reflects that
Hello Community, I would like to request your help
it's not an fresh install, and I've been busting my brains over it for the past few nights... I've decide to move my supervised instance to my docker infra (wo the supervisor of course). Docker's Infra are behind traefik and redirect to 8123, with an fresh install, wo the http section, the frontend works fine. But as soon as active it, I've received an bad gateway error. As recommanded by the documentation, I've enable x fowarding and authorized the traefik proxy and docker ip... but still same.
Do I've missed something else ? thanks !
how often does a sensor card update?
Hi all,
Several people, including guests, use home assistant. I would like to offer the possibility for the user to subscribe to notification / permanent.notification on demand / opt-in choice.
Is there any add-on, on-going related project you are aware of ?
about the latest button card update that introduced triggers_update..if I'm using decluttering card to reduce code repetition, so entity is a variable not explicitely 'switch.myswitch' in the button card config..I need to manually add triggers_update because it won't be auto parsed, correct?
- service: media_player.play_media data: entity_id: media_player.cast_second_bedroom_speaker media_content_id: http://192.168.0.42:8123/local/sounds/sub_alert.mp3 media_content_type: music
@split granite I have set this up to do it to a music group so I don't need 3 seperate actions in frontend which works well, is there any code to set it to do it at certain volume or is this a diffrent action to do beforehand?
That's a different service call
okay volume set, where is the code refrenced?
like where should my go to place be
Can't I do it in actions first call service set volume, then call service play media... or does it not do it in order?
#automations-archived for automations π
And yes, you can have multiple actions in an automation
about the latest button card update that introduced triggers_update..if I'm using decluttering card to reduce code repetition, so entity is a variable not explicitely 'switch.myswitch' in the button card config..I need to manually add triggers_update because it won't be auto parsed, correct?
Is it possible to disable the dynamic icon on the weather entity? I just want it to be a little sun but it's a huge yellow circle
I tried changing the icon in customize.yaml but doesn't make a difference
In a weather card, or in general?
In general, it's in an entities card now
(also changing the icon within the card doesn't work)
I don't think so, but I've never actually tried
Home Assistant header's (top left) background is defined by primary-background-color?
yes
I'm using "customized lovelace" how can I bring back the default "weather" view I got on a vanilla installation of hass
@split granite This is strange, it did change the icon but just not in the card http://werra11.eu/i/27-04-2020_15:58:57.png
@rugged plinth If you want the default view you can make a new lovelace view in settings -> lovelace dashboards. this one will be auto updated with new entities
So that is at /config/lovelace/dashboards ?
my goal is to have the default weather part of the default UI included in my custom UI. I am trying to avoid two UIs (although that's a neat feature)
That's just a weather card, you can add that to your custom lovelace UI
yeah that sounds like what I'm looking for. Can someone paste a config example or maybe link me to some docs?
or is it just "the weather card via the lovelace UI" ?
Hi to all - I have been searching for quite a while now, I am not sure if what I want is possible. I really like having each person as a badge on the top of the view, alsong with the entity_picture. Looks great. Now I would like to switch the picture to a black&white version (or filter the image via CSS) if the person is not at home. Possible? Ideas? All welcome.
or is it just "the weather card via the lovelace UI" ?
@rugged plinth It is, you can just add it to your UI
So, I've discovered that setting a View to not be visible to a user doesn't prevent them from actually seeing it... just removes it from the nav bar. This means that all users see the same default view even if its not supposed to be visible to them.
How do I get homeassistant to reload other included yaml configurations on a simple browser refresh?
for example if I make any changes in my ui-lovelace.yaml, I just refresh the browser and it shows up
But if I have a part of the ui-lovelace.yaml (for example a template, or just a page) in a different yaml file with !include, it'll only refresh if I restart the whole HA
Nevermind hitting 'refresh' under the ellipsis menu updates everything, it's just that the browser refresh is not enough
Is it possible to conditionally change the icons on an entities card or a button card?
Like the a lock or garage door will do it by default, but I want to be able to customize that a bit
Hi. i need some assistant with picture elements card. when using a fold entity row card and when it unfolds it centers the card. is there a way to make it dropdown instead?. maybe some CSS style?
@sacred blade it might be possible with card-mod - there's a section in the readme on styling badges and it supports templates for doing things conditionally
Here's an odd one for me: My history tab in firefox (regular and private, admin user) shows times in UTC, but the other browsers and the iOS app show them in local time. Any thoughts?
Logged in to all three as admin. Cleared cookies.
it uses the settings from the browser, set the locale to your zone
hi guys, i hope is everything fine with you
can someone give me a litle help with a picture elements?
Don't ask to ask, just ask π
i want to rise up a card(picture elements) how i do that?
rise up? Not sure what you mean
Ok folks I need some help I'm banging my head against the wall I can't get resources/plugins to work my .js files live in
/mnt/user/appdata/home-assistant/www/plugin/lovelace-card-modder
What do I put in my resources.yaml as the path
type: module```
I had it working before 0.106.1
And question B does the pathway go in 1 or 2? or it doesn't matter
1
2
Q: How is assigning entities to Rooms and setting up Rooms in HASS different to using groups?
My groups.yaml is currently empty and my main automatically configured Dashbaord is getting rahter noisey/messy.
I'm getting back into Home Assistant after not using it for a couple of years. I'm adding Persons through the UI which is neat, but I don't see the changes in any of the yaml files. Having trouble googling info on this, are the changes stored in the db file?
Are any of you guys embedding HA into Nextcloud, or the other way around?
No
I don't really get how either platform would support embedding the other, unless you mean integrating?
No, I mean a link on the side I can click and browse for a bit hten hop back to HA without actually needing another window/tab, etc
What I think I am trying to accomplish (xy prob) is I want to edit my notes in the app there.. since HA can't seem to actually edit markdown in a card, and save it elsewhere
I dn't see the point myself
You're better of using something like https://prologic.github.io/golinks and set this as your default search engine and create shortcut "commands" throughout your network
e.g: i files or i ha
well this would allow me to keep my notes where they are, and everything else that's currently workign to that end
NextCloud/OwnCloud just don't integrate very well IHMO
I've used them both and they're kind of overblaoted rubbish IHMO
that's what I am trying to gage
CAN.. they play nice enough for me to edit notes....
I'm actually going to build my own lightweight "file sharing" drive like thing
I don't think so π
You could hack https://github.com/prologic/notes to be more like a HA Panel?
That could work
I have zero skills in web dev
me neither π but still
@gilded thicket Hey, I know you were looking at flex layouts. I have a snip that might help.
https://pastebin.com/8cHmGg5Q
This is a fully flexible layout
@fleet barn Thanks man! I appreciate this. I'll definitely play around with this.
@winter blade thanks from earlier I'll try that in the config
looking for some help with adding the slider-card to my config. I have created the folder /config/www/slider-card.js/slider-card and placed the slider-card.js file in there. this is the next set of instructions```Add slider-card as module through front-end. or if using yaml-mode add slider-card resource to configuration.yaml.
resources:
- url: /local/slider-card.js
type: module```, but I honestly have no clue what to do with it since I do not have a resource component in my config file. or in my config directory. Any help would great .
Is there something I am missing when it comes to the icon for a group lighting up when the group is on? None of my icons change when the group of devices is on or off
color does not change for group states
recommended option for lights is https://www.home-assistant.io/integrations/light.group/
type: 'custom:light-entity-card' does
I have 2 switch's that I have in one group. How would I display that on the front end, so when I click the entity button it switch's both, and shows the correct state color?
custom:light-entity-card
no need for anything custom
i use custom, but I swear mine worked before too...
Switches can be represented as lights using the integration https://www.home-assistant.io/integrations/light.switch/
Once you have them as lights, you can then use the light group integration to group them as a proper light
@vapid field in lovelace they have never changed to my knowledge
I use that card for lights, never really thought about it for a couple switch's. I have 2 huge external monitors I was working on automating and showing on the front end
But I guess if I use the light-entity-card I then won't be showing it as a Entity Button anymore
how can i see all entites of switch ? i used before with group
Something like https://github.com/thomasloven/lovelace-auto-entities
Am I doing this the correct way for a vertical layout of the card? https://pastebin.com/29aBucCx
I guess you're posting because something isn't working?
Yup, its the same as before
Yeah its kinda hard to explain w/out screenshots tbh
Please use imgur or other image sharing web sites, and share the link here.
I have two media player conditional cards before this card, apparently vertical layout card cannot be applied to them
Might help to share the whole view
Hmmm, no issues with putting a conditional card in a vertical stack with the layout card π€·
You've got two layout cards, both of which hold a single card π€
this is so daunting
You've got two layout cards, both of which hold a single card π€
Oh you mean:
cards:
- card
...
- card
instead of:
cards:
- cards
- card
...
- cards
- card
Is there some sort of HACS plugin for this?
If you want a run of cards in a vertical stack, you need to put them all in the same vertical stack π€·
No, no HACS Plugin to help you visualise your layout
Of course, if you just want a vertical run of cards, use the built in vertical-stack card π€·
If you want a run of cards in a vertical stack, you need to put them all in the same vertical stack π€·
Then I cant use the GUI to rearrange the cards can I?
I ... I no longer have any idea as to what you're trying to do...
If I add all the cards in a view to a vertical stack, they appear as one large vertical card in the GUI, correct?
The XY problem is asking about your attempted solution rather than your actual problem. This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.
The problem occurs when people get stuck on what they believe is the solution and are unable to step back and explain the issue in full.
Why don't you describe your goal, because you're getting exactly what I'd expect from the config you're using
All cards in a dashboard vertical, editable from GUI
Then... use a vertical stack card π€·
Put all your cards in that view inside that vertical stack card
Then you'll get an editable in the UI vertical dashboard
Right so how do I go about that?
Can a break be inserted in a vertical stack?
What do you mean?
Some extra space between cards in a vertical stack
This and layout-card is separate?
@sacred blade it might be possible with card-mod - there's a section in the readme on styling badges and it supports templates for doing things conditionally
@spiral pasture Great, big thanks for the pointer into the right direction! With card-mod i could do it, quite easily. Sample
- badges:
- entity: person.someone
style:
ha-state-label-badge:
$:
ha-label-badge:
$: |
.label-badge {
{% if is_state('person.someone', 'home') %}
filter: none;
{% else %}
filter: grayscale(100%);
{% endif %}
}```
@wheat current I figured it out. Firefox has an option called privacy.resistFingerprinting, which looks like it obfuscates your time zone. Nifty, but not in this case π
@muted sigil posted a code wall, it is moved here --> https://paste.ubuntu.com/p/sXqHzBqskc/
Hi, I'm using the custom button-card component for activating a scene with this code.
https://paste.ubuntu.com/p/7V36sBM6MP/
The code above works fine,
but I would like to add an indication when the button is pressed,
like changing the color for 1 second and returning it back to the original color.
Any ideas how i could make it work?
I have the Aarlo integration working with the default cards. I have installed the aarlo-glance custom card onto the system. I am using the UI mode for configuring Lovelace.
I am confused where I add the following lines:
resources:
- type: module
url: /community/lovelace-hass-aarlo/hass-aarlo.js
When I add it within the Raw editor I get the following message:
Resources should no longer be added to the Lovelace configuration but can be added in the Lovelace config panel.
I can't find the Lovelace config panel.
OMG I see the light now.
looking for some help with this card https://github.com/AnthonMS/ha-slider-card. I have created the folder as instructed/config/www/slider-card.js/slider-card.js and followed the instructions to Copy slider-card.js to <config directory>/www/slider-card.js. When I try to create the card i am getting this error messageNo card type configured.
@feral rivet you don't need to put it in its own directory like that, just in /config/www/ is fine. But anyway did you add it to your Lovelace resources?
yes /local/slider-card.js and the type selected is JavaScript module.
should I remove it from the directory?
Well there's your problem. It's not in local/ (www/), it's in local/slider-card.js/
So yeah either move it to local/ or update the directory listed in Lovelace resources
In other words, the path you list in Lovelace resources needs to match where it's at (knowing that www/ is local/)
lol I was trying to formulate a question to the info you just provided .
ok so I think I got it properly set /config/www/slider-card.js
unfortunately I am still getting this response from my card```No card type found
card:
- entity: light.zooz_dimmer_switch_92
type: 'custom:slider-card```
yeah... almost no custom card docs are written with adding it in the UI in mind
use this:
type: custom:slider-card
entity: light.zooz_dimmer_switch_92
it worked. thanks guys
So the way the card is represented in the instruction I shows the entity icon which reacts to the position of the slider, but having created the slider it definitely does not create the entity icon. Can I add icon: to the card file in other to show both the icon and the slider as displayed in the example https://github.com/AnthonMS/ha-slider-card or do I need to create two separate cards?
is there an alternative to <materialdesignicons.com>? website takes forever to load
There is a cheatsheet somewhere that's pre-rendered, but without the same search
has anyone got an example of using custom button-card that needs both an entity in service-data AND another value
tap_action:
action: call-service
service: fan.set_speed
service-data:
speed: 'off'
the docs say it uses the entity specified in the card, but i cant get it to work - am i missing something?
so i just tried out the icon: idea for the slider-card and got nada. Only the slider bar is created. anyone else using this card able to give some input on how to acheive both the slider bard and the icon button?
@dim jolt should be service_data not service-data
thanks @muted inlet sorry my rushed typo - i have service_data in my actual code
cant figure out where to specify entity
the docs state: Service data to include (e.g. entity_id: media_player.bedroom) when action defined as call-service. If your service_data requires an entity_id, you can use the keywork entity, this will actually call the service on the entity defined in the main configuration of this card. Useful for configuration templates
In the service data
action: call-service
service: fan.set_speed
service-data:
speed: 'off'
entity_id: fan.spreader
ok thanks i'll try that
hi there. I used to have floorplan working, but i must have made a wrong change lately. Now i'm getting Custom element doesn't exist: floorplan-card. and i can't figure out what i'm missing
thanks @split granite that worked - how did you know that? the docs say the opposite - appreciate your jedi knowledge
That's exactly what the bit you quoted said to do π
You didn't appear to have any entity_id included in the wider card config
thats not how i read it though, it says to use entity not entity_id
it says you can use entity it will call the service on the entity defined in the main config of the card (not under service_data) - no idea how you derived your answer - either way it works - so onto solve the next thing π thanks as always
also - weird - fan speed attribute is reported as last value even though state = off
i feel like that is a bug? shouldnt speed attribute be off or false ?
hi, is there any place where ui feedback can be given? in terms of suggestions of how to improve usability etc
You can find the community forum here
You can also raise issues on the frontend repo
Want to see what issues are open (or were open and are now closed)?
Check issues for the backend, issues for the UI, and issues for the documentation.
ok thx
Maybe this is a very dumb question but I can't get a vertical stack card containing entity cards to work within a conditional card. Can someone spot whats wrong here? https://hastebin.com/ajevesuket.bash the error HA gives didn't help me: duplicated mapping key at line 26, column 1: type: vertical-stack
Do you want that vertical stack inside the conditional card, or the conditional inside the vertical stack?
At the moment they're at the same level, hence the error
vertical stack inside condition
Then you have to do that π
The conditional card would hold the vertical stack card
The vertical stack card would hold the other cards
Thanks for the tips, I will try to fix it π
It's just a little complicated because that conditional card is also in a vertical stack
I have this strange issue with my garbage card. The images on it are shown as red boxes until I either expand/close the left menu, or when I open ' Configure UI'
Example image: https://i.imgur.com/GzaU6y0.jpg
The card uses both Card-Mod (mod-card actually due to horizontal stacks) and Card-templater.
My logs show no errors related to this (as far as I can tell...)
What could cause this?
Once loaded and shown the cards all work as intended. but how to make them properly show right away?
are you loading any cards, rows or elements as custom:hui-xxxxxx-xxxxx?
anyone here using the cast entities card? Can't get the view path to work other than 'default_view'. I've tried using numbers (clear URL address) and I've tried having the hyphen in the name and URL.
Example entities card configuration
type: entities
entities:
- type: cast
name: LightsThe path of the view (or number)
view: lights
hide_if_unavailable: true
Can anyone help with a transparent mark down card where I just have the title and nothing else? No content as that will be in the card underneath?
Is there a way to and a sensor value to the style block of an element in a picture elements card?
I've created a compass to reflect the wind direction from my weather station and have created a compass gauges as the background and the needle is an image element. I'm using a css rotate property to rotate the needle and want to get the rotation degree value from the actual sensor value. https://github.com/jcallaghan/home-assistant-config/issues/13#issuecomment-620846971 > https://twitter.com/jamescallaghan/status/1255238918586449921
The appdameon github repo is hard to use
Is there an easier to use tutorials?
is there a list of the code somewhere? Its so confusing
I just finished installing HA- supervisor on ubuntu
i have not yet set https access to the localhost. When i access love-lace, HA frontend freezes when i click any entity card for details and I cant refresh that page either. i have to open another tab to reach ha but still cant view entity card.
what could be wrong?
http://werra11.eu/i/29-04-2020_01:39:53.png Is this a bugg? 3 entities cards in a horizontal stack
@winter blade nope, trying to squeeze too many pixels in a place where they won't fit. I've been guilty of doing that myself. I am the reason for this addition to the docs here π
https://github.com/thomasloven/lovelace-layout-card#tweaking-layouts
Might be able to play around with margin and padding settings to get you by though
@potent grail Hey James, Quick question. Are you then placing this image on top of something else? or is the intentions for this to appear as a stand alone card/placeholder on a larger view? Not sure if I can help, but I may have a few ideas depending on how this is ultimately being presented in Lovelace
@upper tulip What are you trying to accomplish? how is it being displayed? where?
I'm trying to get a good weather card on my frontend, I see a "weather card" but it needs me to give it an entity
I remember a default hass installation having such a card
what data source does it use?
I have darksky configured as a sensor but the example at the bottom doesn't work https://www.home-assistant.io/lovelace/weather-forecast/
ohhh I'm doing this wrong!
you need a weather entity
@potent grail posted a code wall, it is moved here --> https://paste.ubuntu.com/p/pFd52PYcWs/
@potent grail Hey James, Quick question. Are you then placing this image on top of something else? or is the intentions for this to appear as a stand alone card/placeholder on a larger view? Not sure if I can help, but I may have a few ideas depending on how this is ultimately being presented in Lovelace
@atomic glacier yes just using an element above. example in above pastebin
~appdaemon @steady sluice
@steady sluice AppDaemon is a loosely coupled, multithreaded, sandboxed python execution environment for writing automation apps. It uses the Home Assistant API (or MQTT) to communicate with HA. You can get help at their Discord server.
Try their Discord server, they'll know
Hello guys I am using fully kiosk and itβs a bit slow when coming out of the screen saver, it takes a couple of seconds before the interface is responsive, but with the wall panel app itβs basically instant coming when coming from the screen saver.
If this is the wrong section sorry saw some post about fully in here when I searched
Anyone using fully is there anyway to speed that up , as I also like the ability of fully to be able to launch other apps on the tablet that I choose while in Kiosk mode
@upper tulip posted a code wall, it is moved here --> https://paste.ubuntu.com/p/CjQv9qbs5Z/
~codewall @upper tulip
@upper tulip Rule #6: Please do not post codewalls (longer than 15 lines) - use sites such as https://hasteb.in/, https://paste.ubuntu.com/, or others.
Please take the time now to review all of the rules and references in #rules.
Sorry! Basically I'm trying to combine a custom mini graph card(s) is horizontal stack with a markdown card but don't think the code is correct
You want the graph card in the markdown, or just in a horizontal stack with it?
Graph card in the markdown, I'd like to basically add a title to the horiztonal stack but format the title in such a way without using a separate card for the title.
Hello I have figured out how to add more colors to this custom plugin, I want the lights to turn on at 30% by default, how do I add this to the code for the toggle on? - https://pastebin.com/22kSJ6Gf
Multiply each number by 0.3? π€·ββοΈ
@upper tulip Iβm not sure Iβm understanding what youβre looking for, but if itβs to have a title at the top of a card, or stack of cards so it looks like one card, then you might want to look at stack-in-card to replace your horizontal stack. You can put a title in that easily, no need for additional markdown card.
Hi guys
What's the right path for images in lovelance?
I've saved an image in /config/images/myimage.png but I don't know how to insert the image in lovelance
I tried /config/images/myimage.png, /local/images/myimage.png and also few other combinations.
But nothing worked
hello Every Body
I have a problem with my home page "home" for the other is ok but for the card doesn't appear I need to make F5 to see the card
Sounds like a browser problem, try Incognito mode
Tinkerer yes with incognito mode is ok
@spiral pasture https://imgur.com/u3mJEin I'd like the speedtest title for instance to match Synology Stats? I've used a title in the custom mini graph cards and it looks how I'd like but when I add a title to the speedtest card, it doesnt match?
I Try to modify with user interface configuration and now with incognito mode same probleme
i accidentally clicked the wrong thing while i was in "config UI" . . i was editing a person entity badge, accidentally clicked a disable button. . . . now, no matter what i do, i cant get the person.xxx entity back for adding a badge to the UI . . . even tried deleting the person and add them back. . . how can i fix this?
@rose bramble you probably disabled the entity, so it is not showing up in the Entity dropdown for lovelace card editors. Try going to Configuration (in sidebar) -> Entities page. Then in the search box at the top type in "person" , find the person.xxx and click on it. Then you'll have an option to re-enable that entity.
Thnx @latent moss ... I tried that, and it's not there....the person, user, and users device is still there, but the person.xxx entity cant be found
@rose bramble You could maybe try going to Configuration -> Server Controls -> Reload Persons and see if that helps. But aside from that I'm not sure π€·ββοΈ
Tried that....no change...also removed the person and created new person but still doesn't show the entity
Is there a file somewhere that holds the information for the entity I disabled?
If so, I could just edit the file and remove the disabled attribute
-> Entities -> Filter icon in the top right
Awesome @split granite
Is there anyway/plugin that can show you graphs a lot bigger and nice to view?
grafana
Hi I try to install and use this: https://github.com/thomasloven/lovelace-layout-card
but I 'm getting Custom element doesn't exist: layout-card. type: 'custom:layout-card'
I did copy the file /usr/share/hassio/homeassistant/www/plugins/layout-card.js
and in the lovelace ressources I put
plugins/layout-card.js
I'm playing around with lovelance and curious if I can use mdi:xyz icons instead of paths to images...
"on": /local/living_room_on.jpg
"off": /local/living_room_off.jpg```
"on": mdi:qwertz
"off": mdi:xyz```
I haven't been able to figure out how to do that yet.
So I updated to 109 but now every integration on the integration page is gone. Known bug? Same in incognito mode. They seem to be working still but just arent shown in the integration page. Chrome says in console:
Uncaught (in promise) e {message: "Expected "date", "number", "plural", "select", "selectordinal" or "time" but "f" found.", expected: Array(6), found: "f", location: {β¦}, name: "SyntaxError", β¦}
@broken marsh please report that bug on frontend repo if you can https://github.com/home-assistant/frontend/issues/new/choose
Hi, I've got a little bit of a n00bish question. I've added my yamaha receiver to HA today. And it's working. However I want to show which source it's playing on one of my dashboards but I can't figure it out.
media_player.yamaha_receiver_guesthouse on source_list: AUDIO, AV1, AV2, AV3, AV4, AV5, AV6, AirPlay, ChromeCast, HDMI4, HDMI5, NET RADIO, NUC, PS4, SERVER, Spotify, TUNER, USB, V-AUX, iPod (USB)
volume_level: 0.625
is_volume_muted: false
source: PS4
friendly_name: Yamaha Receiver guesthouse
supported_features: 84364
I've tried something like media_player.yamaha_receiver_guesthouse.attributes.source but it's not having it
any tips are very welcome
You probably need a template sensor to turn that into an entity (https://www.home-assistant.io/integrations/template)
ah ok.. so there is no way to access those attributes directly?
Generally not, some custom cards can probably do that
ok, I'll have a go with that. Thanks very much
hi people , i'm exploring some templates for HA , and i wonder which one you're using on a tablet ?
web interface theme
Is there a way to have a switch when click show more switches?
For instance, I have a slider that controls 2 lights in my bedroom. It would be nice if when I clicked it to get a more detailed view, if I could control both lights
Hey folks! I'm new to home assistant, and I'm trying to add a new custom card via HACS (https://github.com/custom-cards/button-card), but I'm not having much luck. It's added to the resources, but I don't see it in the available cards, and can't add it as a custom card either. Could you help me out please?
oh nvm it seems to be working now. I wasn't able to reference it before for some reason π§
@frank ocean I use the fold-entity-row for things like that
@misty pasture in a nutshell you need to create a www folder if you don't already have one under config and then put http://www.github.com/custom-cards/button-card/releases/latest/download/button-card.js inside it and then in the UI you go configuration > Lovelace Dashboards > Resources and add /www/button-card.js as a module.
@misty pasture I would consider installing HACS and installing it via that way, makes installing stuff like that way easier
check the pins: https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins
@mild veldt That is exactly what im looking for.
hi, so I have home assistant running on HTTP and nginx, with a public signed cert, on HTTPS reverse proxying to home assistant over HTTP. I'm trying to get HTML5 push notifications to work and they arn't, theres a toggle in my profile called 'push notifications' but its disabled and says required SSL enabled for frontend
am I missing something in the proxy config?
ive tried adding the X-Forwarded-Proto header
@worldly cradle you'd be better off using the iOS or Android app. HTML5 notifications are...not great
I am using the android app, just thought it was required as i read somewhere to use html5 push with android?
does that not have to be enabled with the android app?
@muted inlet
oh I might have the keys wrong or something, if I call the notify service and look at the google cloud platform dashboard the API requests dosn't show anything
@muted inlet ohh, it does work, I tried to define my own notification service and it wasn't working, theres another tho for the app running on my phone
@muted inlet cheers
Uh... This doesn't look quite right... https://imgur.com/a/3vJLCo9
There's about 4 pages of "Found" Tado integrations...
So I just discovered that HA will read a line in a subfolder package, even if it's completely commented out and die on strange characters saying the problem is with config.yaml
I'm trying to add a new dashboard, but the "Create" button is greyed out. Any ideas?
ugh. NM. The URL autofilled my two word title separated by an underscore, but requires a dash. Why have it autofill with an illegal character???
illegal characters are the error du jour
Has any one got advice on getting Google Cast to work? Was waiting for the latest update https://github.com/home-assistant/core/pull/34701 but this hasnt got me any further. Under Dev calling service cast.show_lovelace_view and entity media_player.bedroom_display with a view_path: default_view I just get the HA/Heart/NC logo not connected then timeout to error: unable to connecto to the Home Assistant websocket API. Logs are set to homeassistant.components.cast: debug homeassistant.components.cast.media_player: debug homeassistant.components.zeroconf: debug pychromecast: debug pychromecast.discovery: debug pychromecast.socket_client: debug zeroconf: debug but does show much.
He gents, earlier it was suggested to use the fold plugin to display hide my groups of lights. The problem is, I currently use the sliders plugin. Any way to get the sliders inside of fold? Unfortunately my yaml skills are lacking.
Yes, AFAIK...I have multiple types of cards/structures inside of the fold rows. Plenty of examples in my repo https://github.com/Dino-Tech/Home-Assistant-Main @frank ocean
Thanks @atomic glacier I was able to figure it out
Good Mornig, just a short question.
Using Android /Chrome
On Mobile LG6
Can't find log out menu item :-)
Any gint?
Indentation issue lol
@opal stone sidebar all the way to the bottom
I think I broke my home-assist. I only get a 404 page when I try to load the front page for it....
I tried removing the contrainer, reformating the raspi, and setting up a new docker and hass instant. pointed at my old config location and still get 404. If I point it somewhere else I don't get it and I get the normal onboarding process.
Any idea what/where I can look to see what is cauing it. or like should I try renaming/replacing the yaml files to see maybe what is causing it?
I just edited the config yaml and I got it to crash into a safe mode. so something that was working just fine yesterday, broke all of a sudden
Can I upload Screenshot in Discord?
Sidebar bottom shows:
Notification
Admin (Proffilename)
Within Admin profile no logout button as well.
@floral coral Well, that was overkill as first steps... But anyway, how did you install home assistant? Core on docker it sounds like? Or did you have add-ons?
Sounds like core on docker if you are choosing a config location
yeah
sudo docker run --init -d --name="hass" -e "TZ=America/Chicago" -v /mnt/qnap/docker/appdata/home-assistant/:/config --net=host homeassistant/raspberrypi4-homeassistant:stable
ok i'll go there
I find it difficult at squinting and using mouse or finger to use history graphs, any addons that make them bigger/prettier?
You've tried the stock sensor card?
There's also https://github.com/kalkih/mini-graph-card
Horizontal stack card, custom layout card, and probably a few other options
I mean, heck, you could make it the only card in a panel view
Thanks will give it a go π
think panel mode will do trick
Question with that, I have a motion sensor that is classed as a device, how does one add a device in the history graph?
You don't, you add entities