#frontend-archived
1 messages · Page 170 of 1
Click Load Full HA Logs (blue button at the bottom?)
I did
at zha-map, what does that mean: 5. Add to your lovelace global config as type: module
this I did not do up to now
where are u reading that?
@fierce vale use these instructions: https://github.com/dmulcahey/zha-network-visualization-card
go from Step 5 there
Any idea why this is not working? I'm getting unknown type encountered: history-graph. https://hastebin.com/facololate.bash I'm trying to nest the history graph under the custom-fold card. UPDATE: Might only work for entities...
@fierce vale I think you are just gonna have to keep trying stuff - It took me a while to get it too
bed time for me now
good luck @fierce vale
🤦♂️ path is missing
I have an entities card that displays the kWh used by a device. I'm trying to figure out a way to display the cost on the same card. I don't know of a way to use a template to do the math to display (e.g., cost = kWh * rate_per_kWh) on that card. Is this possible, or is a separate card type, or a variable using something like the Custom Component Generic Variable to create a new entity, the only way? Can someone point me in the right direction, please?
i have 3 cards, the one in the middle is a climate (ac) and this card in the middle of other 2 is a conditional card, it will appear only in the summer, now for testing proposes i've changed season.season to winter and idd the card disappears like it should do, the problem is i remain with a space that displays nothing between the other 2 cards, how can i fix it? this happens to you ?
@wet pond
There's any number of ways you can get around that. Complaining about HA isn't exactly productive.
@karmic tiger
Any help is appreciated, so how do i do it?
does anybody have problem with circle sensor card - Im getting an red error on my UI: Custom element doesn't exist: circle-sensor-card.
I installed via HACS, and I checked in my resource file, its there.
Anyone know if it's possible to add Integration pages (like Z-Wave, Zigbee etc.) to the sidebar?
Hi there! I'm using auto-entities by @polar kelp . Is there a way to replace characters in the this.entity_id variable?
E.g. I want to replace the found entity switch.home_server_docker_homeassistant with sensor.home_server_docker_homeassistant https://imgur.com/Ho7qM5A
Adding suffixes or prefixes is no issue
This is my config https://pastebin.com/DMJ41qRk
Not with auto-entities itself, unless you use a template match and do it all manually.
So for instance a template that puts .home_server_docker_homeassistant in to this.entity_id?
And then I can prefix with the correct device class when needed?
I now have a working filter, but I fail to use the options/custom card along for each entry
Is it possible?
Hi! Who knows what the easiest way is to reduce the font size of all cards for a specific dashboard? I'm casting my dashboard to the Nest Hub, but it's not fitting very nicely. When I could reduce the font size it should fit. I've tried adding a CSS file and setting the font-size , but it seems I'm not able to override it, even with !important it's getting ignored.
Hello...I am having some issues with Lovelace and adding cards. When trying to add a new card, the interface freezes for 2-5 mins before I can scroll or select anyhting. I have searched the HA forums as well as Google and found only a couple of threads that mention this. This one: https://community.home-assistant.io/t/lovelace-ui-add-card-panel-freeze-unresponsive-for-long-time/195483/5 points to a sensor that was updating every second as the cause. As far as I can tell, I do not have anything like this but I am wondering if there are any logs that I can check to help track down the culprit.
Also wanted to mention that I am running HA in a VM with plenty of CPU and RAM so I know this is not the issue
Help needed please. I’ve recently updated to 0.114.3 and since 0.114.2 I’ve been unable to use any Lovelace toggles and some of the buttons. The IOS app just reloads the whole page and the pc browser (Firefox) gives some weird html error. I don’t really know what to google for, so trying here too.
@wheat current Thanks a lot!
I recently reinstalled home assistant and hacs and now I can't figure out how to add custom card because when I installed them through hacs and restarted home assistant I get this error : Error: Custom element not found: simple-weather-card
This would not be an issue but I cand find a tutorial that is up to date
While searching for an answer i realized that the button "add to lovelace" is no longer here
in the doc https://hacs.xyz/docs/categories/plugins#special-notes-about-downloaded-lovelace-plugins
I can't find any procedure for the actual use of the custom card
the integrations work's fine
Can anyone lend a hand in configuring a Glance Card? Currently, I have it all set up so it shows the state of a machine, and the % of CPU, RAM, and Disk. Now I want to add color to it so 0-50% is Green, 50%-70% is Yellow, 70%-80% is Orange, and 90%+ is Red.
https://pastebin.ubuntu.com/p/H4FDJzkBHD/
Pretty sure I just need to add in "Style" for each entity. I have another button card I was playing around with that showed 2 states, running and off to changed the color to green/red, but I think this is going to be a little more involved than that
I am thinking it should be something like this? But not this, because its not working lol
Could someone tell me HOW figure out where a bad login is coming from? ip address shows my synology box as thats how i have it avail via https
its driving me INSANE in the membrain...
Yes, via my synology box.
this makes it so i can manage the cert and also have it .mypersonaldomain.com
But i look all through my synology logs and i cant find ANYTHING that gives me the real ip that its failing.
You need to use the X-Forwarded-For header
I have searched and searched and am just not smart enough to figure out the issue i guess... I thought it would kinda "fix its self" so i "moved it to the basement" and it just keeps popping.
Set up your reverse proxy to forward that header too and tell home assistant to read it
@muted inlet Okay, so I really hate to be high maint here but I really could use you to hold my hair....
Lmao
Your saying "add" custom header here...
I only know NGINX
Please use imgur or other image sharing web sites, and share the link here.
Let's go to #general-archived
Hi, I'm interested in helping extend the current Calendar view. My wife wants a home "command center" with a core feature of a calendar display. The current display is quite good and would work in a kiosk mode in our house, but I need to be able to click on an event and view the details.
where could I start?
I looked at some of the options in HACS, but none of them (that I've seen) has a nice full-page calendar display for the month
Hmm, anyone found that the brightness slider on the Light Card isn't working out of the box? I can slide the brightness fine on the entity, but sliding on the Light Card gives "Failed to call service light/turn_on. value must be at most 100 for dictionary value @ data['brightness_pct']
Hello Everyone
im hoping someone here can help me, I have an issue thats been driving me mad over the past few days.
Im using homeassistant, using a VM and installed vis the VMDK image. Ihave instaled HACS and installed the simple thermostat plugin
I have it working on safari on my mac, but it will not work using the IOS app.
Im using traefic reverse proxy, to access my instance, if I connect using my local IP on the IPS app it works fine, however if I use my reverse proxy on the app it does not work.
both IP and proxy address work on the mac
Maybe here is not the correct place to ask but again hard to figure out where. I am trying to install Mini Climate Card via HACS, so custom card is installed, resources are correctly set by HACS, ha was restarted and still type: 'custom:mini-climate' gives me "No card type found"
any ideas?
Remove - from before type
excelent, ofc it works 🙂
Doing it correct usually works 😄
they list all examples with -
That is still valid
ofc is not a list is only one card so yah 🙂
but not in a "manual card"
is valid when you have a list of more then one cards correct?
if you use the raw editor of YAML it's valid, there it needs a list.
When you use the "Manual card" you add a list item to the cards list in that view
so if you prefix with -, you are tilling it that you want to use - - type, which is not valid
how do I get a battery level icon for a template sensor?
all my other battery level sensors have it but not ones I make in template sensors
Front door and Kitchen motion sensor has the "eye" icon. I can make it a normal battery but having one that shows the level would be better
Is there a way to show the entity details as a card in lovelace. (The information that appear in the popup that appears when you click an entity)
yeah using a template sensor
do something like this in your config file: https://hastebin.com/aquluyokir.cpp
more info here - https://www.home-assistant.io/integrations/template/
then add a card you want and find the new sensor
I have a couple of scenes I can't get rid of. They seem to have been created in yaml, because they are not editable from the frontend. But my scenes.yaml file is completely empty. The scenes are available in the scenes editor, and they are all executable. ?? How can I get rid of them?
hi everyone. does anyone know if it is possible to change the styling used by leaflet on the map card?
hello
@feral comet you can adjust styles on the map card, not sure what leaflet has to do with it
hello @thin bison
I've got a stupid noobie question.... hope its ok to ask in here?
depends on the question, if it's related to frontend, ask away
yes it is 😄 Editing a view on my PC browser, I see the tiles (is that the right term?) arranged in rows and columns
On my mobile phone they are just one under the other - now that's fine...
but they're in a strange order on the PC and it's hard to tell what order they are going to appear in
its like column a, row 1 then column a row 2 then column b row 1 and 2, then column 3 then it starts again on column 1 row 3
The order on your phone is the "correct" order
on anything with more that 1 column, order will get funky
but is there any way to easily tell on the PC as I am editing? Like getting the ordinal number displayed on the tile?
Yes, make the width of the page skinny so only 1 column is showing
Its weird as I click "up" arrow to rearrange it hops into a place I am not expecting
oh ok
good idea lol
if you are in chrome, you can set it to mobile
ah right I'll try that
but the order is calculated based on height of the card, and remaining cards try to fill in gaps
it tries to minimize vertical scrolling in a browser with multiple columns
it works "ok"
One more question, is there a way to tick a bunch of entities at once and have them all added as tiles rather than the having to open the + for each one?
There might be, but I don't know how to do it.
I don't use the interface to do things like taht
@tacit cave sorry, I mean change the tiles
Ok thanks 🙂
@feral comet what do you mean tiles?
the map card is a single card, it doesn't have tiles?
Cards thats the word - must remember it
@tacit cave the tiles used by leaflet
ok, so someone posted on the home assistant facebook group today. if you're on there, this is the post. https://www.facebook.com/groups/HomeAssistant/permalink/2747475742190445/
and there are some people interested in how the poster was able to make the map look that way
can you screenshot it?
no access to fb at work
and leaflet doesn't have an integration for HA, and there isn't a custom card. So, I have an idea of what it would be, just need a screencap.
I don't see any way to upload here, so I guess I need to post somewhere else
send me a PM
Oh, no image pasting
Hello, I use the bar-card to create some bar cards! Most of the changes are done with card-mod, and some examples are provided in the github repo! I also use the config-template-card to make the graphs more dynamic to my use case, all works but the style modifications to the bar-card , I assume this is related to being inside the config-template-card! Any advice to do this and use the styles provided in the github repo? Should I apply the style to the config-template-card and try to get to the bar-card elements by the shadow tree, or apply the styles to the bar-card that is inside the config-template-card? Thank you
just put the style on the bar card inside the template card
don't put the style on the template card
don't put the style on the template card
@tacit cave I tried that! But the style is not applied, I used the examples from the github repo, if I only use the bar-card it works! If I use the bar-card inside the config-template-card it does not work
Hey guys, i have a short question and i think you can answer this quick 😂
i'm trying me out in the hassio scrape... but i damn don't get it...
i was trying to scrape one little thing on a page... [https://aare.guru/#bern] <h2 class="mainValue" title="Oder genauer: 18.68°C"><span class="celsius">18.7</span></h2>
how do i have to configure it ? i tried everything out... but i think i'm to stupid for it 😂
What have you tried?
Everything and i deleted everything after i think 2h of trying...
So you aren't going to share your config for someone to check?
Anyway... you need to share over in #integrations-archived for the scrape integration. It's not about Lovelace.
Ty @karmic tiger
I thought I new this question. Now I'm looking around and second guessing myself. Can I have different logins for HA? I've setup different users but I'm unable to figure out how to allow them to login as themselves with their own Lovelace view.
@vagrant ivy when you are logged in as the user, click the username at the bottom left and you can select a default dashboard as well as some other stuff.
is there a way to restrict a user to only parts of the dash tho?
@plain pike if you go to Configuration > Lovelace Dashboards and click on one of the non-default dashboards you can set it to 'admin only'. so assuming you want your dashboard to be restricted, make the secondary dashboard the default and set yours to admin only. i haven't tried it since im the only user but it should work
oh I don't have a non-default dashboard so I guess that won't work for me
I want to be able to give my son access to his room and the common areas only
yeah you'd have to separate everything out to multiple dashboards to do that
@compact nexus yuh Bajan?
you could just duplicate the default dashboard and remove the stuff you don't want him to have access to
No, my name is a character from Futurama lol
maybe, but there are people from all over the world on here
oh I know that much, I know for sure I'm the only one from The Bahamas I've seen tho
sorry to disappoint you lol
@vagrant ivy when you are logged in as the user, click the username at the bottom left and you can select a default dashboard as well as some other stuff.
@compact nexus First... Barbados! That is so awesome.
Second, I think you misunderstood my question.
Steps to recreate:
- Go to Users. Create a User named Jane Doe and save.
- Click on my profile in the bottom left.
- In my profile, click on Log Out.
- On the Login Screen, ... what do I put here in order to log in as Jane Doe?
Sorry it took me a couple edits to stop hitting "Enter".
Auth Provider? It's a local server, mate. I think I might have just answered my own question though. Thanks for being patient with me.
I had created the existing users long before there was a "Users" configuration so I never set a User Name or Password for them. The version upgrade just inherited whatever was there, but it never gave me a means to edit any of it.
ah
and yes even though it is a local server there are multiple types of authentication providers. https://www.home-assistant.io/docs/authentication/providers/
not all of them require a username and password
ahhhh yes.... pre 0.77 you had to specify your auth provider too
I nearly forgot that
- entity: sensor.memory_use
max: 3806
min: 0
type: gauge
type: horizontal-stack```
How can I replace the hardcoded 3806 number with the output of a Linux command?
@winter prism I believe you want your output saved in a sensor state: https://www.home-assistant.io/integrations/sensor.command_line/
and use a input_ helper to store/use the sensor state
anybody knows of a way to open/trigger a image.camera overlay from inside a iframe (e.g. click inside the frame)?
not me
Hello, i've a problem witht the home assistant login page, i can connect with https://mysubdomain.duckdns.org:8123/ but i can't with https://192.168.1.91:8123/ because the login page loads but when i hit connect it shows me the error "Unable to connect to Home Assistant. RETRY". Does anybody know how can i manage to get this working ?
what version you on?
version of what ?
supervisor version 235 and core 0.114.3
did you recently upgrade and that's when you noticed this?
no, it'a long time problem
when did you notice it?
because there have been changes since like 0.102 or something
because i have often internet downs and during downs i couldn't connect with the duckdns url or local ip
yes
that's your problem
that was depreciated ages ago
internal_url and external_url are it's replacements
i have that in my config yaml base_url: mysubdomain.duckdns.org:8123 in my secrets.yaml and that ```yaml
http:
base_url: !secret base_url
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
comment out base_url
and i reload ?
The editor is disabled because the configuration is stored in configuration.yaml.
it's written
if you fill in internal url with https: you have to use IP unless your DNS works like mind
what editor?
so you have homeassistant: in your config?
yes
external_url: "https://www.example.com"
internal_url: "http://homeassistant.local:8123"
just add those under there then
well with the right values
😛
under the http section ?
no
or the "homeassistant: "section ?
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
http should look like this
that's it okay
yes in the homeassistant section
ok
you should add what I sent
like this ? ```yaml
time_zone: Europe/Paris
customize: !include customize.yaml
external_url: "https://www.example.com/"
internal_url: "http://homeassistant.local:8123/"
yes
ok
like that but like I said with the correct links
homeassistant.reload_core_config and you should be good
ok
you shouldn't have to restart
i put the port for the external url ?
like for the internal
can i use the ip adress for the internal url ?
yes
you can use ip address for internal if you want to do https:
otherwise it will fail unless your DNS works like mine
ok so like that, it's good ? ```yaml
internal_url: "https://192.168.1.91:8123/"
i put the port for the external url ?
@candid acorn if you specified a port in base_url you should in internal and external as well
ok
so that is good ? ```yaml
external_url: "https://mysubdomain.duckdns.org:8123/"
internal_url: "https://192.168.1.91:8123/"
so that is good ? ```yaml
external_url: "https://mysubdomain.duckdns.org:8123/"
internal_url: "https://192.168.1.91:8123/"
@candid acorn I have no idea if it's good but it looks like it
just homeassistant.reload_core_config
i create a snapshot before just in case
Or "reload core config" at configuration > server controls
Or "reload core config" at configuration > server controls
i don't have that
it's already on
i've access to the controls but there is'nt a "reload core config" button
Oh it's been renamed
i just restart hass, it's more simple
It's "reload location and customizations"
either way it's allowing from the outside now if it wasn't before
which external link do you speak ?
Used to be reload core config
that one
can you remove the url please
i've removed from my first message
thanks
it doesn't want anyways to connect me with the local ip adress
same error
it's weird
So you don't know how to help me anymore ?
clear your browser's cache and try removing internal_url:
by going in incognito mode, it doesn't change anything
so i will try to remove internal url
internal_url: is basically useless since you have SSL set up in home assistant itself
that's more for when you use a reverse proxy that handles SSL
ok i will try right now
Hey - I'm using (trying to use!) this Dual gauge card (https://github.com/custom-cards/dual-gauge-card) - it's installed via HACS, and when I use the config UI to add it, it's fine. But when I switch to using yaml config for my UI control, it errors with "Custom element doesn't exist: dual-gauge-card." - I've added the resource to the ui-lovelace.yml file as:
resources:
- url: /hacsfiles/dual-gauge-card/dual-gauge-card.js
- type: js
and restarted - but still no joy. What am I doing wrong?
it does'nt work even after removing the internal url
@vapid field we are discussing me and Tediore so please wait 'til we have finished
it's fine for them to jump in too
ok
😉
I've never been told off before in a discord channel! haha!
hahah!
at least not for chatting normally
Nope - very strange!
check the home assistant log @candid acorn
I'm kind of intrigued now to see if somehow he was going to leave a "ok I am done, you can speak" message
waits with popcorn
@vapid field i think you have to configure the resources at configuration > lovelace even if you're using lovelace YAML config
ok, and sorry if I might have been a bit uncool but it was just so Tediore wouldn't have 2 different people with 2 different problems to deal with at the same time but if he doesn't mind, no problem.
i will check that (the log) now Tediore
but I help too 😛
If you want 1:1 support, you have to find somebody crazy enough to accept payment, and pay them...
i accept paypal or venmo
I accept paypal or bank transfer
I prefer gold, in the current economy
you can pay me to say nothing too
it's not a problem for me, i don't care it was just for tediore to not have headache
that's all
if you want one on one with Ted, pay me to shut up
😄
it's not a problem for me, i don't care it was just for tediore to not have headache
it's all good it's also our job to make fun 😄
this is the internet after all
ok
@vapid field i think you have to configure the resources at configuration > lovelace even if you're using lovelace YAML config
@muted inlet It won't let me manage resources via the config section in YAML mode, but it does show the ones I've added to the ui-lovelace yml file
do you mean the supervisor log or the core log ?
core
ok
it throws me this ```log
2020-08-26 17:22:51 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.66
192.168.1.66 is my computer
192.168.1.91 is my hass server
You don't manage resources through the UI if you are using YAML mode
ah, read this @vapid field : https://www.home-assistant.io/blog/2020/03/18/release-107/#hello-multiple-lovelace-dashboards
configuration location moved
they go under the lovelace: config in configuration.yaml
aha! let me try that. Good spot
and it shows this in the frontend https://imgur.com/a/cmYJTa8
If you wade through the convoluted lovelace docs eventually you would have found that information
it took me a few google searches to find it
If you wade through the convoluted lovelace docs eventually you would have found that information
@elder pendant haha, I did have a quick look, but clearly, too quick!
and, actually, it's not in this page (https://www.home-assistant.io/lovelace/yaml-mode/). i found it in the blog post i linked above
For some reason they decided to list it under Dashboards & Views instead of YAML mode
because... reasons...

bah - it still doesn't work, same "Custom element doesn't exist: dual-gauge-card." - I'll have a play later, it's probably something I'm doing wrong somewhere. Thanks for all the guidance though
Most likely, you are missing a browser caache clear
Most likely, you are missing a browser caache clear
@wheat current Am trying in incognito each time - because, I've been burned by cache many times before
What do you have in your lovelace: config block currently?
lovelace:
pls_work: pls
Based on your previous messages I'm guessing you used type: js, which is no longer valid. You need to use type: module
also you had one too many -
and i forgot to say that i've ```log
2020-08-26 17:32:35 WARNING (MainThread) [homeassistant.config_entries] Config entry for upnp not ready yet. Retrying in 80 seconds
maybe there's a link
spamming is every 2 minutes in this case
What do you have in your
lovelace:config block currently?
@elder pendant
lovelace:
mode: yaml
resources:
- url: /community_plugin/dual-gauge-card/dual-gauge-card.js
type: module
community_plugin is wrong. It should be hacsfiles
Which you had correct earlier, not sure why you changed it
Any ideas on the fix for this? ```2020-08-26 11:38:54 ERROR (MainThread) [frontend.js.latest.202008110] https://redacted/frontend_latest/chunk.3d772f14bfbc1b2f2625.js:2:20587 Uncaught TypeError: Cannot read property '_leaflet_pos' of undefined
i need to go Tediore and others but don't hesitate to ping me multiple times if you have a solution 🙏
Which you had correct earlier, not sure why you changed it
@elder pendant I'd hit the point of trial and error! Changing it back now, and restarting 🙂
Buzzing, that's fixed it! Thanks @elder pendant and @muted inlet - hugely appreciated
Hi all, I have created a new plugin for showing solar powered house energy flow. I'm now facing the problem, that in the ios app after it's become inactive/reloads my method to recalculate the sizes and show the card correctly is not being called. It might suffice to react to the "ios.become_active" event, but I'm not sure how to subscribe only using javascript. This might be even the wrong event, but I don't even get that subscription going, at least not with ".addEventListener(" method. (https://github.com/reptilex/tesla-style-solar-power-card) Probably there is more wrong 😄
So the question is, what event do I have to listen to, to resize my card elements on ios app reload?
That's probably more of a dev channel question. The ones under 'support' are more for usage than for creating your own cards/integrations/etc.
ok, thanks, I'll go there then
Just starting out editing my UI. Using the yaml editor via the UI I have changed entity card to glance successfully but trying to add tap_action results in Expected a value of type undefined for tap_action but received {"action":"toggle"}. Is this not available in the UI yaml editor?
Is there an on display component for homeassist?
Apologies..now see that this is a per entity setting
I am trying to get the boilerplate card working https://github.com/custom-cards/boilerplate-card. I have followed the instructions to the point.
But when I add the card in my yaml config, like so:
- type: 'custom:boilerplate-card'
show_error: false
show_warning: false
I get the following error:
boilerplate-card.js:3098 Uncaught (in promise) TypeError: Cannot read property 'entity' of undefined
at Y (boilerplate-card.js:3098)
at HTMLElement.shouldUpdate (boilerplate-card.js:3609)
at HTMLElement.performUpdate (boilerplate-card.js:2171)
at HTMLElement._enqueueUpdate (boilerplate-card.js:2126)
I have tried with and without specifying entity
Hi good evening, I am struggling to setup a entity filter for my media players. is it possible to filter my media players which is playing and show only playing media player in frontend? My configuration is like
type: entity-filter
entities:
- media_player.living_room
state_filter:
- playing
card:
type: media-control
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
@mild rock it only works for cars with an entity list I believe
cards*
You wnat to use conditional card
hmm. I am trying to figure out any other "easy" way but I can't find.
the conditional card
type: conditional
conditions:
- entity: media_player.living_room
state: playing
card:
type: media-control
entity: media_player.living_room
and If I want to another media_player such as media_player.bathroom this means that I need to add another card
So for a 10 media player I need to add 10 card. That will be heavy
yep
Actually if I use a customcard like mini-media-player, the entity filter works because it has a custom card support for entities.
as long as the card supports entities, you should be able to use the entities filter
Unfortunately, it does not support default lovelace cards.
I think you're missing the point. It filters entities in a single card
So do you know is there a side effect if I add 10 card in a row (slow frontend, high memory usage etc)
Probably 🙂
you want to filter entities across multiple cards.
see with an entities card, you have 10 entites inside 1 card. Where the media-control is a single entity to a single card.
The memory consumption will be the same regardless of which card you use
even if you had the entity-filter working the way you wanted, you'd still have listeners for each entity
I see, thanks for your help!
hah! actually you answered my question last year https://community.home-assistant.io/t/lovelace-media-control-as-entity-filter-possible/66067/2 😄
thanks again!
You could try state-switch
how do I get a battery level icon for a template sensor?
all my other battery level sensors have it but not ones I make in template sensors
https://imgur.com/y6qIwcJ
Front door and Kitchen motion sensor has the "eye" icon. I can make it a normal battery but having one that shows the level would be better
@simple grotto Hi In your entities list find the two senors you want to change click on it and look for the Icon overide and change it to battery
@winter prism I believe you want your output saved in a sensor state: https://www.home-assistant.io/integrations/sensor.command_line/
and use a input_ helper to store/use the sensor state
@formal tide not sure if I follow. could you elaborate? I know about command_line but how do I store it in an input_?
Is there touchscreen support for HomeAssistant?
@karmic glade that doesnt work as the entities are "read only" I would have to change them in the customise.yaml but I want it to show battery level icon not just a standard battery icon
@simple grotto ok thats out of my league
How do I resize the graphs like in this image?
https://community-assets.home-assistant.io/original/3X/c/2/c27380d56be0bdf0285702f1a707a87be227fc79.jpeg
Mine are much wider, and I cannot find any way to make them narrower like in the image above
Maybe give a reference to the
Original Post and also a picture of your current layout
Then it’s easier to figure out what’s different 😉
@simple grotto if you can read the percentage of the Sensor you should be able to set the icon according to the % by using a template
Hi all,
I have a question about permissions.
I want to install the Home Assistant IOS app on my kids iphones just to track them and use automation whenever they arrive at a given location.
However, when i install the app they can access everything.
Now i played around with Custom Header, created a new tab Welcome with nothing in it and set it to kiosk mode.
It works but…
When i do a force touch on the IOS app i see the scenes widgets and they are able to change the lights…
Is there a way to accomplish what i want?
Have u made a separate login for your kids?
yes made seperate login
The scenes can be set up in the App if I’m correct, so maybe remove the scenes from their app
Tried on my iPad and iPhone with different accounts. iPad can see the scene / iPhone not
no, i have setup the scenes in HA via the webinterface, they appear automatically in the IOS apps
Tried it out. You can deactivate that scene on the specific device by uncheck it in the app configuration
Ok, but when launching the app the user sees a cogwheel on the right lower corner for a brief time. when i click it i can activate it again
I think that’s nothing you could get around. If they manage to get into the setting, they could even change the url, to access the default Lovelace page.
Not very familiar with sences at all. But maybe rebuild the scenes as some sort of script and check for the current logged in user to control the lights.
So that only if the User matches the lights toggle
But I think that’s highly advanced
Is it possible to turn off "Automatically close connection" global for all users?
how do I get a battery level icon for a template sensor?
all my other battery level sensors have it but not ones I make in template sensors
https://imgur.com/y6qIwcJ
Front door and Kitchen motion sensor has the "eye" icon. I can make it a normal battery but having one that shows the level would be better
@simple grotto if you can read the percentage of the Sensor you should be able to set the icon according to the % by using a template
Include an if statement in the value template and set the range in which the specific icon should be used
How do I change the line color in the sensor graph card? https://www.home-assistant.io/lovelace/sensor/
Is it possible to setup the Spotify player with the option to like tracks? Just interfacing with the API via PUT,DELETE https://api.spotify.com/v1/me/tracks with the currently playing track. Asking here because ideally, I want to have a somewhat complex media player in the UI using Sonos as well (local push on Sonos is much more noticeably faster than Spotify's cloud polling)
A sort of conditional media player: IF I'm playing Spotify on Sonos, show the Sonos player with a like option, which interfaces with the Spotify API for the current track only when the Sonos track matches on Spotify. ELSE show Spotify with the like option
How do I change the line color in the sensor graph card?
@nimble furnace Unfortunately, or not, there's no way to manually/programatically change the colour of the graph on this card. It's based on your UI's accent colour. You can change this in your profile settingshttp|s://<installation-url>/profile>Accent colorunderTheme
@river sand so it is not possible to use different line colors on every graph?
It would be easier to differentiate them
I agree with you, honestly. But as far as I know, there isn't.
I personally like the sensor card, much cleaner looking than History (especially if at some point the entity becomes unavailable). It'd be nice to overlay different sensors with different colours as well.
is it jsut me ok are the seperated yalm reloads gone with the latest release?
in 0.113.3 i just had a button under server controls to just reload some yaml file but now i don't see them
so now it looks like i need to restart full HA server to get the changes from the yalm files.
You need to enable "advanced mode ™️ " on your user profile
great thank coundn't remember i've put that one on previous time 🤣
Is there any HA support for a touchscreen being connected to the pi?
is there any way to resize the more-info popup natively, or do i need to look at browser-mod or similar? would like a nearly fullscreen camera view on tap
@novel rain no, unless you run an operating system with a desktop environment on it and install a web browser
so, im looking for a way to show a simple panel on the lovelace UI that shows the CPU temp
I've tried the google machine, but it just brings up people asking the same question, and having problems
and afaik System Monitor cannot show the CPU temp, only usage and stuff
and, this is all running in a Docker container
depends on your system, i use this
- platform: command_line
name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone3/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
I'll give it a shot, thanks
invalid config for [binary_sensor.command_line]: [unit_of_measurement] is an invalid option for [binary_sensor.command_line]. Check: binary_sensor.command_line->unit_of_measurement. (See ?, line ?).
yeah I don't think that's gonna work
Not as a binary sensor, no
😉
If you're running in a docker container you'll probably have to ssh into the host machine to run that command
Or map that directory
I mean, I ran the command cat /sys/class/thermal/thermal_zone0/temp inside the container, and it reported the correct temp
Oh, well there you go then
it is a sensor, correct?
@nimble furnace the speedtest sensor graphs in that pic of my setup were simply 3 cards inside a horizontal stack, that's why they were narrow. You can see how to do it here: https://www.home-assistant.io/lovelace/horizontal-stack/
sensor: [insert that paragraph here]?
yeet, says configuration is correct, lets see if it works then
thanks man! it works
On the left side of the main UI I see "Overview", "Map", etc, as well as some add-ons I've added like "motionEye" and "Node-RED". How can I add a custom entry there that loads a webpage in the main window? Specifically, I have Octopi (Rapsberry PI hosted Octoprint) running at http://<local-IP>/ and I want to be able to access it from anywhere I can access HA.
Regarding structuring of the lovelace section in configuration.yaml, when one uses mode: storage, where does the resources: section go?
@somber harness https://www.home-assistant.io/integrations/panel_iframe/
@elder pendant "If you are accessing Home Assistant over HTTPS using SSL, you cannot access HTTP sites through an iframe panel.". I will try it but I suspect this may be an issue.
hm perhaps the resources: section goes in each dashboard.yaml file?
Hello all! can someone help me with a basic lovelace question?
@hollow tendon Your message has been deleted as it contains a link or a domain name 'pasteboard_dot_co' that is on the blocked list because of: 'Virus detected!'.
Please re-post by removing/changing the domain name/link. Your original message has been DM'ed to you.
Is there a way that I can change how many columns I have on my lovelace dashboard? Also I need to change the order of the cards
I'm trying to send a printscreen here to make it easier but it is not allowed
can you combine an auto-entities card with a browser mod pop up
guys - a question - i would like to add left/right fixed arrow controls at the top of all views which navigates to the next left or right view. i added the arrows for all views with action "browse" to the next and previous urls. q1 - is there a better way to do this? q2 - the main problem with this is that these arrow buttons are not fixed (static) - so if you scroll down the page they won't be accessible until you scroll up again - anyway to make them fixed?
since the version of HASS where it has dark mode, taking on the mode of your device (which is brilliant btw, love it).... I have a picture-elements card which is a floor plan of my house...... the weird thing is, the 'state-lables' front colour is now almost invisible...
you can just see it; https://take.ms/eZ9Wwf... any thoughts on how to get that opaque again?
maybe even next level this, can I make the background opaque or inverse the colours of the floor plan with the mode, is that a thing?
Hmm, is there a way to keep HomeAssistant from automatically converting some temperatures from Celsius to Fahrenheit?
I have exactly two temperature sensors that would make more sense being represented in Celsius, but HA really wants to convert them to imperial
Maybe if you change the unit_of_measurement to 1? You'll lose the degF/degC unit symbol after the number, but it shouldn't convert.
Assuming the sensor value is in C, that is.
@lime glacier I think if you add "--primary-text-color": black to your style for the element, that should lock it to black regardless of the theme.
k, thanks
Is it possible to style the slider in this card to be thicker? Like the Square slider in this w3schools example: https://www.w3schools.com/howto/howto_js_rangeslider.asp
screenshot: https://i.imgur.com/Qwi14xD.png
code: https://pastebin.com/T0QAHtSx
hi guys. Im trying to use the iframe card on lovelace but i cant find a option for scaling.
is there a way to rescale the displayed website ?
@proud patrol style, maybe. Change the color yes. Check out card mod, you can apply styles via that. Some advanced things are out of reach but most style options should be available.
@copper sky your only option is the basic card size or a full view (panel: true) at the top of the view.
Are config questions correct in #frontend-archived?
if it's a card config, yes
its about splitting configuration.yaml
probably more #integrations-archived then
thx
hey i know there was a change a while back that changed icon color when a certain type of switch is on/off, i've just added some mqtt switches and can't seem to remember how to make then display the same as my other integrated switches.
state_color: true in the card config
thanks
Hey folks. I just installed a nodemcu to control my two garage door openers and it also includes a sensor for each door to tell if it's open or not. It uses two switches for the relays, one for each door, and two binary sensors for the door sensors, obviously one for each door.
In HA, all four of these show up as separate entities. I'm looking to create a button for each door that also display the garage door icon of an open or closed door based the value of the binary sensors.
How would I go about that in lovelace?
Edit: I figured it out. Have the button use the sensor entity then on press, call the switch toggle for the relay entity.
guys - a question - i would like to add left/right fixed arrow controls at the top of all views which navigates to the next left or right view. i added the arrows for all views with action "browse" to the next and previous urls. q1 - is there a better way to do this? q2 - the main problem with this is that these arrow buttons are not fixed (static) - so if you scroll down the page they won't be accessible until you scroll up again - anyway to make them fixed?
@idle nacelle anyone?
Anyone aware of a frontend integration that would allow me to display a card when I click on an entity, instead of the entity detail?
it's possible to use a card for on/off switch light and have the circle for brightness ?
everytime i reload my lovelace it asks me which card i want to add... "nothing! leave me alone! it's fine the way it is!"
how do i tell it to bugger off?
@west sigil https://github.com/custom-cards/button-card
@spare meadow update or uninstall card tools
guys how do I hide the main title bar on the dashboard/all pages?
Does the Lovelace conditional card actually work? If so I am doing something wrong here! I set the conditional to be visible when a sensor is in the 'On' state. I am displaying that sensor in another card and it definitely says on but the card I setup to be conditional does not show. If I go into edit then I can see the content in the card. Feels like it is ignoring the condition but I do not know why 😦
'On' isn't a state'. 'on' is.
If you're unsure about the real values, check the entity in
> States
The UI will often show 'friendly' values for things.
What is the theme attribute of the icon color of a button-card switch that's switched off? e.g. https://www.dropbox.com/s/xe0pwemqg91btci/ha_screenshot.png?dl=0
hello, could someone give me the name of the card to use on the left part of this dashboard please? or there is the time and weather with the badges
That explains it. Ta Mono I had bee trying to figure out where to see the actual value. Hadn't put together it was just a matter of scrolling down the list of the States. I thought I had to put the Entity in the top to see it then there was not get states only set. Figured it out now, thank you.
Hi All! Hope I'm asking in the right area. I have a Home Assistant installation, with HADashboard in order to use Floorplan. I have just setup a Tileboard dashboard, which is great, on a wall embedded tablet. Looking to see if I can get the floorplan as an full screen entity within Tileboard? Is this possible? Thanks!
But this is a Tileboard question I guess?
Is that Lovelace?
That’s what this channel is for
Seems unrelated to Lovelace and related to HADashboard/Appdaemon : https://community.home-assistant.io/t/tileboard-new-dashboard-for-homeassistant/57173/17
@dark dirge Thanks Rob, but I just asked in the AppDaemon section and they told me to come here....
AppDaemon isn't HA, so you're not going to get much help here.
maybe the forum thread: https://community.home-assistant.io/t/tileboard-new-dashboard-for-homeassistant/57173/3443
or, who knows? maybe somebody else will come along
I have multiple lights in a group with a single switch to turn them on. Is it possible to change the more info popup when you long press?
I would really like to have toggles for all the switches in the group
That screen.
perhaps through browser_mod: https://github.com/thomasloven/hass-browser_mod
Exactly what I need I think. Thanks @dark dirge
My Lovelace header (navigation) disappeared with the latest update. Any fix? I can briefly see it when refreshing. Cache clear didn’t help
I can see in my inspector that it has a display:none on it...
it looks like a vertical stack or similar with several cards
Fixed my issue. Damn custom header
Just updated everything to the latest
what fixed your issue? updating to the latest CH?
Yep basically. I hadn’t installed HACS previously so I had sorta manually added custom header. Just deleted the manual install, installed HACS, and added the latest custom header through there
Damn Custom Header, always fixing things with updates...
Basically haha
Hey folks, I've successfully gotten HA to allow remote access via DuckDNS. However, I can't get the thing to load on my Tesla's browser. (First world problem, I know.) I'm just wondering if anyone else has had tried to connect to HA this way and can help me out? It works fine on my phone using Chrome.
so i'm using life360
is there a way to show a text like
only "home"
based on the place of my entity
i'm using ui-lovelace
Hello everyone, is there a way to make the title of a lovelace card (entities one) actionable ? To display another lovelace tab for exemple ?
Hi, does anyone know how to disable the "floor plan" view popup on each time i log into hassio?
Does anyone know were we find the list of "Hass:" icons?
@plush dune If you mean the material icons that are used in the UI they can be found here: materialdesignicons.com
I have a history graph card that has an incorrect unit of measure that I corrected on the sensor but the card did not reflect the change and stopped recording changes in value. I tried deleting the card and adding it again but the error was still there. How can I fix this?
Anyone have any idea how you change the alignment or justification of buttons within a horizontal stack with card-mod? Vertically the stacks sit right next to each other but within a horizontal stack it evenly spaced the buttons across the screen
I’ve tried overriding margin, padding, and various alignment CSS calls across every level I can think of.
You have to override the internal padding on the horizontal stack's grid
I am trying to add bore well water pump (20amp) to HA. Please suggest a relay that works with 20amp/240V
@fickle pasture #diy-archived
I am not good in electronics and looking for some ready available
So all sudden, my system went offline. It's on, I see it on wifi, can't remote in.
I've lost wifi con connection
I think you're lost. This channel is for creating Lovelace dashboards. If you're having trouble with your system, go to the right installation channel.
Not sure which install you're using? If you have system_health enabled you can check Configuration -> Info, or see the following.
-
If you're using HassOS, flashed an image, or booted a VM with an image you're using #330990055533576204
-
If you installed Linux and then ran a script to install HA and have add-ons then you have #330944238910963714
-
If you're running
dockercommands or use a Docker manager and have no add-ons then you have #449717345808547842 -
Finally, if you use
pipto install or upgrade you have #551864459891703809
Having difficulty chosing an install method? See this blog post for guidance.
You have to override the internal padding on the horizontal stack's grid
@tacit cave Any idea what the CSS label is for that grid?
@near zodiac it's probably not labeled, you'll have to inspect the element
Juste question, it's possible to have 1 card with the light and the brightness with other entity
in yellow arrow is the switch sonoff (on/off)
but in blue arrow is necessary to me to change the brightness on other entity (philips hue)
it's possible ? or maybe a card to that in HACS ?
thank's for your help
Hi guys, any chance for some help? I have a Lovelace UI view, with a picture element. I want it to appear in the middle of the screen on my tablet, but instead the image appears at the top. Can I set this at CSS level for the picture element itself?
@proven rock you can make a template light to do that.
@spark fern if you use custom cards, you can get this done by placing “empty cards” in a 9x9 grid using 3 horizontal stacks in a vertical stack. Place your card in the second row second column. Make sure the view is set to panel: true.
@tacit cave Thanks, I cant seem to add anything extra once I have the floorplan in there and panel enabled?
If you do that with the vertical stack, it will fill the page
If you do that with a floor floor plan only, that will fill your page
But if your image has a shitty aspect ratio, it won’t
You could also try the custom layout card
@tacit cave Thanks man, appreciated, will take a look!
@tacit cave thank’s for your reply, do you have a example ? No card existe for this ?
Could this error stem from a markdown card that iterates over a sensor with null value (not updated yet) or is it unrelated? https://pastebin.com/MuYadW8G EDIT: Looks like it was. Need to set an initial value for my sensor that isn't null.
Hey all! I am on macOS 11/iOS14 and having issues with the frontend... The interface refreshes whenever there is a confirmation dialog. I think I heard this was a known issue, but is there a workaround/fix?
Ooh! Thanks!
hi, i wonder if there is a sensor card for binary sensors? i want to visualize the time in which my motion sensor triggers. the sensor card wants floats and gives me Specify an entity from within the sensor domain.
You just want to see if it's on/off?
i found that i can just see it in the logbook with exact timestamps
Yes. And if you still want a card, just use the Entity Card.
ok thanks i will check that out
What is the right way to delete the generated view ? I did deleted it from my lovelace config but it's still there 🤔
You don't delete it, you just set another one as the default instead and it'll be hidden.
Defaults are per device, btw.
ah ok thanks
Hi guys. Had to reinstall HA (Raspi) as it got corrupted. Made a copy of all files (not a proper backup, just copied the files) but I am not able to find anywhere my lovelace dashboard code to use it as reference. I have used a few Mini Graph Cards. Is it saved somewhere or I've just lost it?
Did you use YAML mode or UI config mode?
I used UI for most of the cards, but the Mini Graph cards were created manually. It wasn't easy to tune them to my needs, so it would be really helpful to be able to see the code
If you copied your whole config folder, your YAML for Mini Graph cards (since they were configured manually) will be saved wherever you saved the YAML for them. As for the UI configs, those are stored in the .storage folder under lovelace.XXXX . I am not sure if you are able to directly load this back in though.
Thank you, @solemn narwhal
In the .storage folder I've found a 'lovelace' file with the code in a format similar to XML. Not ideal, but less is nothing. Thank you!
I have a couple Tasmotized Sonoffs operating lights. I'd like to change the device class to light for these so they show as lights in the frontend. I can change the icon, but I wanted the nice functionality of the yellow/blue colors for on/off. I assumed I could just change the device class in customize but that didn't work (I assume the device class was simply: light). i.e. after the entity name line, I have "device_class: light". Is there a way to do this via device-class/customize.yaml or do I need to make a template?
Nevermind. Apparenty, that was removed in v.106 and moved to the UI. 🤦♂️
Is there a way to call multiple services on a tap_action?
Yeah, make a script and call that.
I guess that could work but im trying to have 9 pictures that all play different spotify playlists so it would mean creating a different script for all of them unless there is a way to define a variable for each of them that is input into the script
That's one of the purposes of scripts, so yes, you should be able to do that.
That's to define them. This is to pass them in: https://www.home-assistant.io/integrations/script/#passing-variables-to-scripts
Plenty of examples on there and if you get stuck, you can ask over in #automations-archived
ok, thanks
name: Play Playlist
show_icon: true
show_name: true
show_state: false
tap_action:
action: call-service
service: script.turn_on
entity_id: script.play_spotify_playlist
service_data:
entity_id: media_player.spotify_xxxxxx
media_content_type: playlist
variables:
media_content_id: 'spotify:artist:53XhwfbYqKCa1cC15pYq2q'
type: button```
Apparently this configuration is wrong can someone help me fix it?
What part of it is wrong? Are you getting an error?
The entire channel said so? 😮
Sometimes we can be surprisingly consentual.
yup
For my Hue lights, I can click the light's icon in the lovelace UI and if the bulb is on, I get a color picker so that I can set the light's color/brightness/temperature. I want the same color picker for a template light, so that I can use it as an input to some other function. Any idea how to get this?
wow. Template lights do not support color picking without replacing some files in HA. Any suggestions for a wife friendly workaround, e.g. one that makes sense? I want to use a color picker to define some variables (e.g. r, g, b, brightness).
Hi guys, how can I set text to null on stage-badge cards within a picture element?
Came across, https://community.home-assistant.io/t/hide-text-for-badges-in-picture-elements-card/134418, but no win sadly.
Hi, I have tried to search forums etc but I can't find the info I'm looking for, is there any way of detecting the state of integrations running? Such as deconz, duckdns etc, I noticed that today that deconz appeared as running in the integration view but it was not, so if this can be visualized and to setup notifications in the frontend it would be great, is there a way to do that
Integrations don’t really ‘run’
Yeah well, it was "started" then in the integrations but not actually "on"
They all do different things at different times in response to different things
Ok
I don’t know what it would mean for an integration to be configured but not be ‘on’
If you mean ‘not configured properly’, then you may see errors in the log or entities be unavailable, but it’ll be different for each integration
Nah it has been working flawless for a long time, I just noticed it not working today, so I had to go to the integrations page and switch it on even thou it was on, but I will see if I can work out a way for it
I don’t use Deconz and didn’t know it had an explicit on/off. That would be specific to it and not typical
I wish a user could enable and disable integrations from the UI, but that’s a different thing
I see yeah this was in the supervisor->add ons section where it appeared as on but wasn't actually on
I will check a bit and investigate it thanks
@pine bane you're in completely the wrong place for questions about #add-ons-archived... but here's a previous conversation about checking the running status of add-ons: https://discordapp.com/channels/330944238910963714/672220642099200000/747037583628042282
If you're still having trouble, continue the discussion over there. This channel is for Lovelace dashboards.
I'm assuming you mean add-ons rather than integrations, seeing as both DuckDNS and deCONZ have add-ons.
Hi guys, how can I set text to null on stage-badge cards within a picture element?
Came across, https://community.home-assistant.io/t/hide-text-for-badges-in-picture-elements-card/134418, but no win sadly.
hey guys, quick question
can i some how get a icon and a name in the menu bar in HA?
The custom-header component has a setting to display both text and icon.
https://imgur.com/9DWDzS5.jpg 👈 Does anyone else get this issue? I was trying to type volume_level into the UI on the iOS app (can replicate on Safari too so not just an app issue) and I get the error in the screenshot as soon as I type the first letter (in this example “v”)...If I then format the YAML correctly and hit the three dots to “Edit with UI” it’ll then show in the UI again the way I’d expect...
Data has to be an object. You are trying to give it a string
But if I straight away paste volume_level: then the error doesn’t appear at all?
It feels like the error maybe comes too soon (or something like that?) ie. it’s trying to validate what I’m typing too quickly maybe? (I literally have no idea though so could obviously be completely wrong!)
To add to data: as an object you need to put volume_level: on a new line and indented two spaces
Just so I make sure we’re on the same page, I’m attempting to type data into the circled box in the UI https://imgur.com/ZGk7Phr.jpg
That's not what your screenshot showed
As soon as I start typing I get the error in my first screenshot which adds the “v” next to data:
Yeah apologies, I realised I only have half of the picture there with a poor explanation
So I’ve given you info out of order really - I try typing in the white box in the UI (circled in red in my last screenshot)...as soon as I type one letter (in my example it’s the letter “v”) the UI then errors and shows me what is in my first screenshot
With the error, if I format correctly as proper YAML and then hit “edit with UI” once again, it comes back to normal as expected
I can avoid the error altogether if I paste the information straight away - In this example I’d paste volume_level: and I’d be able to continue as normal
Ah, I see. Yup that is super broken. Check the frontend repo for an existing/closed issue. If there is not one there then you should open an issue
I’ve had a little look so assumed it was something silly, clearly not so I’ll make sure to raise it!
Hi, I added a tasmota switch via mqtt. I cant find why it displayed in the header: https://imgur.com/a/5HxuBwk
What is the problem exactly?
It shows all entities next to my username
looks like you're using the auto-generated dashboard
FYI: Just had another look and there is actually a bug already raised for this issue by the looks of it 👍 https://github.com/home-assistant/frontend/issues/6577
(My issue, not related to Micro’s issue)
It based on the auto dashboard. I found that I can delete it in the raw editor. Thank you
Just starting to jump in to front end stuff. Is it possible to have a lovelace card that pulls text and artwork directly from somewhere else on a home LAN?
A "now playing" card? Or is it possible to edit a media player card to do something similar?
@hollow fox i use custom:button-card for that.
i set a sensor to the url of the media and then use that sensor as the background property of the custom card
I have yet to find anything that the custom button card cannot do
you could build your entire interface in a custom button card 🙂
mine is a series of button-cards, but yeah.
mine too
very versatile...
i seem to be suffering from a failed upgrade of the custom-grocy component... hmm
"loading data" nothing more.
sighs
Thanks, I'm looking into that now. Trying to pull data from a PC regarding whatever game is currently playing and throw the title & artwork into some kind of media player-esque card
well I know discord usually knows what game is playing on a PC .....
like "Home Assistant"
The data I can get - I can pull that from launchbox
ahh ok
It's the frontend bit thats bewildering me at the moment since I've never really messed with it before!
well I don't do bodywork 😄
Ha starting to wish I didn't!
When adding an image to a custom button card, is it possible to add an iframe, or does it have to be the path to the actual image file?
It has to be an image
Thanks that confirms what I've been banging my head against. To do that I have to build the image url from separate strings and work with the text. Doesn't seem all that straightforward at the moment! Templates and backslashes seem to be a bad mix
I'm not sure why you would need to use backslashes, but backslashes define an escape character. To use them literally you have to do two together \\
I need to build the image url from a couple of strings that use backslashes. Escaping the backslashes is doing some awfully strange things! Might need to move over to templates
Hi all, noob question about the frontend/lovelace that I can't seem to figure out. How do I show apps in the HA sidebar for non-admin users? Specifically Grocy, which is directly available from the add-on store
I understand how to do panel_custom and panel_iframe, and have used it for TasmoAdmin, ZWaveGraph and a few others that didn't have the "show in sidebar" option. However, Grocy has the "show in sidebar" option but only I as an Admin user see it. My wife's non-admin account cannot see it in the sidebar
I didn't know that was blocked, but if it's really a web UI link that you want to expose, you could use an panel_iframe
Yup. This is my wife's sidebar...
https://i.imgur.com/avoRQIm.png
And this is my sidebar (admin user)
https://i.imgur.com/dBCwu8X.png
The reason ZWaveGraph and TasmoAdmin show up on hers is because they are added thru panel_custom and panel_iframe respectively. I guess that ignores Admin and non-Admin permissions
Hm, doesn't look like it's "truly" a Web UI link. It's authentication is baked directly into HomeAssistant
If I copy my complete internal HomeAssistant Grocy link (hassio.internaldomain.com:8123/a0d7..._grocy) it ONLY works for my account, not for hers at all
yeah, you'd probably need to expose a port and use a direct link
it looks like you can add whatever port you want in the Network configuration section (disabled by default)
@dark dirge just wanted to say thank you, it worked. I added a port, and created an iframe panel in my configuration.yaml. Shows up for all users now 🙂
so what is panel view for? i just noticed it but can only show one panel
Hello eveyrone
I'm trying to setup picture with badges on it and style badges bases on sensor state. I'm using card modder. The problem is that if I will put style: element with top/left it works but when I'd like to have conditions I need to use:
style: |
.:
and then none of css attributes is applied.
Here is my config example: https://pastebin.pl/view/79fa5f6f
Do you have any idea what I'm doing wrong?
@bitter compass Panel view gives you control over the while screen for layout, eliminating the badges and increasing the available width.
Described in the docs: https://www.home-assistant.io/lovelace/dashboards-and-views/
Question, I set my wife up as a new user (not admin) I created a new Lovelace dashboard for her, but I don't see a way of assigning it to her nor do I see a way for her to select the new Dashboard when logged in as her. How can I get her user to default to the new dashboard?
You set the default dashboard in the profile. Circle with initials in the lower left
Ah! Thank you!!!!!!!
Is it possible to remove the legend in the history_graph card?
Not according to the docs. You might want to check out the custom card mini-graph
Alternatively, there are ways to mod cards, including the custom component card-mod.
Got it, thanks!
Hi all, not sure if this is the right channel. let me know if i should redirect this Q:
Does anyone have experience installing a Sonoff TX T2? I wanted to replace my current 2-gang fan lightswitch with a Sonoff TX T2 but it looks like the TX T2 won't cover the entire hole of my old 2-gang box. What do people do to fix that? Re-patch the drywall and then cut a new hole from scratch?
you can get an adapter plate that will take 2 gang to single gang then you patch the rest
but this isn't really a #frontend-archived question more, #diy-archived or #general-archived
#diy-archived. gotcha, thank you. Thanks for responding too. I did see someone on amazon do that and personally i didn't think it looked too great
where can I find how to add a person as a litte round icon at the top of the dashboard like the one that comes by default in HA? I've tried looking at the docs in HA for cards and person detection but maybe I'm not looking in the right place?
They're called badges
ok. thx. When i click on the "+" sign to create a new card I don't see badges. I'll google and see how to add them.
they're not cards, they're in a separate section
can i somehow change the location of my home in the Zones tab?
Not in the zones tab, no. You change it in the general configuration page
I have a button card in Overview linked to a scene, but when I click the button it shows:
"Failed to call services scene/turn_off. Service not found."
If I open Configuration > Scenes, and click "Play" for the same scene, it works without a problem.
Any thoughts on what to check to get the button card working again?
NOTE: It worked normally last night.
I highly doubt it worked normally last night
Hmm, so I have two scenes:
Office On
Office Off
In Office On, it sets the state of two lights to "on", and vice-versa for Office Off.
Is that not a valid setup?
that doesn't change the fact that scene.turn_off does not exist
a scene to turn things off is fine, but you're turning it "on"
Right, I'm with you both. I just added the button to Lovelace, and here's the config:
entity: scene.office_on
hold_action:
action: more-info
show_icon: true
show_name: true
show_state: false
tap_action:
action: toggle
type: button
you can't toggle a scene
you'd need to have two buttons, or call a script that uses device states or an input_boolean to call the right one
you said you have two scenes already (one on, one off), but you're only using one of them
I had noticed that as well — what should that be set to exactly? I see there are 6 options currently, but none seem to make sense for this to be honest.
"Tap Action (Optional)" specifically.
whatever you want to happen when you actuate the button
could be call-service, and you can give it a service and entity
one of mine:
tap_action:
action: call-service
service: switch.turn_on
service_data:
entity_id: switch.garage_door_switch
if you don't give it an entity as part of service data, then it acts on the entity you provided to the card itself
Wow, that was way more complex than I expected! I think I have it working now though, thanks for the help!
I am having an issue with my cover entities on lovelace, the upper button is not responsive, just like i can't clic it. I don't have any issue with stop and down buttons, the up feature works if i directly call the service cover.open_cover does anyone have any clue to how to solve this ?
This is for all my covers*
Does the state of your cover change when you open/close it?
no, it's always open
Well that's your problem
ok but why ? 🤔
and how to fix it ?
i am using shellies 2.5 and the state is correctly reported there
i mean in shelly interface
it's not being passed to HA then
🤷 you need to get the proper state in HA. Check your configuration
yes but is there something i cna do ?
i am using the hacs shelly integration
everything is reported through dicsovery
mqtt?
no mqtt
oh wait you said
You'd need to ask the creators of the custom component
hacs shelly
yes hacs shelly
you're using 1.8 on your shelly?
Yep thats what i linkee
Linked
Will add a comment just in case but it is probably related
the reason I posted that was the person was using the same firmware as you and was told it doesn't work yet with the 1.9 version
Hello
how's everybody?
I'm having some trouble with saving an automation item.
In the actions, I select one of my philips hue color lights. But I switch to YAML.
I made some changes. Like brightness_pct, but I tried a bunch of the color properties, but when I add them it doesn't let me save the automation item.
I tried color_name, rgb_color and xy_color
none does it let me save.
What exactly have you tried?
as for the format. I used rgb_color: [0,255,0], xy_color: [0.4,0.4]
and color_name: green
What does it say when you try to save it?
Okay, not sure if i am in the right spot. Also a warning I am like level 0 HA ninja at this point...
I am trying to make a Sim Garage Door Opener like I had in Samsung's DumbThings. I am trying to combine an sensor.garage.acceleration + binary_sensor.garage.contact and a switch.garage.
Id like to be able look at the garage Icon and see when open when its closed and show when its in motion. I have searched the web and have only found peeps that combine binary_sensor.garage.contact and a switch.garage
When I click the orange save button, it does nothing.
It doesn't give a warning message anywhere?
I just looked at the network output
{"message": "Message malformed: extra keys not allowed @ data['color_name']"}
This is the exact YAML:
brightness_pct: 80
device_id: a0334f0ebc0744d6881f45f2365eb776
domain: light
entity_id: light.color_light
type: flash
color_name: green
Device automation, yikes. No idea
Is there a different way of doing it then?
Yes. With the service light.turn_on
Is the service data same YAML syntax?
https://www.home-assistant.io/integrations/light/#service-lightturn_on this gives all the available options for the service
Yeah, but the syntax of how to fill it in?
because it's not accepting them either.
is the color you're trying listed in color name?
There are examples on that page. What exactly are you putting in?
I'm sure green is a valid color 😉
well you would think so
but sometimes you see forestgreen darkgreen greenyellow
and no green
but I see it's supported on the list
🤷 I've never had an issue
I've seen it on cheap bulbs
You need to show us what you're trying
also if that above paste is exact yaml it's not indented
I filled in rgb_color: [0,255,0] and it reformatted it to
brightness_pct: 80
flash: short
rgb_color:
- 0
- 255
- 0
it says Three comma-separated integers that represent the color in RGB, within square brackets.
okay, what error is it giving you?
so your rgb_color is formatted wrong
that's valid
oh wait I see
It reformatted it all by itself
I'm not getting any error.. It's flashing and everything, just the color is not green.
what color is it?
white
Doesn't seem like the brightness is working either
I lowered it to 50, but still bright.
Does it work if you try to call the service manually with the services dev tool?
I removed flash: short and now brightness and color works.
I guess those don't work with flash property?
perhaps
Apparently not
bummer
tried long flash?
Is the light on when you try to run it?
have you tried setting the color and brightness and toggling the light?
I think I see what's happening. Just noticed it with the long flash
The light turns on white, then it starts to change to green
but it flashes so quickly that it doesn't completely turn green.
ok so make another step in your automation toggle the light
Sounds like a device limitation to me
Philips Hue Color
Sounds like a device limitation to me
that's why I asked about the long flash
sometimes the leds take a second to get the right color
and HA is too fast for it
I've never had that issue
again cheap bulbs
I had that issue making my light toggle when my phone is fully charged
the damn thing flashed so fast the bulb never got a chance to turn on
some of these LED/CFL bulbs take a smidge longer to "warm" up
More likely it is poor communication. LEDs don't warm up
well my LED bulbs aren't smart
the sonoff's they are wired to are
I had to add a delay in the turn on turn off but then found toggle
More likely it is poor communication. LEDs don't warm up
and you're right it's my poor communication of the process
what I really meant was simply turn on
LOL
some of the CFL bulbs flicker first too
could buttons/scripts/scenes in entities cards get an "action_icon" variable that you could use instead of "action_name"?
then you can click on an icon instead of a word to perform the action
Hello all any one else is having problems accessing the not used entities menu in Android? I'm not able to open the menu in the app or even in the Chrome browser! This only happens in the android, in the desktop app works OK!
can <app-toolbar> be adjusted in height? I tried (and failed) with JS
Yes and no, it's doable, but not easy, the height of that is only half of what you want to adjust.
You are better of using CH instead
CH?
Custom Header adds enhancements and customization options to Home Assistant's Lovelace header. Features include: styling/hiding of all header elements, dynamic changes with Jinja templates, per user/device configs, compact mode, footer mode, split mode, and more.
custom header can do that? awesome
If anything can it can, since it replaces the header completly
@timber flint If app-header-background-color doesn't exist, primary-color is used instead.
But that also affect other things.
seems impossibru 😦
A card-mod theme could probably do it...
card mods can edit header properties? 🤔
thomasloven Thank you very much, I found out the same, I changed it and worked correctly.
its looks perfect now.
@formal tide In your theme file put yaml card-mod-root: | app-header { max-height: 50px; }
You may need some more changes, and maybe style app-toolbar too to make it look good, though.
But that should get you started.
🥳 thanks @polar kelp
Card-mod 2.0 only.
I believe I might still run into problems because app-toolbar is bigger in a custom panel view (what i want to make smaller) - and this view doesn't have cards on it... guess I'm stuck and/or too stupid
is weather stuff here? or in integrations? my forecast displaying incorrect since i updated my system on the front end but not sure i have it set up properly
Who knows 🤷♂️ what is "incorrect"?
when it says its raining put no rain in forecast for a week?
and temparature is way off? like its pulling another location
it used to work, using darksky.
i had their api in secrets file but copied it directly in configuration file now and rebooting
that seemed to fix it. weird. does the secrets.yaml not work amymore?
or did it change how you set that up?
so strange, my UI just turned all my lights on. i turned them off via their toggles and says its off, but all lights are still on. wont go off?
are you using zwave?
yep
wait till ``` trigger:
- platform: event
event_type: zwave.network_ready - platform: event
event_type: zwave.network_complete - platform: event
event_type: zwave.network_complete_some_dead ``` is finished
yeah, was just able to trigger it successfully. why would they all come on after reboot and not last known state?
what is that markup you posted? is that something i can put into a card to monitor?
you can use these triggers as conditions to show the cards only when the network is ready
I am wondering if I have something wrong with my own installation, or if there is a bug in the version I am currently running. I am running 0.114.4 and I've noticed a change recently (I think only since the last upgrade) in that any entity which I have displayed on a card which should "chart", for example temp or windspeed has only a straight line, even though the entity may say that it was updated on that same chart as recently as a few seconds ago. This is not tied to any particular entity, but applies to all; on/off charts for lights and switches, open/closed for contact sensors, rain, temp, etc. Is anyone else having this problem?
Can I change only this type of text color what is invisible right now? The problem is that its using primary color now, Can I only edit this type of text?
https://imgur.com/a/hc1kCIq
Please someone help me how can I get the name of an unused text color?
Also cannot see the texts on the bottom of the integrations. https://imgur.com/a/ot4xDP0
Found finally: mdc-theme-primary <- This is the text color
I want to add the "default" view of all integrations to a lovelace ui. Is there a way that HA can automatically do this? Or would it all have to be done manually? like, essentially just have everything that can be shown with certain integrations, automatically show up and then modify from there?
It seems to happen the first time that you install HA and get everything set up, but that dashboard accidentally got removed and I want to get something similar back without having to reinstall
Go to Configuration -> Lovelace Dashboards and add a new one.
Also, I think that if you open the raw editor, delete everything and save it will revert to the auto generated one.
It gives you a warning before it will let you save a blank configuration
Are you sure you want to remove your Lovelace UI configuration? We will automatically generate your Lovelace UI views with your areas and devices.
ill try that thanks... Also, anyone know how to move the side bar to be along the top instead?
@polar kelp that totally worked. Thanks so much it helps alot
Does anyone know how to make the sensor.time display a US AM/PM format? I'm thinking its a template sensor but im being a bit lazy and hoping there's a different way
I think that’s going to be a template, either a template sensor or a Lovelace card that supports templates (depending on where you want it displayed )
I just found the template in the community page
at least i dont have to figure out how to write it 🙂
hello everyone,
Is there a way to have some button that should open a map page with showing a particular device(I mean putting the device in the center of the screen)?
Does anyone know if it's possible to use a service call, where you can change the default dashboard with? I want to create a button card, which sets the default dashboard to different one, with one click of the button at that view
I know I can set it to go to profile page by using url as an action. Bu I want to eliminate the process of choosing a dashboard entirely
and have it set just with one button press. I couldn't find a service call for this, so I wonder if it's at all possible
asked in #automations-archived, got advise to ask here
Is it possible to open an app on android by using a button in lovelace? I've got it working for youtube by using the url https://www.youtube.com but this won't work for netflix or amazon prime.
Is it possible to open an app on android by using a button in lovelace? I've got it working for youtube by using the url https://www.youtube.com but this won't work for netflix or amazon prime.
@tranquil saddle https://github.com/jordanna/nflx-deeplink
if you use the deeplink it should work
basically, it depends on Android and the app if it opens or not. Deeplinking should work always, if you can find the deeplinks
a lot of apps have a deeplink
Okay. But this deeplink is for a special movie or episode? But there is no link which opens just the app?
that depends on the app
for instance, Moovit (navigation app for public transport) uses moovit://
if you use only that, it opens the app
Okay. But the keyword deeplink helped me. So I can search for it.
yeah, there definitely should be a url for that
since if you open Netflix website
you see a link at the top to open teh app
at least, on iOS it is
I think Android too right?
which is just a url actually, maybe you can inspect element
and find the url
Actually it was just https://www.netflix.com for netflix.
I just wasn't logged in in the browser.
I started having an odd error which is blowing out my logs...
ERROR (MainThread) [homeassistant.components.http.view] Unable to serialize to JSON: '<' not supported between instances of 'str' and 'int'
Which then dumps a list of my entire entitys each time it happens (which is something like 200k+)
I haven't made any changes to anything recently, so I'm guessing some weird metadata in entity state/attributes somewhere is producing something that's getting interpreted as JSON syntax, but nothing looks super obvious to me, although it's a lot of entity data to sift through...
Anyone seen anything like this before, or have ideas of what might be a culprit? They seem to happen at 10 minute intervals, which quickly results in a rather gigantic log.
I am starting to have issues when adding cards in Lovelace where it is hanging. I have to wait for 30 to 45 seconds before I can do anything. I have tried moving to mariadb but this is still happening. I have tried checking the logs but do not see anything. Any advise?
Can I make a line on the markdown card to trunc to the width of the card instead of continuing on a new line?
@broken marsh are you saying that you have a dynamic message in a markdown card and sometimes it is too long to fit and word wraps? and you want it to truncate instead?
take a look at this filter: https://jinja.palletsprojects.com/en/2.11.x/templates/#truncate
Hey, the new HA front end only shows brightness when lights are on. Is there a way to show the brightness slider when lights are off?
Can someone help? I have an issue where im using a proxy i wrote in node.js and it gives this error on ha login page like Error: Something went wrong. This seems to work fine connecting directly to ha but on the proxy no luck. I do have proxy settings:
http:
base_url: (web page)
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
Also in requests i notice theres a 405 with an octet stream but not sure if thats the issue now
If you can i might sleep soon so ping and ill look in the morning
@compact nexus Not exactly, I want it to trunc when it's the end of the width of the card. Sometimes that will be at 40 chars but sometimes 30 chars if on mobile etc.
Hi there 👋,
When writing a custom lovelace card: How can i open the small entity history preview window which is used in the hui-entities-card ?
How does it get handled? Via Aria?
Right I feel absolutely stupid but what am I doing wrong when trying to grab an icon from material design? In the icon override on my card i am adding mdi:FloorLamp but it just blanks the icon then 😦
@small gulch try mdi:floor-lamp
they are the same names as in the cheat sheet: https://cdn.materialdesignicons.com/5.4.55/
@hybrid berry you absolute star! Pretty new to HA so just trying to get everything nice and neat first 🙂
Does anyone else have problems with the upcoming media card not pulling cover images? Seems to work for Plex/Emby but not Sonarr/Radarr
It just shows up like this https://imgur.com/OYKtZdl
Can anyone help me with the dual gauge custom add on can't seem to get it working have added as per instructions through HACS but when I try adding a type: custom:dual-gauge-card I get an error saying it can't be found, any help would be appreciated, also if any suggest some other gauges that I can try for my emon power monitor
hello
You can help with the installation https://github.com/benct/lovelace-multiple-entity-row
I have an error
entities:
- sensor.bme280_pressure
entity: sensor.bme280_temperature
name: One entity
type: 'custom:multiple-entity-row'```
chunk.c136a66895309b59c3fe.js:1 Uncaught (in promise) http://192.168.0.22:8123/www/plugins/multiple-entity-row.js
multiple-entity-row.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
chunk.c136a66895309b59c3fe.js:1 Uncaught (in promise) http://192.168.0.22:8123/local/multiple-entity-row.js```
the path to the file
www\plugins\multiple-entity-row.js
- url: /local/multiple-entity-row.js?v=3.2.0
type: module```
@fallen cobalt your path to file doesn’t match your url. You’re missing plugins in your resources url. Local/plugins/...
Local only maps to config/www.
- url: /local/plugins/multiple-entity-row.js?v=3.2.0
type: module```
Thanks a lot
How do i make space between two vertical stacks? Like in the picture here, i want to make more space between these two stacks https://imgur.com/a/usm7d5w
card_mod could probably do it
It’s a bit of a finicky process for me, though. Lots of trial and error
I usually use it to remove or reduce padding/margin
Only padding-top seems to be working.. :/
Nothing moves when using padding-left and padding-right.
hey is it possible to create map card with every lightning strike which is added by Blitzortung component?
if i'm running home assistant in "kiosk mode" can i run two separate instances of HA, one headless, one touchscreen? i would love to see an architecture diagram of a touchscreen wall dashboard using a raspi4 and touchscreen lcd.
@hybrid berry You fire a hass-more-info event that's caught by the home-assistant element. Here's an example: https://github.com/thomasloven/lovelace-card-tools/blob/master/src/more-info.js#L4-L11
And this: https://github.com/thomasloven/lovelace-card-tools/blob/6d5ae3800e4937aa424edc17108f43b964aecce7/src/event.js#L3-L16. Ignore all the if(entity) stuff at the bottom. Just set entity to this in your card and it will bubble to the right place.
So basically: javascript ev = new Event("hass-more-info", {bubbles: true, composed: true}); ev.detail = {entityId: 'thing.your_entity'}; this.dispatchEvent(ev)
thank you very much 👍 @polar kelp
hello, i was wondering is ther anyway to ad a passcode to a switch?
The alarm panel isnt seeming to do it
you mean a passcode card before you can access the switches?
I have a esp-01 for my garage doo and i wanted to add a passcode so it cant be triggered by miostake by my kids or whomever
Well then! Thanks a bunch I'll try it out
Did any of you saw this problem already? I want to add a mini-media-player, I choosed background Playstation picture, but as soon I save it it goes away, when im writing or refreshing the page it seen for a few seconds, but as soon I click save or wait a few seconds the picture goes away. https://imgur.com/a/iKTVCZh
