#frontend-archived

1 messages · Page 202 of 1

errant plover
next topaz
#

Thx. Wanted try to avoid one more custom integration, but what to do, life's go on :). Will try this later, my working hours started now, thank you very much.

wind condor
#

Hi Y'all! Is this the right channel for a reverse proxy question? I can also post it in #ios_and_mac-archived since I have a problem loading the frontend in the app. I don't think it is ios related, but reverse proxy. The point is as follows: on laptop HA loads fine with local url AND with duckdns url. So the reverse proxy is setup fine and xforwardfor and trusted proxies must be correct, right? In the ios app, the local url loads fine but the duckdns url doesn't load after login... I suspect it is because of strict content security police rules I have: Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'self';" always;
But it has to at least be something that is different with the app than with the browser frontend. Any ideas?

wind condor
#

I tested it with leaving out content security policy headers and now the app works. So what should I allow to have it work properly? It is important for security to set strict CSP rules, so I can't just leave it like this.

karmic tiger
#

The http integration is a topic for #integrations-archived. But since you've already solved it, you can leave it alone now. Don't worry about CSP, since your HA server isn't exactly going to be a big target for hackers 😉

wind condor
#

well, that's not how I like to approach security :-p

karmic tiger
#

🤷‍♂️

#

Security is about risk vs effort. There's no risk, so you should spend no effort on it.

#

If you have HTTPS and you don't go advertising your domain to potential attackers, you're good.

wind condor
#

It doesn't have to be iron clad but getting a good score on ssllabs and securityheaders.com is default practice. Content-Security-Policy is part of that. Plus with so many people using HA from behind a reverse proxy it makes sense that we as a community know the right policy for it. Once it works I'd be happy to contribute a page for the HA docs

fiery ledge
#

anyone else seeing 'RangeError: currency is not a well-formed currency code' in Inspector? could that be caused by €/kWh instead of EUR/kWh

#

probably.... while above error was in Safari, Chrome says: Invalid currency code : €/kWh at new NumberFormat

dark dirge
#

There’s a link in configuration -> General that explains the values

fiery ledge
#

yes, it says EUR, but EUR/kWh looks really ugly in the frontend as unit on an entity. Ive just asked if we are allowed to PR that to €/kWh in #devs_energy-archived .which does work in energy: panel so no issue there

#

but wait, having changed those to the prescribed EUR/kWh and EUR/m³ the errors still persist....

winter hollow
fiery ledge
#

seems a bug?

winter hollow
#

EUR/kWh should not have device class monetary

fiery ledge
#

ok now you officially lost me 😉 .... the entities used for the tariffs, should be using the EUR/kWh unit, and no device_class?

#

ok error gone, thanks. as you are using the ISO 4217, I guess my request for PR'ing to the € sign is not acceptable? (would be a nice touch though if we could use/see the currency sign/symbol instead of the code in the frontend)

last oar
#

Quick suggestion for you guys. Instead of just saying "turned on by supervisor" in the logs, it would be nice if it said the name of the automation such as "Turned on by automation-motion lights"

winter hollow
fiery ledge
#

Ha yes, but not on the tariff sensors because of the above requirements..btw, just to be sure: I am not talking about the icon , but about the sign in the unit

stone plaza
#

is browsermod supposed to work with instances of the Mobile companion app? I created a test button to make a popup, and for some reason it works on the Android app on my phone! ...but it doesn't do anything on my FireHD tablet :/. It DOES work in a browser (Fully Kiosk), but I'd really rather use the app. Does anybody know if there's a trick to making this work?

#

Did I enable a sensor on my phone that lets this work or something?

#

Ah nevermind - in case anyone else is wondering, clearing the data and cache on the android app fixes this. Yay! Mobile App works just like a browser now 🙂

hallow mango
#

@stone plaza just curious about your use case for this? browser mod seems super useful but above my head for what it can do 😅

stone plaza
#

browser mod is just the only plugin that seems to be able to trigger a popup remotely

#

@hallow mango I'm gonna use it to build a doorbell system 🤓

#

basically popping up the doorbell cam on a dedicated tablet when it rings

trail frigate
#

how can i get an !include in my lovelace.yaml ?

dark dirge
#

Use YAML mode

trail frigate
#

thanks

keen belfry
#

Hi, I don't know if I'm posting in the right thread or not but I'd like to follow cover events but they do not appear in the list of available event of dev tools/events.

#

Actually, my covers behave wiredly if I use them from node_red while they work just fine from the cover card

#

i'm wondering if the cover card uses cover.open_cover or cover.open_cover_tilt for instance

dark dirge
#

Those are not events

hallow mango
keen belfry
#

Oh

dark dirge
#

Those are services, and the event is call_service

keen belfry
#

Okay, thanks

dark dirge
keen belfry
#

But this event does not appear in the list of available events of the event listener

dark dirge
#

That doesn’t matter

#

But you’re better off looking at logs

karmic tiger
#

The events down the side are the ones with active listeners. There are many unlisted events.

keen belfry
#

Thanks guys

#

Which is the best thread for covers help, integrations?

dark dirge
keen belfry
#

Thank you very much. Have a nice evening guys.

tropic yew
#

Hi there, hope this is the right place. I have noticed that since a recent update when i sue the Picture Entity and try to use Aspect Ration, it is cropping the image instead of constraining it like it used to, any thoughts or fixes?

hazy shard
hallow mango
#

@hazy shard have you tried using initial_view: list?

hazy shard
hallow mango
#

yep, and fwiw I can replicate

#

using listWeek makes it start yesterday (Sunday), but using list makes it start today

#

you know... I think someone else was asking about this

#

oh it was you lmao

#

but it looks like the UI editor for that card says "List" but still fills in listWeek

mild pike
#

does anyone else have any issues with the thermostat buttons taking two presses to do anything? i have an ecobee and if i hit the heat/cool/off buttons on the thermostat card, i have to hit them a second time to get them to take...if i click the three dots and change the mode / temp that way, they stick on the first try

#

it's more that the display doesn't update....if i watch the ecobee app, i can see the mode / temp change on the first press...but the HA display doesn't update

errant plover
#

Wait. The polling interval for the status update is probably 10 sec.

mild pike
#

i have tried that. i'm waiting way longer than 10 sec

#

right now i'm on probably 90 sec or so and it still hasn't changed

#

it did finally update after about 4 or 5 minutes

errant plover
mild pike
#

i had posted there but nobody answered...i'll try there again

errant plover
#

Be patient. Wait until someone who knows about that integration is around.

wind condor
polar kelp
#

ALL web-based apps on iOS uses the safari engine. Including "browsers" like chrome and opera, because Apple...

wind condor
#

yeah makes complete sense, just didn't think about it. Was looking for ways to debug, because of course an app lacks detailed logging. But being able to finally reproduce with mac os safari browser was great 👍

#

After that it was a 2 minute fix 🙂

polar kelp
#

Good. In the few cases the behavior differs, btw, you can attach the macOS Safari console and debugger to your phones Safari if you connect it via USB.

wind condor
#

wow, great tip thanks!

polar kelp
#

It has the added benefit of making you feel like some kind of Hollywood Hacker.

wind condor
#

Hahaha, it does doesn't it. Btw, I could write up something on a quite secure nginx reverse proxy config. (A+ on SSL Labs, A on security headers.com) to add to HA docs if that would be nice?

polar kelp
wind condor
#

Interesting to see quite some docs there which didn't turn up with searches on duckduckgo or google

#

thanks for the tips and big thanks for your custom lovelace cards too! Love em!

compact mica
#

hi guys, every 2-3 days i find my lovelace UI is unreachable .... both from dns and from local ip address ... am running home assistant os on rpi 4

#

when i use a ping test to my local ip i do get some response... ssh is also not working

#

any assistance on how can i debug it more?

#

i tried to restart my pi4 physically and looking in home-assistant.log but no luck yet

fiery ledge
karmic tiger
devout perch
#

Is there any trick in making the statistics card work with MQTT sensors?

karmic tiger
#

The tl;dr is that it needs the relevant state_class.

devout perch
#

Thanks. Might be an idea to put it in the card documentation tho, instead of two levels linked into developer documentation.

karmic tiger
#

You're welcome to submit changes to the docs if you have suggestions for improvements.

shut sable
#

Hi I've just asked about this in templates but i now have a sensor which has an image url as the state https://hastebin.com/upolalajuz.kotlin so how do i get to see an image in the front end that's loaded from that url? I thought this might be better asked in frontend

devout perch
#

I made the MQTT sensors work by adding a homeassistant: subsection with a state_class: 'measurement' entry per known device entry in zigbee2mqtt's devices.yaml.

acoustic hound
#

Just powered up my charger for my EV is there any prebuilt tracker that can pull in local gas prices and convert my electric vs gas mpg and display a ticker of how much I have saved not using gas? Like if it costs me .048 per mile ev vs .10 on gas right now with gas being $3 but have it dynamic based on now gas prices. I want to track my ROI by going electric. I don't really want to build all the templates and such if someone already has one made.

plain onyx
#

got whats-up-docker setup in mqtt, how do i display sensor attributes in lovelace again ?

copper mural
#

Is it possible to make a picture-entity show the picture with saturation 0.0 without using state_filter? As the state can be so many different value. I want it saturationed 0 all the time.

hallow mango
#

@hazy shard I made a PR to fix the editor for calendar card and updated the docs to reflect list instead of listWeek 😉

honest moon
#

i like the new statistics graph, but it doesn't let me aggregate data over multiple days. I'm looking for "ok, over 1 week, what was the average luminosity of the dining room throughout the day?"

#

is there something like that?

karmic tiger
#

Sure, Grafana.

honest moon
#

do i need to use influx to get the kind of data i want?

#

i'm currently using the MariaDB addon

karmic tiger
trail frigate
karmic tiger
#

Many people have variations of that kinda stuff. What's your question?

trail frigate
#

i dont get the floorplan displayed and the "all devices" menu is missing, but thats the smaller problem

karmic tiger
#

So...

  • what did you do?
  • what are you seeing?
  • what's in the logs/console?
#

If you don't provide information, no-one can help you fix it.

trail frigate
#

sorry mono , you're right. as soon as i click on the control room/floorplan menu its blank . the other menus are working.
console says something about the config-template-card and the button entity-row.

karmic tiger
#

Keep sharing. Where's your config?

#

Give as much information as needed. If it's not important, people can ignore it. If you withhold it, they have to keep asking you for more.

trail frigate
#

this is my lovelace file

#

its more or less a copy from luke

#

i just changed all the entities

#

just to get a starting point, and then i would adjust the needed stuff

#

no idea ? or did i miss something ?

kind shellBOT
#

@trail frigate People (and other sentient or vaguely intelligent beings) aren't waiting here for your questions, ready to leap upon them the moment they appear. Have a little patience. Keep in mind that repeatedly posting to get attention is against the rules (flooding) and can get you muted or banned.

trail frigate
#

OMG i found the error. i had light.schreibtisch and light.schreibtisch_lampe in the same definition , now its working , whoop whoop

#

somehow i can't !include the button_card_templates.yaml

#

i did this for now

title: RiotMode
button_card_templates: !include button_card_templates.yaml
views:```
quiet mulch
trail frigate
#

Where can i find all the different animations for Icons ? or is it just rotating ?

dark dirge
karmic tiger
#

Should the statistics graph card be able to chart negative values? Just to try it out, I'm charting the sun's elevation but the card seems to discard any negative data points, resulting in this: https://i.imgur.com/lIMT1d9.png

#

The underlying sensor's history does indeed have the proper negative values.

errant plover
#

I'm guessing yes it should be able to.

#

Freezer temperature would be a good example where it would be required.

shut sable
trail frigate
trail frigate
#

and this is my config:

button_card_templates: !include button_card_templates.yaml
title: RiotMode
views:

but i still get errors on the page https://ibb.co/5Mj8GDd

steady flare
#

Hi all, i know it's not possible to use an !include as a root option in the configuration.yaml, but i was wondering how you managed merging configurations

steady flare
#

Maybe my question is in the wrong channel, it's not really a Lovelace question. I'm wondering if there was something like the following: instead of using vacuum: !include vacuum.yaml

I want to use the following:
!include vacuum.yaml

And then change the vacuum.yaml with the root node vacuum

#

I want my configuration.yaml as empty as can be, just including other files

polar kelp
#

Oh, have I got the thing for you...

#

Your configuration.yaml could be ```yaml
homeassistant:
packages: !include_dir_named packages

default_config:```

solar aspen
#

Hi all! I am trying to use a lovelace picture card as a button, to turn on an input_boolean, through a "call service". On tap, I get an error: failed to call service input booelan expected str. any ideas?

solar aspen
#

type: picture
tap_action:
action: call-service
service: input_boolean.turn_on
service_data:
entity: input_boolean.receiver_napster
target: {}
hold_action:
action: none
image: /local/napster_lgo.jpg

#

error message: Failed to call service input_boolean/turn_on. Extra keys not allowed @ data['entity']

trail frigate
#

try:
service_data: entity_id:

polar kelp
#

Three backticks for multi-line code snippets.

solar aspen
#

rgr

#

did the trick. ta!

trail frigate
#

i want to have a picture-glance card in a lovelace page, but somehow its not working

  - title: Doorbird
    icon: 'mdi:lock'
    panel: true
    badges: []
    cards:
      - elements:
          - type: picture-glance
            title: Haustür
            entities:
              - entity: switch.doorbird_haustur_ir
              - entity: switch.doorbird_haustur_relay_1
            camera_image: camera.doorbird_haustur_live
            camera_view: live
mild veldt
#

remove -elements: and un-indent everything below to the correct level

#

assuming there isn't more to your config that you're not showing...

trail frigate
#

there is a lot more, jusst wanted to focus on that part

#

( its the lovelace from luke )

spice dome
#

don't know if this belongs to frontend, but is it normal that the energy tab is not calculating the cost, even though I specified the electricity price?

polar kelp
spice dome
trail frigate
polar kelp
#

remove -elements: and un-indent everything below to the correct level

mild veldt
#

you're trying to put a card in a picture-elements

#

that won't work without some hackery if that is indeed what you want

polar kelp
#

Oh. It was aaaaaaall the way down there...

mild veldt
#

I had a sneaking suspicion 🙂

trail frigate
#

un-indent = remove the "-" right ? sorry i'm a beginner and not native english 🙂

mild veldt
#

do you want this glance card inside your picture-elements card?

#

or do you just want it on the page?

trail frigate
#

i just want the glance card on the right side instead of the weather card, and later i want to add 2 other glance cards ( last ring / last motion )

mild veldt
#

try changing it to custom:hui-picture-glance-card

trail frigate
#

no luck 😦

polar kelp
#

What exactly does "not working" mean?

mild veldt
#

i.e. you're trying to do something that is not supported and therefore will have to use workarounds that will potentially break later on

trail frigate
#

okay i think it has something todo with lazy loading, yes. some strange things happening here ^^
on the left is my result after a page refresh. but when i click on "geräte/devices" (homekit-cards) and click on my camera to make it bigger and get back to "haustür/frontdoor" i see it as i want it, (right side on the screenshot)
https://ibb.co/Dt5Py3j

mild veldt
#

yes, use Thomas' plugin

#

that should pre-load the card for you

trail frigate
#

thanks guys, that helped

torn kernel
#

I have a question and not sure if this is the right channel...but if I wanted query the source_list of a media player how would I do that with the websocket api or is that a rest api thing? I'm trying to programmatically select sources by having different buttons for them on my custom front end

karmic tiger
#

Why would you need REST or WS to get something HA already knows?

torn kernel
#

because I'm not using HA

#

I'm using my own front end

#

written with openFrameworks

#

interfacing with HA through REST api and Websockets

karmic tiger
#

You should've led with that.

torn kernel
#

'I'm trying to programmatically select sources by having different buttons for them on my custom front end'

karmic tiger
#

Most people would consider their Lovelace frontends 'custom'. But to answer your question... you can possibly get that information from the registry but it's not a topic for this channel. #general-archived is probably best.

torn kernel
#

k

#

how does lovelace do it?

karmic tiger
#

The code's public if you want to see how. I would guess websockets.

torn kernel
#

yeah I've been searching on the github but haven't found the spot

#

'states.media_player.entity_id.attributes.source_list'

#

so is in the states

karmic tiger
#

Sure... which can be retrieved via REST or WS... take this to #general-archived please.

tame shale
#

why is making a complex interface require you to be a programmer

#

I mean I want to make a view that has three cards

#

and then below it I want another three cards on the same row to span all three

#

like fixed height - like a legit grid

#

but this nesting bullshit is killing me

mild veldt
#

Just do a grid card in a panel view. e.g.

title: Home Assistant
views:
  - icon: hass:home-assistant
    id: home
    title: Home
    panel: true
    cards:
      - type: grid
        cards:
          - type: thermostat
            entity: climate.upstairs
          - type: thermostat
            entity: climate.upstairs
#

etc

hallow mango
#

if only there was an easy way to make a single dashboard look good on both mobile and desktop (or portrait/landscape)

shut sable
# tame shale I mean I want to make a view that has three cards

It's pretty easy to do a grid just fill it with buttons so you get the layout you want and then you start replacing the buttons with the panels you made with your intended content and less is more only have what needs to be on a page and use nav buttons ... it's probably a cluttered page if you have to scroll the content

violet onyx
#

Hi. I'm trying to create a history graph of device network traffic. I already have the history graph for this but want to flip the download to use negative values such that the download graph line is below the X axis. Is there a way to template this in the card or do I have to create a template sensor like download_negative?

karmic tiger
#

It's... easy.

#

There are lots of examples that other people have shared if you want a template to copy from.

tame shale
#

where?

#

I love inspiration

#

since i have none

karmic tiger
#

Sure. Here, the forums, Google.

#

But you've been given a solution to your immediate question already. Grid card makes it simple to achieve what you want.

tame shale
#

teag

#

yeah can you merge columns?

#

in one row?

#

the problem with grids besides what I just asked is that you have make card on card on cards. Its complex - unnecessarily

karmic tiger
#

Except it's not unnecessary. How else do you define nested layouts?

tame shale
#

it shouldn't require recoding

karmic tiger
#

Try drawing a wireframe of your intended layout without having boxes inside other boxes.

tame shale
#

i understand and agree in theory it makes sense

#

working with that layout - is complex

karmic tiger
#

Sure...

tame shale
#

you can't easily extract cards without reformating txt

#

its ok

#

we don't have to agree

#

perhaps its just easier for you

karmic tiger
#

Of course you can. Use YAML anchors.

tame shale
#

and I was / am reaching my boiling point

#

well

#

don't know what that is exactly?

karmic tiger
#

Fortunately, Google knows everything, you just have to ask it.

tame shale
#

who is mono

#

thats what google said

#

holy F

#

you can use anchors?

karmic tiger
#

In YAML mode, sure. Just don't complain that you have to edit text 😉

tame shale
#

you gotta edit text too

#

🤦‍♂️

#

🙂

#

thanks for the help

#

its appreciated

karmic tiger
#

Well, yes... either settle for Lovelace-generated stuff or go full YAML.

#

Both have their advantages.

tame shale
#

I don't know what I use now - probably lovelace generated

#

theres not a good set of demo sites btw

#

like a gallery of them

#

here, forums and reddit isn't great

#

i promise 😉

hallow mango
#

that's true ^ googling around for Lovelace examples/inspiration usually gets a few of the same posts, which are either a few pictures with no explanation or an entire HA config, which looks nice, but is very difficult to adapt to your own

#

@tame shale if you don't wanna edit yaml, you probably shouldn't use HA 😅

tame shale
#

everyone loves this video

#

where is Zack

#

is he on here?

#

unfortunately people dont' live in homes with 3 rooms with one light switch in each

#

🙄

mild veldt
#

the idea of the video is to give you a basis to build upon, not a complete solution

hallow mango
#

@tame shale don't really know what you're looking for here lol

tame shale
#

well the meaning of life would be awesome

#

or sky being blue?

tame shale
#

thats the problem with youtube and instagram

#

rainbows and fairytales

polar kelp
#

Works great for my home. You just have to do some thinking and planning.

tame shale
#

im not arguing here -

#

it might sound like I am

#

🙂

hallow mango
#

ah nested grids

tame shale
#

right - in that example on the youtube he clearly combined cells if we talk like we are in excel 🙂

#

but then nesting just adds to the super level of complexity.

#

its not like its hard its just daunting and when you want to change something its like holy crap get out my miners cap and light and we can dig in 🙂

#

I am looking for a really good interface for my house - obviously

mild veldt
tame shale
#

right i figured he did

hallow mango
#

not combined like excel

#

@mild veldt I didn't realize that was a thing 🤔 hasn't been touched in 9 months though almost lol

hallow mango
#

you actually wouldn't even need the grid there, because they're all in a row, you could just use a horizontal-stack. nice thing about the grid is it makes them square, if that's the look you want

#

I don't really use the "grid card in panel mode" approach because it doesn't scale well from desktop to mobile

mild veldt
hallow mango
#

agreed

#

I'd seen his video on the drag and drop but I didn't realize it was a card he made

tropic yew
#

Hi there, hope this is the right place. I have noticed that since a recent update when i sue the Picture Entity and try to use Aspect Ration, it is cropping the image instead of constraining it like it used to, any thoughts or fixes?

tropic yew
#

Hi, is there any one here that can help with the Picture Entity?

sly pulsar
#

Can anyone see what i'm doing wrong here? My sensor just keeps the deviceID instead of changing the name to chrome...

hallow mango
#

I think if anyone knew they'd have answered you @tropic yew

sly pulsar
#
  devices:
    f4b98f26-a979xxxx:
      name: chrome```
hallow mango
tropic yew
#

@hallow mango maybe someone could test square image and set the ration to 16:9 to see if it it is doing the same thing? I dont know how to put it to the developers as a bug

hallow mango
#

there's a bit about changing deviceid

#

@tropic yew I do have the same thing

#

I noticed it the other day

sly pulsar
hallow mango
#

ah, not sure then

#

I haven't used browser mod

sly pulsar
#

Hope anyone can see whats wrong in my config. 🙂

hallow mango
#

well your config looks right

#

I think the device id doesn't change to chrome

#

that's just an alias

sly pulsar
#

testing another name. 🙂

hallow mango
#

what's not working? why do you need to change the device id?

tropic yew
sly pulsar
#

Changed to another name but it still shows sensor.xxxxx_xxxxx instead of sensor.chrome etc...

hallow mango
#

so change the entity id

sly pulsar
#

Will that work you think?

hallow mango
#

yeah

sly pulsar
#

Testing...

#

Entity is changed indeed but now i still need to use the device_id to get it working in my lovelace, but maybe that's normal behaviour...

tame shale
#

can you filter by entity type in auto-entities?

#

media_player. ?

#

domain:

#
  • domain: 'media_player'
#
  title: Unavailable Entities
  type: entities
filter:
  include:
    - state: unavailable
  exclude:
    - name: Power*
    - name: '* Echo*'
    - name: '* Fire*'
    - name: '* Timer*'
    - name: '* shuffle*'
    - name: '* repeat*'
    - domain: 'media_player'
show_empty: false
type: custom:auto-entities```
karmic tiger
#

filter:
template: A jinja2 template evaluating to a list of entries to include

#

Use a filter.

#

Templates are more powerful than just giving globs.

tame shale
#

yeah I don't know how what when or where

#

but that doesn't work the domain:

hallow mango
#

yeah you can include where entity id is media_player.*

hallow mango
sly pulsar
#

Yep that’s true. Also tried my name but same problem. The entity just keeps the ID, so sensor.xxxxx_xxxxx

hallow mango
#

you change the entity id to whatever you want

#

then use "chrome" in lovelace

#

my hacs is acting up atm, let me do an example though

#

hold

karmic tiger
#

Don't claim something doesn't work. If you don't know how to make something work, ask (in this case, over in #templates-archived )

kind shellBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view.

hallow mango
#

i added browser mod in hacs, restarted, added the browser_mod: line in my config, restarted, then looked for the entities (in order to find my device id), and then added the alias lines to my config before restarting once more

#

the entity ids didn't change by themselves, but the device name did

#

and actually, changing the device name (with the little pencil) will automatically offer to change the entities to match

#

after that, i can call services using either the alias or the device id

#

this is actually pretty damn neat 😅

sly pulsar
#

Ok going to try it out, thanks allot for the testing! 🙂

tame shale
#
  • template: {{ expand(states) | rejectattr('domain', 'eq','media_player') | map(attribute="entity_id") | list }}
#

thats all I gots

karmic tiger
#

Because you're doing it wrong.

tame shale
#

yes

karmic tiger
#

Look at the docs. There's an example.

tame shale
#

i know 🙂

karmic tiger
#
card:
  type: entities
filter:
  template: |
    {% for light in states.light %}
      {% if light.state == "on" %}
        {{ light.entity_id}},
      {% endif %}
    {% endfor %}```
tame shale
#

yes yes

#

thank you

#

it got it to not error

#

it doesn't work

karmic tiger
#

.share the whole config for that card.

kind shellBOT
tame shale
#

ohg god

kind shellBOT
#

@tame shale Rule #6: Spam will not be tolerated, including but not limited to: self-promotion, flooding, text walls (longer than 15 lines) and unapproved bots.

Please take the time now to review all of the rules and references in #rules.

For sharing code or logs use https://www.codepile.net/ (pick YAML for the language) or https://paste.debian.net/ (pick YAML for the language).

karmic tiger
#

FFS...

tame shale
karmic tiger
#

Don't repeatedly spam. Once is enough.

tame shale
#

I know

#

I didn't mean to paste it twice

karmic tiger
#

And you still aren't following the example.

tame shale
#

the copy button from that site didn't work

#

that example as shown works properly

karmic tiger
#
  template: <your template here>```
tame shale
#

I was hoping to avoid needing to do everything above it

#

huh?

karmic tiger
#

The example you pasted doesn't work. It just doesn't fail YAML validation.

tame shale
#

I see

karmic tiger
#

It's valid YAML... but it's not what the card understands.

tame shale
#

I see

#

it was a subtle difference

#

🙏

#

I am a feeble mind

karmic tiger
#

No comment

#

Working as expected now?

eternal geyser
#

Hi guys ! I'm kind of getting crazy with home assistant. Quick sum up : I've got a tech background, I have been trying HA for a few months but it keep "dying" after a few days and last words are : "Unable to connect to Home Assistant.". It get me crazy because I love it, setup was a piece of cake, and I've been able to add my NAS, my TV, my Nest things, my 50 shellys, and many other. I've set up mariaDB, Graphana, Samba Backup, a reverse proxy on my NAS to reach it from outside, SSL, double auth... At first I build it as a virtual machine on my Synology. But when it die, I'm stuck outside of it : no samba/ssh or anything. So I bought a NUC, thinking that at least, I would be able to plugin a screen and a keyboard to investigate it. I get it back online with a backup and it runs for several days... but now I'm stuck outside again with a nice "Unable to connect to Home Assistant.". Any help would be gladly appreciated to understand how such a thing can happen. I'm still able to access the command line with a good old keyboard and screen.

#

(sorry for the wrong spelling, english isn't my first language, I'm trying my best 🙂 )

karmic tiger
#

Unable to connect to Home Assistant
How are you trying to connect? Locally? From the internet? HTTP or HTTPS?

eternal geyser
#

HTTPS, with the local ip address or the outside url

karmic tiger
#

And when it stops, the IP address doesn't work?

#

From the link you just shared privately, it looks like the problem could be with your reverse proxy. What happens when you try the internal IP?

eternal geyser
#

ERR_CONNECTION_TIMED_OUT

#

So the local IP address doesn't work

#

It's interesting because I get different result through the outside url and the internal IP address

karmic tiger
#

Timed out is weird...

eternal geyser
#

Which is confusing because I would think that I would be bypassing the reverse proxy with internal IP

karmic tiger
#

.share the http section of your configuration.yaml

kind shellBOT
eternal geyser
#

How can I reach it through command line ? I tried basic linux commands (cd, ls, less, cat...) but it doesn't work

#

I have the "ha >" prompt

#

Wait, I just realised that I have it in samba backup

karmic tiger
#

You could check the logs to see if you were IP banned. The rest looks okay.

eternal geyser
trail frigate
#

how can i make the "homekit-card" more or less responsive ? or that button-cards get smaller or i don't know, i need a good idea 🙂

left = how it should be / right = on a small device, problem.
https://ibb.co/GRSGwL9

karmic tiger
#

More responsive how? How would you prefer they look?

trail frigate
#

it would be great, if i can use the same layout on an iphone (landscape mode) , but just smaller, or i don't know, need a good idea here

karmic tiger
#

The problem with making things smaller is that you can't just scale everything. If you made everything 50% of the size, the text would also be tiny.

#

Desktop and mobile often have very different designs for the same site, simply because of the way they're used.

trail frigate
#

yeah, but better tiny, than not useable or so

karmic tiger
#

A lot of people end up with a mobile dash and a desktop dash.

trail frigate
#

yeah, i think i will go the same route

karmic tiger
#

There are probably lots of good examples on the forums.

trail frigate
#

don't know if correct here, sorry for that.

i created a popup-folder in config/myfolder/popups
i pressed every button to reload config, but the popup is not updating?

thorny badge
#

I am in of some help. Keep in mind I am a rookie at this but I have an error that keeps showing in the log file and I do not know how to correct. I have googled it and they said to you have to change/update the file. The problem is I do not know what file I need to update. Here is the error can someone help this rookie
Logger: homeassistant.components.mqtt.light.schema_basic
Source: helpers/config_validation.py:761
Integration: MQTT (documentation, issues)
First occurred: 8:22:17 PM (2 occurrences)
Last logged: 8:22:17 PM

The 'value_template' option is deprecated, please replace it with 'state_value_template'

dark dirge
#

presumably the one with value_template in an MQTT definition

thorny badge
#

Where do I find the MQTT definition?

hallow mango
#

this sounds like a stupid question... but is there a disadvantage of editing Lovelace via the "raw configuration editor" vs strict yaml mode?

dark dirge
#

it's a worse editor than what you could use externally and still doesn't support things like !include

hallow mango
#

can i have only a single dashboard defined in yaml mode?

dark dirge
#

No

keen heath
#

Good morning - not sure if this is the right channel: I can't cast to a Nest Hub. Casting the same lovelace view to a Chromecast (attached to my TV) works. But a service call to cast to the Hub completes without errors yet the Hub stays on the current slideshow. Casting audio works. Any ideas?

hearty topaz
#

I have a question about icon size, is this the right channel?

hearty topaz
#

Thank you

#

this one was helpfull: elements:

  • entity: lock.back_door
    style:
    left: 23%
    top: 30%
    transform: 'scale(3,3)'
    type: state-icon
#

but still the card is big, icon is small

#

is there a way to make the card smaller too?

trail frigate
#

put code in 3x backticks

#

make in style icon: - width: 100%

hearty topaz
#

hmm will this make the card smaller?

trail frigate
#

i want a popup folder, where i put my popups in 🙂 but when i do so, and save the popup, i don't get them refreshed in my dash. i need a complete restart of HA. how do i set this up to get "easier/faster" feedback, like with the lovelace.yaml, where i only need to save and hit refresh in the browser.

wheat tide
#

Is there a way to access a dashboard with a direct URL, without the left panel and if possible to bypass the auth.

trail frigate
hallow mango
#

but still has left panel and auth

#

so no

trail frigate
#

hide left panel = kiosk mode
auth = ??

wheat tide
#

I have found that I could autolog a user with trusted network. So only have to find a way to remove the left pane

#

Yes Kiosk mode.

hallow mango
#

isn't kiosk mode per user, per device?

#

maybe I'm wrong, idr where to turn that on lol

wheat tide
hallow mango
#

idr where to turn that on

#

lol

stray nebula
#

Hi, having an issue. I got a battery powered sensor, over mqtt, so it's only sending a state every 30 minutes or so. But in the dashboard, it appears as "unavailable", just want it to show the latest state, as i got 'last updated' as secondary info. How to achieve this?

sly pulsar
#

Anyone knows why this is not working with browser_mod? It seems that it have something do to with the different entities, all other cards i use browser_mod with a single entity works fine. https://hastebin.com/wumoginuza.yaml

karmic tiger
#

What do you think it should do, and what is it doing?

#

'not working' doesn't help anyone help you.

sly pulsar
#

Well I want to pop up my lights card, so I added it ass a fire-dom-event but the pop-up is not working.

karmic tiger
#

What does 'not working' mean?

sly pulsar
#

If I press my normal card the lights card is just not pop-up instead nothing happens with the tap_action.

limber bough
karmic tiger
limber bough
karmic tiger
next sandal
#

Hi there,
Is there a alternative to display big text instead of Big-number card ???

blissful storm
#

Dear all, I ran into an issue where an ESPHome based gas sensor threw a 3000m3 gas reading at my Energy dashboard and messed it up completely. I have since reset the sensors but the energy dashboard still shows the crazy value for the gas consumed.

#

Does anyone have an idea how to tackle it? The sensor is a utility_meter sensor

karmic tiger
sharp granite
#

A front end item in GitHub just closed by a bot but is not fixed. Can I re-open it?

blissful storm
karmic tiger
#

Yes

blissful storm
#

Ok

opal jacinth
#

Can anyone tell me how the arranging of the cards work in HA? I'm always fighting with the order as by clicking the arrow the card jumps to all places. Really can't figure it out.

karmic tiger
#

It's a long vertical list, and Lovelace will decide where to break it up into a new column depending on your current screen size.

opal jacinth
#

anyway to decide myself where it should be situated?

karmic tiger
#

There are a few options. The grid card allows you to nest a bunch of stuff inside it in... a grid. You can also do combinations of vertical/horizontal stack cards for a similar effect.

#

For both methods, you'll likely want to set your dashboard to panel mode - it'll only present one card, but you're going to be nesting everything within that card anyway.

#

I've done that just to have a tidy grid for mobile views.

opal jacinth
#

Ok, going to look into it. Thanks mono.

karmic tiger
#

I'd highly recommend browsing through the Lovelace section of the forums for ideas. If you see something you like, people usually share their code for the dashboards.

#

You can't just copy/paste it in one go, since you'll have different entities... but it'll give you an idea how they achieve certain looks.

sly pulsar
#

Hi @polar kelp, are you aware that a label template inside a custom: button-card stops working with browser_mod. Just tested it multiple times and it works fine for the normal card but as soon i add this card to a browser_mod popup it's no longer working. The label just stays the same no matter the light is on/off. Do i need to open een issue on github or are you already aware that this issue exacists. Thx in advance

karmic tiger
#

You sure it's not your invalid YAML? 🤔

    service_data:
      card:
        entity: light.all_lights
        type: vertical-stack```
#

That's not a valid option for a vertical stack.

#

And there's no need to ping the authors of cards and integrations here. If you think there's an issue, raise it on GitHub.

sly pulsar
#

I already fixed that issue, i was using the browser_mod wrong i guess. It was working for some cards but not for others, now it works for all cards i'm using browser_mod.

hallow mango
#

yeah that template is bunk

sly pulsar
#

Sadly enough i can't upload a screenshot to show the two cards... 🙂

karmic tiger
#

Why not?

kind shellBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images.

karmic tiger
#

You've been here long enough to know how it works.

hallow mango
#
label: >-
  {% if is_state('light.wandlamp', 'on') %}
    Aan
  {% elif is_state('light.wandlamp', 'unavailable') %}
    Niet beschikbaar
  {% elif is_state('light.wandlamp', 'off') %}
    Uit
  {% endif %}
#

I think that's right

sly pulsar
hallow mango
#

indents a bit odd, working on phone

#

actually...

sly pulsar
#

Going to try, thanks! It's just strange it stops working soon as i add the card as a popup with browser_mod, for the normal custom: button-card it works fine.

hallow mango
#

it's elif

#

I fixed it

sly pulsar
#

Seems not to work, just shows the raw text as the label.

karmic tiger
hallow mango
#

ah fair enough

#

wait I'm looking at this

#

you want a tap to just popup a card that looks just like the one you tapped on?

karmic tiger
#

I think that's their minimum working example. The real thing would bring up far more.

sly pulsar
kind shellBOT
#

@sly pulsar When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Click @ ON to @ OFF to stop this - on the right side of the compose bar.

You have to change this every time (thank the Discord devs for that).

limber bough
modest sable
#

Is there a way to disable at the card level, the popup display of entity history data? Want history for the sensor to be recorded, but some users just aren't interested in that information and find having to close the popup they didnt want and accidently openned a negative experience. It is particularly easy to accidently access this history information when using the swipe-card and just navigating between cards.

dark dirge
#

I think only if there's a tap_action that you can set to none

modest sable
#

Thanks RobC, but if the entity is say a light switch wont the control action be disabled as well?

dark dirge
#

that has no tap_action at all

#

anyway, this is probably not useful information for your use case

#

I don't think there's a general way to prevent the "more info" dialog from appearing

modest sable
#

I have been looking everywhere and I think your are right. Quite surprised though, because I would have thought this would be a common requirement/desire to keep the user interaction minimalistic.

dark dirge
#

Thomas might need to speak to that, or you could experiment

modest sable
#

Thanks! That is an awesome lead, I just didn't know where to start. I'll look through the code and see how this is implemented. You made my morning.

limber bough
#

i accidentally took control of managing my default overview dashboard, and now items aren't added or removed automatically anymore. is there any way to revert this?

dark dirge
#

I think if you go into the raw configuration editor from the 3-dot menu, delete all the YAML, and save

modern vector
#

hi, in lovelace-ui i'm applying a theme to specific cards. I'm tryng to make this theme change from light theme to dark theme (based on light/dark theme global selection) using the new theme configuration: name_of_theme/modes/light(or dark). The problem is that in this way the theme applied to a specific card don't recognize the dark section of the theme and always use only the light section of the same theme.

#

i'm doing somenthing wrong or Home Assistant at the moment is not able to change between light/dark section of themes applied to a card? thanks for the help

kind shellBOT
wheat tide
#

I have a HA Leader and few HA Follower, they are all connected together with ZeroTier.
I wan to add iFrame in the Leader one to show dashboard of the Follower one.

The issue is : the HTTP call to display the iFrame aren't done by the HA Leader, but by the client browser. Since I will not instal Zerotier on everyones device how will access HA, i'm looking for a solution.
Anyone?

remote sorrel
#

I'm trying to make a tablet view using the new sidebar layout. But when I load it the size loads fine and then quickly jumps to looks stupidly small, any tips for creating a tablet layout or how to fix this? https://imgur.com/a/oJyGtNI

analog summit
#

Vertical text, is it possible? I already have cardmod added.

sharp granite
sly pulsar
#

Is it possible to hide cards on a mobile device but show on a desktop/tablet.

errant plover
#

maybe with the browser mod and state switch cards.

sturdy dune
#

Hi all. After the latest update I cant access the File edit, Log Viewer, and Terminal from the lefthand side menu in the frontend. All other menu options work fine

#

Anyone experienced the same issue?

#

Using Chrome and getting these messages in the dev console:

#

NS_ERROR_NOT_INITIALIZED entrypoint.74ae643f.js:38051
GEThttps://homeassistant.local:8123/api/hassio_ingress/vLGiUw_fhUM ...
[HTTP/1.1 401 Unauthorized 0ms]

The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.

#

Sorry, not Chrome, Firefox

#

Chrome works fine

#

Error messages seem to indicate that it's either a character encoding issue or something going wrong during the authorization (which is strange since all other pages load fine)

wheat current
supple orbit
#

Does there exist a card like the conditional card that would let me show a card based on an attribute? IE: I only want to show a media_player if the source = spotify

karmic tiger
#

Not a built-in card, no. A simple workaround would be to create a template sensor that exposes that attribute as a state.

#

Note: Jinja2 templating is not cheap. Avoid it for simple things that can be solved with just an entity.

plucky ember
#

I would like the Lovelace map card to enable specification of both tap_action and hold_action ; can anyone point me at the code wherein I would find the source?

karmic tiger
#

I'm not sure that's going to be possible... holding is for dragging.

supple orbit
karmic tiger
#

Check out that custom card too. It's powerful.

supple orbit
#

I'm waiting for the release notes that say ThomasLoven has joined Nabu Casa

karmic tiger
#

I'm sure he'd make an awesome addition to the team. Who knows if that's something he wants right now.

plucky ember
karmic tiger
#

Yes, hold_action triggers on a long press... but how do you differentiate between a 'press and drag' and a 'long press'?

pulsar bobcat
#

any way of grabbing the last three logbook entries

hallow mango
#

can you link to an automation's traces?

fast scroll
#

Has anyone else experienced the HA energy tab not showing up in the side bar? I want to use the new energy management dashboard but can’t find it. I’m running the latest version 9.5. Any suggestions?

karmic tiger
rough moat
#

Hi everybody,
I'm trying to get a History Graph card set up, but it's wanting to a graph for each entity instead of on graph for both.
I've already checked the unit_of_measurement attribute for both entities and made sure they matched. If anyone has any ideas, that'd be great!

karmic tiger
#

They don't (or at some point, didn't) have the same unit of measurement. You can see that the second graph doesn't have degrees Fahrenheit as its unit.

#

When did you set them up, and have you made any changes to them in the past?

main meteor
#

Despite my energy sensor in kwh carries a value its not shown in the energy screen with values. How come?

main meteor
#

@fast scroll Make sure you have default_config in the configuration file

wild garnet
#

Hi all - if you're working with lovelace in the UI is it possible to use !includes? Looking through the forum it seems that this is only possible if you work in 'yaml' mode rather than through the UI. When I try to save my 'raw config' from within the UI with a yaml include pointing to another file (custom button templates) it throws an error saying it doesnt recognise !include. Is this just expected behaviour?

#

I know you can use resources - but that only seems to be for css or js?

karmic tiger
#

You have the answer already. Advanced YAML syntax is only available in YAML mode.

rough moat
# karmic tiger When did you set them up, and have you made any changes to them in the past?

I was setting the graphs up yesterday when I sent the message. The Average Temperature sensors were configured an hour or so earlier, and the real temperature sensor has been running for several weeks.
I did notice the lack of units in the 2nd graph, but can't quite figure out how to resolve that after confirming that the unit of measurement was identical for both sensors.

limber bough
#
      color: white
      top: 93%
      left: 50%
    type: state-icon
    state:
      - value: 'home'
        color: orange
    entity: device_tracker.troy_phone_wifi```

im trying to change the color of this wifi symbol on a lovelace card when im considered to be home, but its not changing. any suggestions?
#

i can link a picture of what it looks like if anyone wants to see

#

also, changing the color parameter at the top doesn't do anything either. its white no matter what i do

lavish solar
#

The energy onboarding drop down for gas says (Gas Usage m³) I think this text is wrong and should say m³ and ft³. Is that a front end issue or is this text populated from the backend somehow? I want to open an issue in the right place.

cinder python
#

Hey everyone, I’m trying to change a light’s icon depending on its state. I’ve tried using templates but it doesn’t seem to be working. Is there a simple solution to this? I’m essentially trying to create this https://imgur.com/a/lvvLXSX

limber bough
limber bough
#

not sure if that was for him or me, but that didn't do anything

dark dirge
#

Both of you, I guess. That’s how you do what’s in the image

limber bough
#

i cant get the color of the wifi symbol to change when its state is 'home'

#

or just in general, its white no matter what i do

#

do i need to make a template with separate conditions for home and away, and use that instead of the device tracker itself?

nova estuary
cinder python
main meteor
#

Is the energy panel for individual devices working? I added 2 devices both shows nothing

limber bough
mild veldt
#

device trackers do not have a state color

#

state colors are meant to denote attention

#

or on

#

there is a work around though, put it in a group

hexed owl
#

Hey peoples… any way to limit a particular user to viewing just one specific dashboard and nothing else? alternatively, any way of bringing up a card (or entire dashboard) embedded into another webpage entirely? I want to give a family member access to just one specific device, and I'm wondering whether I can do that with HA…?

#

I know this idea has been rattling around for a while… Wondering if there's been any progress on that front.

shell torrent
# hexed owl Hey peoples… any way to limit a particular user to viewing just one specific da...

"..family member access to just one specific device", with device you mean (a) allow them to control only one HA device/entity? or (b) access HA from a specific device?

If (a): Kind of, you can limit access to dashboards/views, but as far as I know, you can't prohibit access to the sidebar (without using kiosk mode, but if your user is handy, they'll change the URL and then the sidebar shows anyway).

  1. Create a user for that purpose
  2. Limit the visibility on all view except the one you want them to see
  3. Done
hexed owl
#

Was (a)… It's actually a 24yo (but close!), whom I really don't want to use my HA setup to peer into my everything. Was just really hoping I could make a mini-dashboard with a couple fixed cards only. Guess that's a no on exporting card/dashboard to another webpage, also… Oh wells.

mild veldt
#

Yeah, there's imperfect frontend solutions, but really it needs a backend solution to be able to share devices with others

limber bough
#
    - platform: group
      name: Troy Wifi
      entities:
        - device_tracker.troy_phone_wifi```
mild veldt
#

there is no group platform for device_tracker. you'll want to use the group integration instead

limber bough
#

not sure how to use that because it requires me to type group: twice

mild veldt
#

?

limber bough
#

i already have group: !include group.yaml in my config

karmic tiger
#

So add it into your group.yaml...

#

The group integration allows multiple groups to be defined. It'd be kinda stupid to only allow one group in HA.

limber bough
#
  troy_wifi:
    name: Troy Wifi
    entities:
      - device_tracker.troy_phone_wifi```
#

this comes back with an error

#

nvm i removed the group

#

redundant

mild veldt
#

right, cause you included it from the main already

karmic tiger
limber bough
#

didnt know i still needed to have the troy_wifi part indented

karmic tiger
#

If you're new to this, I'd suggest spending some time learning how the different data structures are used in YAML:

kind shellBOT
#

YAML is the mark up language used by Home Assistant, consistent indenting (two spaces per level) is key. Here is a primer, and this explains multi-line templates. For validating YAML see YAML Lint.

limber bough
#

when i tried adding it into the group.yaml before, i had it start without any indenting and it gave me an error

#

thank you

karmic tiger
#

It can be a little confusing at first if you're not used to what it represents, and it's not forgiving if you get the syntax wrong.

#

Once you know the basics, everything else gets simpler.

limber bough
#

so now in the lovelace panel would i refer to it as group.troy_wifi

#

?

karmic tiger
#

Sure

limber bough
#

uhhhh now im getting a yellow symbol with 3 dots in the middle of it lol

karmic tiger
#

I have no idea what you mean. Share an image

kind shellBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images.

limber bough
karmic tiger
#

Not sure what the name of the icon is but I think that's normal for a group of device trackers.

limber bough
#

i attempted to customize, it told me my yaml file didnt include a "include customize.yaml" line, so i went to add it, and now when i check configuration its saying "Component error: customize - Integration 'customize' not found."

#

even though i do have a customize.yaml file

#
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
customize: !include customize.yaml```
#

i assume im just supposed to type it the same way as the others

#

i got it, apparently it wasnt supposed to go under that same group. man this stuff is confusing

#
  icon: hass:wifi
  color: #ffffff```
#

this is what i have, it changed the symbol but not the color

hallow mango
#

yeah you can't change color like that

limber bough
#

so is there a way to change the color of the icon?

dark dirge
#

probably with card_mod

limber bough
#

so why did i just go through all of that to add the device to a group

hallow mango
#

@limber bough their theme uses yellow as the "accent color"

#

or whatever

#

everything thats yellow is "on"

limber bough
#

so with the device tracker, its either "home" or "away". so if i leave the house, it should go back to being white?

#

mine is currently on my accent color

hallow mango
#

uhh, not exactly

#

my device trackers aren't "on" when they're home, "off" when they're away

#

actually my device tracker group is

#

just not the trackers themselves

limber bough
#

well i now have a group, so how would i go about making the on/off home/away connection?

#

ok i turned my wifi off and it updated and now its white, so i guess my group automatically knows

hallow mango
#

yeah

#

I'm not sure why it "just works" with groups

karmic tiger
mild veldt
#

I linked the file earlier which dictates why that works, you'll see that "group" with a state of "home" is active

trail frigate
#

how can i make the state/value in a different color then the name/text ? can't find the correct css

ivory escarp
hallow mango
#

try deleting home-assistant_v2.db

#

your history will get lost if you do that ^

#

and I'd probably down the server, delete that, and then restart

ivory escarp
#

Thanks will give that a shot

rocky cipher
#

hello I am trying to get a background to load in my HA lovelace dashboard. I am running HA on ubuntu / docker. My configuration.yaml and themes.yaml are setup as follows:

#

In configuration.yaml:

frontend:
javascript_version: latest
themes: !include themes.yaml

In themes.yaml:

title: Home
views:
background: center / cover no-repeat url("/local/dashboard_background.jpg") fixed

#

My background is in:
config/www

The actual directory on my machine is /home/my_user_name/homeassistant/config/www

Any ideas what I am doing wrong? The background won’t show up

warm merlin
#

Hey guys, i've been trying to set up a dashboard recently. It took me a while but i ended up with something i like, the problem is that it feels super slow to load

#

i've tried it on a 4 Year old Imac (super slow to load and react), a top of the spec pc (5900x , 2080 ti), but even if it's better, it is still slugish

#

Is it a know problem, or am i doing somethign wrong?

#

Btw, the rest of the Home assitant app is extremly responsive, no issue with that, only with this dashboard

copper mural
#

Hi there, I cant find answer to my question. I use apexcharts-card by RomRider to show a graph over some temperatures. But have a wierd greyed vertical line that shows up some time and sometime multiple lines. Anyone know what it is? https://snipboard.io/6GVLrI.jpg

distant lagoon
vapid field
#

Hey there,

i hope i am in the right channel for my question 😉

This is my configuraiton.yaml:
https://pastebin.com/3w6cmAKg

For sadness i get an error message Invalid config for [lovelace]: [resources] is an invalid option for [lovelace]. Check: lovelace->lovelace->dashboards->lovelace-yaml->resources.

#

Could you guys give me a hint, where my error is?

copper mural
#

@distant lagoon Thanks, I totally missed that. 🙂

#

@vapid field Whats inside lovelace/resources/resources.yaml ?

polar kelp
#

resources is not a per-dashboard setting. It should go directly under lovelace.

vapid field
#

Thank you! Looks like it was that easy 😉

#

hmmm. now i get a warning Lovelace is running in storage mode. Define resources via user interface and the menu entryies on the left side are all gone ...
could i ignore the warning?

copper mural
#

Press the 3 dots, and edit UI, then the 3 dots again and edit resources.

trail frigate
#

get in Dev.Tool > Services > Refresh Theme

violet axle
#

is not shell_command available in the UI while making scripts ?

polar kelp
#

If you have setup a shell script entity it will be available to run as a service call.

violet axle
#

I see, thnx for quick reply Thomas!

#

But I might going about this the wrong way. I've got one of them rpi 3+ so it only got wifi; I want to turn it off using cmd (ssh). Do I use script or make an automation out of it, because there is no on argument really, that is handeled by another entity. Suppose there is no way in the ui to create a custom switch?

polar kelp
#

Only binary input, but that's not quite the same thing.

violet axle
#

then I send cmd to power off; I want there to be 30sec delay before it powers of the socket it's attached too. Cause I dont want a toggle. I dont really want a toggle, it's for 3d-printer and it's lots of stuff I want to turn off when it shutdowns. I did solve it like this: created binary sensor with ping to monitor the device, created a custom switch, with the quirk of it becoming a toggle (despite only one cmd). Made an automation that when binary sensor when off, it waits 1min and then turns off the socket.

steel blade
#

I am so dumb, I forgot where the resources section is in lovelace UI. Where did it go?

karmic tiger
#

Config > Lovelace > Resources

violet axle
#

Suggestion of best temp/humidity-card? 🙂 Thinking of vertical-stack

karmic tiger
#

There is no 'best'. But you could look at what other people have done and copy from their configs.

violet axle
#

Great answers as usual, thnx!

hallow mango
#

can share my configs in a bit, but I have two temp/humidity sensors, so I use two of those cards in a stack: one for both temps, one for both humidities

hallow mango
sly pulsar
#

Works fine for a custom:button-card. I checked the state with Chrome dev tools from the custom:auto-entities card and it seems correct.

left bay
#

i'm trying to modify the love lace main header/navigation bar to be larger. is there a way to do that with themes that i'm missing?

violet axle
hallow mango
#

haha fair enough

trail frigate
#

i created a layout card but the map card isn't working there. "unknown type: map" i also tried custom:hui-map without success

hallow mango
#

share your card yaml

trail frigate
hallow mango
#

indented too far

#

it's trying to use it as an entity in the entities card

#

instead of a card in the layout card

trail frigate
warm seal
#

hey folks, i've been troubleshooting this for a while, but I must miss something. many times when navigating to myurl.com/lovelace, my default dashboard (YAML) won't show up in the sidebar. navigating to /lovelace/overview shows the correct dashboard. any pointers?

sly pulsar
# trail frigate thanks dr. but still not lucky

I experimented allot with browser_mod and indeed some cards just don’t work which works fine as standalone or in another simpler card. If there are to many types defined it seems to read the output wrong.

trail frigate
#

maybe that helps

warm seal
trail frigate
#

i mean that you select your preffered lovelace

warm seal
#

i can do that, but still I want the default dashboard to show up in the sidebar. for the default one (in YAML mode) there's no option to hide it even

sly pulsar
#

If you set another dashboard as default it will automatically hide the default Lovelace.

trail frigate
#

my overview/standard lovelace isn't in the sidebar as well, because i made a custom lovelace and now it uses this instead. check settings > lovelace dashboards. just create a new lovelace which is controlled by HA

warm seal
#

ah I didn't know that it would actually hide the default. that's a top tip thank you

trail frigate
hallow mango
#

put another - ...: entry under exclude

trail frigate
hallow mango
#

remove it from the filter

#

and remove the method: state

#

since you're trying to sort them not by their state, but by an attribute

trail frigate
#

no luck 😦

hallow mango
#

hmm, worked for me

#

I just copied your snippet into a card and made those changes

#

showed any entities I have with battery_level as an attribute, sorted in descending order

trail frigate
#

could you share the code ?

robust fern
#

Hi all , I'm struggling to figure out how to call up the main stream when I click on the sub stream of my cameras in the dashboard. Is it a service ?

hallow mango
#

like i said, remove the sorting from the filter, and remove method: state

trail frigate
hallow mango
#

using same code i just sent?

trail frigate
#

yeah just copied your code

hallow mango
#

hmm

trail frigate
#

the picture is the result

hallow mango
#

that's odd

hallow mango
#

obv clicking the sub stream is going to bring up the sub stream

#

@trail frigate actually i think it's not really working for me either

#

i can't reverse them

trail frigate
#

strange

hallow mango
#

aha

robust fern
# hallow mango you'll need camera entities of the main stream

Yub I have all my sub feeds working well and my main feeds are available entities but I don't want to use them as the live view on the dashboard so I want to set the "tap" action in the card to open the main stream just can't figure out how to do that

hallow mango
#

@trail frigate use this as your sort block:

sort:
  method: attribute
  attribute: battery_level
  reverse: true
  numeric: true
#

need to sort them by attribute (duh if we thought about it)

trail frigate
#

i love you ❤️

#

works

hallow mango
#

i usually have the < flipped the other way though (to exclude batteries over 25%)

#

and it is show_empty: false, so it only shows me batteries which are low, when they're low

trail frigate
#

ahh nice, thanks!

hallow mango
#

just a different alternative 😉

trail frigate
hallow mango
#

get rid of which?

trail frigate
#

ok i got rid of the state and icon ones, but those from the mobile app are still here

#

the two "Batterie (2)"

#

they are coming from the mobile app

hallow mango
#

well you could exclude them by entity id

trail frigate
#

i tried this ```

  • name: entity_id
    value: '*- Batterie (2)' ```
#

ahh now

#

its battery_state_2

#

thanks for the great help dr.!

hallow mango
#

👍

#

i'm trying to figure out how to add a tap_action that will open traces for that automation

trail frigate
#

yeah thats something on the list as well

hallow mango
#

so that card works ^

#

i'm trying to add this to the entity options: passed via my filter:

          tap_action:
            action: navigate
            navigation_path: /config/automation/trace/{{ this.entity_id.split('.')[-1] }}
#

but the url i get ends up looking like: http://192.168.1.226:8123/config/automation/trace/%7B%7B%20automation.sunrise_2.split('.')[-1]%20%7D%7D

#

which is obviously not right lol

#

it's filling this.entity_id correctly, but not evaluating the template as i was hoping it would

#

so i took to custom:card-templater:

type: custom:card-templater
card:
... # <-- the rest of my card, indented
#

and then changed the following:

...
          tap_action:
            action: navigate
            navigation_path_template: /config/automation/trace/{{ this.entity_id.split('.')[-1] }}
...
#

but since there is no navigation_path: field, it just fills my url as: http://192.168.1.226:8123/config/automation/trace/-

#

which again, not as expected

trail frigate
#

man, if i could i would help

hallow mango
#

well, that's ok

#

i really think changing it to navigation_path_template: should do it

#

as per the card-templater docs:

The card option will accept any card configration. Any option in the original card which takes a string value can be templated by changing the option name to be option_name_template. For example, name will become name_template. Here is an example:

#

i was also able to get http://192.168.1.226:8123/config/automation/trace/Error! by adding

entities:
  - this.entity_id

to the card-templater bits 😅

#

anyone else know how i can template the navigation path of a tap action?

grim crescent
#

Hello, I am going to build Home-assistant frontend in windows, using Ubuntu but having error, could you guide me?

dark dirge
grim crescent
#

@dark dirge Thanks, I did that but I cannot see configuration.yaml file

#

while installing WSL I am getting this.

#

Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install

dark dirge
#

That’s not an HA issue

#

Get that straightened out, follow all the instructions at the link I provided and then further questions to #devs_frontend-archived

#

Or the forum

trail frigate
#

simple input_text which should TTS on a specific alexa

dark dirge
#

You need to call a script using the right syntax

trail frigate
#

hmm okay thanks rob

hallow mango
#

tbf idk if it'll work nicely with the Alexa media stuff

#

never used it with my echo, only my googles

quick rampart
#

Howdy folks

#

Lovelace question here. I am having issues with a lovelace resource loading on my other devices except for my desktop chrome browser...

#

The "custom:state-switch" loads fine on my desktop, but the home assistant app or mobile browsers (Safari or Google Chrome) on my tablets keeps complaining that the element doesn't exist!

hallow mango
#

reload cache

#

force close mobile app usually does it

plain onyx
#
  automations:
    title: "Automations"
    url: "http://192.168.188.49:8123/config/automation/dashboard"
    icon: mdi:robot
    require_admin: true
#

with panel i-frame i get the sidebars as well , any way to display automations without the sidebars , tabs ?

sly pulsar
#

This works fine to make a custom:button-card transparant but it not seems to work for a custom:auto-entities card?

#
  card:
    - background-color: rgba(0, 0, 0, 0.0)```
polar kelp
#

That's way too little information to tell anything about what you're doing. And auto-entities doesn't have a background.

grim crescent
#

I've done and I can see interface

#

but I didn't do with virtual box or vmware

#

but I cannot see config folder and configuration.yml file

#

could you help me? I wanna change title and logo

grim crescent
#

I've found that configuration file

#

but after changed that and restart home assistant I am getting this error

#

PermissionError: [Errno 13] Permission denied: '/home/general/.homeassistant/configuration.yaml'

ivory escarp
#

what card do i use to select from a input_select dropdown?

trail frigate
grim crescent
#

oh, I did

#

thanks, nobody

cinder python
#

What am I doing wrong here? I’m just trying to change the icon of my lamp but this is throwing errors

kind shellBOT
#

@cinder python Rule #6: Spam will not be tolerated, including but not limited to: self-promotion, flooding, text walls (longer than 15 lines) and unapproved bots.

Please take the time now to review all of the rules and references in #rules.

For sharing code or logs use https://www.codepile.net/ (pick YAML for the language) or https://paste.debian.net/ (pick YAML for the language).

#

@cinder python Please don't say I have an error or describe an error. Share the whole actual error message so we can help you.

cinder python
#

Hmm okay

karmic tiger
trail frigate
#

kk , sry

trail frigate
#

is there any good tutorial to understand card_mod ?

polar kelp
trail frigate
#

thanks thomas

hallow mango
fiery ledge
#

is there a way we can have the new 'number' entity show up as a slider instead of the box? - entity: number.hall_default_volume_7 name: Siren volume

fiery ledge
hallow mango
#

uhh, not sure if that is what i mean

fiery ledge
#

mind you, thats on a custom:button-card

fiery ledge
#

maybe more like this then: include: - group: group.github_repos_in_use options: &github_options tap_action: action: more-info hold_action: | { 'action': 'url', "url_path": "{{state_attr(config.entity,'latest_release_url')}}" }

#

on an auto-entities card

hallow mango
#

ohh i can try that

#

no, i don't think that's it either

#
          tap_action: |
            {
              "action": "navigate",
              "navigation_path": "/config/automation/trace/{{ this.entity_id.split('.')[-1] }}"
            }

just does nothing on tap

fiery ledge
#

what does inspector say?

hallow mango
#

uhh

#

idk where to look for that

fiery ledge
#

btw do you get the %20 's inserted there? there is a service to get those out, but I forget where it is 😉 urlify or something. I am sure the good people here know what I mean

fiery ledge
hallow mango
hallow mango
#

just nothing happens when i tap

fiery ledge
#

btw, why the [-1]? you need the object_id of the automation which is split('.')[1]

hallow mango
#

ah good call

#

it gets me the right id

fiery ledge
#

and then replace any %20 with _ so replace('%20','_') and capitalize the first character 😉

hallow mango
fiery ledge
#

dk why this formats so odd now

hallow mango
#

it doesn't parse the template at all

fiery ledge
#

did you change to config.entity ?

hallow mango
#

oh, no...

#

i didn't realize that

#

this.entity_id works, as per auto-entities docs

hallow mango
#

it just doesn't parse the rest of the template

#

where does config.entity come from?

#

ok well same deal

fiery ledge
#

hmm, its been a long time... I only use this.entity_id in my multiple-entity-row cards. In auto-entities and template-entity-row I always use config.entity... (hope none of that has changed lately)

hallow mango
#

changing to config.entity fills the entity_id correctly, but the template doesn't get parsed

#

actually no

#

not sure why it worked once

#

but this.entity_id is what i need here

#

that definitely fills the entity id correctly

fiery ledge
#

using secondary: > {{config.entity.split('.')[1]}} on my entities show the correct object_id here, so if its not retrurning what you seek, it must be another part of your template being incorrect

hallow mango
#

my template isn't ever parsed 🤦‍♀️

fiery ledge
#

{{this.entity_id.split('.')[1]}} returns nothing......

hallow mango
#

for me that returns %7B%7B%20automation.add_to_shopping_list.split('.')[-1]%20%7D%7D

#

lol

#

the template is just used as a string, symbols and all

#

oh i didn't change the -1 -> 1

fiery ledge
#

I remember seeing something like that before the template-entity-row was updated.... are you using that, and did you update to the latest?

hallow mango
#

but doesn't make a difference

#

i'm not using template-entity-row

#

i didn't know that was a thing lol

tacit cave
#

according to the docs, config or this don't exist.

#

meaning, you have to hardcode the template with the entity_id

#

there's a whole section letting you know what variables exist in the namespace and config or this are not listed.

hallow mango
#

and custom:auto-entities fills this.entity_id

#

like i said, that fills correctly

#

but the template isn't evaluated

tacit cave
#

put your whole path in the template

hallow mango
#

so using this as the template: {{ '/config/automation/trace/' + this.entity_id.split('.')[1] }}

#

gives me http://192.168.1.226:8123/lovelace-testing/%7B%7B%20'/config/automation/trace/'%20+%20automation.sunrise_2.split('.')[1]%20%7D%7D

tacit cave
#

Then the template card doesn't see the field

#

you wrapped it in quotes though, right?

hallow mango
#

i used > to fold it to next row

tacit cave
#

then the card is failing to template it

#

%7B%7B%20 is {{ in browser path speak

hallow mango
#

yeah, exactly

hallow mango
#

i followed up just after that one

#

i've been over all this stuff already

#

sounds like the card just won't do it

tacit cave
#

right, but that means the error is in the template card

fiery ledge
#

what happens if you hard code a view?, does it navigate at all?

#
            hold_action:
              action: navigate
              navigation_path: "https://mydomain/lovelace/home"
#

does work here

hallow mango
#

yeah, those work fine

#

looks like this has been hashed over before though, with no real solution i can see

hallow mango
fiery ledge
#

as said, maybe you can configure it with template-entity-row, which had the same issue before, and now navigates fine

hallow mango
#

template-entity-row appears to not really act the same as a normal entity row though as well

#

for example, using secondary_info: last-triggered

#

displays something like 1 hour ago in a normal row

#

whereas using secondary: "{{ state_attr(config.entity, 'last_triggered') }}"

#

returns a timestamp, which is kind of annoying

#

and icons don't get state coloring the way a normal entity row does

tacit cave
#

because you shouldn't be templating it...

#

you should still have secondary_info: last-triggered

vestal elm
#

Hey, I've made a seperate yaml dashboard for HA floorplan, I'm trying to reference the resource in config.yaml (https://www.codepile.net/pile/a5G2o180) but the config checker is saying that it is invalid, could anyone let me know what i'm doing wrong please?

hallow mango
#

i tried that

#

just nothing goes in the secondary info

#

and if i use secondary: last-triggered, i get the string "last-triggered" lol

fiery ledge
#

until that time, have it point to https://yourdomain/config/automation/dashboard 🙂

hallow mango
#

yeah...

#

if there was a link to traces on the more info, that would be fine too

#

but there isn't lol

fiery ledge
#

and file a FR at the auto-entities repo ...

tacit cave
#

whelp, then you're sol

fiery ledge
wide reef
vestal elm
hallow mango
vestal elm
fiery ledge
#

btw, Ive just tested it with T-e-r, and see the same issue we had before with url/url_path, (the template is evaluated alright, but with all additional characters) so maybe there's still something to be fixed in the card on that matter too. Id seriously suggest to add that to the repo's for auto-entities and template-entity-row, because it would be a very useful addition

vestal elm
hallow mango
#

i did get the template to work with template-entity-row, and open the right page

#

just other things about that row that i didn't like

fiery ledge
hallow mango
#

umm lemme fix it

#

i rolled it back

#

i may just use that with some changes to my idea of what the card should look like

fiery ledge
#

yes, that works. thast is to say, it creates a correct template an url path. however, it doesnt reach the correct endpoint... when selecting an automation via the UI, I see the capitalized first character and the %20 replacing the underscore.... how odd is that, never realized the UI does that

#

that might even be considered a bug?

#

it targets config's the friendly_name. use this and it's perfect```
hold_action: |
{
"action": "navigate",
"navigation_path": "/config/automation/trace/{{ state_attr(config.entity,'friendly_name') }}"
}

#

now we got that fixed: back to the 'number' in the frontend, how to set that to a slider..

hallow mango
#

looks to me like it should be using the entity id without leading domain

#

and works for me now

fiery ledge
#

mmm, that seems unlikely, do you really see the automation loaded, or simply the 'no traces'

hallow mango
#

it really loads the trace page for automations which have traces

#

works in chrome and mobile app (android)

fiery ledge
#

how odd, cant make that happen with config.entity alone, I was triggered to enter the friendly_name, because when hovering the automations icon on the right side of the automation dashboard, the statusbar shows the url it uses. In my config, that is not the entity_id, but the friendly_name..

hallow mango
#

hmm that's interesting

#

I just went to the trace page and looked at the URL there

#

had entity id

fiery ledge
#

maybe you dont have names set for the automations?

hallow mango
#

yeah, I do

fiery ledge
#

o well, how peculiar. if you need a last-triggered substitute:``` toggle: true
secondary: >
{% if state_attr(config.entity,'last_triggered') %}
{{relative_time(state_attr(config.entity,'last_triggered'))}} ago
{% else %} Never triggered
{% endif %}

hallow mango
#

ah sweet

#

yep that's perfect

karmic tiger
#

drinfernoo:

filter:
template: A jinja2 template evaluating to a list of entries to include

hallow mango
#

right

#

got that covered

karmic tiger
#

It's quite clear that the template goes under template:. What you shared before looks nothing like that.

hallow mango
#
{{ states.automation
 | rejectattr('attributes.last_triggered', 'eq', none)
 | selectattr('attributes.last_triggered', '<', now()-timedelta(minutes=5))
 | map(attribute='entity_id')
 | list }}
#

hang on

#
type: custom:auto-entities
card:
  type: entities
  title: Recent Automations
  show_header_toggle: false
  state_color: true
filter:
  template: >-
    {{ states.automation
     | rejectattr('attributes.last_triggered', 'eq', none)
     | selectattr('attributes.last_triggered', '<', now()-timedelta(minutes=5))
     | map(attribute='entity_id')
     | list }}
#

which works fine if i'm using a normal include: filter

#

but not with template

karmic tiger
#

Gotcha. No idea 😄

hallow mango
#

right lol

#

no biggie i suppose

#

was just hoping to get this the way i wanted

#

without pinging loven

karmic tiger
#

Yeah, don't ping people...

#

I haven't looked at the code, but have you tried doing something like this?

  template: <your template>
  include:
    - options:
        secondary_info: last-changed```
#

It seems to allow missing fields in the include, else this example would break:
include: [{}]

#

That's a list of a single object with no keys.

polar kelp
#

Options doesn't work with template

karmic tiger
#

Speak of the devil.

tacit cave
#

Sounds like a FR

hallow mango
#

lol see i didn't ping him

karmic tiger
#

His spidey sense kicked in.

polar kelp
#

The trick is to have the template return complete entity setups instead of just a list of ids.

hallow mango
#

right, that's what i thought