#frontend-archived

1 messages · Page 175 of 1

dark dirge
#

or some cards have a "navigate" tap_action:

dawn acorn
#

good to know

primal tiger
#

Hi guys! Is there a way to make something popup when an entities card title is clicked? I would like to make the "group.all_lights" popup when the title of the "Lights" card is clicked, as it used to be in the old UI. Thanks!

vapid field
#

Hi!

I get an following error when i was loading HA
Logging in with Home Assistant Local.
Error: Something went wrong

grim compass
#

I have a mqtt thermostat valve which allow to be configured for workdays / holidays through a list of dict, does anyone have an idea as how I could display/edit it in lovelace ?

"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}]
formal tide
#

i just use the calendar integration for that

autumn storm
#

One message removed from a suspended account.

tiny oyster
#

@errant plover the same entity, in list it dont stay yellow 😮

unreal lodge
#

Hi folks! How do resources work work when you use the UI mode, but have a certain dashboard in yaml mode? Any complications?

polar kelp
#

Set them up in the UI as usual, and they will be loaded in all dashboards.

unreal lodge
#

great, thank you!

#

I feel really confident in the answers you give me 😆

polar kelp
#

I really hope I'm right...

unreal lodge
#

hahaha me too

#

It looks like they do work but I am dealing with an issue so I am trying to be suspicous

#

(custom:button-card templates are not working for me)

#

well, templating within templates

dark dirge
#

I do that everywhere

#

It works

unreal lodge
#

I know 😦

dark dirge
#

I wonder if service_data is just passed through and it’s expecting the service to interpret it

#

And maybe needs a different template syntax

unreal lodge
#

I've tried multiline and single line to no avail

vapid field
#

Hi!
is there any way to hide/remove the HA headers?

unreal lodge
#

hopefully someone picks up some or all of it

vapid field
#

Yeah, i have seen this post.
Is there any option in lovelace itself when using yaml mode?

dark dirge
unreal lodge
#

Mr. RobC, earlier you said that maybe the service_data is just being passed through. I don't fully understand that- can you pretty please elaborate?

dark dirge
#

I'm just guessing at why it's not working

#

you're expecting the custom button card to replace the template with whatever it evaluates to before passing it to browser_mod

#

I'm just wondering if it won't do that with service_data

#

but I didn't see any mention of templates in browser_mod popups, so I dunno

#

does the custom button card mention that service_data accepts a template? LIke does it work outside of a button card template?

unreal lodge
#

I'll check now

#

yes button card says that included in supporting templating is "Everything field in *_action"

dark dirge
#

weird. I have several nested templates with templates that work (I wish he hadn't overloaded that term 🙂 )

unreal lodge
#

haha yeah I was quite confused by the two types for a bit

#

I suppose technically I may still be 😉

#

it's quite annoying because I want to really go all out on my dashboard, but I just know that if I copy-paste my button config 12 times or whatever I will make mistakes and it will be a bear to maintain. Such a nice feature!

#

I tried re-installing and installing the button card earlier just 'cause. Obviously didn't work.

#

Thank you so much for your help

dark dirge
#

unfortunately, I just uninstalled browser_mod a few days ago and I can't do a quick test with that. Have you tried with something like persistent_notification.create or some other service?

unreal lodge
#

I will try that (probably tomorrow... Feeding infant now!)

#

I did try hard coding the entity in the template and that worked fine

#

So basically indicating that using a card template is working, but the js template is not.

dark dirge
#

Ha, figured it out

#

This works fine:

#
                      tap_action:
                        action: call-service
                        service: persistent_notification.create
                        service_data:
                          message: "[[[ return `${entity.attributes.friendly_name}` ]]]"
#

@unreal lodge

#

I was ready to declare that it just didn't work until I saw the backticks when closely examining that example

errant plover
#

@errant plover the same entity, in list it dont stay yellow 😮
@tiny oyster That's due to your theme.

celest jackal
#

can you add css to lovelace without custom component? I would like to change the header

polar kelp
#

Unfortunately that won't work for most things because of something called ShadowDOM which sandboxes each web element used by the frontend and protects them from style changes. The exceptions are the same variables which can be changed using normal frontend themes.

celest jackal
#

Unfortunately that won't work for most things because of something called ShadowDOM which sandboxes each web element used by the frontend and protects them from style changes. The exceptions are the same variables which can be changed using normal frontend themes.
@polar kelp
Ok, thanks for the info

lean raptor
#

So I have units set in the config file to metric yet my times are shown as AM/PM?

polar kelp
#

That goes by your frontend language setting.

#

Choose English UK GB for 24 hour time.

lean raptor
#

could the language setting have any interference with my automations?

polar kelp
#

No

lean raptor
#

ok

mint geode
#

Hi, since 0.115 I should be able to change the password of other useres, right? I don't have the option, I'm loged in as Administrator. Though the release notes say I need to be an owner. I don't have any user with the group-name "Owner", so I'm stuck, right?

wheat current
#

Yes

#

You need to be owner to do it

mint geode
#

ok, maybe I somehow have deleted my owner user then... no way to get that one back I guess?

#

or create a new owner?

wheat current
#

Only reason I know of, is to go messing with the files under .storage and add your user to the owner group

timber flint
#

Do you know any good site what I could use in iFrame to check the newest movie releases, just to discover some new ones?

broken marsh
#

Why is the ui editor so horrible on mobile? 😛 If I edit a lovelace card and try to delete an empty line by backspacing, it will just remove my keyboard. Backspace to remove a line works on built-in Samsung keyboard but not on Google's Gboard.

celest jackal
#

So isn't there a way to make header changes without custom components?

wheat current
#

You asked the same yesterday, it has not changed

mossy otter
#

now that compact custom header has ended, is there a way to hide the header in 0.166 ?

#

oh, I didn't read the previous comment haha

#

will read up a little bit

#

alright, looks like thomas loven's card mod should work with a theme that removes the header...

unreal lodge
#

@dark dirge 🥳 That did it! Thank you!!!

mossy otter
#
    no-header:  
      card-mod-theme: no-header

      card-mod-root: |
        app-toolbar {
          display: none;
        }

This removes the header, as it should do.

#
    tablet-no-header:
      primary-color: "#191970"    
      card-mod-theme: no-header

      card-mod-root: |
        app-toolbar {
          display: none;
        }

this does not hide the header, but does change the colour

broken marsh
#

Is it possible to add /config/logs to sidebar panel? It's so annoying to scroll down to configuration and then scroll down to logs. 😛

mint geode
#

@wheat current do you mind guiding me through that?

wheat current
#

yes, if you need that, you should probably not even try

mint geode
#

ok, I'll delete the user then and readd him to set a new pw then

#

might would be a good idea to block deletion of the owner user then?

wheat current
mint geode
#

Cool 😎

unreal lodge
#

alright folks.

#

I'm fucking losing it.

#

Mr. RobC saved my custom button templates templates day (or week) with some additional syntax. Worked great!

#

Went back to my instance later on.... back to not rendering templates 🤬

dark dirge
#

refresh cache?

unreal lodge
#

I did 😦 (ctrl+F5 on chrome, correct?)

dark dirge
#

yeah. still working for me. check your logs

unreal lodge
#

friggen bizarre. nothing in there

#

I'm convinced also that I've changed nothing since it last was working

dark dirge
#

try adding this as the tap_action for a button that has an entity (must have an entity defined):

#
                      tap_action:
                        action: call-service
                        service: persistent_notification.create
                        service_data:
                          message: "[[[ return `${entity.attributes.friendly_name}` ]]]"
unreal lodge
#

[[[ return ${entity.attributes.friendly_name} ]]]

#

I copied your code directly

#

(that was the notification)

dark dirge
#

you put that in a custom button card and not just a regular garden variety button card?

unreal lodge
#

I put that in my template: light for a custom button card

dark dirge
#

got me. I had it in a button, but moved it to a multi-layer template and it still works

#

reflects the correct entity, too

#
  btle_template:
    template: glance_parent_template
    tap_action:
      action: call-service
      service: persistent_notification.create
      service_data:
        message: "[[[ return `${entity.attributes.friendly_name}` ]]]"
#

can you share your main card?

unreal lodge
#

yessir!

  - title: button card templates test
    path: button-card-templates-test
    badges: []
    cards:
      - type: 'custom:button-card'
        template: light
        entity: light.table_lamp_level
dark dirge
#

hmmm

kind shellBOT
steady jolt
#

Meh not used to sharing code
Hello,
I'm trying to set two dashboards, I read the dashboard and views documentation but I think that I'm missing something.

My ui-lovelace.yaml file is: https://paste.ubuntu.com/p/MdwpbGdBFR/

And I've created both file in my config/ folder with my previous views
However I do not see more icon dahsboard in the sidebar. Any clues ?

dark dirge
#

@unreal lodge I'm out of ideas. Are you button templates in the same file? or are you including them from another file?

#

I can't break mine right now

#

I don't think you need to use

#
`${entity.xxx}`
#

everywhere, just if you're embedding it in a string, or maybe just in service_data. It looks like you changed it everywhere

#

@steady jolt To start, you're missing title: for each dashboard, which is required

#

my config check fails if I just copy what you have into my configuration.yaml

kind shellBOT
#

Always run the configuration check command when you make changes. Don't trust the UI check - it misses some problems.

dark dirge
#

once I add that and restart, it works fine and the icons show up in the sidebar

steady jolt
#

Thank you for noticing that mistake

#

when you say restart you mean homeassistant.restart ? I tried to refresh the UI and ctrl F5 in case but the side bar is not updated

dark dirge
#

restart HA

steady jolt
#

It's ongoing

dark dirge
#

there's a lovelace.reload_resources, but that doesn't appear to reload everything under 1ovelace:

steady jolt
#

didn't noticed the bold red REQUIRED field :/

dark dirge
#

feel free to submit an edit to increase the font size or something

steady jolt
#

ahah

dark dirge
#

I'm staring at two additional icons right now

steady jolt
#

Nothing to add within the UI at //address/config/lovelace/dashboards ?

dark dirge
#

no, I just pointed it at two existing lovelace YAML files

#

did you config check pass?

steady jolt
#

I'm updating my ssh ui in the supervisor to run the cmd

dark dirge
#

yes you need to do that

steady jolt
#

looks like I have other issue i'll look into it the 'hass' command is not found

#

i'll check my config and come back with an update thanks

keen hornet
#

where can I find how lovelace works as in, there is a histogram of temperature. But the only code in find in lovelace is climate.livingroom ... I want to read the temperature of the living room myself in node-red but dont have clue how to get the status... all it puts out is "heat" as a string... so if I can find the code how the lovelace card get the values, I can probably figure out how to call the temperature in node-red

dark dirge
#

@steady jolt Follow the instructions for your install method

#

Red, for you, presumably running Home Assistant OS, ha core check

steady jolt
#

Processing

#

Command completed successfully

It looks like a venv issue from what I've read

#

It's been 8 months since i haven't done any maintenance on my setup and forgot a lot of information like my rpi login 🙄 I'm gonna clean it and hopefully thanks to the config check i'll notice my error

dark dirge
#

ok. it does work, at least for me

unreal lodge
#

RobC, the ${entity.xxx} everywhere worked for a bit, and now seems not too 😕
I will try putting it just in the necessary spots soon

#

Given that it's inconsistent it seems like I should track an issue somewhere... it's just a question of where! probably under custom:button-card?

dark dirge
#

I have no idea

unreal lodge
#

haha fair enough. intermittent problems are the worst

#

might explain why the example I'm following doesn't have that extra syntax but I seem to maybe need it

dark dirge
#

evidently something changed in your setup if it was working before and isn't working now

#

I recommend building a super-simple example with no templates and build up from there

steady jolt
#

Found my mistakes

#

dashboard must be declared within the configuration.yaml file not the ui-lovelace.yaml, it was not clear to me

steady bay
#

I have calendar card inside picture element and it causes chorme to freeze (it's well working on my tablet only stuck on pc)...???

vapid field
echo notch
#

I am trying to hide the header and I found a code for card-mod that should do it, but I have no idea where to place it? Anyone familiar with this?

dark dirge
#

It’s a theme

echo notch
#

Oh, so I have to create a theme with that code and then apply it?

dark dirge
#

Yes

keen agate
#

is there an easy way to hide the header and navigation ?

shell torrent
solemn cairn
#

Anyone using a 9th gen Fire 7 tab as a wall mounted control panel with success? Mine appears to not be able to connect (using any apps or browsers)

keen agate
#

@solemn cairn are you using custom dns and internal resolution by chance?

formal peak
#

Hey! I was just implementing my Geiger counter and it made me wonder... Right now, I set my unit to µSv/h for my MQTT sensor and manually change my data to that unit by dividing on the sensor side. I instead want to instead pass the value in as Sv/h. Is it possible to do so and have the front-end determine that my value should be read with a µ prefix and show it the same?

#

I guess what I'm asking is if the Home Assistant front end can auto-apply metric prefixes

rare frigate
#

Hi there guys
I have a plex server and I would like to display how many films I have

How can I do this 👍

keen agate
#

I'm not sure that's exposed through the integration, would probably require writing something custom against the plex api...I'm just guessing though

quaint lake
#

how do i force a reload in edge chromium? control-refresh doesn't seem to work

smoky depot
#

how do i force a reload in edge chromium? control-refresh doesn't seem to work
@quaint lake have you tried Shift + Refresh?

quaint lake
#

yep, just tried

#

i'm trying to get the custom weather card to re-appear. it asked if i wanted to reload or something and i accidentally clicked "no" when I updated it

dark dirge
#

You can open the developer tools with f12 and right click on refresh

quaint lake
#

thanks robc, still didn't work. i tried all 3 options

dark dirge
#

Dunno then

quaint lake
#

at least it comes up in the HA app on iOS .. lol

#

i'll just wait for next update that asks me to reload the UI

dark dirge
#

Uninstall the card and reinstall

quaint lake
#

@dark dirge - That worked! So simple.. tyvm

keen agate
#

anyone here use tileboard

kind shellBOT
#

Don't ask to ask, just ask your question. Then people can answer when they're around.

When you do ask a question, try to provide as much background detail as possible. Ask yourself these questions first so that others don't have to:

  1. What version of the Home Assistant are you running? (remember, last isn't a version)
  2. What exactly are you trying to do that won't work?
  3. Is the problem uniform or erratic?
  4. What's the exact error message?
  5. When did it arise?
  6. What exactly don't you "get"?
  7. Can you share sample code, ideally with line errors where the error occurs?
keen agate
#

I'm just playing with it...so far just have an empty page with just one tile for testing, but every time i refresh i also get an "error unauthorized" tile that pops up on the bottom for a few seconds

wintry gull
#

Hello everyone. Is there a way to remove the icon from the entities on an entities card?

#

I put mdi:none but now there’s a blank space. I want the space gone too

wintry gull
#

Anyone? Any ideas?

smoky depot
wintry gull
#

Yes

#

Ok want the icon gone and the space where the icon goes also to be gone.

#

I need more horizontal space

smoky depot
#

did you read the documentation? especially the part where it says icon optional?

wintry gull
#

But isn’t that to the left of the main title? Or of each entity row?

smoky depot
#

remove the entry and find out

wintry gull
#

Still there

smoky depot
#

you are restricted to what the card allows, if a field says optional you don't have to enter it but if the results are not what you wanted then there is nothing you can do except find a different card

#

if you see no change, try refreshing

wintry gull
#

Do you know of a card or custom card that are rows for entities that have toggles but no icons?

smoky depot
#

do you have hacs installed?

wintry gull
#

Yea

smoky depot
#

you can search through there to see if any do what you want, search by entity or row

#

I don't use the card so I don't know any off the top of my head

wintry gull
#

Ok i will take a look

wintry gull
#

@smoky depot ok i figured out it can be done with card-mod. I have gone over almost all the posts on the community thread from Thomson but I don’t exactly understand how to extract the information from inspector. I have managed to change the css in inspector to how I want it but how do I change that into the css style for HA?

smoky depot
#

no idea, if you can see the css involved in theory you can just plug those css selectors and their values into card mod. you have to play around till you see how things tick. if you get stuck and want to ask someone about it try posting what you have, what you see so others can get a better understanding. Great work digging into finding out answers on your own tho! 👍 that's the easiest way we all learn.

wintry gull
#

Now I have to learn css and figure out what these selectors are and how to use them. Haha. I don’t know if to be happy or cry

smoky depot
#

look at the examples in the card mod doc, then compare that to what you see in the inspector. it's pretty straight forward

wintry gull
#

Does this even look right? Because its not injecting the information but it seems correct to me.

#
entities:
  - entity: sensor.time
    style:
      '#states > div:nth-child(1) > hui-sensor-entity-row:nth-child(1)':
        $:
          'hui-generic-entity-row:nth-child(1)':
            $: |
              state-badge {
                flex: 0 0 0px;
              }
show_header_toggle: false```
smoky depot
#

no

wintry gull
#

🥲

smoky depot
#

flex: 0 0 0px is proper. all that other stuff is referencing something else in the css file it's being called from which I don't think you can access through card mod

wintry gull
#

ok

#

will play around more

wintry gull
#

I give up for tonight.

#

I will keep going tomorrow

#

Im at this for now.

#
      hui-sensor-entity-row:
        $:
          hui-generic-entity-row:
            $: |
              state-badge.pointer {
                flex: 0 0 0px !important;
              }```
digital lynx
#

Is there a way to resize cards? I added an iframe card but I can't find a way to make it wider. Also buttons can be allot smaller most of the time.

#

It would be great to being able to make it 2 cards wide

sinful flax
#

When I open the UI, only half of my 'panels' load. Unless I manually refresh, the remainder never show up. Any thoughts? Anyone else experiencing this?

vapid field
#

Hi. I would like to fire a custom_event from a button in HA but without success. Right now I am leaning towards the conclusion that it is not possible.
Any thought or can some one point me in the correct direction?

split granite
#

What card?

dark dirge
#

You could certainly do it with a script, but perhaps not directly

vapid field
#

@split granite Hi. No what you are refering to is a script that triggers an Event. I need/want to trigger the event from /any/ lovelace button.

split granite
#

Right...

#

tap_action

#

☝️

#

You can't have it magically happen on everything

#

Unless you want to re-write the UI... that'd work

vapid field
#

@split granite so how would you do that? what action to tap_action would you use to call an event? What you are refering to in you link is the doc for scripts.

kind shellBOT
#

@fiery hull Discord isn't like IRC, you don't have to tag people on every response. Keep in mind that every time you tag somebody, they get a notification ping. That can very quickly become annoying and people may block you.

split granite
#

And ... yes

#
  1. Tap action calls script
  2. Script generates event
  3. Profit
vapid field
#

Sorry, I'm not clear then. I know how to call an event from the script, that is what I am doing know. But it's a bad workaround. If possible I want to do it as a service_call from a button.

split granite
#

And you can, that's what tap_action does

#

You can't generate an event that way

#

If you want to generate events directly, feel free to submit a PR (pull request) that adds that functionality to Lovelace

vapid field
#

Ok, then I don't need to search anymore. I'll make a pr. Thx

copper sandal
#

Does anyone know of any "easy to understand" documentation on the custom button-card available on hacs? Or even just some sample yaml so I can learn from that?

vapid field
#

What do you want to do?

copper sandal
#

@vapid field Thanks for the reply. Just simple stuff like changing icon and icon colors depending on state. The rest is too deep for me know but this is probably a good starting point for me to dive into an apparently very powerful card

vapid field
#

Can't access my dev right now but it's pretty strait forward. Have you looked at states?

copper sandal
#

@vapid field Not sure what your referring to when I look at the documentation all I see is a bunch of options no examples or anything like that.

#

This is what I tried but it doesn't even recognize the card type

#

Did a search on the github page for states that is helpful in itself. Its just hard to find info on a page that is so long. It would be helpful if things were broken up a little for organization reasons.

dark dirge
wheat current
copper sandal
#

Is it a typo when it says - type: 'type:some_card and not - type: 'type:some_card'

#

I guess thats the bad version anyway so probably doesn't matter

umbral harness
#

i'm having fun with the picture elements card

#

i told myself i wouldnt spend much time on the floorplan... didnt work

knotty sierra
#

Hi. I need help

#

Using media extractor, we can play url in automations, is there a way to paste url from lovelace ???

#

In media player

#

Plz help

#

Like in mini media player, there is txt box for input text to anounce on player.
Same like that if txt box for paste url then play on speaker or chrome cast device

thorn vessel
#

Is it possible to have a colour wheel with lights with regular groups? All the entities are lights.

wintry gull
#

Hello. I have still not been able to remove the icon and space from an entity in an entities card. No matter what I have tried I havnt gotten card-mod to work for this. Anyone know of a walk through on how to identify how to build the CSS code? Or maybe if someone can help me build it so I understand how it works better? Thanks.

mighty tree
#

@wintry gull I have a similar problem, but with other cards though. One aspect: Are you within a picture-elements card? If so, it is very very tedious to accomplish this (I have given up), because you need to determine the "css-path" to the element you want to change. If not, then there are a couple of forums posts that did something like this:

style: |
  ha-card { 
    background: none;
    ...
  }

Here is a good post: https://community.home-assistant.io/t/remove-border-space-of-cards/195262/11

mighty tree
#

Hi, I have a problem regarding a non-refreshing lovelace frontend. That is, I have in my picture-elements cards some state-dependent elements or even a datetime picker card, which respond to clicks but do not update their appearance. That is, I need to reload the page to see an update in the appearance. Any ideas? I use the template card, can this be a reason?

carmine fern
#

Can anyone give me a hand with creating a button on the picture elements cars that triggers a script? Currently when I click a button it shows a popup with an "Execute" option. I just want to click it and have it execute straight away.

#

Currently using the below;

#
  • type: image
    entity: script.tv_input
    image: /local/assets/remote-control/tv_input.png
    style:
    top: 43%
    left: 40%
    width: 15%
dark dirge
carmine fern
#

Thanks @dark dirge , got them all working. Realised I needed to remove the entity line and just put in the tap_action.

heady gorge
#

Hi friends,
How to force the dark theme for all logins?
Now the default light theme is getting applied for new login even if I chose dark theme when login with another PC

mighty tree
#

I believe this is device specific and not login specific. So, you need to set the theme for each device you are logging in

formal tide
#

you could also set a theme at startup in a automation, this works for me atleast

unique sphinx
#

Hi, i want to make template sensor for last_changed, i make it with sensor template tablet_battery_update: device_class: timestamp value_template: "{{((as_timestamp(now()) - as_timestamp(states.sensor.tablet_battery.last_updated)) / 60) }}"

#

but i got value : 0.04 and if i check in in template editor it show the correct value

#

any idea why ?

knotty sierra
#

Hhi. I need help. Using media extractor, we can play url in automations, is there a way to paste url from lovelace ???

#

Like in mini media player, there is txt box for input text to anounce on player.
Same like that if txt box for paste url then play on speaker or chrome cast device

hybrid jackal
#

i use separate group.yaml and want to create group notifications to our mobile apps. When i create some script/automation to use this group notification service

waxen granite
#

Hmm, where can I change Lovelance ? Is lovelance = frontend ?

mighty tree
#

@unique sphinx have the same issue. If you find a solution, I would be interested 🙂

waxen granite
#

If I find my solution i let you know

tidal vale
unique sphinx
#

@mighty tree sure.. value_template: "{{((as_timestamp(strptime(states('sensor.date_time'), '%Y-%m-%d, %H:%M')) - as_timestamp(states.sensor.tablet_battery.last_changed)) /60) |round(0)}}"

#

the sensor.date_time has update him self so it will trigger this template sensor to get also update

mighty tree
#

Cool. I'll try that out now. 🙂 Thanks!

#

Great! That works. Now, need to replace all remaining sensors... 😉 Thanks again!

#

Funny, after restart I get an "-1"

#

I added "| min(0)" to avoid negative values

#

ups, should be max 🙂

waxen granite
#

@unique sphinx have the same issue. If you find a solution, I would be interested 🙂
@mighty tree add

  mode: yaml

to your configuration.yaml
create file named ui-lovelace.yaml in config folder

mighty tree
#

@waxen granite Thanks, but I meant Yuval and not you 😉

unique sphinx
#

Happy to help

hybrid jackal
#

hello, i want to display on my lovelance table from mysql query. Can you advise me, which card or how can I do that?

ornate mason
#

So... With CCH going away, how do I hide the top bar on a per-device (or dashboard/view) basis? The card mod theme method doesn't work for me, as I use backend selected theme on all devices.

dark dirge
#

I think you’ll see some improvement in 0.117

#

Maykar is now working on the real frontend 🙂

ornate mason
#

Oooh cool. 😄

keen agate
#

does the homeassistant web server support any scripting languages? i'd like to put something in /config/www/ that I can call get some dynamic results

dark dirge
#

create a custom card?

keen agate
#

actually dont want to use it in home assistant directly, just want to host it ..

#

just looking to take advantage of the existing webserver for something super small

#

if it doesnt have php or something similar enabled, i'll just spin up another container, was just trying to keep it as simple as possible

keen agate
#

i basically just want to have a url i can call that will return a list of files in a public share on my nas

formal tide
#

just spin up a generic http server container @keen agate ?

keen agate
#

yea, thats what i'm probably going to do...

formal tide
#

do it. and ffs don't forget to disable indexing 😉

keen agate
#

most of my development is asp.net/c#, trying to figure out which server/language would be the smallest but let me easily access a remote directory

dark dirge
#

Python/flask is pretty simple

formal tide
#

php imo

keen agate
#

i tried php and scandir() but it didnt seem to work for remote share...

#

i'm an idiot, i should just use what i know... i've been stuck in windows so long, i forget about .net core lol

dark dirge
steep jewel
#

whoops

vapid field
#

Do you I need to define default_config in configuration.yaml to setup actionable notifications?

dark dirge
#

for a mobile app?

vapid field
#

Yep

dark dirge
#

no, you just need to follow the docs

#

you will need to enable mobile_app:

vapid field
#

Okay great, thanks was following another tutorial

dark dirge
vapid field
#

I thought they're preloaded on boot anyways?

dark dirge
#

default_config?

vapid field
#

yeh

dark dirge
#

only if you enable it

vapid field
#

ah okay, thanks

wet pond
#

i am using custom:secondaryinfo-entity-row to get some info for some devices and display them on the UI, the problem is that header toggle is not displayed anymore, any other thing that i can use for this?

rancid arch
#

Is there a way to disable a switch on the entity card based on another switch?
My problem:
I have one input select (Auto and Manual). Two switches that can be used when Manual are selected. I want to show the state even if Auto are used.

I can hide them completely by using conditional card + stacked cards... But want to see the states of the switches.

last compass
#

guys do you know how can I setup home into passive? I try adding zone but instead it add a new one.. just need to hide the zone.home

vapid field
#

i can see in lovelace resources /hacsfiles/sun-card/sun-card.js

#

but when i manually add the card, it says No card type found - type: 'custom:sun-card'

#

what did I miss?

#

Custom element doesn't exist: sun-card.

polar kelp
#

Remove the first -

vapid field
#

wait let me try

#

type: 'custom:sun-card' doesbn't work either..

polar kelp
#

Did you also dedent all the following rows?

vapid field
#
  • title: test
    path: test
    badges: []
    cards:
    type: 'custom:sun-card'
#

but i think this should be the right one:

#
  • title: test
    path: test
    badges: []
    cards:
    - type: 'custom:sun-card'
polar kelp
#

Ok, sorry. I assumed you made the same mistake as 90 % of the people who get that problem do. You should have the dash there

#

Did you refresh the page after installing the card?

#

F5

vapid field
#

that's what i missed 🙂 now it works thanks!

polar kelp
#

Just did some vim macro magic...

#

Apparently 79 out of 185 plugins in the hacs default repo do NOT have "- type:" in their readme.

#

Some false positives, though.

vapid field
#

crazy

wheat current
#

Of those 79, how many have no instructions?

polar kelp
#

@mild veldt has been a good boy

#

Probably more than 50%

wheat current
#

Yeah :/

vapid field
#

I managed to configure the sun-card plugin, it's really cool! but the css styles get simply ignored. No error message, just no effect. do you have an idea of what could be wrong?

#

type: 'custom:sun-card'
entities:
time: sensor.time
moon_phase: sensor.moon
sunrise: sensor.sunrise
sunset: sensor.sunset
style:
'--sc-sunbeam-color': white
'--sc-sun-color': blue
'--sc-horizon-color': orange
animation: true
meridiem: false

#

the styles just have no effect.. really weird!

polar kelp
#

I don't think it works that way, unless you have a very very old card-mod version installed.

wheat current
vapid field
#

exactly, I found the documentation and some examples here and there.. but I can't get the styles to work...

polar kelp
#

Either you need to add that to your theme, in the form sc-sunbeam-color: white or if you have card-mod installed you can do yaml style: | ha-card { --sc-sunbeam-color: white; ... }

vapid field
#

still no effect...

#

type: 'custom:sun-card' entities: time: sensor.time moon_phase: sensor.moon sunrise: sensor.sunrise sunset: sensor.sunset style: | ha-card { -- sc-sunbeam-color: blue; --sc-sun-color: blue --sc-horizon-color: orange } animation: true meridiem: false

dark dirge
#

You have an extra space there

vapid field
#

corrected the extra space.. no change 😦

#

type: 'custom:sun-card' entities: time: sensor.time moon_phase: sensor.moon sunrise: sensor.sunrise sunset: sensor.sunset style: | ha-card { --sc-sunbeam-color: blue; --sc-sun-color: blue --sc-horizon-color: orange } animation: true meridiem: false

polar kelp
#

semicolons

vapid field
#

i thought about the ; at the end of blue, tried that too with no success..

polar kelp
#

🤷

vapid field
#

type: 'custom:sun-card' entities: time: sensor.time moon_phase: sensor.moon sunrise: sensor.sunrise sunset: sensor.sunset style: | ha-card { --sc-sunbeam-color: blue; --sc-sun-color: green; --sc-horizon-color: orange } animation: true meridiem: false

polar kelp
#

and orange

#

Also, use three backticks for code blocks.

#

`

vapid field
#

oh yes sure, wait

#
entities:
  time: sensor.time
  moon_phase: sensor.moon
  sunrise: sensor.sunrise
  sunset: sensor.sunset
style: |
  ha-card {
    --sc-sunbeam-color: blue;
    --sc-sun-color: green;
    --sc-horizon-color: orange;
  }
animation: true
meridiem: false```
#

still doesn't work anyway... I am trying also with other colors like #0099FF but that doesn't do the trick..

#

in the browser debug modus i read this: Error: Entity ha-card {
-- sc-sunbeam-color: white;
...
}
set for config entry "style" not found. Check your configuration.
at sun-card.js:616

dark dirge
#

Extra space is back

vapid field
#

wait i think that was an "old" error, cause i replaced the white color since a while. when I refresh the page i don't get the error anymore..

vapid field
#

so no other ideas of what could the problem be?

#

another question: do you know why when I cast the tab i can't see this custom card? it says that the card doesn't exist

unreal lodge
#

hi folks. I have a map card (as a custom:hui-element in an entities browser mod popup card...) and I have it just showing person.dolores and zone.home. both show on the map, but the zoom level is by default is just showing person.dolores. do any of you know what the the issue is/how to fix it?

polar kelp
#

Many custom cards have problems with cast. It has to do with them relying on a custom element which is not present.

#

And most of those who had a workaround for that case are broken since 0.116.

vapid field
#

is there something I can do? I tried to add this "CORS" to my configuration.yaml

polar kelp
#

Actually, it seems that card does things the right way, so it's not the usual problem.

vapid field
#

is there a way to debug it?

polar kelp
#

Not easily, I'm afraid.

#

It's said to be kind of easy if you have a google developers account. But if you do, you probably know more about this than I.

cyan cargo
#

When you click on the sun.sun component on a card you get the details screen and it nicely formats the time in the correct timezone. However if i click any of my other integrations that have UTC timestamps on them as attributes, it just shows the timestamp. Is there some way i can tell it to display that timestamp formatted in the details page?

stiff sleet
#

I'm running Home Assistant 0.114.4 and I installed a slide-show card (https://github.com/igloo15/slideshow-card) via HACS and I can't seem to get it to display. I edited the dashboard raw configuration, save it, and then nothing actually shows up on the dashboard. Anyone have any ideas why?

#

cards:
type: 'custom:slideshow-card'
folder: sensor.images

#

tried refreshing the page and restarting home assistant. Nothing.

#

Tried Firefox and Chrome in Win10 and also tried it on Android

elder pendant
#

Did you follow all the instructions to create sensor.images?

stiff sleet
#

yeah, it's there and all the images in the folder show up under the entity

#

path
/config/www/images/
filter
*
number of files
3
bytes
5691644
file list
/config/www/images/DSC01123.JPG, /config/www/images/SW__E01251771_20201012125952774_MOTION_DETECTION.jpg, /config/www/images/frontdoor__E17717213_20200914180616936_MOTION_DETECTION.jpg

elder pendant
#

Do you see any errors where the card should be or it's just blank?

#

And are there any errors in the browser console?

stiff sleet
#

just blank

elder pendant
#

And the browser console?

stiff sleet
stiff sleet
#

took out the config/www/community/slideshow-card/slideshow-card.js from the resources (was put in for troubleshooting) and put it back as /hacsfiles/slideshow-card/slideshow-card.js. Now I don't have the error in the browser console anymore, but still blank.

elder pendant
#

Did you clear your browser cache?

stiff sleet
#

yep, also tried different browsers and Android

eternal elbow
#

Hey all, I need a dial! Or a knob. Slider. Something. Scenario: I have to make a virtual device that will send commands to MQTT based upon what to which I set it. Imagine I have three settings, "Cat" "Dog" and "Fish". I need to be able to move it between the three and send the result to MQTT. Anyone have any thoughts in this vein? Thanks!

#

Or perhaps I could link three switches so that only one can be on at a time? Kinda kludgy but would at least accomplish the principle?

eternal elbow
#

Bugger. Thought I had a good solution on finding input_select and thinking I could mqtt_statestream it out. Nope. statestream won't include it. Though I'm thinking maybe I could do an mqtt.publish action from an automation to push it out? Still open to suggestions!

polar kelp
mighty tree
#

@polar kelp I use a picture-elements card and inside I have some sensor-dependent information in diverse cards. However, the information does not change in lovelace when the state changes. I need to reload the page. I have wrapped the picture-elements card in a config-template-card. Could this be the reason for the non-updated elements?

#

I hope the problem is clear 😅

mild veldt
#

@mighty tree you need to define the entities that cause state changes for the card in the list of entities config item

mighty tree
#

@mild veldt for which card? For instance, I have a state simple state-label card and I have there the corresponding entity in the entity section. Or do you mean I need to put all elements that could cause states changes in the config-template-card entities section?

#

If you mean the later variant, then this would be nearly every sensor I have plus input_selects, etc. 🙂

mild veldt
#

if that's true, then yes. config-template-card is the gatekeeper

mighty tree
#

uhh I see. Thanks for your answer! I may need to refactor my whole lovelace layout. I just used the config-template functionality to reuse lovelace.yaml-files accross different dashboards for different devices (i.e., defining alternative positions and text sizes). Maybe, I could put the text sizes into an individual theme...

#

at least, now I know what the entitites section was for 😉 hehe

eternal elbow
#

@polar kelp Thanks, that's what I ended up doing. Took me a bit because I didn't go with simple if/elif but used a more elegant dictionary lookup that utterly and completely failed. Causing me to go back to if/elif. There was half an hour burned. 😛

polar kelp
#

Learning time is never wasted.

sinful flicker
#

Hi! Is there any way to display the current user's username in lovelace? I want to have a text saying "Hello, USER", but can wrap my head around it! Thanks!

dark dirge
sinful flicker
#

Omg... Tens of google searches and couldn't find what was in the docs... Sorry about that!

dark dirge
#

np

#

helps to know what to search for 🙂

wheat current
vapid field
#

@wheat current hello. Prase I Havel Simple question. For you Simple :). HASS in env od hassio docker on rasspy4 8GB? Speedo And stability. Heard hassos has problémy...

rare frigate
#

Hey folks.
I tried adding the banner card using hacs and then adding it to my ui
But it still says custom element doesn't exist?
It has been a while since I dealt with HA
Also what does it mean when my files in file editor are red?

vapid field
#

Ohh sorry...text repair :(

kind shellBOT
#

@graceful bobcat Generally, don't tag people to ask for help - it comes across as bad manners, you’re demanding somebody answers you. It’s different if you’re thanking somebody, obviously. If you do tag somebody keep it polite and respectful. Remember that everybody is a volunteer, and nobody has to help you, and people may block you.

Similarly, please don’t DM (direct message) people asking for help. It also comes across as demanding, and means that others can’t learn from what you do.

Finally, please keep tagging people in replies to a minimum. That too can become annoying very quickly and should be used only when it's necessary (such as if it's been a long time, or there's multiple conversations going on).

tardy wigeon
#

Hey guys, I'm working on another custom card and I have noticed that my card doesn't render every time. Then I have realized that I have noticed similar issues with some other custom cards (e.g. mini-media-player) after upgrade to 116. And I'm aware of at least two breaking changes which have impacted custom cards (extracting LitElement from hui-view and lazy-loading and problems with more-info dialogs).

Here the problem is that the card DOES render in most of the cases (so it is not something similar to hui-view issue). My card doesn't use more-info dialogs, though it uses ha-card and ha-icon HA custom elements (I'm not sure if that may be the problem). I gave it a try and removed ha-* elements from my card and problem still appears.

The easies way to repro is to go to the dashboard configured via UI (for some reason it happens rarely on yaml controlled one), open panel/tab with custom card and refresh the page. Card doesn't render and there is hidden error card visible in the source saying that the custom card is missing.

I have found similar issue reported yesterday which was closed as related to lazy-loading. I have added more details from my side in the comment. https://github.com/home-assistant/frontend/issues/7384

My card code if anyone is interested and willing to take a look (it is rather simple and small): https://github.com/maxwroc/github-flexi-card

Any help will be very appreciated!

tardy wigeon
#

Another interesting part is that this card has two custom elements inside "github-flexi-card" and "github-element". The element one is used in the card one but it can be used as well as entity-row element (e.g. in entities-card). And when "github-element" is used in entities-card it renders always without any problems. TBH I have no idea what might be wrong with the card code that HA cannot render it (especially that it is only few lines of code: https://github.com/maxwroc/github-flexi-card/blob/master/src/custom-elements/card.ts more comments than the actual code 😉 )

hallow mango
#

is there any way to force a number of columns on a particular view? i recently set up a tablet on the wall using fully kiosk, but it seems every time the main page loads, the number of columns changes

#

not so great to end up with one vertical column on a landscape tablet lol

gaunt juniper
#

Hey everyone, short question. I'm switching from broadlink to esphome as IR climate remote. Is there a way to tell the thermostat card what temperature sensor it should show as "current temperature"? Since I don't have temp sensor hooked up to my D1 mini, I would like to use another sensor that is in the room.

dark dirge
#

@hallow mango You can use a set of vertical-stacks or the custom layout card

hallow mango
#

sure, that makes sense

#

basically just put everything in one card lol

dark dirge
#

I have 3 vertical-stacks

gusty wing
#

Hey there im looking to have my weather card show only 3 days of forecast instead of 5

#

anyone knows how to do t his?'

dark dirge
#

number_of_forecasts: 5

#

unless you're using some other weather card

gusty wing
#

ah its the custom one

dark dirge
#

I see. I forgot that one existed

gusty wing
#

@dark dirge thanks, got it and it works perfectly

hallow mango
#

@dark dirge is there "rules" for the vertical-stacks working that way? it seems that even after doing that, i sometimes have to "edit dashboard" in order to get them to organize into the right number of columns

dark dirge
#

I do everything in YAML, and this may force you to do more in YAML too

hallow mango
#

is there something specific I'm missing then? I mean, I can edit it in yaml, but it looks the same in the end, no?

dark dirge
#

no idea

hallow mango
#

gotcha

hallow mango
#

got it with layout-card 👍

mossy timber
#

I'd like to create a card to send IR messages to my air conditioner. There is no full-on integration possible, I can't even know what the current state of the unit is. All I can do is send IR codes.

#

Any creative ways of having a card for this?

mossy timber
#

Another question; in the Entities card type, for a remote.x entity I currently see an on/off switch. Is there a way to have it show the state in letters? Ie. "On"

cobalt lodge
#

Hi All, I'm trying to tweak a theme to adjust the input_select background and the tooltip colours but I'm struggling to figure out the CSS variable names - Is there an easy way to find out the names I should use in the theme file ?

prime skiff
#

Hi all, which card should I use to add a *.gif link from web to lovelace? Picture does not work apparently.

random pike
#

How do you nest light groups? nvm, was using group.* instead of light.*

azure elk
#

@prime skiff , I use a picture card and it does work:
image: >- https://api.buienradar.nl/image/1.0/radarmapbe/gif/?hist=0&forc=36&w=500&h=512&l=1&step=1 type: picture

naive chasm
#

Is there a possibility to add an "are you sure" Popup Box in the gui when trying to switch a switch?

#

I have a Power-Socket-Switch for my 3D printer and want to avoid missclicking

naive chasm
#

great thx.. i didn´t found it.

hallow mango
#

@mossy timber probably with a custom card, you could show the state instead of a switch

#

like maybe this one

mossy timber
#

Funny you should mention that one. I just spotted it in a video.

#

I try to stay away from custom cards though. So, created an hstack of 3 single entity cards. Changes the graphical representation to a remote icon. Not ideal but doable for now.

#

Thanks for the reply though.

onyx mesa
#

Can I temporarily disable the web UI refresh, so i can debug CSS/Layout issues in my component?

polar kelp
#

Does it work to pause javascript execution in your browser?

onyx mesa
#

yes, yes it does!!! It also disables my ablility to respond to this, and virutally everything else, but it works for sure. thanks.

jagged slate
#

I was trying to get my spotify integration to work (and it does) but I can't seem to figure out how call a related service...
Here is the code I tried to use to pause my spotify

type: button
tap_action:
  action: call-service
  service: media_player.media_pause
  entity_id: media_player.spotify_USER
entity: media_player.spotify_USER
show_state: false
show_name: false

(with "USER" changed to what it should be)

the error I get is:

Failed to call service media_player/media_pause. must contain at least one of entity_id, area_id.
and I don't know why

#

okay I found it, took me 3 days, I should use

service-data:

to inject the data a service needs

prime skiff
#

Hello there I have a question regarding grafana chart, for some reason it is not show in lovelace. Get the message <my IP> refused to connect.

dark dirge
#

lol, was just going to repost that too

jagged slate
#

worst thing is, I did look at all the service related docs. I just didn't think to look at the button related docs.

polar kelp
#

*service_data

dark dirge
#

yeah, that too 🙂

#

there, you get another 3 days back

autumn swift
#

Hi, i switched to lit-element but render is not always called ? Im using example from hass website

dark dirge
wheat current
#

and with more context

autumn swift
#

I'm sorry I didn't notice devs I'm new here.

worn estuary
#

Hello there, im quite new to HA, I have an rgb strip to which i can send mqtt message to set the rgb colors, which i have working with a few toggles and sliders in the lovelace interface. To make setting colors a bit easier, I want to use HACS add-on 'light entity card', but it requires a 'light entity'. How and where do I make a 'light entity'? Can it be done from the interface or do I have to add it manually to some configuration file (which, and what do I have to add?)

polar kelp
#

Depending on what you're using for the light, this might happen automatically if you enable mqtt discovery.

worn estuary
#

Thanks, I have not ever added anything to the configuration.yaml, I think I can find it. The light in this case is an EPS8266 with micropython code

#

can I still control what mqtt messages will be sent?

polar kelp
#

To an extent.

worn estuary
#

but not their format i assume?

white kindle
#

data_template has been deprecated, right?

dark dirge
#

yes

white kindle
dark dirge
#

Feel free to click "Edit this page" at the bottom

#

more discussion on HACS docs should be on the HACS server

barren yacht
#

Sorry New to Home-Assistant. I'm doing my best to climb this steep learning curve. I'm trying to install button-card from the HACS and it's putting it in "/config/www/community/button-card" but under the Lovelace recourses it has the resource as "/hacsfiles/button-card/button-card.js" is "/hacsfiles/" the same as "/config/www/community/"?

compact pebble
#

I'm trying to install button-card from HACS and I was wondering where my ui-lovelace.yaml is? How do I create and add it if it is not there?

dark dirge
#

@barren yacht Yes, /hacsfiles is uncached and mapped to config/www/community

#

@compact pebble If you're managing your Lovelace dashboards from the UI, you won't have one

#

and don't needone

barren yacht
#

@dark dirge thanks. I tinkered around some more and just installed it manually and put the file in config/www/ and the error I was getting went away. Idk why it wasn't working with HACS.

dark dirge
#

you can do that, too. You didn't mention an error earlier 🙂

#

you'll be better off in the long run installing through HACS because it will track new versions and let you upgrade more easily

barren yacht
#

Yea I wasn't sure if the error had to do with my card coding. Yea now that I know my code is ok I'll backtrack and try it again.

compact pebble
#

what does this mean? How to fix? ButtonCardJSTemplateError: TypeError: Cannot read property 'state' of undefined in 'return `<ha-icon icon="mdi:bluetooth" style="width: 20px; height: 20px; color: white;"> ...'

mild veldt
#

@compact pebble my guess is that somewhere in that template you're trying to use the state of an entity the is unavailable

lyric swan
#

hello.. i have installed some custom cards through HACS. some cards works as is but I cant seem to get some working.. any idea anyone? I have tried manual add too but to no avail

#

the cards in question are mini climate card, lovelace-clock-card and layout-card

#

No card type found

  • type: 'custom:clock-card' is given
dark dirge
#

You probably haven’t added the resource or cleared your cache

lyric swan
#

i did.. even restarted ha

#

HACS add the resource automatically

dark dirge
#

Remove the leading -

lyric swan
#

aha!!!

#

🥴

#

thanks 😄

dark dirge
#

Many card instructions assume that you’re writing the YAML directly, rather than using the UI

lyric swan
#

i should have known this.. its soo true we cant see our mistakes 😄

dark dirge
#

Yep. Glad it’s working

lyric swan
#

thank you.. and thank you.. have been pulling my hair out 😄

carmine fern
#

I'm still using default_config in my config.yaml file and want to move to a full config so I can remove the "map" integration.
I'm not sure what exactly to replace the "default_config" with so I can keep using the frontend and all my other integrations.

shell torrent
#

you probably already have automations and scripts and a lot of the other stuff in your config, so I'd say it's more likely you need to add these

# Enables the frontend
frontend:

# Enables configuration UI
config:

# Enables support for tracking state changes over time
history:

# Enable mobile app and app notifications
mobile_app:
carmine fern
#

Yeah, I do already have scripts and such in there.

#

So I just remove default_config and add those four lines? They don't need any sort of conditions or anything?

polar kelp
carmine fern
#

Thanks all

polar kelp
#

Then again... you can just remove the map button from the sidebar...

sour harness
#

Hey guys, I´m trying to use Card-mod to display a pop up, is there any way to make a pop up persistent? Meaning if I open a new browser after the pop up has been triggered I would like it to still be displayed

polar kelp
#

*browser_mod

#

No

sour harness
#

yes sorry meant browser mod

tepid sundial
#

I'm trying to make some entities show based on a condition in an entities lovelace card. It works fine with one entity, putting it after the 'row:' , but how do I display several?

polar kelp
#

Simplest way is to just add more conditional rows.

tepid sundial
#

@polar kelp with an condition for each?

polar kelp
#

yes

tepid sundial
#

ok, I guess I can stop butting my head against this problem then.

#

I assumed there was an easy way that I missed

polar kelp
#

Not that I know of.

#

But if you have the same condition and use yaml configuration, you can save some lines of code by using anchors.

tepid sundial
#

I'm using the gui raw config

polar kelp
#

Then that won't work.

tepid sundial
#

I'm trying to avoid yaml when I can

#

ok, thanks for saving me some time

waxen granite
#

I want to swap the dashboards marked in the sidepanel. lovelace is in yaml mode

tepid sundial
#

Is there a way to get confirmations for boolean input in a lovelace card, tapping actions only get me an confirmation if I tap the icon, not the actual toggle?

#

...So if I have a toggle, let say "start fire", can I get an confirmation such as "Have you removed parakeets from fireplace?" before actually changing the toggle switch?

polar kelp
#

@waxen granite Press and hold on the "Home Assistant" text, then drag the things where you want them.

waxen granite
#

OK, found it 🙂 thanks

#

Would you recommand useing the frontend for a beginner ?

tepid sundial
#

@polar kelp Thanks, but as I can see it is still for buttons. I want to use an input_boolean instead.

#

...or input_select

polar kelp
#

It works for everything that has a tap_action.

tepid sundial
#

it has but the tap-zone is the icon

polar kelp
#

So probably not input_select.

#

Oh... you're right!

tepid sundial
#

If a add tap action to a boolean it is the icon, not the toggle that activates the action

polar kelp
#

I never thought of that...

tepid sundial
#

That seems to fill my needs just fine. The parakeets are relieved. Thank you

vapid field
#

hello everybody! my lovelace is not starting anymore even though my HA is started! is there any way to debug what happened?

vapid field
#

turns out, it's a problem with my SSL certificates.. they are probably expired. now debugging 🙂

waxen prism
#

Am seeing a difference in colours when using everything the same setup, except utilising switch or light entity. One is correctly yellow, the other looks more like a dirty yellow ... is this a known or expected behaviour? https://paste.ubuntu.com/p/6wQjFXXsry/

#

This is when using a pictures element floorplan ...

#

I've tested and it's not to do with the background colour, either ..

polar kelp
#

The light icon is dimmed to match the brightness of the light.

cerulean brook
#

Migrating from SmartThings. Got my HA running, connected Unifi, and now my head is swimming. Any advice? Or a link to advice?

frank vigil
#

I over-rode the icon for one of my color lights, now the icon color no longer matches the light color. Is there a way to get that color back with a different icon?

polar kelp
#

How did you override it?

frank vigil
#

in the GUI

#

in configuration -> entities

polar kelp
#

That still matches the light color for me...

frank vigil
#

nevermind, I had confused two different lights and was looking at the wrong one 🙂

polar kelp
#

🙈

copper laurel
#

Is there a way to create a card that sets a light on a set colour/strength ?

polar kelp
#

Almost everything that can be clicked can be made to make a service call which could do that.

copper laurel
#

I will check on it

polar kelp
#

You're looking for tap_action

vapid field
#

Is there anything I can do about the card selector in Edit UI (when pressing '+', i.e. adding a new card) loading very slowly and bogging down the browser window along with it? It's been like that for a while on most of my devices.

polar kelp
#

@vapid field I can offer no help, but I can tell you you are not alone in experiencing this.

vapid field
#

Yeah, as it is happening across random devices and different HA versions I figured it would have to be a somewhat wide-spread thing.. will wait for other responses and investigate some more. Thanks for replying!

onyx mesa
#

in my custom component, i dispatch events from custom html elements to an event listenter in my card class. It works great for "issuing" service calls, but i cannot query the curret state from 'hass' inside the event listener. it alwasy returns the state when the content, and event listenter, were added. I want decide at that point, what services to call.

#

and i can see that the hass is being re "set" with state updates.

feral grove
#

Is there anything I can do about the card selector in Edit UI (when pressing '+', i.e. adding a new card) loading very slowly and bogging down the browser window along with it? It's been like that for a while on most of my devices.
@vapid field @polar kelp Couldn't it be caused by loading of some chatty sensors?

polar kelp
#

Could you share your code @onyx mesa ?

#

I would guess you have a closure problem.

onyx mesa
#

... the else condition of my "toggle" eventlistener... that's where i pickup the users intent to turn the valve on or off. I want to take conditional action on the state of the valve (currently using a lamp to test state)

polar kelp
#

Ok. I already went to bed but replace function(event) { with (event) => { and I think it should work.

#

There are other things you could and should change too, but I’m half asleep. Ping me in 8-10 hours.

onyx mesa
#

ok - thanks

plush spindle
#

is it possible to change tap action of a entity to show a input_number to set the value?

vapid field
#

@feral grove hm that's an interesting take.. and it's loading previews of my actual sensors, so I figure if that would just show generic placeholders, that'd be fine.

#

So I'll check if there's an option for that, and I'll go through my sensors to see if I can find a culprit.

#

Maybe it's an offline camera or something.

graceful dagger
#

I'm trying to clean up some media player nonsense. My livingroom has TV, Kodi, and Sonos and it's a bit busy. I was looking into the entity-filter card to look for 'playing', and only show that. If I don't give it a card type it does a bland, not normal looking media controller card (entities by default I guess?). Can the entity-filter card not make media-control show up? Is there a more clever way people have come up with to clean up multiple media things in a room?

cyan cargo
hallow mango
#

so i just set up a tablet (wallmounted) with fully kiosk, and have a user for that device, with a separate dashboard as the default user

#

is there any way to share views from my default dashboard, so that changes made in either place will be reflected in both dashboards?

unique egret
graceful dagger
#

@cyan cargo Does that work? Conditional uses AND, so wouldn't it only work if all the players were playing?

polar kelp
polar kelp
#

@onyx mesa Did that work? I mean this.toggle_sw = document.addEventListener("toggle", (event) => { as that will make the eventListener bind this to the actual this. Otherwise you get only the this that was right at the time of creation.
The other thing I was thinking of was that your hass setter does an awful lot of heavy lifting that's better done in e.g. setConfig or even constructor.

dull patio
#

Hello everyone, I’m trying to use an iframe in a lovelace card showing a page in /config/www and the html pages are refresh every hour. But there seems to be a cache because it only show the first version. Is there a way to force a refresh or those iframe ? Thanks in advance

finite pond
#

is there any other way to remove the card margin/padding on either sides without card-mod? Seems like its not working on Android. CC @polar kelp

celest jackal
#

@polar kelp https://ibb.co/LdSTyqp
How do i fix this overlay of the bar created using the compact-header of the Card Mod?

snow oasis
#

I am very new to home assistant only installing about a week ago, since the latest update I am unable to access any of my add-ons and am also unable to access the supervisor tab.
HA is installed on a Raspberry Pi4. Really unsure how I am going to fix this - any advice would be welcome.
I am not super technical so hopefully there is a simple solution.

#

log: 2020-10-22 21:02:14 WARNING (MainThread) [homeassistant.components.http] The 'base_url' option is deprecated, please remove it from your configuration
2020-10-22 21:02:27 WARNING (MainThread) [homeassistant.components.esphome] Error getting initial data for 192.168.0.143: Timeout while waiting for API response!
2020-10-22 21:02:28 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up upnp platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/upnp/sensor.py", line 93, in async_setup_entry
device: Device = hass.data[DOMAIN][DOMAIN_DEVICES][udn]
KeyError: 'uuid:5a191372-bce8-42a3-b227-a06d506374b6'

kind shellBOT
#

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 docker commands or use a Docker manager and have no add-ons then you have #449717345808547842

  • Finally, if you use pip to install or upgrade you have #551864459891703809

Having difficulty chosing an install method? See this blog post for guidance.

formal tide
#

which method do you use?

snow oasis
#

homeassistant os I installed a beta version as my PI is the 8gb ram version

formal tide
#

#330990055533576204 and the upnp error shouldn't prevent you from starting up, the issue is likely somewhere else

#

go there ☝️

snow oasis
#

I can get in but just can't access the add-ons in the side tab or the supervisor page

#

ok will give that a crack 🙂

proven ether
urban valve
#

Try going HACS, Frontend, use the "+" to add, then search for auto-entities.

#

I often to forget to go to the add page before searching.

proven ether
#

There is no "+" D:

But i found the "Entity Filter" Card, directly from Home Assistant. Wirk's perfectly. :)

copper mural
#

Isn't there a way to re-arrange the dashboards? Now I had to workaround it by name them 1.the-one-to-be-on-top, 2.the-second-one and so on.

proven ether
#

@urban valve Found the "+" .. i'm stupid :D

polar kelp
#

@copper mural click and hold "Home Assistant" at the top, then drag them where you want them.

#

@proven ether If entity-filter works for you, then go for that. auto-entities is just that, but on steroids.

copper mural
#

@polar kelp Oh thanks. A well hidden feature 😉

proven ether
#

Thanks @polar kelp!
I think i just try both. :D

The last time i config my first Home Assistant thing was half a year ago.

A lot has changed.

copper mural
#

If I want to change from yaml mode into GUI-mode. I just change lovelace: mode from yaml to storage?

polar kelp
#

@copper mural Easiest way is to just remove everything lovelace related from your configuration.yaml and make sure you have default_config:.

copper mural
#

@polar kelp You mean

lovelace:
  mode: yaml

should be removed and what is default_config: does? I have already configured my GUI based dashboards.

polar kelp
#

Actually, I'm not really sure what will happen. Make sure you have a backup.

vapid field
#

so what should I use to plot a beautiful graph over energy usage from all my Zwave power plugs?

copper mural
vapid field
#

pretty. I like it

#

and for a total noob, how do I install this as a "container" user?

polar kelp
shell torrent
#

when clicking a tab, a growing circle is animated until it fills the tab's space in the header. can I turn that animation off? in a theme or with a parameter?
https://imgur.com/a/qLSVoqW

#

It may always have behaved like that, but I have never noticed it before (maybe since I'm a long time Custom Header user), but in the new beta I suddenly noticed it and I don't like it

formal tide
#

where is that circle animation? I dont see any

polar kelp
#

Can't be turned off.

proven ether
#

Hey again.

I had the Custom Header recently. Works perfect with Custom Card Layout.

Without the Custom Header now, the Cards in the Custim Card Layout seems to smash into the header. :/
Any way, to fix that?

#

Card Layout Setup is basic with:

#

`cards:

  • ....
    layout: vertical
    column_width: 25%
    type: 'custom:layout-card'`
devout hatch
#

is there a card that is actually a button, when I click on it to go to another page, for example www.google.com ?

hallow mango
#

yeah, button

#

set a different tap action to open a page

frosty pelican
#

it also doesnt explain what auto means does that mean if we set it to live if a user has stream or does it explicitly need to be set to live for that

devout hatch
#

@hallow mango thanks, and can I add button card into glance card?

#
    name: Kitchen Desk Light Settings
    show_state: false
    tap_action:
      action: url
      url_path: 'http:/192.168.1.230'```
#

why when I add custom ip address (interanl) it shows me this

#

where 192.168.1.51:8123 my hassio ip address

hallow mango
#

@devout hatch you can just set a different tap action per entity in the glance

heavy garnet
#

Is there a wait to set your domain. Like you can with a apache server? Right now i still have to add the port to my domain even with a srv record with the a record

formal tide
#

I think you mix a few things up here @heavy garnet

dark dirge
#

no

formal tide
#

damn

dark dirge
#

you could combine whatever it is that you're testing into a single sensor

#

and a template sensor can use whatever logic you want

formal tide
#

gotcha

#

I have these window/door sensors now and just want a simple way to display if one of them opens - which one is opened in a card... think I'll do that with auto entities then 😛

dark dirge
#

I managed to get rid of a bunch of conditional cards using auto-entities, but I think I still have one that I need

#

it's a pretty nice card

formal tide
#

it's perfect to keep an eye on your batteries, thats for sure

formal tide
#

soz I'm a n00b

dark dirge
#

Looks like I don't have one like that anymore

#

I think you have it backward

#
                - type: 'custom:auto-entities'
                  filter:
                    include:
                      - entity_id: "lock.*"
                        state: unlocked
                  show_empty: false
                  card:
                    type: glance
                    title: Doors Unlocked
                    show_state: false
#

in other words, auto-entities outside, conditional card nested inside

#

auto-entities fills the entity list for a card, it's not a card by itself

formal tide
#

show_empty: false was all I needed 🥳 mindblown
me so stoopid

#

not even a template needed

#

thanks rob!

nova bloom
#

is there any way to copy(duplicate) a view?

formal tide
#

if you mean a lovelace tab - yes, just use the raw editor and copy it

nova bloom
#

ahh didnt notioce the raw editor link before

polar kelp
#

OMG! You can use node anchors in the raw editor!

#

And it doesn't just parse them, but keeps them around!

#

And if you change something, it automatically updates the anchors in a way that makes sense!

#

I had no idea!

formal tide
#

what is this? 0.450b5?

polar kelp
#

umm

#

dev from two days ago.

#

Also magic. It is magic.

woeful wren
#

Did anyone get en new quick search to work?

#

If so, which key combo did you use?

mild veldt
#

@polar kelp 🤯what happened?

formal tide
#

ctrl+p
or
cmd+p

woeful wren
formal tide
#

question is: how do you open quicksearch on mobile? hm? hm? hm?

polar kelp
#

Ok. They're not stored across reboots, so it must be some frontend magic.

#

Get a bluetooth keyboard @formal tide

#

BRB. Digging out a bt keyboard from the pile-o-trash.

#

IT WORKS!

#

Fantastic!

formal tide
#

I‘m sure one can get this shortcut to trigger with browser-mod 🤷‍♂️

round lily
#

anyone know the magic element I can mod to get entity text in the entities card adjusted?

#

i'd like to apply the css

  background: inherit;
  background-clip: text;
  color: transparent;
  filter: invert(1);
rain briar
#

"Map" located under "overview" and above "Logbook" is there any way to hide that from certain users?

proven ether
#

Mobile View is broken in one of the past 2 Home Assistant Updated, when used with Custom Lyout. :(

dark dirge
#

@rain briar You can rearrange or remove items from the sidebar separately on any device by clicking and holding on the "Home Assistant" title in the sidebar

#

or by clicking "edit" in the profile

rain briar
#

Anyway to stop someone like my children from re-adding map? They dont know about the geo features and I would like to keep it that way.. For good parenting sake that is 🙂

#

I'll submit a github request to add permission structure to Map, Logbook and history

lapis hatch
#

question is: how do you open quicksearch on mobile? hm? hm? hm?
@formal tide You don't yet 🙂 I'm considering a few options, but I don't really know how the FE / mobile interaction works yet (e.g. how do my changes in FE repo affect mobile apps)

#

Was thinking long pressing the app, or having a tiny hovering fab button in the lower right

carmine fern
#

Are assets placed inside the /media/ folder meant to be accessible in the same way as /www/ but with authentication?

#

Because I can't get any assets from there to show in the frontend

spice grove
celest jackal
#

how can i resize cards with "card mod"?

wise pewter
#

hi
i've got a sensor that outputs its values in seconds and I plot it (it's the battery life of a ups), but I'd like hours
how can I manipulate the number so the graph card can get the unit I want? graph card can't manipulate it itself

karmic tiger
#

If you can't control that sensor, you could wrap the value with a template sensor instead

wise pewter
#

right thanks

dry inlet
#

How to get rid of the circular icons inthe top of my main lovelace page?

formal tide
#

get rid of the auto lovelace dashboard

dry inlet
#

whats that?

kind shellBOT
karmic tiger
#

If you don't like the badges, you need to edit the dashboard. You can either create a new one or take control of the default one.

dry inlet
#

is there an advantage of having more than 1?

#

Or should I always just edit and use the default one?

karmic tiger
#

That's a personal choice

#

I have a real dashboard and a 'test' dashboard.

#

On my real dashboard, I split things between tabs.

#

The test one is just so I can play around and make mistakes without breaking the real one.

dry inlet
#

ahh ok than I will start with just modifiying the default one

slow brook
#

Hi everyone, I have some trouble trying to understand why I keep having the following problem: Custom element doesn't exist: button-card. The javascript has been added in the resources like other JSs (where those works). I already rebooted HA (a few times) and also cleared the browser cache.

wheat current
#

How exactly did you add it?
And where exactly is the file located?

slow brook
#

I added it through yaml like this:
lovelace:
mode: yaml
resources:
- url: /local/button-card/button-card.js?v=3.3.6
type: module

#

this is the location path config\www\plugins\card-mod\card-mod.js

wheat current
#

nope

#

"button-card" != "card-mod"

slow brook
#

sorry wrong copy

#

\config\www\button-card\button-card.js

wheat current
#

Looks correct

#

Try opening the file in the browser

#

http(s)://URL_OR_IP(:port)/local/button-card/button-card.js

slow brook
#

oks 1 sec

#

works

wheat current
#

Did you run the reload service?

slow brook
#

frontend.reload_themes ?

wheat current
#

no

slow brook
#

no I haven't which service should I call?

wheat current
#

not sure

slow brook
#

ahah ok I'll try to launch a few

dry inlet
#

I got this lovelace error after adding the mulitple-entity-row module

#

Custom element doesn't exist: multiple-entity-row.

#

my configuration.yaml:

#
lovelace:
  resources:
    - url: /local/multiple-entity-row.js?v=3.5.1
      type: module````
#

I think I did not do this Manually add multiple-entity-row.js to your <config>/www/ folder

#

for me there is not www folder in config (i am browsing with file editor in HA)

polar kelp
#

You need to create the directory manually. And after doing that you need to restart Home Assistant for it to register.

#

You do not need to restart after adding new things to the directory. Only when creating it.

dry inlet
#

ok so just a www folder in config folder (where the configuration.yaml is)

polar kelp
#

yup

daring tangle
#

I think its just a spacing issue but unsure how to best fix it this is in the lovelace card configurator. if i just have the master bedroom fan there it shows up just fine and works as designed - however when i try and add more fans i get duplicated mapping key error and i'm not quite sure the best way to go about fixing this. https://paste.ubuntu.com/p/WQgHNM2xd9/

polar kelp
#

When it comes to yaml, indentation - the distance from the left edge to the first non-space character - is EVERYTHING.

daring tangle
#

@polar kelp i realize that - i just dont know the proper way to fix it. I have tried playing around with it but had no luck. Thank you i will take a look at the link and go from there.

daring tangle
#

Thank you! I was able to copy the example Lovelace Yaml - and tweak it to fit my config and made it work. Thanks again

celest jackal
#

how can i resize cards with "card mod"?

#

I need to be able to reduce the cards by 50%

willow zodiac
#

where is the setting that changes the the far left edge of the brightness slider on lights from "off", to "lowest brightness"? I know I've set that before, but can't remember where...

formal tide
#

how can i resize cards with "card mod"?
@celest jackal what have you tried?

celest jackal
#

@celest jackal what have you tried?
@formal tide
example:

style:
.: |
ha-card {
height: 50px;
width: 100px;
}

honest moon
#

bug? inside a CHOOSE action, actions, clicking the up/down arrows to reorder the sub-actions doesn't work. nothign happens. no JS errors, either (automation UI)

fickle notch
#

hey everyone, is there a way to make Lovelave UI store to ui-lovelace.yaml instead of .storage/lovelace? I like using the GUI to edit the UI but i don't like it storing itself in a hidden folder that makes it more difficult to backup and less transparent

polar kelp
#

@willow zodiac That's been a feature of custom-ui. Never of Home Assistant itself.

finite pond
#

@polar kelp still unable to get card-mod-view code to work with Chrome/Android WebView. Works on Firefox though.

finite pond
#

Same theme, one has borders, one doesn't.

sour harness
#

Hey guys! Anyone know if there is any way I can have a history graph hidden inside some card like the custom fold-entity-row card?

hallow mango
#

with the rgb-light-card, could I run multiple services in the same call?

finite pond
#

@hallow mango yep

hallow mango
#

how would I structure two calls?

finite pond
#

Wait you mean two service calls?

hallow mango
#

yeah

#

like a sequence

finite pond
#

You can do that in a script, but I thought you meant a light action and a script, which you can do

hallow mango
#

actually I wonder if sequence: works there 🤔

#

I suppose I could do it that way 😫

#

lol

proven ether
#

Is it possible to get some code in .yaml, into a entities list?

#

So that the "IP" in this example (In the DS212 row) is only shown when some state is happening
(IF / Else Condition)

#

`entities:

  • entity: sensor.fritz_box
    type: 'custom:multiple-entity-row'
    secondary_info: Modem | Router
    entities:
    • entity: sensor.fritz_box_ip
      name: IP`
proven ether
#

Thanks!
Had a logic mistake there. Now it works :)

daring smelt
#

Is there a way to check NTP status/config in the front end? I've searched for quite some time now and cannot find much. Running on an RPI4.

vapid field
#

so I have a door sensor and would like to present it in an clear way in a panel... but the best I can do still says "Door Open Off" meaning the door is closed... what am I missing

daring smelt
#

Best I have found is setting the timezone in Config/General

proven ether
#

Is it possible to have: "type: divider" into the standard Entity-Filter Card?

polar kelp
#

Don't think so. But you can use it with auto-entities.

proven ether
#

Than i think i had to switch to auto-entities. :D

#

Sorry for so much noob-questions. First time really go deeper into HA.

polar kelp
#

We've all been there

dry inlet
#

How can I add custom cards? I thought I did everything right but it says custom... not found when I try to add a new type to lovelace :/

wheat current
#

That only work in YAML mode

dry inlet
#

oh whats that?

wheat current
#

You need to use:
HA UI -> Configuration -> Lovelace dashboards -> Resources

dry inlet
#

Do I have to restart or do anything else?

#

Can I delete the code out of the configuration.yaml which I added earliere?

dry inlet
#

@wheat current any idea?

#

do I have to do something else because its still not working

#

just added the js to resoruces

#

the url

plucky storm
#

Is there any way to clear an IP ban without restarting HA?

wheat current
#

no

shell torrent
#

I'm to get template-entity-row to show localized state as described in https://github.com/thomasloven/lovelace-template-entity-row

In evaluated templates the function _(<key>) (underscore) will localize the <key> to the current language. E.g. _(state.binary_sensor.motion.off) will be replaced with Clear if your language is set to English.```
which in my case I think should be like this:

state: "_(state.binary_sensor.door.{{states('binary_sensor.balkongdorr_sovrum_tmpl')}})"

which shows up like this: https://imgur.com/a/np5UwDS and not really the way I expected :-)
any suggestions?

Edit: It seems something changed since the docs.
This actually works: ```state: "_(component.binary_sensor.state.door.{{states('binary_sensor.balkongdorr_sovrum_tmpl')}})"```
plucky storm
#

@wheat current I don't suppose there's a way to exclude specific IPs from banning?

wheat current
#

🤷‍♂️

plush stratus
#

Sooooo wayyyy back when i did my precious HA evaluation i ended up using groups a lot for lights. I cant seem to find the corresponding thing under lovelace. But surely it must be around... so what it is called now? (As in group a bundle of lights togheter to be able to control as one entity)

mild veldt
plush stratus
#

@mild veldt Yeah, I just assumed there would be a way to create/edit those in Lovelace?

vapid field
#

Whats a recommended element to use for showing what doors (door switches) are open or closed?

mild veldt
#

@plush stratus not at this time

plush stratus
#

@mild veldt Thanks. Then I'll just do it like before. 🙂

formal tide
#

@vapid field I made this recently for my windows

card:
  title: open windows
  type: entities
filter:
  include:
    - entity_id: binary_sensor.*lumi*
      state: 'on'
show_empty: false```
dry inlet
#

How to add custom cards to lovelance over the ressources tab? Do you have to enter a http or just a local url?

#

I tried both but it doesnt work :/

sour harness
#

No
@polar kelp FYI just in case anyone else ever asks if this can be done, I managed to achieve a similar result with a workaround: I call the the pop-up notification every 10 seconds so when ever I open a new browser the pop-up will be displayed and have added a boolean switch on the displayed card to disable it once viewed, this way when ever I open HA from my phone and there is something I want to display that might need my my attention I get the pop up notification right away. 👍

#

Another related question I have: Is there any way to rename a entity I want to display in a browser_mod.popup?

shell torrent
#

I'm using template-entity-row to hide entities that are not active which works great for entities in that card.

But is there anyway to hide a whole card if no entities are active (with a template)?

sour harness
#

use the conditional card for that, its included in HA

shell torrent
#

ah, of course. I already use that for another card 🤦‍♂️

#

thanks

winter blade
#

Are there other ways to display lots of regular text in HA? Keeping a little log of what changed in the house for my family members and I'm currently using markdown cards for it. Sadly HA doesn't seem to like 70 of them in a horizontal stack.

mild veldt
#

I can't even imagine what that would look like. 70 in a single stack?

#

Are you just tracking state changes in them?

hollow tree
#

is there a possibility to add/create a entity via webinterface an not with editing yaml files

fast jetty
#

I've been having a weird issue where when I first load homeassistant in Chrome, a bunch of cards appear to be missing until I switch views to a different dashboard and then back, at which point they all load correctly

#

any ideas why this may be?

#

I dont have any extensions currently enabled so it doesnt seem to be that

winter blade
#

I can't even imagine what that would look like. 70 in a single stack?
@mild veldt jep... it's just a very long page with text haha. I'm just manually listing things that I changed in our house, like automation changed etc.

fast jetty
#

it also looks like it happens in Edge as well, and Safari on my Mac

#

hmm... yeah it looks like the iOS app is also doing it so not a browser issue

rocky bobcat
#

Ugh re-ordering cards is so annoying with the up and down arrows.

#

I really hope a future version of the editor will let me just drag and drop them into place

#

I go to move one card and they all change position with the current setup

mild veldt
#

@rocky bobcat it will soon

#

@winter blade is the problem the look or performance?

#

@hollow tree some integrations support that but far from all

#

What are you trying to add?

hollow tree
#

iantrich, yea i had several setups of HA in the past

mild veldt
#

@fast jetty try clearing your browser cache. Any custom cards?

hollow tree
#

but this whole yaml editing is a bit annoyin

#

especially if you are not so deep into the materia

#

or had some time off it an

#

but for basic things like a binary sensor or so? nothing fancy, speaking about HA in Docker, not hass.io

mild veldt
#

In terms of integrations, usually you can just copy the config example on the docs into yours. Most everything else can be done in the UI. Check configuration > integrations to see if it is available there first

rocky bobcat
#

i'll take yaml editing over having to make custom python code for each dashboard item, that's for sure

fast jetty
#

@fast jetty try clearing your browser cache. Any custom cards?
@mild veldt just vertical-stack-in-card, but even after removing those cards the issue still happens

mild veldt
#

@hollow tree I have no doubt that we'll get binary sensors in the frontend but yeah not yet

#

@fast jetty console errors?

fast jetty
#

Switching to the beta branch actually apparently seemed to fix it strangely

winter blade
#

is the problem the look or performance?
@mild veldt Performance, when editing the vertical stack for 1+ minute HA seems to crash...

mild veldt
#

@winter blade not surprising. Each markdown card opens a websocket connection to render any templates. Should probably be a disclaimer on the card. Try to use less ok individual cards and combine your text

winter blade
#

not surprising. Each markdown card opens a websocket connection to render any templates. Should probably be a disclaimer on the card. Try to use less ok individual cards and combine your text
Ahh, that makes sense. I'll try something else. Thx for the clarification!

vapid field
#

@vapid field I made this recently for my windows

card:
  title: open windows
  type: entities
filter:
  include:
    - entity_id: binary_sensor.*lumi*
      state: 'on'
show_empty: false```

@formal tide Thanks, I like that. Do you know how to make it not actually display the state "on" ? I find it a bit disturbing that doors are on when they are open... in this case it's also implied that they are open already. Sorry, I'm trying to learn here.

formal tide
#

this depends on device/entity, mine display "open" and "closed". I think I've seen a frontend way to do this, thomasloven might have some idea on that. traditionally you would make template entities out of the states

vapid field
#

I have surmised I need to learn about templates... maybe this is a good time to do so

vapid field
#

also... reading the forums make me happy I waited so long to start putting my Devolo sensors in HomeAssistant 😛 so far everything has gone easy.

#

hm, customizations are saved in the home assistant database when they are made from the UI (configuration->entities)... but the UI doesn't allow me to change device_class which might solve this particular issue...

#

i'm wrong... again

vapid field
#

HA but it did if I added it through the UI-> developer tools states...

#

where is this saved then if not in core.entity_registry?

formal tide
#

🤷‍♂️ i have no idea what you are doing, thats uncharted waters for me

dark dirge
#

customize.yaml

vapid field
#

if I set device_class: opening in developer tools -> states, it says "open" and not "on"...

dark dirge
#

and if you do it permanently in configuration -> Customizations?

vapid field
#

this is however not saved in any config, so it's gone after a restart

dark dirge
#

the dev tools change is temporary

vapid field
#

yea, nice feature, I like. But i assumed this information was picked up from core.entity_registry

vapid field
#

but that is where all the other entities get their "default unit" and such from right?

dark dirge
#

from the integration, or what you give it when you create the entity

#

the core.* files just store info that comes from somewhere else

vapid field
#

customize worked fine...

#

I just have a shit tonne of devolo zwave devices and am hoping to find the "best"[tm] way to fix stuff...

dark dirge
#

you can do it with a customize_glob

#

maybe?

vapid field
#

would be nice if I could have a template in customize saying "binary_sensor.devolo_home_control_door_window_contact_*_sensor" device_class: opening

dark dirge
#

you can

#

that's what customize.yaml does

vapid field
#

oh

#

no, the asterisk

dark dirge
#

you can

vapid field
#

like a wildcard for all door sensors

dark dirge
#

you can do it with a customize_glob

vapid field
#

oh really 🙂

dark dirge
#

read that whole page that I linked to

vapid field
#

hahaha yea it's right there

#

it's almost 1am. I'm forgiven, by me

dark dirge
#

🙂

vapid field
#

this should probably be good information for anyone using devolo magnet switches

#

sweet, works with the _glob and a wildcard...

dry inlet
#

How to add custom cards to lovelance over the ressources tab? Do you have to enter a http or just a local url?
I tried both but it doesnt work :/

grand sable
#

Hey all Home Assistant people 😉

I have 3 cards on one of my Lovelace views. Right now they are placed in the middle, but I want to move them to the top left 👍 If possible I would also like to know how to make them a bit smaller maybe 15% smaller. I am using the custom layout-card.

Here is the code:
https://pastebin.com/pqjavZtZ

Here is a image of my current layout:
https://imgur.com/74AkKK4
Thanks in advance for the help ☺️

  • Viggo
dry inlet
#

how did you import custom layout cards? @grand sable

grand sable
#

how did you import custom layout cards? @grand sable
@dry inlet
I installed it from the HACS store, and then just copied the path it was saying under resources

dry inlet
#

ok perfect I will try tomorrow

ivory sigil
#

Hi, I tried to give my KNX entities a friendly_name via the customization: but it didn't seem to take effect? Is this even possible?

configuration.yaml has:
homeassistant:
customize: !include customize.yaml

customize.yaml has:
WC2.Lampotila:
friendly_name: "Hyyskä"

WC2.Lampotila is the entity as defined in configuration.yaml:
knx:
sensor:
- name: "WC2.Lampotila"
state_address: "1/1/10"
type: "temperature"

dark dirge
#

Lowercase

#

Also, WC2.Lxxxx isn’t an entity name

#

You can’t have a dot in the name, and it will start with sensor.

ivory sigil
#

ah right!

#

brain goes clickety click

#

sensor.wc2_lampotila is what I want

#

Thanks RobC!

dark dirge
#

Yep

ivory sigil
#

nope, typo. All good

vapid field
#

Custom element doesn't exist: stuck with this for hours. I tried manual install, with hacs, tried all kind of different paths under /config/www , tried different custom elements too. But still stuck. Any ideas how to debug this ?

#
title: My Awesome Home
views:
    # View tab title.
  - title: Example
    cards:
      - type: custom:simple-weather-card
        entity: weather.smhi
        name: in current location
resources:
  - url: /local/simple-weather-card-bundle.js?v=0.8.1
    type: module
formal tide
#

can the browser load this url?

vapid field
#

Not sure what you mean with loading the url ?

karmic tiger
#

I thought custom resources were supposed to be added via configuration > Lovelace > Resources?

vapid field
#

Ok, when i load the url it shows code/garbage

#

!function(A){var t={};function e(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return A[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=A,e.c=t,e.d=function(A,t,n){e.o(A,t)||Object.defineProperty(A,t,{enumerable:!0,get:n})}

#

@karmic tiger I will give that approach a try ..

karmic tiger
#

That's not garbage. That's the script 😄

vapid field
#

@karmic tiger So thats a good thing i suppose.

#

I tried adding the custom resource via Lovelace > Resource , But still the same error.

formal tide
#

do you run chrome?

vapid field
#

tried firefox and chrome

formal tide
vapid field
#

I noticed when looking at the javascript file with the HA file editor that all the code is in one single line.

#

That seems wrong

formal tide
#

that is supposed to be minified

karmic tiger
#

Single line is fine. Don't worry about the contents.

#

Devs will often minify (shrink) code to make it smaller and faster to download.

vapid field
#

tried wget, git download with zip and raw already

#

Any idea how to see more debug output. I am network engineer but don;t know much about code and debugging things.

signal vigil
#

short question: is there a 3way switch for lovelace? (On/Auto/Off)

signal vigil
#

yea i have seen this one but how do i get the orange switch with the 3 states?

formal tide
#

one of several reasons it’s not nearly ready for release - and may in fact never be.

#

make use of input_select in the first answer

signal vigil
#

ahh oke thanks but then it is more or less usless for me

kind shellBOT
vapid field
#

trying to fine my way in dev tools

#

From forum rules it's allowed to past less then 10 lines of code/logs , my apologies if this is not the right etiquette .

formal tide
#

imagine looking at this wall of code on a mobile device

vapid field
#

True, will keep mobile devices in mind. It's deleted.

vapid field
#

Can't find the check box menu anywhere in Developer Tools interface.

formal tide
#

click on the configuration

vapid field
#

Sorry no gear symbol anywhere. We are talking about this i suppose The frontend contains a section called “Developer Tools”.

dark dirge
#

devtools in the left sidebar, but I don’t know what ‘checkbox menu’ you’re looking for

vapid field
dark dirge
#

That’s not home assistant. It looks like some browser dev tool

#

I have no idea what that is

vapid field
#

that explains my confusion 🙂 Let's see if i can find this in the browser.

wide oriole
mild veldt
#

@wide oriole click the pencil on the view name and go to the badges tab

wide oriole
#

Thanks a lot!

pearl shadow
#

Hi, on v0.116 I get the Python 3.7 deprecated reminder notification at every startup, can I dismiss it permanently?

wheat current
#

or actually fix it so it does not show in the first place 🤷‍♂️

pearl shadow
#

Thank you @wheat current, it seems weird to me because I remember at some point not long ago a HA update introduced exactly this feature for recurring notifications, but I don't seem to find it anymore

polar kelp
#

@signal vigil sorry about the tease with that one. It’s just not a good UX, so I’ve dropped it.

signal vigil
#

its oke no worries, i tried to make my own one but is faild more or less 😄

desert flame
#

Hi, is anyone using FB profile picture for person please? It stopped working for me, and when I copied it to browser, I got: "message": "An access token is required to request this resource.",

I was using this long time without issues:
https://graph.facebook.com/<fb_id>/picture?type=large

quasi tinsel
#

this proximity: thing is nice. is there anything alike that keeps on tracking devices even if one of them is in homezone

vapid field
#

Hi, I try to add a image as a background on a vacuum card. I run Home assistant supervised. I have installed Samba share and can se the image in my media browser. I try to use the path /media/roborock.jpg but it dont work. am I using the correct path?

vapid field
#

Hi, I try to add a image as a background on a vacuum card. I run Home assistant supervised. I have installed Samba share and can se the image in my media browser. I try to use the path /media/roborock.jpg but it dont work. am I using the correct path?
@vapid field EDIT: I found out that i should put the images in www/img. and then use local/img/robojock.jpg.

#

But i still wonder what the path is to the files that are added in /media folder

shell torrent
#

is it possible to set the "active"-flag on a template sensor with only built-in cards and functions?

background: I use lovelace-template-entity-row which works great, but I am trying to move the templates to backend and to use as much of the built-in functions as possible
one my most appreciated features of the lovelace-template-entity-row is to set a value for entity to be active, which I use a lot for making the row active if the CPU usage is above 20%, and stuff like that.

minor wedge
#

I'm having trouble using HACS to add custom cards, but it may just be a case of not following directions:

  1. I'm adding the card in HACS in "frontend" (vacuum card).
  2. Restart HASSIO.
  3. Go to dashboard, configure UI, add card - but I see no "vacuum card" as the instructions suggest (https://github.com/denysdovhan/vacuum-card)

Any thoughts on what might be going on?

dark dirge
#

did you add the resource?