#frontend-archived

1 messages Β· Page 124 of 1

mild veldt
#

docs are there for your benefit

brave dove
#

Awesome, thanks for the help!

#

I did try that one before but I must have missed a space or something...

candid arrow
#

I have installed HA on Pi4 4GB and the beta 64bit version, everything is up and working fine. I have created a ping device tracker and able to track the device.

In the overview section it is showing two entities one is for Person and Other via Device Tracker. Is there any way i can remove/hide any one of them

royal spear
#

Hi everyone. I just noticed something. When I go to the Developer Tools/States page..is blank. When I refresh/reload everything shows up normal. It just works for a while....... and then blank again. Any Idea?.. is a theme issue? Chrome maybe.. have you seen something like that..or is just me.

mild veldt
eternal elbow
#

I've been digging through the lovelace documentation and struggling to put together the necessary pieces. I'm led to a question - is lovelace not enabled by default in 0.74? I'm on a fresh install and all I can see is it's mode is "auto-gen" and I can't edit anything in the interface? Am I missing something?

#

That should have been 0.97 btw.

royal spear
#

@eternal elbow Check this out https://www.home-assistant.io/lovelace. On the tree dots menu (Top Right).. there's an entry called "Configure UI" there, in the top row you can create your own views [+] .... and on each view, place your cards.

mild veldt
#

jukebox interface is coming together nicely. still need to tweak some icons that are on white backgrounds. really happy with how it is looking now

eternal elbow
#

@royal spear Precisely what I thought I was missing. Thanks!

latent moss
#

That jukebox is probably the coolest thing i've seen in the last few months, nice one ian πŸ˜ƒ

green raft
#

That looks awesome @mild veldt !

#

Anyone know if it's possible to conditionally show a component over the top of another component? I've built a similar vertical stack/picture glance Harmony control to this: https://community.home-assistant.io/t/harmony-activities-volume-slider-and-lovelace/72419 , but have added a Spotify button (as my receiver supports Spotify Connect). Was kinda hoping to throw up the mini-media-player component in place of the picture glance background when Spotify was toggled.

#

Here's the example

green raft
#

Can get it to conditionally show the mini-media-player only when Spotify is running on the receiver, but would much prefer it to replace the BG of the picture-glance

unborn badge
#

I'm using the unifi controller device tracker. However it is adding all devices of my network. Is there a way to only show the devices that I want instead of all?

split granite
#

Yes, take control of the UI and remove the entities you don't want showing

unborn badge
#

Awesome, thanks!

opal jay
#

is it normal that my configuration.yaml is empty ? i do got lights & sonos added

#

i used the raw editor nothing else

split granite
#

configuration.yaml isn't used for Lovelace

opal jay
#

just the raw editor ?

split granite
#

The most configuration.yaml is used for is for defining YAML mode

#

In a wider context, configuration.yaml is never changed by Home Assistant. The automation editor will update automations.yaml, the script editor scripts.yaml and the Customize menu customize.yaml. Everything else in the UI works in .storage/

opal jay
#

Speedtest Download
Speedtest Download
7 minuten geleden
Onbekend
Data retrieved from Speedtest.net by Ookla

im getting unknown instead of a dl/upload/ping 😦 anyone know why this is happening?

split granite
#

Check the state of the underlying sensor

#

Developer Tools -> States -> find your entity

opal jay
#

thats where i get a error

split granite
#

πŸ€”

opal jay
#

service speedtestdotnet/speedtest cant callup <urlopen error [errno-3] Try again>

potent compass
#

I made an system tab with al the system entities like cpu temp etc. but since a couple of days when i try and load the page the cards appear for les then a second and then they disappear and i have an empty view. can someone explain that?

split granite
#

Sounds like a connectivity problem @opal jay

#

@potent compass Custom card, have any of the entities vanished?

#

I had this problem yesterday, where it turned out the custom card I was using referenced entities that didn't exist

potent compass
#

there are a couple of entities are not yet in the system so there are some cards with 'enitity not found' that's all

#

try and remove the entities from cards and try again?

split granite
#

I'd remove half of them, try again.

#

If that doesn't work, switch the half that's commented out, try again

#

If that still doesn't work, it's the card or your formatting

opal jay
#

how can i solve that tinkerer?

split granite
#

Check your log file for more information on the problem

#

If you've made any settings in the component, check those too

wheat current
#

"<urlopen error [Errno -3] Temporary failure in name resolution> "
It's always DNS πŸ˜„

opal jay
#

speedtestdotnet:
scan_interval:
minutes: 1
monitored_conditions:
- ping
- download
- upload

this is in my configuration.yaml

kind shellBOT
#

@opal jay To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:

```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G

split granite
potent compass
#

removed all the entities that didn't exist but still no view. can it be that there are to many cards or something like they can't arange it

split granite
#

More likely an issue with the card formatting or the likes

potent compass
#

oh well there are a couple of errors in console of chrome

#
Uncaught TypeError: Cannot read property 'style' of null
    at HTMLElement._updateEntity (bar-card.js:976)
    at HTMLElement.set hass [as hass] (bar-card.js:159)
    at HTMLElement.set hass [as hass] (hui-stack-card.ts:24)
    at HTMLElement.set hass [as hass] (hui-stack-card.ts:24)
    at vertical-stack-in-card.js:116
    at Array.forEach (<anonymous>)
    at HTMLElement.set hass [as hass] (vertical-stack-in-card.js:115)
    at HTMLElement.createCardElement (hui-view.ts:76)
    at HTMLElement._rebuildCard (hui-view.ts:322)
    at HTMLElement.<anonymous> (hui-view.ts:83)
auto-entities.js:2 Uncaught (in promise) ReferenceError: cardTools is not defined
    at auto-entities.js:2```
#

this one popped up also, you guys know something about these errors?

#
auto-entities.js:2 Uncaught (in promise) ReferenceError: cardTools is not defined
    at auto-entities.js:2
split granite
#

Sounds related to cardTools - did you check the link @wheat current posted?

potent compass
#

yeah i checked it but can't make the link with t

#

πŸ˜ƒ

#

has something to do with the version number behind the file?

potent compass
#

I’ll have a look at that

#

If the errors are gone it will work I guess

potent compass
#

i looked in the browser log of HA and there was an error (see code below). it already showed up for 36 times so i think it has someting to do with the system tab that's not showing up. when i go look in the file i see nothing weird that can cause an error.

#

error

/local/bar-card.js:976:42 Uncaught TypeError: Cannot read property 'style' of null
#

FILE LINE

#
      root.getElementById('titleBar_'+id).style.setProperty('display', 'none')
brave dove
#

anyone know a good Apple Tv card (plugin)? with navigation and current media etc.

mild veldt
#

most people tend to use button-card to make a remote interface. current media, suggest mini-media-player

brave dove
#

Okay, thanks

vapid field
#

Hey there, i am still new to homeasisstant and i try to show state based icon colors in a glance card. For that i customize in configuration.yaml:

#

'''

kind shellBOT
vapid field
#

'''

#

but no colore-change appears 😦

#

Could you guys help me. I am really new to homeassistant

safe pine
#

Hi people,
My kids are killing the HA… Is it possible to disable lovelace HA menu and top heater edit option?

mild veldt
safe pine
#

@mild veldt thanks. will try...

mild veldt
#

if that fails, get new kids

glad condor
split granite
glad condor
#

thanks

vernal gazelle
#

wait how does this get new kids thing work... Out of the 4 I have I want to trade in two... is that a lovelace or an HA feature?

mild veldt
#

i think you use the ebay component or something

unreal urchin
#

what's the best way to do some conditional formatting? i'd like to show a glance card with all battery levels, with red/orange under a certain threshold

atomic glacier
green raft
#

You can use templates in customize, so you can set icon: rgb_color dynamically.

#

Just have a quick google for 'home assistant template sensor icon color' and you'll get lots of examples.

gray kernel
#

You can use templates in customize I don't think this is true?

green raft
#

Sorry, not in customize, but the sensors themselves - eg

binary_sensor.*_state:
  templates:
    icon: >
    rgb_color: "if (state === 'on') return [251, 210, 41]; else return [54, 95, 140];"
gray kernel
#

that seems extremely old, from when there were javascript templates instead of jinja2

green raft
#

Could well be. So replace the JS with Jinja

unreal urchin
#

some cleanup to do, but that'll do for tonight

craggy cave
#

Hi guys and girls. I have setup an ESP32 to control my gas central heating using the climate component and it is working well. Maintains temperature no problem. The problem I am having is that I need to be able to automatically turn the hvac_mode to heat to enable start the unit. Any ideas? @fading sorrel ?

green raft
#

Is it possible with Lovelace to force components to display in place of other components? Trying to get a mini-media-player to show as the state_image/background of a vertical_stack picture_glance card.

safe pine
#

@mild veldt Unfortunately, the header remover doesn’t work.

Is there any other way to disable the edit option?

polar kelp
#

Why do your kids have an admin account?

safe pine
#

The regular user also allowing to edit UI.

polar kelp
#

They are? That’s... not how it should be.
*adds it to the list

safe pine
#

The regular user removes some of the admin config options, but allowing full UI edit.

mild veldt
#

@safe pine there's a hide_config option for CCH

#

That can be set on a per user/device

mild veldt
#

@polar kelp if we moved to each user having their own view, it would make sense to keep that as a non-admin feature

polar kelp
#

Maybe

#

I don’t think so. The admin should set up the views for each user

mild veldt
#

I don't like that future. I could understand restricting entities from a user to use, but not modifying their interface

vapid field
#

Anyone know the minimum spec. On the hardware To get the video stream to work in lovelace?

elder pendant
#

Is anyone interested in having animated backgrounds that can change based on an entity state? Here's an example of what I mean https://i.imgur.com/0AHjzeF.jpg

mild veldt
#

@vapid field it can be pretty taxing if you have high fps

soft valve
#

okay this lovelace, is really sigh if i wasn't balled, then i would become it. I hope some can help me.

kind shellBOT
vapid field
mild veldt
vapid field
#

@mild veldt i try there didnt know where to post ...

mild veldt
#

πŸ‘

elder pendant
polar kelp
#

Nice.

wheat current
#

@elder pendant "TypeError: Cannot read property 'state' of undefined" 😦

elder pendant
#

😣 so much for a flawless first plugin

wheat current
#

Just the docs that are wrong ;)
entity is not all that optional

elder pendant
#

It's supposed to be, that's just my brain not connecting that null checks are necessary when making things optional 😦

wheat current
#

same for state_url

elder pendant
#

This is what I get for testing nothing before release. I'll whip up some fixes

#

This may be covered in the docs, but how does HACS register updates to a repository if there are no releases? Does it check commit dates?

wheat current
#

commit sha

mild veldt
#

testing is for suckers

elder pendant
#

okay, cool

wheat current
#

What is "included_devices" and "excluded_devices"?

#

And for users, are that username or user name?

elder pendant
#

Same sort of functionality as CCH, user name I guess since it's case sensitive

#

devices is a substring check

wheat current
#

Got it working, it needs the enity, a default url, and at least 1 state url

soft valve
#

@mild veldt thank you. Have would I then have more cards into a view?

wheat current
#

Which make sense, with what you are describing it as

mild veldt
#

@soft valve stacks

#

or layout-card

wheat current
#

Is there a simple clock card?
XX:XX ?

mild veldt
#

@wheat current you can use markdown

wheat current
#

no, markdown is styiling, it does not do time

mild veldt
#

i mean the custom one, from thomas

wheat current
#

cool

mild veldt
#

it supports templates

soft valve
#

And a extra questions how do I then, because I Already tried woking with stacks. But how do then make it responsive. Because what I tried was having a vertical stack with a horizontal stack with three vertical stacks in. But they do not go under each other in the mobile for example.

elder pendant
#

@wheat current I updated the docs to state that state_url requires entity to be set. And I added a null check for entity, so it should actually be optional now πŸ˜…

wheat current
#

That does not make sense, if entity is null, how would it map the state urls?`

#

default url is not optional, lovelace goes haywire if that is missing with a lot of DOM exceptions

mild veldt
#

or bignumber-card with a sensor, probably

elder pendant
#

It wouldn't, but it will actually default to default_url if entity is not defined

#

and if default_url is not defined it just renders nothing

mild veldt
#

@soft valve checkout layout-card

soft valve
#

Okay thanks I will dosnt Lovelace support that in by it self???

mild veldt
#

it does if not using panel

#

at some point I would like to look into adding some features that @polar kelp put into the layout-card into stacks. breakpoints are great, especially if you could relate that to screen size, maybe just having foundation grid or something. But that's also the awesome thing about custom-cards, if there is something lacking, someone will likely fill the void

wheat current
#

Oh.. this sucks... Now I need to make my cards transparent πŸ™ƒ

elder pendant
#

I have a slate theme with transparent cards if you don't feel like making a theme

mild veldt
elder pendant
mild veldt
#

...that might actually be stolen from @elder pendant πŸ˜ƒ

elder pendant
#

Nope, I just stole slate and made a single change πŸ˜‰

mild veldt
#

I don't remember where I got mine

elder pendant
#

@wheat current thank you for helping me test, I appreciate it

mild veldt
#

the one I posted also rounds all card corners

elder pendant
#

Ooo that's nice

#

I'm gonna spin that one up

mild veldt
#

yeah, I've really been liking it

wheat current
#

Was too light for my taste

elder pendant
#

A bit for me as well, but I'm for sure going to steal the rounded corners

mild veldt
#

😒

#

haters gonna hate

elder pendant
#

No hate, only love ❀

wheat current
#

Are you pushing that to your repo when you are done? πŸ˜„

mild veldt
#

pushing what?

wheat current
#

his version + round corner πŸ˜›

elder pendant
#

haha I can add it and repaste

wheat current
#

looks a bit off with "block" corner for media player card, but other then that it's nice πŸ‘Œ

wheat current
#

can I do string split with markdown mod?

polar kelp
#

@mild veldt i think max columns would be a good thing to start with for stacks

#

Wait. No. Don’t do that

#

I’m stupid

#

Column widths though...

lilac sage
#

does anyone know if panel mode is in development for HA Cast?

#

and a question specific for @polar kelp : do all of your custom cards work with HA Cast? I was trying to use the layout card and I got an error when casting to my Google Hub. Not sure if it's an error on my end or with the custom card itself. Thanks.

polar kelp
#

I think they should, if you have the latest version of card-tools.

mild veldt
#

@lilac sage there is no active development on panel mode for cast, to my knowledge

lilac sage
#

thanks @mild veldt , that's a bummer though as it makes it almost impossible to make a device specific custom interface without the use of panel mode: true. @polar kelp , thanks for the reply, I'll check that my card-tools is up-to-date

rotund island
#

how can i decrease the header text size of the banner-card it's in the docs but i ahve no clue how to apply it sorry

mild veldt
#

@lilac sage agreed. I'm sure someone will get around to it eventually

lilac sage
#

πŸ‘

distant phoenix
#

Has anyone noticed a bug with the Entities card? In the config for some entities when you click the X to remove it it instead triggers the dropdown. Only way to remove it is to erase the text

royal spear
#

Hello.. one newbie, silly question. Where can I find the code for the default theme?

#

@distant phoenix I noticed that... I juste save, exit, and try it again.. after editing 2 or 3 entities it fails again

mild veldt
#

@distant phoenix it is a known bug and documented on github

royal spear
#

Thanks! @mild veldt

woeful bridge
#

Hey guys, after a recent update I see that the Thermostat card graph (in the 3 dot menu) no longer shows the little green bars that show when the heater was active). It only shows the target and actual temperature. Anyone know how I can get them back?

icy patrol
#

@polar kelp hi Thomas. Hoping you can assist with the lock toggle you made. If I were to click on the edges of the toggle switch, the entity still turns off regardless if the lock is there. Looks like perhaps the lock area needs to be expanded a bit. Thanks for your time!

gray flint
#

looking for good ways to set input_datetime via lovelace. any custom cards out there?

split granite
#

No need for a custom card - standard entities card works

gray flint
#

@split granite @wheat current looking for some time select widget that would be easy to modify via mobile phone

kind shellBOT
#

Tinkerer is away for 4m 18s with a message :point_right: .. / .- -- / .- - / .- / .-.. --- -.-. .- - .. --- -. / --- - .... . .-. / - .... .- -. / .... . .-. .

wild harbor
#

Am trying to get grafana iframes into my lovelace interface.. but they keep up showing blank 😦

#

Got this in my raw lovelace config: - badges: [] icon: mdi:chart-line type: horizontal-stack cards: - type: iframe aspect_ratio: 90% title: test url: http://172.16.3.200:3000/d-solo/cPLjNVOWk/home-assistant?orgId=1&panelId=2&theme=light panel: false title: Grafana

#

the link it self works perfectly, in any browser for me

#

anybody around who got this working?

wild harbor
#

Figured it out... my Home Assistant runs with HTTPS and my Grafana addon didnt.
First aligned that, so both are HTTPS.
Reconfigured that my Grafana addon runs as anonymous and has the standard org as Home-assistant

full cosmos
#

Hello, anybody using Compact Custom Header that have run in to an issue, where it still shows the original header on some devices, but not on other?

mild veldt
#

@icy patrol worth mentioning that the button-card also supports locking

#

@full cosmos try clearing the cache on the ones that are showing the regular

strong finch
#

How can I integrate an iframe with a sensor?

full cosmos
#

@mild veldt I have tried doing that. Nothing really seems to do the trick. Does anybody have an example of their cch config? Would love to see if I have done something wrong.

mild veldt
#

mine is pretty simple

#
cch:
  chevrons: false
  clock_date: true
  clock_format: 12
  clock_am_pm: false
  background_color: rgba(150, 150, 150, 0.2)
  options: clock
#

@strong finch I don't know what that means...?

full cosmos
#

I can't see something wrong with it. But the only one that actually hides the default header, is my phone which is user: Anthon user_agent: Mobile

#

And that one also goes to the default tab. The other ones doesn't hide the ones they are meant to hide.

strong finch
#

Can anyone help?

split granite
#

What do you mean integrate an iframe with a sensor?

dim jolt
#

hey team , seems to be an issue/quirk with lovelace yaml when you break out the views into separate yaml files.
i'm assuming there is some kind of watcher on ui_lovelace.yaml. if i update one of the 'broken out yaml files' the UI doesnt refresh.
i have to change something in the actual ui_lovelace.yaml then refresh for the change to be realized

split granite
#

Pretty sure that's not an issue, but just the way YAML mode works

#

You shouldn't need to edit the main ui-lovelace.yaml though, I never have

#

Just hit the Refresh menu option

dim jolt
#

thats what i thought would happen, but no - for some reason i have to save the ui_lovelace.yaml THEN refresh (after i've made changes to the broken out yamls)

strong finch
#

@split granite I have a sensor - sensor.ituran_google_map which is a link above

split granite
#

🀷 I'm afraid that while I understand the words, the way you've put them together makes no sense πŸ˜‰

dark dirge
#

@dim jolt someone made that same observation a week or so ago. Have to change or save ui-lovelace

split granite
#

Weirdly I don't - 0.97.2

dark dirge
#

There’s a thread about it

split granite
#

I'm guessing there's something else going on here

dim jolt
#

i'm 97.2 also

#

@split granite have you broken out your ui_lovelace.yaml in to multiple files
views:

  • !include /lovelace/blah.yaml
dim jolt
#

ok

#

so you can make a change in the !include file - hit save on the .yaml then refresh the browser and change appears?

#

also thanks @dark dirge - will take a look

split granite
#

Yup

dark dirge
#

teachingbirds
Isabella Gross AlstrΓΆm
Feb 9
I have to make a change in the ui-lovelace file and save to make the changes in the includes come across. Usually just make an extra row below everything and next time I take the same row away again.

mild veldt
dim jolt
#

@dark dirge thanks, posted on the thread

mild veldt
#

@dim jolt @split granite if you have nested !include then you'll need to manually refresh

split granite
#

That what works for me, but not others

dim jolt
#

boooo @dark dirge FYI

split granite
#

If you dig through the thread some people have to edit ui-lovelace.yaml apparently

#

Or maybe they're just not hitting Refresh until after they do that 🀷

dim jolt
#

yeah - i just add #anotherline and save ui_lovelace.yaml

#

then refresh - that works for now

mild veldt
#

sorry, I meant editing ui-lovelace.yaml, not refresh. @split granite by nested I mean an !include inside an !include

split granite
#

Nested includes... I've never done that πŸ€”

#

I hadn't even thought about it until now...

mild veldt
#

that's when this presents itself

#

for me, it's actually when I added this

            cards:
              !include_dir_merge_list lovelace/jukebox
split granite
#

Damn you! I'd never thought of doing that for lovelace... and now I know what I'll be doing soon

#

πŸ˜›

mild veldt
#

note that it will load alphabetically

#

which works perfectly for my jukebox as I want it sorted alphabetically already πŸ™‚

split granite
#

Well, given that the display order doesn't often line up with the order I list things... I'm not that worried πŸ˜›

brittle eagle
#

would anyone know how to solve this (dev console chromium) Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "mini-graph-card" has already been used with this registry (reinstall and reboot did not work)

mild veldt
#

do you have it defined twice in your resources section?

brittle eagle
#

Let me just scan it

#

@mild veldt your the man, thanks

#
core-ssh:~# grep -rnw '/config/' -e '/community_plugin/mini-graph-card/mini-graph-card.js'
/config/lovelace/resources/mini-graph-card.yaml:1:url: /community_plugin/mini-graph-card/mini-graph-card.js
/config/lovelace/resources/text_elements.yaml:1:url: /community_plugin/mini-graph-card/mini-graph-card.js
#

copy paste fail

mild veldt
#

πŸ‘

turbid mauve
#

Any templating experts out there? Is it possible to use regular expressions to get states? Trying to do something like... states("sensor.office_motion_sensor_\d\d_temperature") then I'll loop through the result.

gray kernel
slender temple
#

hi @all πŸ™‚ anyone know if there's a full list of attributes I can change when messing with themes? want to change the color of icons on the map πŸ™‚

kind shellBOT
grim compass
#

How can I display a specific filesystem using systemmonitor in history-graph card ? (cf the pasted code on top)

slender temple
#

what filesystems have you got and how did you install ha?

grim compass
#

the filesystem i have are in the pastebin

#

and I use a venv install

slender temple
#

hmm the way you have it works for me, hassio install on an rpi. this is in mine:

#
    resources:
      - type: disk_use_percent
        arg: /```
#

and i can use /home

#

or whatever same as you

grim compass
#

yes for the platform module

#

but does this works in the history-graph ?

#

arg

slender temple
#

sec, i have it in one. lemme dig it out

grim compass
#

πŸ‘Œ

slender temple
#

sensor.disk_use_percent is what i use, in entity cards or the custom graph card

grim compass
#

yes me too

#

but it does only display my /boot

slender temple
#

just looking at the history graph...

grim compass
#

and I'd like to display all fs πŸ˜„

slender temple
#

getting there...just need to add a bunch more drives

grim compass
#

you should already have at least 2 FS

#

/boot and /

#

well might have

slender temple
#

hmm there's a way to name the entities when you define them, just trying to remember how ...

#

tried name: and entity_id:

grim compass
#

found it

slender temple
#

something like

#
    resources:
      - type: disk_use_percent
        arg: /
        entity_id: disk_use_percent_root```
grim compass
#

yep this

#

i doubt arg works here

#

but there are multiple entity_id

slender temple
#

oh so you just have to unpack the sensor?

grim compass
#

looks like

#

answer in a second after rs ...

slender temple
#

πŸ™‚

grim compass
#

yes that's it

#

it works

#

thanks for your help πŸ™‚

slender temple
#

so what did you do in the end?

#

in your config?

#

nvm, got it

slender temple
#

here's hopefully an easy question. a sensor tracks a number between 0 and 100. if it sits around say 90, i get a history graph card (or something like it) that shows recent values as max min, say 85 - 92. How do i force it to show 0 - 100 on the y axis?

#

nvm, i got a reply in another channel. sorry for the spam!

turbid mauve
#

@gray kernel Thanks, I'll do that. I figured I could. I just was hoping that there was something built into allow pre-filter with regex... thanks again!

brittle eagle
#

Hey, i'm having some issues with a template i grabbed from the forum somewhere, using a template ready icon option for the button-card

#
        icon: "if (state === 'armed_away') return 'mdi:shield-lock'; elif (state === 'armed_home') return 'mdi:shield-home';  elif (state === 'disarmed') return 'mdi:shield-off'; else return 'mdi:alarm-light';"
        icon_color: "if (state === 'armed_away') return 'rgb(70, 209, 19)'; elif (state === 'armed_home') return 'rgb(70, 209, 19)';  elif (state === 'triggered') return 'rgb(255, 17, 0)';"
#

this is some super ugly code i guess, and it doesnt work

#

πŸ˜›

#

any pointers?

mild veldt
#

Check the actual docs. Templates should be surrounded by triple square brackets

brittle eagle
#

suppose this is better:

icon: >                                                                                                                                 
  {% if states.alarm_control_panel.house.state %}                                                                                     
    {% if states.alarm_control_panel.house.state == armed_away %}                                                                             
      mdi:shield-lock                                                                                                                               
    {% elif states.alarm_control_panel.house.state == armed_home %}                                                                             
      mdi:shield-home   
    {% elif states.alarm_control_panel.house.state == armed_disarmed %}                                                                             
      mdi:shield-off                                                                                                                                         
    {% elif states.alarm_control_panel.house.state == triggered %}                                                                                                                                  
      mdi:alarm-light                                                                                                                        
    {% endif %}                                                                                                                                  
  {% endif %}
#

Though this only works as a template sensor

lucid quartz
#

Using picture elements card. State-icon and state-label don’t stay proportional size/position from one device to the next (e.g. computer and ipad). Is there a way to fix this so they are the same even if the screen is a different size?

wet pond
#

yo guys there is any way to change icon of entity based on state? something related to customize.yaml maybe?

slender temple
#

+1 to @wet pond 's question. Also, can you change the color of mdi icons drawn on the map?

wet pond
#

@slender temple i've read a lot

#

seems that is not possible with lovelace

#

only with custom-ui

mild veldt
#

@brittle eagle like I said. Check the docs for button-card

wet pond
#

yah i dont use many button cards and dont want to change picture, i want to change icons, from what i've read not working

mild veldt
#

I didn't tag you in that response?

wet pond
#

sry i thought you spoke to us

mild veldt
#

As for changing icons, templating it not supported by default. Check out my config-template-card. That will allow you to dynamically set the icon

#

Would not work on the map though

wet pond
#

@mild veldt can you give us a link or so

#

?

wet pond
#

merci

slender temple
#

is there a better map component / card i can use that will let me choose what goes on it? wanting to change the color of an icon on a map seems like such a small thing to do. trouble is, mdi icons show up white on top of white so they dissapear.

#

hmm ok, seems fine with the default theme, so it must be in there somewhere..

#

does anyone have a copy of the hassio default theme file?

#

or is there a way to dig it out somehow?

atomic glacier
slender temple
#

thanks @atomic glacier

#

the thing i dont understand is if this is open source, why cant i find the default values in it?

#

surely somewhere all of this should be defined

split granite
#

In the source code

slender temple
#

been there

#

cant find it πŸ™‚

#

its just my search skills i think thats the problem though

#

i couldnt find a way to search the code itself, only the main files, so started looking through each one in turn

#

and the other thing i dont get is why the devs wouldnt want to just publish the default theme come to think of it πŸ˜„

split granite
#

Probably they didn't publish it since it's built in 🀷

slender temple
#

anyways, thanks for all your help - everyone here is so helfpul it's amazing - i mean in the community as a whole as well as in here

slender temple
#

@polar kelp thanks - I was looking in the wrong place actually

split granite
vapid field
#

This is my config now. Do I need to extra specify the data too as I get 'Failed to call service scene/turn_on. required key not provided @ data['entity_id']'?

type: entity-button
tap_action:
  action: call-service
  service: scene.turn_on
hold_action:
  action: more-info
show_icon: true
show_name: true
entity: scene.rainbow
split granite
#

Wrong tag πŸ˜‰

#

And yes, the error message (and docs) tell you what's missing

vapid field
#

whoops πŸ™‚

#

alright thank you

#

service_data:
entity_id:

swift river
grim compass
#

How can I set a button / card to start a specific hue scenario ?

#

I'll take any example

split granite
grim compass
#

yes but how to call a custom scenario ?

split granite
#

Depends on how you'd call that "specific hue scenario"

#

Not using Hue, I've no idea what that looks like

grim compass
#

yup it's a scene

#

i think i found what i wanted

solid sage
#

When i press a button in a glance card the color changes just slightly so it's hard to see if it was actually pressed. Is there anyway to change the color for the button pressed?

vapid field
#

My menu button is gone at the home screen where you can edit your ui and accses raw ui config

mild veldt
#

@solid sage you can change your theme, I'm not sure what CSS variable that is off the top of my head

wicked meadow
#

Hi sorry for the silly question but I cant figure out where to put the pictures I want to use in the cards. Putting the file in the same dir as all the yamls and using image: /EG.png does not work, I found the hint to put it in www dir and use image: /local/EG.png but that does not give me any success.

errant plover
#

Put them in www and use the full file path. E.g. /config/www/EG.png 'local' is for URLs not file paths.

#

Also you have to restart HA after creating the www directory.

wicked meadow
#

Ah thank you after restarting all is well πŸ™‚

wind bronze
#

How do I make an entity-button card half-width? They always want to take up an entire column, but I'd like to put two side-by-side.

vapid field
#

you cant i think

wind bronze
#

That's what I thought too though--but then I would assume you could if they're going to allude to it in the official video

past falcon
#

Hey, is there a way to change photos in a picture entity based on a state attribute, or do I need to create a new template sensor for this?

mild veldt
#

@wind bronze @vapid field horizontal-stack

vapid field
#

thank you

tiny trellis
#

Is anyone using the floorplan plug-in that can tell me what I need to do to have the light toggle when I click the item in the svg and not pull up a details window

atomic glacier
#

@past falcon I've been using input_select and input_select.set_option with various automations to change backgrounds, card backs and cameras for quite sometime now. Maybe another better way, but I've been lazy cuz it works πŸ˜‚

fiery gyro
#

Hi, Is there anyway to hide certain cards based on the user logged in?

timid burrow
#

you can kinda use custom-compact-header with user-agents and views to do that

fiery gyro
#

Umm I'm very newb to all this could u elaborate a bit more or link me to a place where I can read on those?

Sorry for the trouble

slow wave
fiery gyro
#

Thanks!!

devout hatch
#

can you suggest some lovelace layout foe lights? I am having bulbs, and led strips, with two channel gledopto

mild veldt
open jackal
#

Is there a command to check the config for ui-lovelace.yaml?

slow wave
#

You will know when it is broken atleast

#

πŸ˜›

mild veldt
#

@open jackal ctrl + s

nimble quartz
#

I've searched and couldn't find anything... Is it possible to 'easily' rearrange badges/entities in the lovelace edit screens where multiple entitles are added in a table? I know I can edit the raw config but i've thought on many occasions that it would be quite helpful to drag these to rearrange. Like in this situation... https://imgur.com/a/aYsJDgo

glacial ledge
#

Hi.
Does anyone know a simple way to get all unused entites. (a python script maybe..)

#

I am new to this ...

nimble quartz
#

@glacial ledge What do you mean to 'get all unused entities'? All entities are used to some extent. Are you asking to show the entities that aren't shown on a lovelace screen? Assume you've seen under 'Developer tools -> States tab'...

glacial ledge
#

Are you asking to show the entities that aren't shown on a lovelace screen?
yes.

#

I know states tab. I want only entities not used in ui-lovelace.yaml

elder pendant
#

You can navigate to /lovelace/hass-unused-entities to show unused entities

glacial ledge
#

And I am looking for a test list that can be prgramatically returned.

#

like /lovelace/hass-unused-entities but in a text list.

nimble quartz
#

@glacial ledge Within the context of a specific page? Can you explain use case a bit more?

glacial ledge
#

I have a lot of unused entities and want a list so I can sort out what I want to do with each one.

#

like when you first create the ui-lovelace file you can get a list of all entities.

#

just makes it easier to create the file and put each entity where I want it. instead of going back and forth cut and paste.

mild veldt
#

@nimble quartz there is not currently a UI editor for such rearrangement. Thomas Loven had a WIP for stacks that would likely be applicable to badges/entities if I remember correctly, but nothing currenlty

#

could probably make a simple card out of that logic that just shows a list

#

ideally we'll add a "copy" function to unused-entities at some point

#

until then though, just split screen the unused vs your editing so you have it up as reference, I guess 🀷 would probably be easiest

glacial ledge
#

Thanks

past falcon
#

Hey on a picture entity card, is it possible to change the image based on one sensor, but have the more-info be for another sensor?

elder pendant
#

no

polar kelp
mild veldt
#

Your ears were burning @polar kelp? πŸ˜‚

#

@past falcon @elder pendant yes using popup-card or browser_mod

elder pendant
#

I assumed they meant in vanilla lovelace

polar kelp
#

Nah. I saw the message, and I had the code open and thought why not...

mild veldt
#

πŸ˜ƒ

open perch
#

I am still new to homeassistant and have a questions..
I had by default an entity for my local weather... works fine. so now I wanted to add a graph of the temperature like so: ```
entities:

  • weather.temperature
    title: Temperatur
    type: history-graph```
    but it's telling me that there is no history data available?!?
split granite
open perch
#

yes, but I have that card?!?

split granite
#

That's not what you posted

#

Does the entity weather.temperature exist?

open perch
#

I don't understand that part yet... I have an entity called weather.home and it has a property tempeature. When I way typing weather.home.temperature it had an error. With weather.temperature the message is only that there is no history data

split granite
#

Check in the States menu first

elder pendant
open perch
#

@elder pendant awesome! that did the trick! thx

mild veldt
nocturne dust
#

I'd like to have a card for my doors with the door sensor on it and the lock as well (I'd like to have them stacked vertically)

#

Is there something like this already out there?

#

Or even a single icon that displays both wheth r the door is open and locked at the same time

nimble quartz
#

@polar kelp Thanks so much for the info. That would be most excellent!

mild veldt
#

Theres nothing premade for that to i know of. @nocturne dust are you able to control your locks? If so I would recommend button-card as you can put a lock on it so you don’t accidentally put unlock you door.

#

I would actually recommend button-card regardless

shell delta
#

hey friends, does anybody know how to get the original "default_view" back after enabling Lovelace's yaml mode? i did that via:

lovelace:
  mode: yaml

i really just want to be able to see all devices on a lovelace view.

mild veldt
#

@shell delta remove yaml mode and .storage/Lovelace if it exists and restart. You’ll be back to the default view

glacial ledge
#

I am having trouble with custom panel.
I created a hello world html file but I can't get it to display anything. I configured panel_custom and it shows up in the side panel but nothing shows up when I click on it.

#
panel_custom:
  - name: 'Hello world'
    sidebar_title: 'Hello World'
    webcomponent_path: /home/homeassistant/.homeassistant/panels/test.html
mild veldt
glacial ledge
#

ok

mild veldt
#

Currently uses the same logic as the core's unused entities, so it doesn't do a great job finding entities used in many custom cards

latent moss
#

@mild veldt I am trying to do the Jukebox UI you shared a few days ago, but I cannot figure how to get it to display on 3 rows like you had in the gif? No matter what I try (setting panel mode true, putting the <<: *decluttering_album stuff into horizontal-stacks etc) my cover flow thing seems to be one row only. Any idea what I might be doing wrong? 🀷

radiant drum
wheat current
#

Its a string and not a number

mild veldt
#

@latent moss that's part of the swipe-card config. I'll update the gist later today

twilit charm
#

Hello guys

#

Having issues with dark sky

#

No state available for weather.weather
{
"entity": "weather.weather",
"type": "weather-forecast"
}
I checked every source in google and the given ones in the description of the discord channel but nothing seems to solve this problem
the weather card is not showing up

polar kelp
mild veldt
glacial ledge
#

@mild veldt I am having trouble using the card unused card. I tried using it as a custom card.
Is that how its meant to be used?

mild veldt
#

Yes

glacial ledge
#

well something is not working about it.

#

I followed the example to set up the custom card exactly and that works.

#

When I change the contents of the file to your gist I get an error Custom element doesn't exist: content-card-example.

#

the same error as when the file is empty...

elder pendant
#

Are you changing the content without changing the file name?

glacial ledge
#

yes.

#

without changing anything else.

elder pendant
#

You probably need to clear your browser cache then

mild veldt
#

From the dist folder

glacial ledge
#

I did clear cache and tried incognito also... and when I change it back it works again.

elder pendant
#

Why are you trying to modify the file to begin with? Does something need to be changed or do you just want to learn how custom cards function?

glacial ledge
#

I want to use his unused-card card but I was not able to get it working the regular way.

#

Just to be sure I was doing it right I did the example and it worked. when the only thing I changed was the file it stopped.

elder pendant
#

I don't understand. If the example works why are you changing the file? And what is "the regular way"?

glacial ledge
#

I cant figure out how to install/set-up this card. If you can help me step by step (I'm still learning) it will be great.
So far I created the file in <config>/www
Referenced it in ui-lovelace.yaml
and it did not work.

elder pendant
#

Did you refresh your lovelace and restart after you created www?

glacial ledge
#

So therefore I tried to copy the example step by step to make sure there was nothing I missunderstood. when that all worked out I tried substituting his contents for the example.
Yes I restarted a few times.

#

like I said the example card works. when I change it it stops and when I put back the example it works again.

elder pendant
#

I don't know what example card you're talking about

glacial ledge
#

followed this page: https://developers.home-assistant.io/docs/en/lovelace_custom_card.html

elder pendant
#

Which file are you trying to copy from the unused-card repository?

#

I just tried it and it works fine for me

mild veldt
glacial ledge
#

i get this error:

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "unused-card" has already been used with this registry
    at http://localhost:8123/local/content-card-example.js:11:151
    at http://localhost:8123/local/content-card-example.js:11:166
    at t (http://localhost:8123/local/content-card-example.js:1:250)
    at http://localhost:8123/local/content-card-example.js:11:89
#

I tried to follow that. I think I did everything there.

#

something is just not processing in my head 😦

elder pendant
#

What files are currently referenced in your resources: block?

glacial ledge
#
resources:
  - url: /local/unused_card.js
    type: js
  - url: /local/content-card-example.js
    type: js
elder pendant
#

Why would you copy the content of unused-card to the example if you already reference unused card?

glacial ledge
#

it was not working so I removed it. now its back.

#

I am starting again from ground zero.

elder pendant
#

Make sure the file is actually unused_card.js and not unused-card.js like it is in the repository

glacial ledge
#

it is. but I erased it all and starting again.

#

ok. now it works. I dont know what was wrong (typo maybe but I checked a few times...)

#

πŸ™‚ thanks everyone.

wheat current
#

Cache @wheat current go back to sleep πŸ€¦β€β™‚οΈ

elder pendant
#

Tried that already πŸ˜‰

glacial ledge
#

cache was cleared a lot of times and all that.
I suspect a typo in

    cards:
    - type: "custom:unused-card"
#

@mild veldt Is there a way that the text in the card is selectable? right now I cannot highlight and copy the text.

frank ocean
#

Hi guys. I setup a theme.yaml, imported it from my config

#

But the themes only apply to cards not the overall hassio. IE the white space around the cards is still white and the sidebar is also still white.

elder pendant
#

Are you sure the theme you chose sets the background?

#

And did you select the theme on your profile page?

frank ocean
#

On the profile page.

#

Hmm

#

Thanks @elder pendant

#

I was selecting it in the edit page for each tab

elder pendant
#

That was my suspicion

frank ocean
#

So is that a cookie setting?

#

I just tried loading it in firefox and its back to the default.

#

Chrome retained the setting.

glacial ledge
#

@mild veldt unless this is the same problem and we are stuch https://github.com/home-assistant/home-assistant-polymer/issues/2110

elder pendant
#

@frank ocean you can set the default theme in your config, but if you select it in the profile menu then it is per device

frank ocean
#

Ah.

mild veldt
#

@glacial ledge yeah it's a general lovelace issue

glacial ledge
#

I just installed firefox...

frank ocean
#
  - alias: 'Set theme at startup'
    trigger:
     - platform: homeassistant
       event: start
    action:
      service: frontend.set_theme
      data:
        name: darkmix```
#

Hmm

#

Doesn't seem to set the default theme :/

glacial ledge
#

and firefox works to copy text...

mild veldt
#

yes, it's something in Chromrium. So Chrome, Opera, new Edge, Vivaldi, etc would all have the bug

latent moss
#

@mild veldt thanks a ton. Much better now, would've never figured that out on my own. Have been making a SiriusXM version of your jukebox idea (only like 25% done) https://gfycat.com/liquidmaturecuttlefish . Much nicer than the input_select i was using previously πŸ˜ƒ

mild veldt
#

Awesome!

#

unfortunately I couldn't get the loop feature to work when using columns

#

if you want to further customize

#

There's also demos with different layout. I settled on coverflow for nostalgic reasons πŸ˜ƒ

latent moss
#

Thanks will check that out later. Though I think the settings you chose are perfect already, looks fantastic on mobile and can scroll through tons of items really fast and smoothly. I love the coverflow for this.

copper sandal
#

Anyone know how I can add the history graph here my syntax doesn't seem to be working at the moment?

#
  - cards:
      - entity: switch.garden_lights
        type: entity-button
      - entity: switch.building_light
        type: entity-button
    type: horizontal-stack
  - entity: sensor.yard_illuminance
    type: history-graph
title: Yard
type: vertical-stack```
mild veldt
#

@latent moss yeah, I'm really liking it. Plan on setting up a tablet by the record player so the kids/anyone can use it

#

my oldest is already our house DJ and picks out records at night, but this greatly expands our collection πŸ™‚

latent moss
#

hah nice

mild veldt
#

@latent moss is your radio for tunein?

latent moss
#

@mild veldt no it's just an input_select with a handful of mp3/aac links that get sent to a google home at the moment

#

this is what my radio tab looks like currently, https://i.imgur.com/4sCbht4.png totally revamping it with your jukebox ui though. I've been attempting to make a sort of unified interface for 3 different services + two hardware types (alexa & google home), but it's been a real pain figuring out all the automation logic since they each lack certain things.

mild veldt
#

that's what makes the decluttering-card so great IMO. able to figure it out once and then reuse it very easily

#

@latent moss I'm curious about that "music follows me around home"

elder pendant
#

I was also curious about that

mild veldt
#

you have room presence setup?

latent moss
#
    action:
      - service: input_select.select_option
        data_template:
          entity_id: input_select.radio_source
          option: >
            {% if trigger.entity_id == 'binary_sensor.kitchen_motion' %}
              Kitchen
            {% elif trigger.entity_id == 'binary_sensor.office_motion' %}
              Echo 3G
            {% elif trigger.entity_id == 'binary_sensor.living_room_sensor_motion' %}
              Living Room Speaker
            {% endif %}
mild veldt
#

So not for a multi-user home πŸ™‚

#

I was in the process of getting the google home room presence setup when the local API got shut off, haven't revisited it since. @wheat current if I remember correctly you were in the thread discussing that. Do you know if anyone found a workaround for it? #off_topic

mild veldt
#

😒

split granite
#

A bunch of Pi Zero W's and monitor πŸ˜›

#

(yes, I know that's a crappy workaround)

elder pendant
#

And a good way to break your home wifi

wheat current
#

AFAIK that is the best option

split granite
#

I've had no issues with two monitor nodes, you just need to set it up sensibly

#

And I have a mountain of Bluetooth stuff going on around the house, plus Zigbee and WiFi

mild veldt
#

yeah, I was going to go the pi z route until I came across the google home method since I already have them all over the house

carmine shoal
#

so, you're about rare, now, then, Tinkerer?

elder pendant
#

I really don't know what I can do differently, no matter what I do running an arrival scan causes (almost) all my wifi iot devices to briefly disconnect

carmine shoal
#

with all that microwave radiation

split granite
#

You're overlooking the 5GHz wifi, and the multiple APs, and... πŸ˜›

carmine shoal
#

ah, medium rare, then

split granite
#

If radiation was an issue, I'd be more worried about where I've lived πŸ˜‰

carmine shoal
#

I had a CB radio "enthusiast" who lived near me, who when he keyed up, activated my passively connected speakers

#

pushing way above legal limits... talking to montana from FL

copper sandal
#

Anyone know why this graph isn't going to the next row? https://imgur.com/a/seMSx70

cards:
  - type: entity-button
    entity: switch.garden_lights
  - type: entity-button
    entity: switch.building_light
  - type: vertical-stack
    cards:
      - type: history-graph
        entities:
          - entity: sensor.yard_illuminance
title: Yard
elder pendant
#

Because you have it in a horizontal stack?

copper sandal
#

Ahhh ok that makes sense.😳

rustic geyser
#

hi, has anyone any experience with implementing Aaron Godfrey 3d floor plans using the horizontal stack card that was covered recently

#

I am a little stuck following his instructions

#

here is my current lovelace ui entry

kind shellBOT
#

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

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

shell delta
#

@mild veldt thanks for answering my question on yaml mode last night. sorry for the lack of response, personal matters came up and I had to leave for the night. i guess i wasn't super clear about my intentions though, I'm hoping to start playing with yaml mode while retaining access to the default view. is there some way that i can have both?

#

moreover, is yaml mode the way to go these days? is it approaching deprecation perhaps? the default view seems to use lovelace and it gives me a nice plug-and-play experience for new devices that i'm adding... i do like that. i would also like to dabble in creating more advanced views as needed.

#

finally, i'm beginning to play with themes, and the author of the one i'm toying with suggests adding

views:
  - background: var(--background-image)

to ui-lovelace.yaml, which forces me to enable yaml mode. I would love for this to affect the default view, but since I lose access to it when yaml mode is available, i'm not sure what to do.

split granite
#

See the pinned messages

mild veldt
#

@shell delta you cannot have both, but there is the "unused entities" view which is auto-populated
yaml mode will not be deprecated
yaml mode vs storage mode is personal preference. The only features in yaml mode that are not supported by storage mode are !include and !secret. ui-lovelace.yaml is the same as using the Raw Config Editor while in storage mode

strong finch
#

Someone can help with automation. Once my wife or I arrive at the house - the camera shuts down

split granite
#

Nothing to do with the UI

open jackal
#

Do you guys design your UI for mobile or PC?

elder pendant
#

Yes

open jackal
#

lol

#

Is there a way to swipe on mobile to go to the next view?

split granite
#

Yes

open jackal
#

lol

split granite
#

Amongst other things

open jackal
#

Sweet! thanks

fossil kindle
#

hi, is where a easy way to get round corners in lovelace ??

elder pendant
#

yes

#

ha-card-border-radius: '20px' put that in whatever theme you are using

fossil kindle
#

Thanks. and if i want to change one card ??

elder pendant
#

Then you need to use the card-modder custom plugin

fossil kindle
#

Ok. After i change them i just reload browser ??

open jackal
#

What's the difference between ha-card-border-radius: 'xxpx' and border-radius: 'xxpx'?

#

Is the first used without plugins?

elder pendant
#

ha-card makes it only applicable to elements that use the ha-card type

fossil kindle
#

I put ha-card-border-radius: '20px' in my theme file but nothing happens.

elder pendant
#

Did you reload themes?

fossil kindle
#

How ?? πŸ˜„

elder pendant
#

Call the service frontend.reload_themes

fossil kindle
#

ok, thanks

#

No, nothing.

elder pendant
#

Do you have the theme selected?

fossil kindle
#

Yes. After restart it work.. ??

elder pendant
#

Where exactly did you put it? Can you post your themes file?

split granite
#

@spiral gust You'll need one button card - probably an entity-button- that would start the script. You'll need an input for the delay too, which may simply be a standard entity card with an input_number in it

spiral gust
#

So it's actually two cards? Can't I make one from scratch and pass all the variables to a single script?

split granite
#

Probably

#

I don't know your skills πŸ˜‰

spiral gust
#

So it's doable, but it's harder. I'll make a simpler version and then update it then. Thanks for all the help!

open jackal
#

Should we be migrating over to card-mod.js from card-modder.js?

glacial ledge
#

I know about entity-filter cards. Is there a badge-filter?
Use-case would be: updater.updater to only show when it exists.

mild veldt
#

@glacial ledge no

glacial ledge
#

ok. thanks.

glacial ledge
#

I know that you can use !include in ui-lovelace.yaml but is there a way to do something similar to packages? like !include_dir_list lovelace
and that file will have multiple parts of ui-lovelace
for example: https://paste.ubuntu.com/p/cgMpjBQ2qz/

kind shellBOT
fallen badge
timid burrow
#

that isn't a valid view

fallen badge
#

Oh?

timid burrow
#

try '4'

fallen badge
#

Nope still the same

timid burrow
#

did you use the quotes?

fallen badge
#

Yeah

#

'4'

timid burrow
#

you didn't specify a name... mine have names

#

name: blah blah

#
            entities:
              - type: cast
                name: System
                view: "4"
                hide_if_unavailable: true
fallen badge
#

Tried it, it shows the same as before :S

timid burrow
#

hmm weird

#

mine are unavailable sometimes unless I click the demo first

#

and if I say false it says no devices found

fallen badge
#

Yeah if I start it from cast.home-assistant.io and push cast there it shows the same screen as I do but there you can "pick a view" and clicking one of them works... might my urls don't work in the card

#

Do I need to autorize the different urls for every lovelacepage I have?

timid burrow
#

no... but so far as I know you don't need a full nabucasa url either - just the number - that is the path. I don't put my duckdns url in the path

#

and you probably need a name

fallen badge
#

I have it like this now and still does not work :S

#

Tried to make a new tab but that did not work either... this is random

#

Do I have to add anything else anywhere?

timid burrow
#

shit I hate how the GUI editor mangles that!

fallen badge
#

Just authorize and make the card?

timid burrow
#

I didn't even authorize - because it uses the lovelace authorization already

fallen badge
#

Seems like it's just me having that problem as well :S

timid burrow
#

in the GUI editor mine looks like this:

#
  - entities:
      - hide_if_unavailable: false
        name: System
        type: cast
        view: home_assistant
      - hide_if_unavailable: false
        name: Weather
        type: cast
        view: weather
#

it has a - in front of entities...

#

and my paths have names but 0 works if I don't have home_assistant and 1 works instead of weather

fallen badge
#

Hmm

timid burrow
#

it's a bit meh TBH... I only set it up to make sure my custom weather card worked with cast

#

I don't see much point in it unless you have a hub..

fallen badge
#

I do have a hub hehe but probably this will be a lot more useful when you can add it to a automation and such

#

So when I turn of my night mode it casts to my Hub in the kitchen

timid burrow
#

but the device you're casting from (the PC here) needs to be on anyway... it's not like it's an app running on the device. It won't even cast from iOS

fallen badge
#

Well, android would work hehe

timid burrow
#

hahaha... yeah but I'd really need more than cast to make that a viable proposition..

fallen badge
#

Some things that is planned though Allow starting Home Assistant Cast from Home Assistant itself (not a browser), as part of an automation or script.

timid burrow
#

yeah that would be coolish...

fallen badge
#

And to use text-to-speech... "Hey Google, show me Home Assistant" or whatever

timid burrow
#

but you'd need specific views for cast I think... if I cast, it cuts it down to 2 columns and they have 1 card each so lots of missing stuff - so you'd really need to setup lovelace view with cast in mind

fallen badge
#

Okay so if it goes directly from Google hub itself it can't show full view like it does today? I was thinking of making a Cast view anyway

#

But limited to only that few columns can be hard

timid burrow
#

even on my 55" TV, it's 2 columns and 1 card is all that fits vertically... looks great but.....

#

holding my excitement for now but I agree - looking forward to what the devs can make it do

fallen badge
#

Well I never used any software that is so fast with making progress as Home Assistant. All cred to the devs, they are really awesome

timid burrow
#

totally agree

fallen badge
#

Tried using the full URL for the view nope

#

It's like it only tries to cast the whole damn thing, not the view itself

timid burrow
#

I couldn't make cast work at all originally - my Eset Internet Security software was blocking it... would not seem to be your problem though

fallen badge
timid burrow
#

agreed

fallen badge
#

It's like the cast entity does not work for me

#

It just tries to cast the tab in the browser or something idk

timid burrow
#

what Home Assistant version?

#

if you say anything less than 0.97 I'm going to reach into the computer and grab you by the throat.....

#

j/j

#

lol

fallen badge
#

0.97.2

#

Hahaha

#

I'm like updating as soon as I see that update button. It's like a mental disorder, I look every day for that update button haha

timid burrow
#

lol

#

hmm....

#

well I'm out of ideas then

fallen badge
#

Yeah me to... I think I'll give up on it for now

#

Wait until I can use it via automation and stuff. Would be pretty cool to activate it trough motion. So when you enter a room you get the control and if you have but load of hubs then you can have it follow you to every room hehe

timid burrow
#

lol yeah... make the tech and we will find a use for it..... my wife isn't totally sold on GH or smart plugs or pretty much any tech actually so it's a battle here

fallen badge
#

Hehe you will have to prove its worth πŸ˜‰ I have kind of the same problem here but I just buy it and implement it and then she's like wooooow haha

timid burrow
#

hahaha yeah same~ish... after 40 years she's used to it

#

anyway gotta boogie...... she'll be home soon and I need to get dinner on the move

#

nice chat. sorry I couldn't help

fallen badge
#

Well you tried and that is worth a lot! Thanks m8! Have a nice evening(? it's very early in Sweden hehe)

timid burrow
#

hahaha. Aussie here

random root
#

guys

#

it seems that lovelace isn't able to show groups made by input_select

#

it shows "unknown" instead of the input select

#

is it my fault or a lovelace bug?

split granite
#

Show us the card config

random root
#

do you mean the UI YAML?

#

I'm using the visual editor to add the groups to the UI not editing it by hand using the raw editor

#

this is the yaml of the group

#
group:
  grp_watchwinder_power:
    name: Watch Winder
    entities:
      - switch.watchwinder_1
      - switch.watchwinder_2
      - switch.watchwinder_3
      - switch.watchwinder_4
      - switch.watchwinder_5
      - switch.watchwinder_6
split granite
#

Right... and the card?

#

What does it look like?

random root
#

I can't post images on this discord

#

uhm

split granite
#

You said it shows unknown

kind shellBOT
#

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

random root
#

here the image

split granite
#

And does Scono... translate as unknown?

random root
#

yes

#

same problem even for input_number

split granite
#

Check the entity in States under Developer tools then

random root
#

state is shown correctly

#

even for input number

split granite
#

Not sure then

random root
#

???

#

not sure if it's my fault or if its an HA problem?

split granite
#

Not sure either at this point, but I don't use groups in my UI

random root
#

hope that someone who uses it, will chime in

#

in case

#

where should I open the bug?

#

here?

split granite
#

Nope

kind shellBOT
split granite
#

But at this point, it's not confirmed whether it's an issue or config error on your part

random root
#

groups are really easy to use

#

don't think that it's a problem of mine

#

where can I open the issue?

wheat current
#

Its a config/expections issue, not a bug

random root
#

@wheat current my issue? or "system" issue?

wheat current
#

Your

random root
#

if you are so sure, can you help me finding it please?

#

how can I be wrong? it's so simple to do it

#

have you seen some errors in the config I posted previously?

wheat current
#

You cpmared the state inn lovelace for a group, with a state in the template editor for a input number, that is not the same

random root
#

group state

#

is unknown

wheat current
#

So not a bug πŸ˜‰

random root
#

do you have a solution or a reason why it's not a bug?

wheat current
#

That is the state

random root
#

if I put only one entity in the group

#

and I check the input number entity state in the dev tools it says

#

2500

#

if I check the state of the group that it contains only that entity it says

#

unknown

#

so?

split granite
#

A group of input_numbers or input_text can't have a known state

#

Groups aren't magic

wheat current
#

If it rains here, and I check the weather 2000miles away (it's sunny there) why is it raining here?

polar kelp
#

What on earth would a group made of input_selects even mean?

#

Say you group two input selects, and one has the value "2" and the other "banana". What would you expect the group to have?

random root
#

someone suggested me to create a group to drive 10 inpute select with one entity

#

I want to have an entity that is able to set the value on 10 input numbers

#

are groups not the right solution to the problem?

split granite
#

Then they didn't fully understand groups

wheat current
random root
#

@wheat current I have hundred of entities

wheat current
#

Good for you πŸ€·β€β™€οΈ

random root
#

can't understand how to do it without creating millions of automations

#

that was the initial question

wheat current
random root
#

that landed me here

#

ok

wheat current
#

.xy landed you here

kind shellBOT
#

The XY problem is asking about your attempted solution rather than your actual problem. This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.
The problem occurs when people get stuck on what they believe is the solution and are unable to step back and explain the issue in full.

glacial ledge
#

is this formatted correctly?

#
title: My Home
resources: !include packages/lovelace/resources.yaml
views:
  - !include packages/lovelace/custom.yaml
#

the resources part works. but I get a new tab called unnamed view and there is no custom tab...

elder pendant
#

What's in custom.yaml?

glacial ledge
#
title: "custom"
path: custom
name: custom
cards:
- type: "custom:unused-card"
  entity: light.sl_bulb1
#

and I also tried it indented with a - exactly how it was in the ui-lovelace.yaml file

elder pendant
#

Well name: is not a valid key for views

#

that might be causing issues

glacial ledge
#

I'll remove that. but it works in the file when its not !included and my other views that don't have name also don't work.

#

ok its all good now. But I think I realised why I thought it was not working there may be a bug if you can help me figure this out that would be nice.

#

It seems like if you change the !include file and even refresh the browser it does not re-read the file. only if you remove the !include and refresh and then put it back does it re-read the file.

elder pendant
#

How are you refreshing? A browser refresh or a lovelace refresh?

glacial ledge
#

browser refresh

#

also shift - f5 in chrome

elder pendant
#

Click the three dots in the upper right hand corner and click refresh in that menu

#

That's how you detect changes in yaml mode

glacial ledge
#

😦 you are right.

elder pendant
#

I know πŸ˜‰

glacial ledge
#

until I used !include I never needed that.

elder pendant
#

usually making changes to ui-lovelace.yaml directly is detected by HA and only a browser refresh is required. Changes in any included files requires a lovelace refresh

glacial ledge
#

and also until now I always got a notification from the browser that lovelace changed do I want to refresh.
Ithought it knew that stuff changed.

elder pendant
#

That's when you update the frontend package

glacial ledge
#

ok. live and learn... I hope to learn. (and live)

strong falcon
#

I have a Picture Glance card that I manually change the image for each week (same file name). The picture updated on my iOS app but the old (last week's) picture is still showing on the Web UI. How can I fix that?

atomic glacier
#

@strong falcon clear cache and refresh browser

strong falcon
#

any way you can think of to avoid this in the future?

atomic glacier
#

If you are going to change the image manually, I would just use a different image name. All of my images I have that change are named different and I use automations to change them using input_selects @strong falcon

#

Works for card backs, cameras, backgrounds, etc...

strong falcon
#

hmmm, having a hard time envisioning how i could implement that

#

I select an album of the week and the album art is the image of the picture glance card. The tap action plays the album (via a playlist) on a sonos speaker. I just manually change the picture and edit the playlist each week

hardy fiber
#

Hey all πŸ™‚
I've got python script which returns number of trello cards and I'm calling it from node red. How can I represent this number on lovelace? Button card? Template?
Any ideas would be cool πŸ™‚

split granite
#

You could do it with any number of cards, depends on what you want

#

I'm assuming of course you've already got it stored in a state or attribute somewhere πŸ˜‰

hardy fiber
#

entity: sensor.outside_humidity

split granite
#

Sorted then, it's just a question of how you want it to look

hardy fiber
#

where / how to store just plain number? πŸ˜„

split granite
#

You "store" it in the entity's state πŸ˜‰

#

(or attribute)

hardy fiber
#

so I can create just entity and operate with it, right?

split granite
#

Well, that's kind of how HA works...

hardy fiber
#

yep, I just got confused how to create entity πŸ˜„

split granite
#

So, it's not about displaying it in the UI yet, it's about getting it into HA...

#

🀣

hardy fiber
#

πŸ˜„ true

split granite
#

Tackle that first, worry about the display second

elder pendant
#

There are a multitude of ways to do that. You can create a temporary entity using the HA api, you can push the value to an mqtt topic and make an mqtt sensor in HA, you can use an input number

split granite
#

Or build a component

hardy fiber
#

Well, I have MQTT already. Perhaps will go with that way. πŸ™‚

#

@elder pendant and @split granite much thank you!! πŸ™‚

hardy fiber
#

Would like to say again thanks to @elder pendant and @split granite . Now working perfectly - task completed πŸ˜„

deep heart
#

Is the β€œconfigure UI” button working for other people on iPhones? It quit working both in the HA beta app and in chrome for me. I did recently install IOS 13 beta so I can’t recall if it worked before.

young seal
#

can nest doorbell camera show video in HA default layout. I have not enable lovelace

elder pendant
#

What version of home assistant are you running?

strong falcon
#

is an automation the best way to set the theme?

split granite
#

If you want it done automatically it's the only way

elder pendant
#

Only *vanilla way πŸ˜‰

carmine shoal
#

oh great keepers of wisdom... I'm trying to add my first custom card to lovelace

#

where does this go:

  - url: /community_plugin/air-visual-card/air-visual-card.js
    type: js
timid burrow
#

at the top under

resources:
carmine shoal
#

ah.. thanks

#

that seems to work

timid burrow
#

yep

carmine shoal
#

but how do I invoke the card?

timid burrow
#

follow the instructions for the card... every card is different. See the repo for the card as it will have examples

carmine shoal
#

trying that, but says its not a valid card

timid burrow
#

did you install it with HACS?

#

i'd say you have not downloaded/installed it

carmine shoal
#

its showing in the www directory..

timid burrow
#

well then you can't use the /community_plugin endpoint

#

you use /local

carmine shoal
#

ah

timid burrow
#

but did you install it using HACS or not?

#

because THAT is a HACS endpoint you showed up above

carmine shoal
#

yes, hacs

#

putting it in like :

#
  - type: 'custom:air-visual-card'
    air_pollution_level: sensor.us_air_pollution_level
    air_quality_index: sensor.us_air_quality_index
    main_pollutant: sensor.us_main_pollutant
    temp: weather.weather
    city: 'Nashville, TN'
#

ok, working on adjusting the resource bits

thick ridge
#

Is there a card that will allow me to change the color and brightness of multiple lights at the same time or is this best done by using groups?

wheat current
#

Light group

thick ridge
#

I created a group but it can only control on/off and brightness. How do I make it also control color?

#

NVM. I figure it out.

willow dove
#

hello, I'm trying to create a Picture-Elements card but I can't find out how to use it. I see the examples at the bottom of https://www.home-assistant.io/lovelace/picture-elements/ but ... where should I put that code? that's not to be used into configuration.yaml, right? Also, do I have to put lovelace in yaml mode?

timid burrow
#

It’s put in the lovelace GUI or raw editor. You don’t have to use yaml mode

willow dove
#

To use the raw editor do I have to "Take control of my Lovelace UI" ?

#

I mean, when I click on the three dots button on the top-right corner I get a menu with 3 options: "Unused entities", "Configure UI" and "Help"

#

how do I open that "raw editor"?

sacred fog
#

Can't pinpoint this anywhere, is it possible to have multiple 'dashboards' in Lovelace? For example one for Floor 1 with multiple views and one for Floor 2 with multiple views?

#

In essence group views...

willow dove
#

@timid burrow Ok, I saw it in the demo, I guess I'll have to take control of the UI and edit everything manually from now on. Thanks!

timid burrow
#

Yes you will...

#

@sacred fog can use views and use CCH to control which devices/users get which interface

willow dove
#

Btw, I'm just curious... is there any way to "undo" the take of control and make lovelace manage everything automatically again?

timid burrow
#

Delete the lovelace file in .storage and restart HA

willow dove
#

ah, cool

#

thanks a lot!

timid burrow
#

NP

spiral gust
#

Hello guys, a little question: I would like to have inside an entities card that runs an automation via a boolean input an entity which would report some text such as "The alarm is set and it will activate at XX" where XX is a variable (so it has to be and entity so that I can change its state). Any suggestions on how to do that?

#

It would be like a feedback message

polar kelp
#

Either you could do it as a template sensor, or you could include a markdown card in the entities card and use its brand new (in the beta) jinja2 template capability to display the text you want.

#

Speaking of which, markdown-mod will be deprecated on the release of 0.98, because the markdown card now does all those things (and more) natively.

#

πŸŽ‰ ^-1 ... I guess

#

Hope you enjoyed it for, like, a week, @wheat current.

strong falcon
#

I want to have a card for who's home that shows one row of images for people who are home and another row for people who are not. What card or cards would make this possible?

carmine shoal
#

glance.

#

set it up people wide.

#

top row is home state for person

#

bottom row is not-home state.

#

then they will show up in the appropriate row based on state.

strong falcon
#

perfect, can you point me to an example of how to code that?

#

I'm not sure how to set up rows based on state

carmine shoal
#

not at home, so can only talk in hypotheticals.

#

first row is entities person.state is home

#

second row eeach entity is person.state is not home.

elder pendant
carmine shoal
#

what he said.

elder pendant
#

Personally I use picture elements and state_image. On my house layout card when someone is home their car shows up in the driveway, when they leave it disappears

carmine shoal
#

cool visual.

#

so, where is documentation on badges?

elder pendant
carmine shoal
#

thanks.

strong falcon
#

To show home and not home I would just do a vertical stack of the same card but change state to "not-Home"?

elder pendant
#

exactly

strong falcon
#

is "not-home" correct?

elder pendant
#

not_home

strong falcon
#

hmmm, not working

elder pendant
#

Do you have other zones setup?

kind shellBOT
elder pendant
#

if they are in another zone then their state is not not_home

#

it's whatever zone they're in

strong falcon
#

hmm, so i just have to list the zones individually?

elder pendant
#

That would probably be the fastest way, yes

strong falcon
#

and "not_home" will pick up anyone in "away"

#

thanks, that worked

static cloud
#

is there a way to use an internal IP address and port on an iframe card (or similar) without exposing the port externally. any suggestions appreciated

elder pendant
#

you cannot

static cloud
#

@elder pendant ok thanks

elder pendant
#

If you don't want to expose a bunch of ports you can use a reverse proxy like nginx for your services

#

Or if there is an ingress hassio addon

static cloud
#

@elder pendant i will try your suggestions

random root
#

high

#

is it possible to put a title in the horizontal stack?

deep heart
#

The β€œConfigure UI” option isn’t working for me on my iPhone in Chrome, Beta HA app, or Safari. I’m running Hassio 0.97.2. Is anyone else experiencing this? It works properly when accessed from a computer.

strong falcon
#

Is there a markdown format that would mimic the default card titles used?

#

Neither the headers nor the bold results in a match

shell geyser
#

wondering if anyone could give me an idea of the property name to adjust this text color in the theme.yaml file

#

or if there is a page with all of the possibly property names, that would work too

radiant jungle
#

hopefully someone can help me. I have created an input boolean that overrides my lights automation and that works fine. The problem is that the button card doesn't change colour when the boolean is on or off. Any way to get that to work?

carmine shoal
glacial ledge
#

@carmine shoal
I am not an expert but in configuration.yaml

lovelace:
  mode: yaml

https://www.home-assistant.io/lovelace/yaml-mode/

vapid field
#

hi guys, is there any expert with custom components? I have a problem: custom components installed fine with HACS, but not working, while everything works fine on another raspberrypi with the same configuration

#

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

elder pendant
#

Did you add the resource to your resources block?

#

And did you try restarting home assistant?

vapid field
#

yes, added everything to the resource block exactly the same like the other raspberrypi, and restarted HA many times

#

looks like HA is looking for the custom components folder in wrong place

split granite
#

It only looks in your config folder

vapid field
#

i reinstalled all the custom components together with HACS and everything goes in the right folders

#

www/community

#

and /custom_components

split granite
vapid field
#

i'm not in Hass.io/Docker, but Hasbian, so everything is in /home/homeassistant/.homeassistant

split granite
#

Then /home/homeassistant/.homeassistant/custom_components/

#

Not /custom_components

vapid field
#

yes, right

#

everything is working on another raspberry...the only difference is that on this raspberry, i had before 'custom_components' as link to another folder (but in principle should work anyway) but now i removed the link and i create a normal folder

polar kelp
#

Did you follow the troubleshooting guide?

#

Slider-entity-row doesn’t go in cumstom_components anyway.

vapid field
#

yes, right! i have slider-entity-row in /www/community

#

do you mean troubleshooting guide of slider-entity-row or some other guide?

polar kelp
#

Second link in the readme

#

With the installation instructions.

#

Also topmost pinned message in this channel.

icy patrol
#

Anyone know how to disable the brightness dimmer function on a tasmota dimmer switch. Want to lock it down so no one can dim it from the switch

gentle tide
#

Sanity check - lovelace/25:0:0 Uncaught means there's an error in View 25. Is there a way to know exactly where a problem exists in view 25?

#

I have a rough idea where the problem lies but can't quite narrow it down.

echo radish
#

Can someone help me add this to the main page of home assistant?

rest_command: ac_on: url: 'http://192.168.0.202/ir?type=48&code=C3E137D406000400000400A060' ac_off: url: 'http://192.168.0.202/ir?type=48&code=C3E1373406000400000000A0E7'

split granite
#

If you've created the template switch you just need to add it to the frontend

#

I'm guessing that you haven't created that then?

echo radish
#

I don't know how to do that. I installed Home Assistant yesterday.

split granite
#

And... instead of saying I've done all that then you ask for help πŸ˜‰

#

You could just create two button cards in the mean time though

#
type: entity-button
name: Turn on AC
tap_action:
  action: call-service
  service: rest_command.ac_on
entity: sun.sun
#

Create another one for turning it off - you can do all that in the UI editor

echo radish
#

And will it create 2 buttons on the main page or a switch?

split granite
#

If you do that, two buttons

#

Then you add the switch to the UI

echo radish
#

Yeh, I want it as a switch not a button.

split granite
rustic geyser
#

hi anyone online that can help with picture elements card

split granite
#

What's the question?

serene lion
#

Hello! Tell me, how can I resize a regular icon?
I need to make the camera icon larger on the floor plan.
I did not find information anywhere..

split granite
serene lion
#

Right! picture-element

rustic geyser
#

here is my question I am configuring a picture element card with my 3d floorplan, I have created several images representing different lights on, I have one image with all lights on, I am trying to configure it so when I select different switches the representative floorplan changes to show the one that the lights are on, I have successfully got it to work with one light on against the all lights off image but when I add a 2nd image of a different room, it covers the first image, dispite creating a section only image I am following Aaron Godfrey's instructions/post

#

here is the code:

kind shellBOT
old lance
#
  • entity: {% if is_state('sensor.iphone_battery_state','Unplugged') %}Urkopplad{% else %}Laddar{%endif %}
#

Can't get this to work

#

Throws an error

#

YAML Error: YAMLException: missed comma between flow collection entries at line 13, column 15: - entity: {% if is_state('sensor.iphone_bat ... ^

split granite
#

That's not an entity

#

That's a template, for a template sensor

#

As I said, you need to create a template sensor and then use that πŸ˜‰

old lance
#

OH πŸ˜„

#

I figured i was clever... haha