#frontend-archived
1 messages · Page 159 of 1
What am I missing? On the zwave config page under Configuration, at the bottom, is the OZW Log section. I click on the Load button and nothing ever happens. I can see the log in my config folder. It doesn’t matter if I put non-zero numbers in and use Tail instead. Nothing. Any advice? Standard HassOS install, HA 0.109.6.
Anyone got tips on customising the icons for cover entities? I have cover.my_curtains defined as curtains... but it uses open/closed blinds as its icon and has up and down arrows for open and close... which are not ideal.. I'd like to replace the buttons with something like <> and >< (arrows not less/more-than), and preferably better icons for the main icon (though can't see anything suitable on mdi)
Just repeating this q in case anyone on right now knows how to do this ^^^
thanks !
This might help with overriding the entity's icon https://www.home-assistant.io/integrations/cover.template/
For the icons for the control buttons... they're built in to the card. You may have to find another card instead.
Thanks! I'll investigate icon_template ... currently searching mdi for some suitable open/closed icons - i suspect I'll end up sticking with the up/down blinds...
ref an alternative - I seem to remember seeing something where you can have several buttons on an entity row, like the thomasloven slider row but for a few buttons? so i can manually call the open/close/stop services?
I'm not sure exactly what you mean. There are custom cards like this that are really flexible: https://github.com/custom-cards/button-card
You can build pretty much anything in that card.
In the examples (way down the bottom of that page), there's a 'row of buttons'.
Thanks for this, sorry that was very unclear! I mean something like this: https://imgur.com/a/9MggKW4
First is how it looks currently, second is three buttons open stop and close on an entities card row... I was hoping there may be a way to do this ie where each button calls a service - so emulating the cover. entity...
In that case, the button-card should achieve what you want. I think you can bind any clickable element to any action/script you want.
I haven't used it myself so I can't help with configuring it. I just have it bookmarked because I've seen so many cool cards people have created with it - when I finally get round to tidying up my dashboard, I'll be using it 🙂
Great, thanks, I’ll give that a go this morning... will let you know...
@karmic tiger OK after a while trying out button-card, I found multiple-entity-row instead. it worked!
https://imgur.com/Mpolfqy
Not super happy with the icons but they seem the best I can do with mdi at this stage. +37 WAF points here so all good!
@karmic tiger thanks for your help, got me on track and I'm ready to move onto next project now....
Hello guys, i'm using imgur because can't upload images here.
https://imgur.com/a/wzV1lQg
Are you aware of some cards for lovelace that would take the best of picture-glance and banner-card and put them into a single card?
In the specific, what I like about banner-card is that bottom bar with clear text/status about sensor.
About picture-glance, i like all the rest.
Hi not sure if this is an esphome question or a HA one. Have a esphome template sensor which is basically a % open for a skylight. I want to display the history for it but it shows as a linegraph with bands and text of different colours. Is there something I need to set somewhere to tell HA or esphome that the value is numeric?
sensor:
- platform: template
name: "Window Pos"
id: window_pos
unit_of_measurement: "%"
accuracy_decimals: 1
filters:- multiply: 100
Is there a custom card just like custom:vertical-stack-in-card but for a horizontal stack?
Found Stack in card by RomRider
Worked perfectly 👍
Putting a horizontal stack in the vertical-stack-in card usually works. But romriders card is better.
I was trying to put in a custom:fold-entity-row and this card doesn't allow a vertical or horizontal stack
Isn't that only for the entities card?
Nope
You can put anything inside the fold entity row card
But some cards won't work, just like the vertical stack and horizontal stack don't. But for some reason custom cards do work...
Hello! I've some updates for the old tablet! First, the brand site is down since 2019, probably closed. No chance to update Android, even the exact model of the tablet is not really present on the net.
And, best of all, yesterday, I tell you that with Firefox it isn't working. I just see that it's a totally different browser installed by default and named Firefox, with the right icon, but not the real Firefox
I installed the official one but no change, still "Initializing", I think I'll give up...
That's probably the best choice for your sanity
Has anyone had issues with installing the restriction-card? For this one, and only this one, I keep getting Custom element doesn't exist: restriction-card. shown in the lovelace UI. Even though I've added the resource just like it said when installing (though HACS), and like many others that work.
If an IPcam viewer is available it can be a recycle idea but the favicon of the "new page" took 30+ sec to show up so I think the CPU will die in a couple seconds
Anybody here comfortable with JS templating?
I am having a bit of a roadblock and can't figure what's wrong with my code. It's probably something simple but since I have no JS training i might be overlooking it.
There is a higher chance of an answer if you actually post what you are asking ;)
@crystal moat posted a code wall, it is moved here --> https://paste.ubuntu.com/p/c49SzMjq43/
@crystal moat posted a code wall, it is moved here --> https://paste.ubuntu.com/p/295qgJ75dp/
Ok, i don't get it, there's like 6 lines of code, how is that a wall. And it also removes my explanation...
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.
Rule #6: Spam will not be tolerated, including but not limited to: self-promotion, flooding, codewalls (longer than 15 lines) and unapproved bots.
Please take the time now to review all of the rules and references in #rules.
Your post is over 15 lines
Milliseconds late 
Repeating it after the bot moves it... don't do that 😉
But my post contains the explanation..
Shouldn't the bot count betwen "" and ""
No
Between triple ticks
Because you posted a wall of text to the channel, which is nasty for those on mobile, with smaller screens, etc
Ooooh! Gotcha, never used Discord on a mobile, but it probably looks bad haha
It's called a codewall, it's just a wall of text...
I apologize, third language. I thought a code wall was only code
Well, it's ... not obvious 🤷
Best thing to do is post the code to the relevant code share site, and the summary here of the problem, with links
Gotcha, let me do that!
Basically, I have two JS templates.
https://pastebin.com/0DR7vBhz that doesn't work.
and
https://pastebin.com/pvGN3g8N that does work.
They both seem to have the same structure but I cannot tell why one works and the other crash my card.
hi guys, I have a question regarding Markdown and Entities - is this the right thread?
I want to display the entity names, not the entity ID's in a Markdown card
can this be done?
yes, kind of - I have an entity_filter - under which I defined several entities - and I want for those entities to have a friendly nae
name
`entities:
- entity: light.686633613c71bf34925d
name: Vlad Bedside Lamp - entity: light.686633613c71bf349873
name: Roxi Bedside Lamp - entity: light.desk_led
name: Desk Leds - entity: light.kitchen_led
name: Kitchen Leds - entity: light.livingroom_lamp
name: Livingroom Lamp - entity: light.office_lamp
name: Office Lamp`
and it shows: The lights that are On are: light.desk_led
instead of the name - Desk Leds
What is in your markdown card?
this is all the card code - it's a manual card
@plush mountain posted a code wall, it is moved here --> https://paste.ubuntu.com/p/mbx8r8rKJP/
Have you tried l.name instead of l.entity?
nope - I can give it a go - give me a sec
wowwwwww - you are the man - i could have tried several days
It did not occur to me to try l.name - it works - super duper
@elder pendant super - thank you very much - I really appreciate it. This is because I defined the names for each entity - or because it pulls it from HA directly?
Because you defined the names in the filter
If they already have friendly names you can skip that step by using state_attr(l.entity, 'friendly_name')
states["light.bedroom_lights"].attributes.rgb_color[0] > 252 this will never be true, 255 is max @crystal moat
aha - ok, got it, and in the same idea, can I use the switch on/off as for buttons - eg - if a light is reported On - to have the opt to turn it off
is anyone using the custom-search card?
@wheat current did you misread that? Or am I misreading it?
it's checking for greater than 252
ahh... I read 255 🤦
this isn't working for me.
type: 'custom:search-card'
max_results: 10
@crystal moat ignore the first
But are you sure you did not mix it?
https://pastebin.com/pvGN3g8N (which you claim works) is not valid.
https://pastebin.com/0DR7vBhz (which you claim does not work) is valid
Both needs some work
Wtf... The ïnvalid one"works
@plush mountain I'm not 100% sure what you're asking, but you could probably do that with some button cards and conditional cards
I can show you the entire code if you want
@elder pendant that's what I am hinting about - thank you so much for the idea and your time - really appreciate it.
@wheat current What is the difference between both files? Syntax wise they look the same to me except for what they output.
ah well, search card is broken I guess lol
@wheat current Which link? The two that you posted direct to my pastebins.
I'm blind🤦♂️
Don't I need the tick to nest queries? (I found all my information here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
I see that you've removed them on your paste
You need that, but it's not part of the code, just around it, so I did not include those
I need it, but it's not part of the code?
The complete thing would look like this then?
${
states["light.bedroom_lights"].state === "on"
? `${states["light.bedroom_lights"].attributes.rgb_color[0] > 252
? states["light.bedroom_lights"].attributes.brightness / 255
: states["light.bedroom_lights"].attributes.rgb_color[0] / 255
: "" }`
} ```
But, I want this snippet
? states["light.bedroom_lights"].attributes.brightness / 255
: states["light.bedroom_lights"].attributes.rgb_color[0] / 255```
To only un if the light is on. (Calling those variables with the light off cause the whole card to not render)
Shouldn't it be inside ${}
Share the whole thing
Please use https://paste.ubuntu.com/ or https://www.hastebin.com/ to share code or logs.
https://hastebin.com/saderojaba.rb Line 66 and under is for other lights. I am focusing on the entity at line 19-37.
Once opacity works there I'll duplicate to all the colored layers
Nop 😦
Yeah, you have more issues
I figure that'd be the case, I have zero training in JS. I tried reading as much as I could and it seemed to work okay, Until i got to that Opacity thing.
All the rest works if I remove the lines for Opacity
(at line 28
That is the same as I gave you before, but with 1 (default opacity) as fallback, instead of ""
Maybe. At least it works. You have no idea how grateful I am. I've been struggling with this for at least 10 hours.
I'm going bananas here - I installed a couple themes through HACS and I cannot for the life of me get them to show up. Same with Custom Header.
I have the following in my config.yaml
`frontend:
themes: !include_dir_merge_named themes
resources:
- url: /community_plugin/custom-header/custom-header.js
type: module `
Rebooted
absolutely nothing shows in the log
indicating an error
But the themes dropdown is grayed out
And while I can see Custom Header module is installed if I go to Config -> Lovelace -> Resources, there is nowhere to use it
you only need:
frontend:
themes: !include_dir_merge_named themes
Ah crap caught it
no resources bit
@elder pendant caught my mistake
I had a space hanging out before frontend and again before resources
The "resources" line is for custom header
It's not meant to be nested in frontend I just had my spaces screwed up
Are you using YAML mode for lovelace?
No
Then resources don't go in your configuration.yaml at all
Ah ok
Ok I got the themes to show up
I don't understand where I interact with Custom Header
I see it installed in Lovelace -> Resources
Did you read the documentation for the plugin?
Yes
"Much of the config can be done by using the UI editor which can be found by selecting "Custom Header" in the options menu of Lovelace"
I do not see that option anywhere
When you click the three dots in the top right of a lovelace view
you don't see a Custom Header option?
No.
"Configure UI" and "Help"
In editor mode, I get "Unused Entities" and "Raw configuration editor"
What version of Home Assistant are you running?
Latest
0.110.3 I believe — had to step away from the PC
try clearing your browser cache/refreshing the page. If the option is still not there then try adding the configuration manually in the raw editor
Will do - thanks
anyone using the search-card custom card ?
Hi -- I'm so embarrassed to ask this but I cant seem to figure it out. For whatever reason I can't get local images to show up. I'll put in the path /home/ha/images/image.png but it will not render in lovelace. Web images work fine though. "Hangs head in shame" -- been searching on this for like 2 hours
ok -- nevermind
i figured it out -- gotta be in www ... but then you list it as /local
Just updated to newest ha release. Now all custom lovelace components are not longer working with the mobile app (ios). What can i do to fix?
Its also not working within browser:(
Check the repos of those custom components. If there's no open issue for what you're seeing open one.
Tought, because all of them has issues, its a general problem. Having issues with mini media player and mini thermostat for example
But i will do
@odd light yes, need help? (Icons in the search field are not visible yet, due to 110 icon change, if that is your question)
Tought, because all of them has issues, its a general problem. Having issues with mini media player and mini thermostat for example
@worthy kiln Since you haven't described the issues, I'm relying entirely on guesswork here... by 'not working' do you mean stuff like missing icons and weird layouts? If so, update those components and clear your browser's cache for HA.
hi guys, i've 2 lamps in lovelace, both as light entities, the rgb one is fine, but the normal on/off one has 3 dots in top right corner, so icon is a bit smaller... how to have them the same, and remove the 3 dots? thanks
@halcyon laurel did you sort this? I had same issue, did a reinstall, via hacs and it works again on all my tablets and phone and computer with just a simple refresh, no cache clearing necessary.
@vapid field Still not working. Tried removing the module and reinstalling via hacs, tried clearing cache, even tried a different browser that I'd never accessed HA with. Still cannot get Custom Header to show up anywhere.
Hey guys. I used custom header to remove the header on one of my alternative dashboards. Is there any way to bring it back?
Is there a weather card out there that displays local sensor data for the current conditions and then the forecast using a weather integration?
@haughty dove can I see the yaml for your card? I can't even get it to work using the example.
@odd light sure, here you go:
max_results: 25
type: 'custom:search-card'
@verbal sand yes, put this at the end of the url: ?disable_ch the stock header will show up and you can make changes to custom header
I swear I did that
@haughty dove did you just add it to a manual card?
wait
I need card-tools
argh
Yes exactly
it still says I need card tools, going to restart HA, I installed it through HACS
Can't find card-tools. See https://github.com/thomasloven/lovelace-card-tools
type: 'custom:search-card'
max_results: 10
wth
Try deleting cache or see if it works in incognito mode.
good idea
👋
didn't work, maybe the card-tools hacs install doesn't work
@polar kelp is your card-tools HACS installer borked?
I just updated to HA 110.4 from 110.1 and I'm having trouble loading the lovelace resources. I read that I have to move them to the config.yaml file but that didn't solve the issue. Any suggestions?
@odd light feel free to pm me, sure we can sort this out without the help of the busy dev 
haha yeah
I think its the resources part, one sec
it was missing but the files are there, I put the URL as /hacsfiles/lovelace-card-tools/card-tools.js
@deft trout The placing of the resources depends on your lovelace mode. https://www.home-assistant.io/lovelace/yaml-mode/ only place them in the configuration.yaml if you have this enabled. Otherwise it should be configuration > lovelace dashboards > resources
@odd light that wasn't for you ;) try cache/incognito again
I also had problems with resources not getting auto-loaded, nothing to do with card-tools, probably more hacs-related
could be, have been lots of updates since I added stuff.
@haughty dove I do have yaml mode enabled. Could it be that the directory path needs to change? I have all the resources under "config/www/community/" and this is what the resources block looks like
lovelace:
mode: yaml
resources:
- url: www/community/button-card/button-card.js
type: module
Is it possible to add a blur only to the background image of a card and not the whole card?
@deft trout try changing them to: /hacsfiles/button....
@haughty dove That did it. Thank you!
@odd light mini graph card, mini media player, restriction card, lovelace swipe navigation, custom sidebar and atomic calendar revive are my favs
@deft trout perfect! Glad it works
@limpid apex what card are you using? And how do you get it to blur at the moment?
I'm using card mod and I added a background image to the entities card
But the blur applies to everything, including the content of the card
I'd like to add the blur only to the background image
Maybe not exactly what you're looking for, but can't you just blur the image in gimp or whatever and put the blurred one as background?
Otherwise you need to share your code
thomas has a bunch of example here https://github.com/thomasloven/lovelace-card-mod/blob/master/src/example.yaml
but none of them include a blur effect sadly
Does the background image you're adding appear in its own DOM element when it's rendered?
Idk what that means.... But it does what is says, it substitutes the black background for an image while keeping the content of the card on top
Hi Guys, I am trying to figure out how to add a Lovelace floorplan to HA. (https://github.com/pkozul/lovelace-floorplan). Is there a new way of doing this now as copying the files into the www folder isnt working for me?
Following that should work
You should have
/config/www/floorplan/floorplan-card.js
/config/www/floorplan/lib/ (three files)
Then you add a resource of /local/floorplan/floorplan-card.js?v=1.1.14 - type module
and I can do that using the UI?
ok, got that.
Configure UI > add brings up the "Which card would you like to add to your "Home" view?" but nothing listed there for Floorplan.
You have to pick the very last option for a custom card 😉
manual?
Yup
Would the type just be floorplan?
Hi. (YAML mode) In a previous version, resources for custom cards were in my ui-loveelace.yaml card and I could update cards without restarting. Now they're under lovelace in the main config and every change (e.g. new card) requires a restart. Is that the intention... or is there another way around this to avoid requiring restarting?
There is a service for it
hmm, still getting Custom element doesn't exist: floorplan-card. type: 'custom:floorplan-card'
This is really the very first thing I am doing in Lovelace, am I missing any pre-reqs?
@wheat current - I see lovelace.reload_resources now thanks!
Hi I have a HACS card question am I in the right place?
Well since no one is telling me no so... I am just going to ask. I am reading the instructions on my first HACS card import and it says install from script ```
install /config
check output looks good
install go /config
I am running hass.io on an Unraid VM
I do have SSH installed as an add-on
am I running the script in the wrong place?
the instructions I am following
If you install it via HACS you don’t have to follow the ‘From Script’ instructions
Ok I was able to install it but now I can't get the card to work
I don't know if it is recognizing this command ```
binary_sensor:
- platform: aarlo
monitored_conditions:- motion````
The instructions specify that you have to add that before adding the entity code
so I did but then when I tried to configure my entity it threw an error
his example is more than 10 lines of code but I copied it exactly and changed the entity id and name
I think I may be putting it in the wrong place in my yaml because I am getting general errors
starting with Integration type not found
do you need to put card configurations in a different yaml maybe?
Did you actually add the aarlo integration? Or just the card?
I see the repository in the HACS frontend
You need to add the integration before the card will work
Oh you mean the yaml in the config yes I did that as well
Not just the config entry, the integration itself
yes I can see my arlo cameras right now I am just rying to get the lovace card mod to work
what do you mean?
And your binary_sensor code block above goes in configuration.yaml
Not in your Lovelace YAML file
let me check on tha
Then I’ll need more context to help
What files did you change, what did you add, what are the errors
Please use https://paste.ubuntu.com/ or https://www.hastebin.com/ to share code or logs.
I used his example and changed it to my entity id and name
then it started throwinging errors on "type"
Where did you put that?
right below the binary sensor block
That’s wrong
in the configuration.yaml
It needs to be added as a card in Lovelace
ok awesome thats what I needed to hear
I had a theory that might be the case
do I need to create a new file I don't see a lovelace.yaml
I manage my own YAML, but you can add a custom card through the UI via the menu at the top right
I’m just Googling, but this looks reasonable: https://community.home-assistant.io/t/how-do-i-add-custom-cards-with-the-lovelace-ui/97902
I am
ok so I did what you said and I created an empty dashboard for testing can I show you the card?
nothing is showing up though
it created lines 1-5 itself
Your indentation is wrong
dang it
sorry
where did I screw it up and how do you know?
so I don't do it again
To start, you’re missing a cards: block
Oh, sorry. On phone
oh no problem
You need need to indent your block
I really appreciate the help on a Saturday
If you have a working view, follow that format
ok before I distract you anymore let me compare my views and hopefully that will fix it
thanks again
Card blocks under cards: need to be indented and start with ‘-‘
To allow for a list of them
I looked at my funtioning dashboards and thats the way they looked to me like they were indented but it is throwing an indention error at the entity
You still haven’t fixed the indentation
Read my earlier message
You just did the first line
so like this ```
cards: Test
- entity
The whole thing, starting at type: xxx, needs to be indented under cards:
oh I am sorry
It’s all one card
one more time https://bin.cajun.pro/pococupoju.bash
does it work?
badges: []
cards:
- cards:
- entity: camera.aarlo_front_path
name: Front Path
show:
- sound
- snapshot
- battery_level
- captured_today
top_status: false
top_title: false
type: 'custom:aarlo-glance'
this is mine, but it has an extra cards: level that you don't need
I just can easily edit it and keep the indentation correct
so get rid of the second cards: and reduce the indentation of everything below it
you just have that there because you have multiple cameras right?
now its throwing an error on views since I took it out
don't take it out if you're trying to define a new view
I just gave you a snippet of code
I just don't have a readymade sample that does exzactly what you need.
so do I just give it a name for a view
you seem to have working views whose format you can follow
saying object expected
this is what it says on my working version
title: Home
views:
then it gives all the entities
alright, let me work somethign up
after badges
if you understand what the blocks are, then it will make logical sense.
you have to think through it
I am trying to understand the logic thank you so much for your help
Logically it would make sense to name the view but I don't understand why it works fine in my other dashes
show me your whole file
you didn't get rid of the extra cards: layer that I mentioned
I thought I could keep it since I am going to add more cameras once I get one working
sorry I can take it out
done
try this:
@dark dirge posted a code wall, it is moved here --> https://paste.ubuntu.com/p/nJB42rfsRG/
🙂
you rock man it finally is working!!!!
I will pay it forward
Are you a developer do you have a donation jar
no, just some guy
thanks for taking time out of your day to help me get my kids camera set up
part of the community
I will do the same I promise
np
I recommend taking a moment to look through it and figure out what's going on so that it'll be clearer next time
a lot of this is taken care of if you just configure Lovelace through the UI
Thank you so much
np
is there a way to make the light card flat instead of having the control be that semi circle? or maybe a new card similar
like a slider?
yeah that would be perfect
this looks like what you need
Light Entity Row
do you have HACS
if you don't you should get it it's awesome
I do, I'll check it out now. Thanks!
you might also check out https://github.com/thomasloven/lovelace-card-mod/blob/master/src/example.yaml
he has a bunch of cool cards
so suddenly I cant connect to my home assistant this morning after trying to connect my phone app
I get "unable to connect to home assistant"
when browsing to it
ha logs
shows nothing wrong
I can access it via the direct IP
but not my domain apparently
Just to be clear... are you saying you currently can't connect with your app using the external address?
Not sure which install you're using?
-
If you're using HassOS, flashed an image, or booted a VM with an image you're using #330990055533576204
-
If you installed Linux and then ran a script to install HA and have add-ons then you have #330944238910963714
-
If you're running
dockercommands or use a Docker manager and have no add-ons then you have #449717345808547842 -
Finally, if you use
pipto install or upgrade you have #551864459891703809
Sounds like you have a DNS/port forwarding issue though
Yes. I attempted to add it via the external address.
Ever since I tried that (and it failed) I cannot access my install through my external address, from any device
It simply gives me the "Unable to connect to Home Assistant." page
on all devices
Yet it works with the IP?
yep
DNS 😄
Then the problem is in your DNS hostname not resolving; in the port forward being wrong; or similar
HA is fine
can dns be set direcly in HA
no
it does
Which it?
both work and say open
And you've tried by disconnecting your phone from WiFi?
at this point, forget the phone. This is happening on my PC as well
No
My phone is off atm
Then... turn it on and try it
We need to find out where the problem is
That requires you test things 😉
I get a 403: forbidden
Do you use a proxy?
yes, ngix proxy manager. Which was working fine, and I didnt change anything on it in over a week
Then first step, check the proxy logs 😉
I double checked, my IP for HA hasnt changed on my local network either
checking
just shows it delivering a 403
no related errors
Check your HA logs now
403 for all the related content delivery, such as favicon, lovelace, auth/token, etc
Probably you didn't configure your proxy as a trusted proxy, and the proxy is now blocked
everything in HA logs just shows info
I've rebooted it a few times though in my initial testing
Did you configure the proxy as a trusted proxy?
Have you checked to see if you're blocked by the ip ban?
I did not, but my proxy is itself
found one that was banned, but its not my public IP, or one on my network.
alright I think I discovered the issue
I had been putting off the updates regarding the base_url changes
But I had plugins set to auto update, including my nginxproxymanager
updating, and fixing the url/internal IP settings, fixed it all.
its the only thing I can think of that fixed it and is the only thing I did when it started working.
And this is why auto updating things, including whatever a plugin is, is a bad thing 😉
indeed
I assumed they wouldnt push me past my current compatible version
I was wrong :/
thanks for trying to fix my mistakes @split granite appreciate it
Hi, I installed custom mini-media player via HACS. Card configuration is not working. No visual editor available. Restarting server, clearing browser cache. nothing helps. Could anybody have a look? https://paste.ubuntu.com/p/pZP5GMmhJ4/
Not every custom card has a visual editor
OK, but nothimg seen on a seved card. ??
Not sure what you mean
The newle craated card is presenten as a empty card with edit and arrows..
The code behind it has apparently no function.
sorry for my misspellings..
I reinstalled mediaplayer a coulple of times. Had another issues, aparently not correct path to .js but now this..
completet recently with : frontend:
javascript_version: latest . Same issue.
I got this: cannot read property 'setconfig' of undefined
Hi, from within the states page i can see my robovac and control it via a great card. How do i add this to Lovelace? This is what the card looks like in the states page when i click on it https://ibb.co/5FCrsTG
Clicking the wheel does not reveal any 'device' https://ibb.co/Bj4VmZz
Currently using a custom plug in and it works perfectly but just cant get it in my lovelace
Hi guys, was wondering if someone can help me. Since updating to 0.110 I've been getting this weird error on my frontend; "n.setConfig is not a function". Both myself and the Mrs are using the official android app (although I've tested on Chrome and Firefox on android, and Chrome on the desktop with the same results). It seems to be something about the interaction between mod-card and a layout card judging by which cards throw the error, but I can't work out why. More annoyingly, it only does it intermittently on my phone but seems persistent on the wife's. Can't for the life of me work out why its doing it.
This is an error you've seen in the browser's console, right? Don't worry about it if it's not actually affecting some functionality you're using.
no, its the big red square you get when a card isn't configured correctly
😮
Ah, in place of where the card should be? Have you updated all your custom cards then?
but lik I say, its intermittent - I load the page, get the errors. Then after a minute or two (on my phone, at least) it dissapears, and the cards render correctly
yeah, I use HACS, and have been checking dilligently to make sure all custom components are upto date
It's worth remembering that just because you have all the updates, doesn't mean all the card devs have fixed any bugs caused by 0.110. I'd suggest trying to narrow it down to specific cards, then raising a bug with the owner.
I had really weird behaviour with the mini-media-player at first but that dev fixed it within 24 hours of 0.110 releasing. Others may be slower or may not even know there's a bug until someone reports it.
I THINK its either mod-card (from card modder) or the layout-card, or possibly the interaction between them that's causing it
I'll have to make a new test view and make a bunch of combos of those cards to try and work out which it is - was just wondering if anyone else had seen similar behaviour
Hello, I'm trying to use a value template in a picture card but I can't get it to work. Is that supported to use value template in a picture card?
Hello, I'm trying to use a value template in a picture card but it's not working. Is it supported to use value template in picture card?
So I created already a template sensor out of my value template. I now have a sensor where the state is the http://.... value. How can I use this sensor in the picture card so the picture is taken from the http value?
@vital forge config-template-card
Heya! Anyone else use Safari and has a Lovelace dashboard with lots of entities?
Filed this yesterday. Very significant performance issues, pretty confident it’s not just my configuration.
(Applies on anything WebKit-powered, really, so both Safari and everything using the frontend on iOS, including the official app)
Not expecting someone to just ‘solve it’ (I know this is volunteer work for most), I’m happy to help track this down (I do web stuff part-time, though in React). So would just really appreciate a pointer on where to start, even, because my investigation attempts so far have been dead-ends and unfruitful.
Anyone else got any guides on how to setup a floor plan?
I have a 2D drawing of my house, no clue how to put it on though and there seems to be so many ways to do it
I've seen a lot of people use either the picture-elements card or this custom card: https://github.com/pkozul/ha-floorplan
Both are well-documented and there are tons of examples/discussions on the forums.
I just added state_color: true to an Entities card in the UI using the Code Editor, and got the message Expected a value of type ``undefined`` for ``state_color`` but received ``true, and SHOW VISUAL EDITOR is greyed out. I can see that the Variable works, and can save it. Just didn't understand the error message.
@fossil rampart I think pkozul is the one who recommended this app for creating the floorplan. I haven't tried it, but downloaded it. It looks complex, but the results may be worth learning. https://inkscape.org/
I used Inkscape for mine https://github.com/DubhAd/Home-AssistantConfig/wiki/lovelace-ui-floorplan
Started with a bitmap floorplan and basically "traced" it in Inkscape, then added layers and details
ooo, that's nice... I pulled out my home's floorplans too. So that's on the list - way toward the bottom. 😉
For the state_color problem, I use it in many of mine, so it's probably a formatting issue
I don't have a floorplan drawing to trace and I don't have the patience to create one from scratch 😦
Every time I see a floorplan in HA, I get jealous.
How do I resize a picture elements box, it seems so small
panel: true
By default, Lovelace will use multiple columns. You have no control over that unless you put the whole thing into panel mode and take control over sizing/positioning yourself.
This mode is good when using cards like map, stack or picture-elements.
❤️ thank you
Is it possible to have icons on the panel resize with the screens, seems fine onmobile, horrible on PC
hi there
I Add a swith for wak up on lan to configuration
how I cann add that swith to a card or a home planner image?
Use entities card. It will ask for entity and you can type the name of the switch you added it would be something lile switch.switchname
#integrations-archived for sorting out the integration
This channel is for the UI side of setting things up
Coming back to my HA install after few weeks not using it, auto-entities does not work anymore, is this the right way to declare it through hacs installation ?
- url: /community/lovelace-auto-entities/auto-entities.js
type: module
is it an url rewrite to www/community ?
None of that changed
yes so it's basicaly a redirect to the old community folder
that's just my question
If that's where HACS puts things, yes
ok thanks
What do you have in your card config?
hi there again
its possible to change Togle icon on floor planner and on cards?
if yes, how and what quine of icons I can use
Toggle icon?
yes like...I have a power Icon image
on WOL
in my card and floorplanner
its possible to change that power Icon (image)
ok
What is the best way to do a conditional card with an OR condition? For example, I want the card to show when sensor.seventeentrack_packages_in_transit is not 0 or sensor.seventeentrack_packages_ready_to_be_picked_up is not 0
So the card will show if I have any packages in transit, ready to be picked up or some in both states
Two conditional cards?
Or via a template sensor that can also be reused for automations, notifications and stuff.
Yeah, probably using auto-entities for showing the counts that are not zero, combined with a conditional card that uses a template sensor to check if there are any packages
@fossil rampart posted a code wall, it is moved here --> https://paste.ubuntu.com/p/7yggMXykm6/
That is my code @elder pendant
@fossil rampart under style: try adding --mdc-icon-size: 100px (change 100px to whatever you want)
(style in the state-icon)
I assume no way to resize on resolution?
You could use vh or vw instead of px, but it doesn't work with %
vh and vw always sound like such brilliant ideas until you're dealing with multiple devices with different screen sizes 😄
<any css property or web design element> always sound like such a brilliant idea until you're dealing with multiple devices with different screen sizes 😄
Yes, I should have been more specific and said aspect ratios. And I'm so glad I got out of web dev.
Anyone know why all my custom cards would now throw a 404.. seems to have happened since 110.x. All the custom cards are coming through HACS
URLs looking something like /community_plugin/battery-state-card/battery-state-card.js
Did you check the HACS breaking changes before you updated?
I did not. Can you point me to where i would find that info. I've only seen breaking changes for HA not HACS
Thank you
Hi looking to add a new lovelace dashboard but not sure what to put in the url section.
Whatever your heart desires
any examples?
I has to include a dash, I think.
is there a way to keep the history: integration but disable the panel in the front end? 🤔
With a custom plugin, yes
gotcha - wasnt sure if it was something in the docs i'd missed! thx
Well history: is that panel. You can hide the sidebar link to it, but you can still access the panel through the url
i see, i'm mainly looking to remove that from the sidebar .. it's prime real estate in my setup and doesn't get clicked much : )
The you'll need to use a custom plugin such as https://github.com/Villhellm/custom-sidebar
How to i easily upgrade all HACS addons with new HACS?
ok let me rephrase then
If you were wanting to upgrade the custom components and Lovelace custom cards, you'd look at the HACS page for anything that shows it needs an upgrade
how do i upgrade all custom integrations and plugins that is installed via HACS?
as per < 1.0.0 i could do "upgrade all"
you'd look at the HACS page for anything that shows it needs an upgrade
I don't think it has an upgrade all button, but I've not had any upgrades since moving to HACS 1.x
I've not seen an upgrade all button, and I've had multiple upgrade since.
what @karmic tiger said
You could open a feature request
That makes sense
ty @elder pendant
Few folks read the HA release notes, and enough have been surprised by HACS breaking changes too
'Upgrade all' is only one level down from 'auto update', and almost as dangerous 😄
yes, but no, sure
That's a confusing statement 🤣
If a single addon/component upgrading can take down your system, upgrading them all at once is terrible.
@karmic tiger i will manuall upgrade all and not restart until all is restarted
and then break everything after all
since it doesnt show me release notes anyhow
😄
Well as long as you're taking backups, do whatever you want
"Remember that you need to restart Home Assistant before changes to integrations (custom_components) are applied."
such Release notes
Release notes are always available, where the dev bothers with them anyway 😄
cba
I believe that it does have an "update all" from the three-dot menu in the upper right when there are updates available. I'm pretty sure I've used it before
Used to
I don't have any updates available right now, so can't confirm
Doesn't in 1.x
ah, I see the issue now
There should not be an "update all" IMO. Maybe people will actually read release notes then
100% positive it was removed because people were blaming HACS when their custom stuff was breaking
Not just blaming HACS, but they where opening unnecessary issues for the dev to close because they did not read due to that function.
I got tiered of seeing/hearing it, so it was not reimplemented.
It was the right call 👍
Is there any way to put a 1px border around all cards using theme commands? I've found the radius for corners etc, and the custom-card configuration but thats going to take a LOT of work to redo every card I have to add a small outline 😦
never mind, found a better way to achieve what I wanted 🙂
basically I wanted to create a border around my buttons when they were active? but I couldnt find a way to do it while it was active only.. so i ended up having a border around it all the time and just changing its colour when it was active?
I've managed to put an if-statement into the custom-card config that hides the border when the application isnt running... and only put it on when it is.
if you're interested 🙂
netflix is running on the shield at the moment
I'm trying to make my own theme, but I can't figure out how to color the background of my lovelace.
How do I do this?
lovelace-background?
I have a template sensor that I change the icon with "icon_template" and it works perfectly. I decided I also wanted to change the color and figured I could just add in another line with "icon_color" into the same logic statement that I had to change the icon like this: https://paste.ubuntu.com/p/SJZpDktPPq/
But it's not working as expected. I assume I either have the syntax wrong for icon_color or I can't change the icon color in the config and I need to do that in customize.yaml. Can anyone explain (or point me towards some documentation for icon_color)?
Crap, maybe this should be in #templates-archived
same problem
hi there! is it somehow possible to show the value of some entity in the title text of a lovelace card?
e.g. Coffee Machine consumtion (today xx kWh)
- Graph of acutal consumption
- Graph of total consumption
First one would be a utility meter #integrations-archived
Second would be a graph card
Third would be a graph card
Hi, not sure if this the right place to ask,
so im editing theme, and want to add custom color to the "media-control" card,
how do i check or know which color var are used by that card?
@fossil rampart posted a code wall, it is moved here --> https://paste.ubuntu.com/p/rDnbq5kJ22/
~codewall @fossil rampart
@fossil rampart 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.
I posted it so the bot did it, seemed easier
I assume I am not allowed to do that
🤦
?
Go and read the rules... you clearly need to
No, you do not post code walls and have your mother the bot clean up after you
My bad, I assumed the bot was here for ease of use too, apologies
It's there for when folks forget/are obliviots
That should work... it works in the demo
Makes sense, my bad, it's a habit of me developing bots to make my life easier and using them like that, sincere apologies
@polar kelp Yeah i'm not sure what's going wrong with it
I assume my style isn't in the wrong place?
What's your HA version?
0.108.9
I think thats the version?
Thats on the webpage but it doesn't say HA Version
-> Info
I think that variable was introduced in 0.110. Let me spin up a test container
Yeah. Before that the icons were built on iron-icon. Try --iron-icon-width and --iron-icon-height.
#android-archived @exotic umbra
I posted over there too, I'll remove this one
then
Please DO NOT cross post. Read the channel description, post it and wait for folks to respond.
hi, is there a way to have panel_iframe looking for localhost adress via some tunnel ? i was thinking something like ngrok, but its dynamic
An iframe is just a frame that tells the browser where the contents are
@polar kelp I appreciate the help thank you that has made it resize!
Note that method will break when you update past 0.110
You might want to put a comment somewhere
@split granite i understand that, i was courious what is the correct way to do this
by correct i mean if there is known solution, the problem is browser can not reach the url, its a service on localhost where home assistant have access, i have a nabu cassa tunel tohome assistant and i would like to reacht that local url through HA page
You likely can't do that through NC
I have trouble to set the time zone via UI. In Configuration/General it's only possible to set UTC but no offset like "UTC+1". With the configuration.yml it was possible to direct spezify the time zone. How i can do this with the UI?
found it:
Solution is to use the TZ database names in the ui.
So iantrich's config template card is pretty cool and I figured out easily how to make conditions and a specific value based on that
But how do I use the value and insert it into a string?
I don't speak javascript
Most people don't 'speak' JavaScript. What are you trying to do?
I've never used that card but it looks like you just use JS string templates in order to build your values.
I cant seem to wrap my head around that
Could you help me write a line of code where the variable vars[0] is used with some sample text
var vars = [1, 2]
return vars[0]
Will return 1
The 0 indicates the first item on the array (list)
If you're unfamiliar with JS, I'd encourage you to read a guide on the basics. It's a pretty accessible language but you'll need to know how the fundamentals (conditions, loops, data types, etc) work. This is a good place to start: https://www.w3schools.com/js/
And when you are done with that, and regret everything, have a look at python ♥️
Okay then my question is more about https://github.com/iantrich/config-template-card than javascript, I'm familiar with basic programming concepts
I just havent yet figured out how to stitch that piece of code into the config
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.
Soo... The vars there, refrense the variables key you define for the same card
Or single quotes...
You just have to used mixed quotes. If you wrote name: "${"test" + vars[0]}", it'd break because the second double quote 'closes' the first one, then the rest is gibberish,.
I GIVE UP!
Close 😄
That might work for JS, Ludeeus, but it looks like that card explicitly requires a single template string.
Without looking at the code, we don't know how/where it uses the template. It might be doing its own interpolation.
https://hastebin.com/raw/satuqoqaxa should work
17 edits later
something like that 😄
Triple backticks override everything and you are free to write whatever
and discord wont try to interpret it as markdown formatting
Thanks tho
It's working finally
I might have made a typo or two
I just have to make a full page lovelace tab for each room now
This is the fun part
At least coding frontend doesnt include soldering
Basically the only good thing about it
If your front end doesn't involve soldering, you're not being creative enough.
Welding
hii
i am new user with ha . i want create button with feedback , i run script from button i use custom button so it could be active with switch but from script no active button
i mean that no feedback
Anyone know how to refresh a lovelace card after editing the .js file? Refreshing the page and restarting hass didn't seem to do anything
Clear your cache
Browser cache?
yes
Then it seems you haven't made any changes
How do you have it added to your resources?
What is the url
type: module```
If you haven't changed the resource url then clearing browser cache should be all that is needed to see the changes
(and refreshing the page)
Where is the hacsfiles directory located?
For frontend plugins/cards it should be www/community
editing files installed with HACS is a bad idea
copy them elsewhere if you want to test changes
Either way, it might not work. Move the files or include them with /local/community in your resources if you want to make changes
don't have to use /local/, just delete the .gz variant, but it's generally a bad idea if HACS is managing it
(never mind me I just can't read)
Can the title on top be removed?
hello,i want to add a gauge to my ha,i added in configuration.yaml file the lines to retrieve the raspberry pi temperature-what should i do now?
the issue is that somehow i dont see any identity like this
i should select a gauge and then an identity-right?i miss something?
You'll need to create a sensor of some kind for it. That's probably a question for #integrations-archived
From what you said, do you not already have an entity_id of an entity in
-> States?
Ah, you have the sensor already. My bad. 😦
Well, maybe, maybe not...
How can I make my picture element have a button on that runs a HA script?
That's what my current button does but I want it to run an entire script
i have this in my configrations.yaml file:
sensor:
- platform: command_line
name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp"If errors occur, make sure configuration file is encoded as UTF-8
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
scan_interval: 3600
Check
-> States then @unreal hinge - see if you have sensor.cpu_temperature
no sensor.cpu_temperature 😦
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
infoordebug - Explain what the problem you're having is - sharing configuration, errors, and logs
what i miss?it should be easy-https://www.home-assistant.io/integrations/sensor.command_line
It should... but it's not working.
So, do the troubleshooting 😉
Check the links the bot gave you for extra help.
~check @unreal hinge
@unreal hinge Always run the configuration check command when you make changes. Don't trust the UI check - it misses some problems.
Start there, move through the process
i should reboot HA?isnt enough to reload the configuration?
Not until you've checked everything.
ok,,ill check again
I don't get how to hide an entity from the map integrat, it says to look on the lovelace map page but i dont se e anything related to hiding entities
You cannot
oh
This map always shows the location of all tracked devices. If you want to hide certain entities, you should look into the [Map Card](/lovelace/map).
You can with the map card
ok thanks
Hi all
I was redirected here from #ios_and_mac-archived because of the following issue
humm, just noticed I cannot past screenshot here. Which is the right way to share then ?
@novel finch , I saw the screenshots in #ios_and_mac-archived, did you see if refreshing the app helped?
Is this the right channel for Lovelace questions?
yes
anyone available for a noob theme question?!
@tame dove do you have the chance to check yesterday issue ?
@spice grove You've made my day, Thanks.
Yea, no idea, sorry.
If it is truly updating everywhere else but the app then 🤷🏼♂️ , but it’s a little confusing from your post if the sensor has ever worked, never worked, occasionally works, only works in a certain browser ?
@novel finch what is the actual state of the sensor in
> States on both your PC and phone?
Your template will only update when vacuum.philip changes state though
yes, correct, will update only on change
@novel finch what is the actual state of the sensor in
> States on both your PC and phone?
@elder pendant state was the timestamp of the last cleaning;
Right, but is it reading as the same state on your devices?
yes, both shows "2020-05-24 16:28:23"
okay now in the dev templates tool paste this template in both devices and compare the result {{ now().hour}} {{now().minute}}
pc: 18 3
cannot select all on mobile to clean example template, takes a bit
mobile: 18 6
works fine on both
interesting
What does the frontend sensor show on both devices immediately after the sensor updates?
states is updated correctly, display value is ok on PC ( 1 week ago) and on mobile il always "Invalid date" (despite my UI is in Italian)
weird behavior even with template on last reboot (from seconds to timestamp): it shows in 1 hour despite the state value is "2020-06-03 17:57:29"
on pc shows "13 minutes ago"
Huh, can confirm it's an ios issue
I get the same problem on my devices
it's not an app issue though, it's a problem with something else in the os
is there a way to change the hvac_mode from the frontend without changing configuration.yaml and restarting?
like in this question: https://community.home-assistant.io/t/generic-thermostat-no-option-to-change-hvac-mode/194393
It's a safari issue in general. Same problem on a mac
I'm running iOS 13.5.1 (latest) on iPhone 7
ah ok
so you reproduced both issue ? The invalid date and the future time ?
Just invalid date
k
interesting is that I'm using also alexa_media_player
that has a "next_alarm" sensor as timestamp. That one works just fine on both pc and mobile. Always.
so maybe it's mandatory to add a timezone ? Working sensor has GMT time and then a "+2:00" in the string
my custom sensors not
I 'll try moving from " timestamp_custom('%Y-%m-%dT%H:%M:%S', true)" to " timestamp_custom('%Y-%m-%dT%H:%M:%S+02:00', false)"
you can also try using the relative_time function in the template itself
that should render on the server rather than the client
interesting, let me check
Remove the timestamp device class if you use relative_time
fixed, added one more as_timestamp() to the code: "{{ as_timestamp(state_attr('vacuum.philip', 'clean_stop')) | timestamp_custom('%Y-%m-%dT%H:%M:%S', true) }}
now it works fine on both pc and mobile app
looks like safari is very picky about formatting. I would think HA would take that into account when timestamp device class is set
me as well
but at least we have a workaround to get it working. Lesson learned
now time to understand why I have a future time for last restart
if I click on the sensor from mobile app it shows "2020-06-03T18:41" but in the main page it says "in 1 hour"
on pc says "4 minutes ago"
I imagine it's a similar issue
Is there a way to manage groups in the frontend yet? I just added 5 zigbee bulbs and would like to control them as one. Should I still be using groups.yaml or am I missing something in the newer frontend / lovelace stuff?
Groups are still configured with yaml only
If they are light entities then you might want to look into a light group instead https://www.home-assistant.io/integrations/light.group/
I imagine as well; just compared the format of working and non working sensor. Seconds where missing in non working. Added but nothing change 😦
adding the timezone now I get invalid date 
bah, cannot figure out. Same format but one is working and one not
if anyone has an idea, is more than welcome
you need a timezone
without it, it assumes utc
timezone needs to be +00:00 format
and microseconds: YYYY-mm-ddTHH:MM:SS.ffffff+HH:MM, ex 2020-06-03T13:14:15.123456+04:00
thx, will try that way. I just don't get why this is the only sensor not working
what's not working about it
just that it's off on it's time? if that's so it's because of what I listed above.
If i'm looking for front-end help on custom:button-card... is this the right room for that?
Yesish
specifically, i want to know how to access the icon of an entity... i've output the states['mysensor'] but i dont see a variable for icon in that object... 😦
additionally... how do make the last_changed human readable, instead of iso date
hmm... looking at other sensors it has hass.states.sensor.attributes.icon available... maybe this one just doesn't have an icon defined.
!include_dir_merge_named themes
What integration are you using for that sensor?
!include_dir_merge_named themes
What does this mean?
rest
Where can you find those themes?
just in the config directory?
platform: rest
resource: !secret siteuptime_url
value_template: "{% set text = value_json['@attributes']['stat'] %}{{ text[0]|upper}}{{text[1:] }}"
json_attributes:
- monitors
scan_interval: 60
force_update: true
https://www.home-assistant.io/integrations/rest/#device_class you can try defining a device class to see if it creates an icon attribute
otherwise you can use customize https://www.home-assistant.io/docs/configuration/customizing-devices/#icon
will do. thank you.
any thoughts about how to output the last_updated as a time since, rather than iso date format?
is there a frontend available built in hass function that i could access?
Are you trying to display it in a custom_field?
If I put a dynamic link to an image in an image card, does it auto update or does it store the first one?
@elder pendant indeed i am
@fossil rampart you will probably run into caching issues
Damn
Any other way to do it, I have an external to HA script running that changes the png
But name and location is the same
@fossil rampart i swear by the custom:button-card cards... i use one that i have the background image set by a dynamic image and it works great. instant updates and no cache... BUUUUT you gotta basically make the whole card from scratch
if you're into that: https://github.com/custom-cards/button-card
additionally, i set the url of the image i want as a sensor ... so that the update of the state of that custom sensor is what triggers the update of the button-card.
it's a bit of work to set up, but beautiful once complete.
Anyone? Any thoughts/insights/advise? I'm looking to display a date from last_updated in a custom_field within a custom:button-card. I want it to be 12 hours ago not 2020-06-03T06:58:45:91455+00:00
Why not just show_last_changed?
it's not for the entity 😦
it's for an additional entity.
1 card to show several entities
sample of card so far: https://i.imgur.com/p21hffm.png
There is not a simple way to do what you're asking. It would require a lot of javascript
maybe i just try to utilize something like moment.js 😦
thanks anyway. i was hoping there was a built-in function in the front-end that all the cards use to output it
@fossil rampart https://www.home-assistant.io/integrations/generic_ip_camera/
Ah its not a camera
But it could be.
Stupid question of the day. What on Earth is the name of the card(?) at the top (the circular ones with my name under it or the updated or sun one)
That explains why I couldn’t find it in the cards options - thanks!
Is it possible to edit the lovelace raw config using visual studio code add-on without enabling Yaml mode?
No
what if i edit the file in .storage?
You can, but you shouldn't.
odd its not yaml
yeah i its just weird because the raw editor is yaml
Technically, that's yaml too.
Editing the JSON will be ignored by HA, since clearly nobody would do that while HA is running...
but yeah i will do that, i will copy the raw file to vs code, edit it, and then copy the whole thing back
As long as you don't do that with HA running
i mean the yaml from the lovelace raw config editor
i'm just having trouble with indentation when using the built in raw editor so i wanted to use a different editor
i am trying to add this: https://github.com/rsnodgrass/hass-flo-water/blob/master/lovelace/example-mini-graph-card.yaml
but that is not really jiving with the lovelace docs i am following
It'd be cool if the hass plugin for vscode could handle the ws-calls to pull and push the config 🤔
would be awesome
what is throwing me off is this: type: horizontal-stack at the bottom of https://github.com/rsnodgrass/hass-flo-water/blob/master/lovelace/example-mini-graph-card.yaml\
i cant get it to work with that at all no matter how i ident it
i am struggling to understand these lovelace docs. like can there be multiple cards: in a file? the "slightly more advanced example" shows multiple cards: in a file but when i did it i got an error saying i already had cards: in the file
That's just the automatic sorting of keys throwing things off. What you have there is.```yaml
type: vertical-stack
cards:
- type: 'custom:mini-graph-card'
... - type: 'custom:mini-graph-card'
... - type: 'custom:mini-graph-card'
...```
I.e. three mini-graph-cards in a vertical stack
Has anyone been able to figure out the FontAwesome Pro fix since they changed the way icons work in .110?
My biggest issue with YAML so far is understanding when to use a -
Let's see if I can make this work...
It's all about dictionaries and lists...
ok i think i get it now, so each list entry can have a cards dict
so views has a list of lovelace components, each list entry can have a cards dict
Phones:
Home: +46 (0)XX XXXXXX
Work: +46 (0)XX XXXXXX
``` so in this case, it is a dictionary containing two dictionaries, but that subset of dictionaries does not need to be a list?
@blissful shard When you apply the patch (assuming that's still possible) you'll get two new files. js/fad.js and js/far.js. Copy and paste this before the last line of those: https://github.com/thomasloven/hass-fontawesome/blob/master/js/fas.js#L7-L30
Then recompile
where to start for lovelace configs
like more advanced than adding through the hamburger menu
all github pages contain 20 .yaml files
This is super helpful @polar kelp, thank you. Even just the use of node anchors is going to make some of my larger configs much more maintainable in some not-very-DRY areas where I've got lots of repetition.
I have some more examples of node anchors here: https://github.com/thomasloven/hass-config/wiki/Misc-tricks#node-anchors
title: Basement - type: media-control entity: media_player.basement
so this is a single card
🤮
Please use https://paste.ubuntu.com/ or https://www.hastebin.com/ to share code or logs.
the problem is when i try to copy out the snippet the identation keeps getting messed up
Make sure you're copying the entire line(s)
-> lovelace -> Resources_