#frontend-archived

1 messages ยท Page 190 of 1

buoyant furnace
#

i added it, didnt affect it

ivory quarry
#

but the don't show up so that I can select them

twin tusk
ivory quarry
#

ok

fiery ledge
#

Is it a bug Logbook doesn't show icons/pictures for a great deal of entities?

lone mulch
#

There are a behaviour in Lovelace when I write colon in the entity card editor, it switches to the whole entities card configuration code editor. Is this the new normal? Also, the code editor often switch the keyboard from right to left. So Name becomes emaN. AND in dark mode the text cursor becomes dard (not keeping it white) and marking the text is also invisible. It marks, but I cant see the marking. Shift-refresh of browser works, but it quickly returns. Also cleared the cache. I'm using Firefox, but the same happens in Chrome. And this don't happen outside the code editor.

foggy pumice
#

hi...I have a tasmota device and it takes quite a while (at least more then 2 minutes) to update. how can I lower this update interval?

wintry wing
#

hi, i have a big issue with lovelace, i use already some neat integrations but one thing hurts my eyes, i cannot sort the cards on the lovelace as i prefer, is there a way that there is NO AUTO SORT?

vapid field
#

hello everyone, I'm trying to create a button to cast a plex playlist to a chromecast to no avail. I read the documentation but i do not understand where to put the code. Here is my unsuccessful current button. It does reach the chromecst (it interrupts whatever is playing) but doesnt play anything or display the plex screen.

wintry wing
#

also i am lost with the button card

#

this home assistant is way powerful and way complicated, i bet you guys had a lot of fun learning this topic

feral rivet
#

Hey guys is it possible to build multiple cards in a desktop view , but then only call a specific card on a mobile device? Basically each card you build would have a unique id that would allow the only display that specific card on another device.

rich eagle
rich eagle
rich eagle
rich eagle
vapid field
#

@rich eagle I'm sorry i do not know how to do that. I did find this snippet

wintry wing
wintry wing
#

the GUI could be more easy for better UX

rich eagle
rich eagle
wintry wing
#

so the grid is a card?

#

strange logic ๐Ÿ™‚

rich eagle
rich eagle
wintry wing
#

okay thank i go to bed will try my luck tomorrow

winter wasp
crystal magnet
#

Going pose the question here and then continue my hunt...what is the simplest way to get rid of the header? (going to use specific dashboards on specific Window 10 (x64) tablets)

agile ginkgo
#

I'm having a hell of a time... sometimes the login form doesn't load, sometimes I appear to login but it goes to "cannot connect" and when I retry it goes back to login, sometimes I get the "cannot connect" and retrying just gives the same screen

#

I have yet to find a consistent trend...

dark dirge
#

@crystal magnet You can search for "Kiosk Mode" in HACS. There's a plugin for it

agile ginkgo
#

is hass supposed to generate 6MB of persistent storage browser-side just from logging in?

crystal magnet
dark dirge
#

yes, it has nothing to do with install method

#

or, you can just install that manually

agile ginkgo
#

"Error: Something went wrong" before even trying to login. This is new. Every time the behavior is different...

#

How do I even troubleshoot this?

#

Looks like the service worker fails to install or something?

#

but would that impact login?

#

now I just got a "Error:" that's it, just "Error:"

#

no issues in Firefox on Android

#

maybe because it's already logged in?

#

The page you are trying to view cannot be shown because an error in the data transmission was detected.
That's.... new

#

I swear I'm not changing anything other than occasionally (frequently) deleting local storage on the browser end

#

and now it randomly worked
I guess I'll just wait for it to randomly break again

crystal magnet
twin galleon
#

any ideas?

surreal agate
#

hi, I have problem with my cameras "lately". don't remember version when it started, maybe December...
anyway I have hikvision with mjpeg url.
when I open mjpeg url in browser directly it's working, when I open preview in HA Frontend, after a minute for one camera preview hangs on last frame and for another one it changes to msg: 'Preview of camera ...'

wet lance
digital lynx
#

im having translation issues lately in my dutch home assistant setup. it seems to only affect the supervisor part. all buttons like update and restart / reboot give this error: Translation Error: The intl string context variable "naam" was not provided to the string "Herstart {naam}"

#

Is this a known issue or is it my setup

tawny vault
digital lynx
#

thanks i recently migrated my setup to a new server so i was afraid i did something wrong. Now we'll just have to wait for it to get fixed in an update then

rain junco
#

Howdy ๐Ÿ™‚ Is there a trick to get a conditional OR card on lovelace? alternatively I can throw up X of the same card with different conditions, but that... ehm... so when I think of "great" this doesn't come to mind.

solemn narwhal
# rain junco Howdy ๐Ÿ™‚ Is there a trick to get a conditional OR card on lovelace? alternativel...

Unfortunately, I do not think there is any card that supports this at this time. The best I can suggest would be using a Template Sensor (https://www.home-assistant.io/integrations/template/) to return a value to an entity based on the conditions you want and pair that with State-Switch (https://github.com/thomasloven/lovelace-state-switch) to look at the entity being changed by the Template sensor.

If it is a single outcome condition, you can use a Template Binary Sensor (https://www.home-assistant.io/integrations/binary_sensor.template/) but this will only provide on/off or true/false. So as conditions evolve or grow this method would have to exist for every state. Whereas the above option allows for the setting of the state to a string (such as "Condition 1", "Condition 2") which allows you to just have to add more conditional statements to the Template Sensor.

rancid arch
#

How can I show the value of a "input_text" as a row in a card? I have a input_text, containing a text. I just want to display the text, not the entity-name... And read only...

rain junco
rain junco
#

that is having a value each time a condition of mine is met, but it seems that the condition of [state not equal to] '' is not working as expected

#

is there something for empty instead of ''? ๐Ÿ™‚

solemn narwhal
#

Which method are you referring to? The Template sensor or card-mod?

rain junco
#

built-in conditional card

#

e.g. when input_text.whatver state is not equal to "" would be my condition here

#

I can switch cards based on whether that has or does not have any value

solemn narwhal
solemn narwhal
#

Is that what you are trying to do?

rain junco
#

exactly - but I think I've got some indentation problem somewhere (long card) ๐Ÿ˜„ let me rebuild the corresponding bit, this should work ๐Ÿ˜„

rain junco
#

hmm yeah, doesn't seem to work like that

#
conditions:
  - entity: input_text.roborock_uniq
    state: ''''''
card:
  type: markdown
  content: test```
#

this is what the UI generates

#

the same example with using an input_boolean with on/off value works as I would expect

#

I can workaround this with bool(s); but this feels like something I'd like to understand better

#

a condition of not having a value for input_ is likely not edge case

solemn narwhal
#

Give me a bit to mock up an example. I will test this out.

rain junco
#

and that input_text of course

#

ideally when you put any value into that input_text, the markdown card needs to hide, and when empty, it needs to show

solemn narwhal
#

I do not think you can test for the empty value condition. You will need it to have a value. This can be done with template sensor.

rain junco
#

yeah looks like it

#

is regexp allowed on cards?

#

I could fool around with matching ^[A-z0-9].* or failing that match to have the condition get a "true" or "false"

tawny vault
#

Even though my HA is in Enlgish (GB!) with the new translations in Supervisor I was curious to see what it looked like in Greek and I see some issue because of whoever translated names gave them too long names ๐Ÿ˜…

#

(host restart/shutdown buttons)

crystal magnet
#

Soooo, not seeing "general" chat...so I'll start the convo here, but...

#

Does anyone have recommendations for a failsafe system in case a local device is stolen? I am thinking of setting up a tablet in my garage that will unlock the doors and even my car (Tesla), but if it got stolen things could get tricky. Only thing I can think of it blacklisting the device MAC (or removing it from my whitelist), but MACs can be spoofed easily.

formal tide
#

use tokens. revoke tokens.

crystal magnet
formal tide
#

you can also just create a different user for that ipad and remove that user

crystal magnet
formal tide
#

I'd seal that ipad in the wall with concrete, this sounds dangerous overall

crystal magnet
# formal tide I'd seal that ipad in the wall with concrete, this sounds dangerous overall

My goal is to buy a house in the next year that is on 10acres or so...so theft is highly improbable given the distance between houses. (Also, the tablets all run full blown Windows, so I'll probably program a lifeline into the tablet to report back it's GPS coordinates and IP anytime there is a reconnect of a network connection, probably make it send a photo from front and back cameras as well.)

formal tide
#

ipads are easily more trackable imo, also you can just wipe them remotely

#

plus: thieves almost always know that stolen ios devices are trash when coupled to your apple id

crystal magnet
crystal magnet
formal tide
#

usb boot that thing, wipe the drive and poof, your device has a new owner ๐Ÿ˜„
but you already know that I believe

crystal magnet
crystal magnet
#

@formal tide thanks again for the pointers, definitely feeling better about the devices

formal tide
#

I use https://github.com/thomasloven/hass-favicon to change my title...
However I still see "Overview - Customtitle" in my Home view, what am I missing? Seems like this style is only possible with auto generated lovelace?^^

crystal magnet
formal tide
#

I have no cache problem, the title updates but it's not just "Title" - it's "Overview - Title" on the landing page (pane called "overview")

crystal magnet
#

I assume the first html title entry will get overwritten by the second

#

I was wrong, just tested it

crystal magnet
crystal magnet
formal tide
#

I'm using latest, but I also think the component needs a update regarding that

formal tide
#

it's not been updated since .118 and it worked fine earlier so ๐Ÿคทโ€โ™‚๏ธ

crystal magnet
#

Their command in the section of line 100 should search and replace <title> (wildcard) </title> but instead it looks for a specific string.

#

but that wouldn't explain your partial functionality. At least it won't be too hard to fix.

formal tide
#

if you look closely - the page loads with "Title" but some JS replaces it with "Overview - Title" within a fraction of a second

formal tide
#

I suspect this comes from chages to the sidebar where they introduced the feature to reorder/rename sidebar panes

#

so the CC needs a update

crystal magnet
kind shellBOT
crystal magnet
#

(cool bot)

kind shellBOT
#

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://paste.ubuntu.com/.

feral rivet
#

can anyone help me see what the issue is with this card. type: 'custom:button-card' name: Media Player show_icon: false entity: input_select.media_player tap_action: action: call-service service: input_select.select_option service_data: entity_id: input_select.media_player options: - Sonos Connect - Kitchen/Dining Sonos - Patio SonosI want to be able to select a different media player in the list, but I am not getting any type of feedback

near meadow
#

the indentation is off in that paste. not sure if indentation is your issue or if something else. but paste it appropriately. (dunno the bot command to tell you how to do it, dunno if I can use that as a normal user)

kind shellBOT
#

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://paste.ubuntu.com/.

twin tusk
#

@near meadow it works (commands for bot)

feral rivet
#

@near meadow would you mind pointing out which line is off? I am not getting a single error message in the ui for this card, just no response.

#

Hey @twin tusk why am I getting hit with rule #6?

#

I am not where close to 15 lines

twin tusk
#

i just showed deccos that it is possible ๐Ÿ™‚

near meadow
#

oops, sorry if it called on bot mistakenly.

not sure why the yaml isnt working. but that spacing around tap_action doesnt look right .

but i cant be sure, i am no expert at all, not sure of any of this....

#

Adrian_RO, how do I call the bot to that "auto response" ? (am afraid to do anything incase the 'powers-taht-be' shout at me)

#

(dont want to randomly call something like "-bot invoke" or anything that might p*ss off people )

twin tusk
#

check last line....

#

of bot answer

polar kelp
#

@feral rivet Be kind to your forehead now, but see how the service is called select_option without s at the end?

near meadow
#

@twin tusk doh! thansk

feral rivet
#

Okay so I removed the s from options. I am now getting value must be string for @ data [option]

#

Am I missing another part? Still not able to see the list of options.

polar kelp
#

What do you think the service call does?

feral rivet
#

calls the service input_select.select_option.๐Ÿค”

polar kelp
#

Which is supposed to do what?

feral rivet
#

bring up the options that i created in my input_select config.yaml.๐Ÿ˜ฐ

polar kelp
#

Oh. I see. No, that's not what it does at all.

#

It sets the currently selected value of the input_select to the (single) one you specify in the service data.

#

With very few exceptions a service call never makes anything happen to the frontend.

feral rivet
#

okay. What I want to do is be able to select from a list of available media players that will then change to the corresponding mini media player which is going to be a separate card.

polar kelp
#

Then you'll need to display the input_select in an entities card.

#

Actually, there may be one other way.

#

You could have the button open the more-info dialog for the input_select entity. Then you can make your selection from there.

feral rivet
#

I like the second Idea a bit more , because the button card has a more polished look to it

feral rivet
#

so that produced a outcome close to what i wanted, it just is not as polished as the List Card.

#

@polar kelp I ask this question yesterday, but since you are one of the Dev members, I am curious about your response #frontend-archived message

polar kelp
#

Not with core components. But that question gave me a great idea for my ongoing update of layout-card.

#

Thanks!

feral rivet
#

now you just baiting me.๐Ÿ˜€

#

So we are able to call a view via a url, but not, but not a single card within that view? I am not a programmer as you can already tell, but that seems like fairly basic. This would allow one to have a mobile (phone) view and have all the cards on one page. No one listens to me, but they may listen to you if you would be wiling to share the idea.

polar kelp
#

I've been thinking about that before actually. Would be neat if you could use something like that to e.g. iframe a single card on an external web page. Unfortunately, it's not quite straight forward.

feral rivet
#

Well if nothing else I have got the thought flowing again.

manic surge
#

Entity Filter Cards do not work, is this a known issue before I raise issue? Even using example, I get "Incorrect filter config"

dark dirge
#

it looks like you have a space in "state filter:"

#
state_filter list REQUIRED
List of strings representing states or filter objects, see below.
manic surge
#

omg schoolboy error

#

thanks man ๐Ÿ˜‰

dark dirge
#

easy to miss

manic surge
#

Bedtime before I make any more stupid mistakes

feral rivet
#

anyone willing to take a look at why mini media card is not working? https://paste.ubuntu.com/p/56cMKPCv3w/. I am trying to control the media card that is displayed via a input select card. I check the template got no errors, unfortunately card is still not working.

buoyant furnace
#

So i have a button card that activates a script telling 2 lights to turn on at 30% brightness
id like to further control the brightness buy long pressing the button to open up a slider that will raise or lower the brightness, duable ?

restive lance
jade wigeon
#

i want the popup slider... Thanks

fiery ledge
#

could we please have the entity dropdown back on yaml mode of developer-tools/service? Personally I find the new ui mode very confusing and way too slow. But the loss of the entity drop down in yaml mode is a set back really

jade wigeon
#

me? @fiery ledge

fiery ledge
jade wigeon
#

oh ok

twin tusk
#

@jade wigeon check channel topic

jade wigeon
#

@twin tusk Yes frontend i asked for frontend

twin tusk
#

u didn't read all message

#

u want help , but "it doesn't work" is all you can say

raven pecan
#

Hello, I setup an Smart Mirror with Chrome Kiosk Mode and i use the Kiosk Addon for HA. Autologin is also working with trusted network. The only piece I don't know how to change is the dialog that is show with the question if I want to save the login for the browser. Is there a way to hide this?

foggy pumice
#

hi..I found out that my tasmota widget (shutter position) is only updated when the device sends the telemetry message(which is every 300secs). But the stats is updated right away (saw in mqtt). The thing is, I can't find a way to configure my widget to get the position from stats...any way to do this?

quaint snow
#

Hi - is there a way to say, for a door sensor, have an mdi icon for door open and door closed rather than the words Open and Closed, when shown in an entity panel in the UI?

twin tusk
#

card-mod

quaint snow
#

ty kind sir

#

Hmmm have installed and playing around with it, but cannot see how the changing icons works, like how does it change depending on the state of a sensor?

warm depot
#

hi guys ๐Ÿ™‚ I have sensors in HA that give me timer schedule per day like that: 07:40;08:30;17:00;21:30;21:30;21:30. Which is the best way to show them in lovelace? Is there any card that allow to show them in a nicely?

ruby dust
#

Any way to display a second counter as hours/minutes/seconds?

nova field
#

Hello, I am using the Custom: Button Card. I have set the background to use linear-gradient. I want to set the % to be that of the entity state, but I cant work out the correct syntax. ie - background: 'linear-gradient(rgb(255, 255, 255) [entity.state] + %, rgb(0, 0, 0) 0%)'. Can anyone advise of the correct syntax?

autumn storm
#

One message removed from a suspended account.

twin tusk
tacit gate
#

Is it possible to have different dashboards activated with the keyboard F key's?

hushed wasp
#

Hi!
How to display "brightness_pct" so max is 100% and not 254%

type: 'custom:button-card'
label: |
  [[[
    var bri = states['light.hall_taklampa'].attributes.brightness;
    return '' + (bri ? bri : '0') + '%';
  ]]]
wispy kiln
#

So this might seem like a stupid question - but is there a way to create a 'stateful' api toggle?
Basically an on/off toggle that fires an API call based on on or off?

#

nvm I can use the restful command for service then use a button with service on toggle for it

polar kelp
pale basin
#

Hi all! I am a bit new here.

#

Can you help me with this?

#

resources:

  • url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
    type: module

title: Home
views:

  • path: default_view
    title: Home
    cards:
    • type: entities
      entities:
      • light.hue_color_tafel
      • type: custom:slider-entity-row
        entity: light.hue_color_tafel
        title: Tafellampen
#

this isnt working in Visual Studio Code, and I cant get my head around it

#

it says at the 2nd and 3rd line: String does not match the pattern of "DECRECATED"^

#

any suggestions?

polar kelp
dark dirge
#

@pale basin resources donโ€™t belong in ui-lovelace.yaml. That was deprecated long ago in favor of adding them in the UI or configuration.yaml

#

Youโ€™re probably following outdated instructions

kindred plank
#

How do i remove the white background on my text?

winter prism
#

How can I override a theme color variable based on the state of an entity?

quaint snow
#

Anyone care to explain how I can get an icon to change depending on state with card-mod?

quaint snow
#

actually, found the fix. It was for a door sensor, which I changed the state attributes device_class to door. if it wasn't a binary_sensor already, I would have just created a binary_sensor for it.

vapid field
#

Dear All
I am new to discord and i am wondering if its possible to have the glances card display all entities specific to a domain.
Example: I would like that all switches are displayed automaticaly and that i don't have to list every entity.
Is this Possible?

dark dirge
#

Take a look at entity-filter

#

Or auto-entities

#

@vapid field

vapid field
#

thank you very much

harsh peak
#

Does anyone know a way to prevent yaml anchors from being completely โ€˜unpackedโ€™ when saving a card configuration? For example. You can create your achor setup, then hit save. Close the card editor, open it again. Then all your anchors have been converted to a full yaml layout.

#

Ah I see it was discussed here as well. So yeah, guessing thereโ€™s no way to prevent this.

polar kelp
#

Correct. Anchors are very much a yaml addition, and the configuration is not stored as yaml in the backend.

#

But I'm amazed at what the editor manages to do with anchors before you leave edit mode. Like if you edit things in he GUI it will reshuffle the anchors and keep as much as possible templated.

harsh peak
#

Yeah itโ€™s pretty strong at what you can do in the editor. Guessing the only way to properly support anchors in the backend would be to create a custom case for it. But idk if thatโ€™s desired haha. Maybe Iโ€™ll step over to the decluttering card. Although native anchor support would be neat as it removes the need for another card.

waxen pulsar
#

Hey, is it possible to create an url, which only show the created card of the dashboard?

polar kelp
#

no

#

Well...

#

If it's only one card, if that card is in panel mode, and if you're using the kiosk-mode lovelace thing.

bitter bolt
#

i want to make a picture elements card as a tv remote..is there some kind of third party wysiwyg editor for coming up with the selectable elements?

#

also is there any way to make the image scale depending on if I'm using mobile or web? so it scales to my host resolution depending on browser or ha mobile app?

teal skiff
#

hi @hushed wasp

          - type: "custom:button-card"
            name: Bijhuis Spots
            entity: light.bijhuisspots_dim
            template: light_card
            show_label: true
            label: >
              [[[
                var bri = states['light.bijhuisspots_dim'].attributes.brightness;
                var bripercent = Math.round((bri/255)*100)
                return 'Dimmer: ' + (bripercent ? bripercent : '0') + '%';
              ]]]
long spear
#

Hi, is it possible to have more than 3 cards next to each other

polar kelp
#

Four if you close the menu bar.

#

More if you put a horizontal-stack card in a view in panel mode.

feral rivet
#

@polar kelp following up on some information you shared with me a few days ago #frontend-archived message. Can I use the input_select.select_option with a script to show a specific card?

obtuse vine
#

Noob question. Is "Connecting lost. Reconnecting..." caused by the browser (Chrome in my case) putting background tabs to sleep and closing connections? Or is it HA front-end or back-end doing it?

blissful anchor
#

where to report a UI bug?

#

Icons are shifted

rich eagle
# blissful anchor Icons are shifted

That looks like your config is attempting the show a secondary information, but that is just an empty string in your case. Can you double check that?

rich eagle
tepid raft
#

I've got an issue where my thermostats are all of a sudden showing 2 set circles but it is not set on heat/cool and if I attempt to set the temp, I get the following error
Failed to call service climate/set_temperature. expected float for dictionary value @ data['target_temp_high']

obtuse vine
rich eagle
#

I don't think it should get cut. My central HA tablet always keeps the connection.

#

You have to enabled the disconnect option in the user profile for HA to cut if after 5 minutes.

vapid field
#

Hi everyone, is it possible to have an weather icon in Badge? how to do this? I was just trying to add weather entity, but it is just showing me text like "Raining" or so

obtuse vine
frigid kayak
#

Why don't the lovelace icons color along with a switch entity just like a light entity?

west patio
#

Anyone know why a dark theme is somehow all bright colors instead of dark when applied?

polar kelp
#

G'night

manic surge
#

installed simple-thermostat via HACs, but get '''Custom element doesn't exist: simple-thermostat.''' when trying to create a card. Any idea?

twin tusk
#

reset browser cache....check resources

manic surge
#

browser cache, perfect that worked thanks Adrian

meager basalt
#

How's it going. I'm trying to get scheduler cards to work on homeassistant from HACS. However after adding the card, the integration, and resetting the browser cache (shift f5 the page), the card still tells me that it cannot connect with the scheduler component.

grim cairn
#

Anyone experiencing a bug in the latest .4 release where multiple sidebars appear each time an ipanel is loaded?

daring smelt
#

Not sure if its gone unnoticed or its just mine, but when trying to edit a configuration of any add-on, the edited line is all white and cursor position is not known. Anyone else having this issue too?

tepid raft
#

I've got an issue with the thermostat card in which regardless of the mode I'm in, it shows 2 setpoints, but I can't edit them. Attempting to edit them shows the following error: Failed to call service climate/set_temperature. must contain at least one of temperature, target_temp_high, target_temp_low.

torpid harbor
#

Where do I go to find a list of icons available (by default) for me to use in my cards? By following one of thomasloven's YT vids I discovered that for the standard ones have a -outline option, but I don't know what icons are available to me to even add the -outline option to.

shy blaze
#

is it posible to show in lovlace a card whit info on what lights are on in a Area or light name/id? i did find a way to count the numgers of lights so are on by using a template {{ states.light|selectattr("state", "equalto", "on")|list|length }} and show on the dashboard the number of lights so are on, but i want a little more info on the sensor is it posible in any way if you press the sensor in lovlace it shows what lights are on/Area insted of the record of what time lights where on?

formal tide
#

auto-entity card does wonders for this @shy blaze

#

I have a second HA instance coupled with Remote HA and thus have a second home now in my entities.
on the map there is now a purple line connecting the 2 homes, can I get rid of that?

tepid raft
#

You can see it's on 'cool' but there are 2 set points

polar kelp
polar kelp
rich eagle
#

@polar kelp Wow! mindblown

icy cradle
#

Very nice Thomas

polar kelp
fallow tartan
#

I'm having a strange issue. Trying to add a webpage frame to Lovelace for a specific full screen view from Octoprint. I try to log in, as it prompts, and it just kicks me immediately back to the login page. I've Googled this and nothing found has fixed it. Octoprint log shows the login attempt, shows the connection opening and immediately closing. Anyone have any ideas? Trying to add a view for Pretty Gcode to see the Gcode of my current print.

torpid echo
#

whats the card or panel to use to display stack of images which are stored in local dir? I am taking snapshots of the images from the camera - wanted to display the last 5 images

quaint snow
#

trying to use card-mod to have an entity change its icon depending on state (open and closed door for a door sensor), but haven't had any luck. am I doing something wrong?

entities:
  - entity: binary_sensor.front_door_sensor_contact
    card_mod:
      style: |
        :host {
          --card-mod-icon: mdi:door-open;
        }```
#

or should it be looking more like this?

  - entity: binary_sensor.front_door_sensor_contact
    style: |
      :host {
        --card-mod-icon:
          {% if states(binary_sensor.front_door_sensor_contact) == 'on' %} mdi:door-closed;
          {% else %} mdi:door-open;
          {% endif %}```
polar kelp
#

๐ŸŽ‰

#

๐ŸŽ‰

prime umbra
#

thank you @polar kelp awesome work !!!!!

winter blade
#

Is it possible to add custom sidebar buttons? To specific integration pages for example

small compass
#

Has anybody noticed issues that the mouse hover on card states in the frontend (history graphs when you click an entity for example) is only visible less then a second then disappears?

dark dirge
silk dust
#

Hi there. I'm trying to find inspiration for my Lovelace UI. But I can't find other than random pictures in various threads, often several years old. Is there an inspiration / "show your UI" thread somewhere? I've not found anything in the forums so far.

polar kelp
#

2.1.0 adds the real killer feature

quaint snow
#

@polar kelp any chance you can take a look at my query above re card-mod and changing icons? Iโ€™m a bit lost / confused

polar kelp
#

First one should work with the latest version. What's happening?

quaint snow
#

just stays at door-closed, doesn't change as the entity goes from open to closed

cloud sequoia
#

good evening ๐Ÿ˜‰

#

new ha user here...

#

hope i got the right channel for asking about lovelace sensor graphs...

#

do others see this as well when having several sensor graphs on the dashboard.....
and when looking on ipad/iphone and turning the device all graphs are suddenly the same?

#

this is how it looks when switching to another app and back....

#

hmmm...picture upload disabled...

kind shellBOT
#

@cloud sequoia Your message has been deleted as it contains a link or a domain name 'pasteboard_dot_co' that is on the blocked list because of: 'Virus detected!'.
Please re-post by removing/changing the domain name/link. Your original message has been DM'ed to you.

#

@cloud sequoia 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.

cloud sequoia
#

happens also on the browser.....and when doing a reload, the graphs are fine again...

polar kelp
#

@quaint snow Ok. That's a bug. I've found it and will be releasing a patch soon-ish.

quaint snow
#

Thanks Thomas, appreciate it!

#

Was doing my head in, thinking I have done something very wrong haha

cloud sequoia
#

hmm....nobody saw that before?

#

also happens after updating to 2021.3.4

quaint snow
#

thank you mate

feral rivet
#

looking for some help with my mini media player frontend. I have an input_select with options. I want to change my the mini player based on the selected input. - type: 'custom:mini-media-player' entity: input_select.media_player artwork: full-cover-fit info: scroll scale: '0.85' show_source: false show_tts: true hide: power: true unfortunately my card is not working https://imgur.com/naIn3SX

urban lake
#

Hi everyone, is there a way for a card to overlap multiple cells in a regular grid card?

feral rivet
#

Can the mini media card use a template for it's entity id?

urban lake
pastel ibex
#

Does anyone know if its possible to deep link into a specific folder within the media-browser as a notification action?
i can do /media-browser as my action which is fine, but i'd like to go further. something along the lines of /media-browser/path/to/subfolder

urban lake
#

Has anyone been successful using the new grid-layout card?

violet depot
#

Hey all, have a question for you before I submit a bug report. I've been seeing some odd things in my history with my input_datetime sensors. If I try to pull up an input_datetime entity in the developers console, when I view it it states the value has changed "just now" and shows the most recent value that I set with the API. If I view the history of the entity, it shows the most recent date time value that I sent in with the API over and over again, but the "changed" information below each entry is correct.

#

My use case is that I use a wall mote to set up a bedtime automation for my baby. When I press the button, I set the input_datetime through the set_datetime service api call. I'd like to see the previous dates/times she "started a nap routine", but everything in the history shows the most recent datetime that was sent in. However if I trace back the "2 hours ago" under each, it corresponds to when the button was pressed

#

ITs very strange

#

So my question is, if you have a input_datetime, can you click on the (i) icon in the dev console and let me know if it says that the value was updated "just now"?

#

And if you see something similar under the history for the entity?

dark dirge
#

it does

violet depot
#

Just to rule out that it's not something stupid that I'm doing

dark dirge
#

it says "now", and then starts counting

violet depot
#

ok, so I'm not going crazy then lol

#

what about the history?

dark dirge
#

yes

#

only the first time, though.

#

the count is based on the first time I bring up the detail view

violet depot
#

So here is another one that I use to track when my dog got her medication. She gets it twice daily, once in the morning and once at night.

#

The history value for 22 hours ago matches the value from this morning

#

which makes no sense. And then theres also the top history value which triggered by me just viewing the input_datetime entity. Perhaps by viewing the entity, its accidentally posting the current value in the window that is displayed? Still not sure why the previous value from 22 hours ago would show the most recent though...

dark dirge
#

no idea. I recommend setting the date you care about rather than relying on the "changed" values

violet depot
#

Sure, tracking the history on when my dog got her pills was never really that important. Just that she got them. But I was hoping to graph out historical data on my baby's sleep history...for fun? ๐Ÿ™‚ But I think I'll submit a bug report on it. It's weird that it's stamping out a new value in the history when one isn't really being set

#

Thanks for confirming that it's not just my instance

dark dirge
#

sure, np. never noticed it

violet depot
urban lake
#

@polar kelp Hello, happy to report that I got the custom:grid-layout working and I'm really impressed with the outcome. Thanks for this great release. I cannot get it working as a browser_mod.popup though. Do you anticipate any problems using it in a popup?

polar kelp
#

I can't see why it wouldn't work. But I haven't actually tested it.

#

Glad to hear you got it to work. I saw your message last night, but it was too late for me to jump into it.

urban lake
#

No worries! Stayed up too late myself.

#

I'll keep on trying get the popup to work.

#

The grid-template-columns: make it so easy to format grids. Thanks for implementing it.

devout hatch
#

Is there a way if my alarm is armed to set my ipad to be showned only alarm page wothoit any other cards

#

And if alarm is not armed then to present my default dashboard?

buoyant furnace
#

can anyone assist me with a simple spin style im trying to do

#

not sure exactly how it works

#

this is my button, id like to make the icon spin when its on

forest briar
#

Would anyone be able to point me in the right direction to creating a virtual thermostat that uses 1 temperature sensor and 2 smart plugs? I'd like to be able to control the thermostat from a card if possible. Thanks!

forest briar
#

Thanks @quaint snow - I saw this but it says that it can control only one switch. Would it somehow be possible to create a virtual switch which, in turn, controlled two smart plugs?

quaint snow
#

What are the two smart plugs controlling?

forest briar
#

Low-power heaters.

quaint snow
#

Could you group them into one entity?

forest briar
#

You tell me lol!

quaint snow
#

Try it out haha. Iโ€™d be grouping them and giving it a shot, or create a switch template perhaps

#

Maybe a group and then a switch template to control the group

forest briar
#

Thanks @quaint snow - I'm in process of moving over from Smartthings and so I'm trying to recreate the basics of what I have in there (including a virtual thermostat).

quaint snow
#

๐Ÿ‘ good luck - took me about a week to sort generic thermostat out and now itโ€™s working well

forest briar
#

Thanks!

glad pulsar
#

hi folks, i am looking for some guidance on how to add 2 entities on the same line in an entity card, eg i have a gate binary sensory which shows open or closed state, i have just got a sonoff 4ch pro which i now want to use to open and close said gate, is there a way to show the open close toggel switch next to the binary sensor?

#

think i found it, multi entity row install via HACS>

glad pulsar
#

ok not winning with the mult entity card, its in the front end list on hacs so i assume its loaded now, but should it be coming up in the list of cards when i click the add card in lovelace?

gusty salmon
#

I have an entity (sensor) that I renamed, but in Lovelace cards the old name is always shown. Do I need to update it or something?

vapid tapir
#

Anyone know how to add a new shared calendar to Google Calendar in Home Assistant? I updated /config/google_calendars.yaml but the UI doesn't show what I added

steady egret
#

Not sure how to word this: I"m having trouble showing specific states for contact sensors. 20 seconds the senser goes to sleep and HA sees "unavailable". is there away to show it's last state "open / closed" instead?

tawny vault
#

is it worth opening an issue for the percent sign? ๐Ÿ‘€ But my OCD is killing me right now. I think it started with today's release of SU (.6)

vague gale
#

Hi All, nice to see so many people here ๐Ÿ™‚ I have just become part of the HA community and I'm exploring some initial setup before committing to any serious automation.
I have installed HA on my Fire HD 8 and enabled few sensors. I noticed all the entities were created with the tablet name. Is t here a way to update all entity names when changing the tablet name without going manual?

prime umbra
#

@polar kelp sorry to tag you, congrats on the new layout card, was wondering one thing lets say that on the desktop i setup the main home view to have 2 columns, every thing works has expected.. now the problem is when i go to my android homeassistant app all cards are broke, because you have the 2 columns, is there any work around with out make a specific dashboard for the android?

tawny vault
#

You can have more than one lovelace dashboard

clever plover
#

it's driving me mad!

formal tide
#

@clever plover use command_line switch - there you can also set a command to get status

mystic orbit
#

Hi all! Wondering if someone here can point me in the right direction. My HA configuration.yaml specifies "unit_system: imperial", and I have a sensor that provides data in kPa. I'd like to display it in PSI, but I also have other sensors that show in kPa and I'd like them to stay that way. Here is the sensor definition:```

  • platform: mqtt
    state_topic: "rtl_433/<host_id>/devices/TPMS/PMV-107J/<sensor_id>/pressure_kPa"
    name: "Tire 2 Pressure"
    unit_of_measurement: "kPa"
    value_template: '{{ value | round(2) }}'
    expire_after: 36000
Is there a way I can have this display in psi instead of kPa without creating a new template sensor ...?
#

Duh. I guess I could just use the value_template to convert to PSI and set the unit_of_measurement to PSI, huh ... (?)

dark dirge
#

sure

#

you have all the power of Jinja to solve this problem

compact flame
#

I found a great custom card for the alarm panel but I am a total newb at HASS. Would anyone be willing to help step me through it? I am just not sure what to put where.

https://github.com/jcooper-korg/AlarmPanel

#

I would really like to use it in combo with Alarmo if possible. Thoughts?

dark dirge
#

the installation instructions start about halfway down the page:

#

start with the first bullet below the picture

#

the picture is a graphical representation of the second bullet point

compact flame
#

For file structure, I need to create a 'www' folder in base 'config' folder

dark dirge
#

yes

#

and then copy the file in, then restart HA

#

it won't recognize the new directory until you restart HA

compact flame
#

yup....did that

#

I added it as a resource

#

and even though it says to add as "/local/alarm_control_panel-card.js" but it is actually in the /config/www/ directory.....that is correct syntax?

dark dirge
#

/local/alarm_control_panel-card.js is correct

#

it's mapped to /config/www

compact flame
#

/local/ is an alias/symlink to /config/www

#

got it

#

Where I get errors is in the manual card config

dark dirge
#

those instructions are not great

#

a bunch of outdated stuff in that config

compact flame
#

I feel less dumb

dark dirge
#

part of the problem is that many people hand-edit their lovelace config, and that can make trouble for people trying to add cards in the UI

#

you should be able to paste something like this when adding a manual card, replacing entities with what's appropriate for your system

#
      confirm_entities:
          - binary_sensor.office_window
          - binary_sensor.living_room_window
      entity: alarm_control_panel.house
      labels:
          ui.card.alarm_control_panel.arm_away: AWAY
          ui.card.alarm_control_panel.arm_home: HOME
          ui.card.alarm_control_panel.clear_code: CLEAR
          ui.card.alarm_control_panel.disarm: DISARM
      states:
          - arm_home
          - arm_away
      type: 'custom:alarm_control_panel-card'
compact flame
#

Attempted to assign to readonly property

dark dirge
#

unfortunately, I don't know anything about that card. there's a lot of garbage out there ๐Ÿ™‚

compact flame
#

All good Rob. I appreciate your help.

dark dirge
#

there's a giant gulf between hacking something together that works for you and solves your problem, and hardening it for public consumption

#

anything not published to HACS is a bit suspect, and certainly more difficult for others to use

compact flame
#

Totally get it.

#

Just trying to figure out what readonly property it is puking on.

ruby garden
#

i'm running home assistant 'contaner' version. i've created a new dashboard called 'Cameras' and I'm trying to add my camera entities to it. nothing happens. any ideas? i'm totally new to designing dashboards in lovelace and also home assistant in general. i have a very vanilla configuration.yaml file so i have no manual configuration of lovelace in there at all.

compact flame
#

@dark dirge - got it man! For whatever reason as soon as I added the 'scale' option the error cleared and the card rendered.

#

Thanks for helping me work through it.

dark dirge
#

Oh, sorry. I think I removed that from my example because it looked unnecessary and I was trying to simplify

#

Optimization kills

compact flame
#

hahah

#

and it was documented as optional

#

anywho.......works well. big alarm panel buttons on an ipad for fat fingers

agile ginkgo
#

Welp, it did indeed break again. After an apparently successful login I'm stuck at Unable to connect to Home Assistant and every refresh produces a Login attempt or request with invalid authentication message in the log

#

I get the same results in a freshly created Firefox profile just minutes old, which rules out addons or cached data... unless there's a known issue specific to Firefox something's wrong with my server. But what?

#
http:
  server_host: 0.0.0.0
  server_port: 8082
  ssl_certificate: /etc/ssl/certs/<cert>.pem
  ssl_key: /etc/ssl/private/<cert>.pem

Am I doing anything wrong here? Is there any other config settings that may be important?

#

all I can find online is stuff related to reverse proxies... this is a direct connection over LAN

agile ginkgo
#

I noticed that the site permissions didn't show any setting for allowing cookies (neither Allow, Allow for Session, nor Block were selected), so I unchecked "Use Default" and explicitly set "Use Default". Tried to login, Got "Unable to connect", upon retrying it went back to the login screen. After trying to login again I'm at my dashboard.

Hitting refresh, I have to click through the "Unable to connect" dialog once or twice to get to the dashboard. Clearly something's still wrong... I guess I wait for it to break again?

shell island
#

I would like to show this as a proper date/time: 2021-03-16T06:42:09.682289+00:00 . How can I do this? Hope all is having a good day:)

latent mason
#

hi all, I have a binary reed sensor connected to a ESP board and in HA through ESPHome.
Now my out of the box sensors have the Open / Closed status, but my custom reed sensor has as status On / Off. Is there anywhere I can overwrite this?

kind shellBOT
#

@latent mason Your message has been deleted as it contains a link or a domain name 'pasteboard_dot_co' that is on the blocked list because of: 'Virus detected!'.
Please re-post by removing/changing the domain name/link. Your original message has been DM'ed to you.

latent mason
#

The Off status means Closed

coarse fractal
#

Or you can use a template sensor

pearl iron
#

can you setup a user - who only has access from the internal network?

#

or local network?

idle kestrel
#

Hello, I need a suggestion, what is the best solution for the lovelace interface to resize cards and the layout. I would like to reduce the size of the full panel every time i need to scroll up and down to be able to see the last row. Any suggestions? Thanks

drowsy igloo
#

Hi. I have some old epaper tablets with android 4.4 running. Rooted properly and ready for some fridge screen action. However I can't get lovelace working. Fully kiosk does not load the login screen properly, while all modern browsers need android 5+. Is there a away?

cerulean bloom
#

Is there any way to go to access the Details tab for an entity through the URL? For example homeassistant.local:8123/details?entity_id=light.mylight?

pearl iron
#

this channel seems dead

#

๐Ÿ˜ฆ

small compass
#

anybody has the issue to that in the frontend history graph popup information are only visible for less than a second after hover? I tried it with chrome, inkognito, edge and same issue. Here a quick recording: https://i.imgur.com/Cj5YEhd.gif

visual gull
pearl iron
#

well and like 3 questions were asked and no responses to any of them?

#

I didn't expect anyone to drop anyhthing

#

but if you're just camping here - camp I guess?

visual gull
# pearl iron well and like 3 questions were asked and no responses to any of them?

No, I am not camping here... i had stopped by to take a look at what others might be doing with their front-end....

But, I can tell you now... without a doubt... the best way to ensure you DONT get help is to whine, complain, and bitch about it...

No one has answered you because no one that has the answer for you has stopped through yet... this is a site of normal people... none of (or at least 99.99% of ) us are professionals sitting around waiting to answer your questions and we dont get paid for it...

As for your question... its REALLY vague and doesnt really make sense...

Can you set up a local user? as in? what exactly do you mean by that? like... no internet access? yeah.... Have you bothered trying to do this on your own yet?

pearl iron
#

im not gonna bother to respond. I didn't mean respect. I meant it more as to the other guys asking questions with no answers that they shouldn't expect a quick response. Obviously you're taking it personally and it wasn't meant to be. In terms of my question, I don't care anymore

visual gull
visual gull
pearl iron
#

yeah I kinda let it flow didn't i

small compass
#

@visual gull it sometimes just works again then the other day not; ill try to find the root cause (right now it works)

visual gull
#

intermittent is always difficult to diagnose...

polar kelp
#

@pearl iron no. Your best bet is to just not tell them the external URL or use a third service for an extra auth layer, like authelia or something.

grim compass
pearl iron
#

I was wondering if there was some way to have a flag for local acessible users vs "external"

#

like a referrer flag or something or by URL

feral rivet
#

Can I use a vertical-stack inside of a picture element?

grim compass
#

IS there a way to apply css on badges ?

polar kelp
#
grim compass
#

this also works on badges ?

#

looks like it only apply to badge text :/

polar kelp
#

The example, yes. But it can change ANY css for pretty much anything in the Home Assistant frontend.

grim compass
#

hmm yes but i just tried to edit color and it only change the badge text color. i wonder how i can override the badge icon itself (icon and/or its color)

#

yes, this does not works

badges:
  - type: entity-filter
    entities:
      - entity: calendar.jacuzzi
        icon: 'mdi:hot-tub'
      - entity: calendar.poubelle_verre
        name: Verre
        card_mod:
          style: |
            :host {
              --card-mod-icon: mdi:delete;
            }
quaint snow
#

I have the same issue, cannot change the icon colour, only the text

twin tusk
#

@quaint snow and how we can guess your code?

quaint snow
#
entities:
  - entity: sensor.front_door
  - entity: sensor.living_room_door
    card_mod:
      style: |
        :host {
          color: red;
          }
  - entity: sensor.office_door
show_icon: true
show_name: true
#

On the phone - that took me a while to get it out

twin tusk
#

and...what u want to achieve?

shell island
#

Hi all! I have a custom card (custom:flex-table-card) but it doesn't format the attribute last_updated to well. Is there a way I can turn 2021-03-17T10:55:01.460154+00:00 into a more readable format?

quaint snow
#

Or any colour for that matter

stoic rain
#

I like the look of the entity card, but I would like to customize the display name, color and animation based on the different states. I've done this with great success using custom:button-card, so how can I achieve the same thing with the entity card?

shell island
#
  :host {
    --paper-item-icon-color:
     {% set mode = state_attr('climate.varmekabler_office', 'hvac_action') %}
     {% if mode == "heating" %} #eb7a34
     {% else %} #aeeafc
     {% endif %}
     ;
   }```
#

That will change the color of your icon depending on the state of the entity

#

this even changes the color based on the state of an attribute

stoic rain
#

Thanks, I'll check it out! Which card is required to activate this? card-mod?

shell island
#

I think this actually can be done without Card-Mod! Not sure!

stoic rain
shell island
#

sure!

kind shellBOT
stoic rain
#

Thanks! And what specifically does the paper-item-icon-color mean?

shell island
#

that just changes the color of the icon

#

play around with it and you will see

stoic rain
#

Takkar, mรฅ lese meg opp litt ๐Ÿ˜‰ For et kaninhull

shell island
#

Hahaha!! Lykke til / good luck! If you are on the norwegian Home Assistant Facebook-group I can post some screenshots

#

You'll find the there under the same name

stoic rain
#

Done ๐Ÿ˜‰

olive scarab
#

Hi there, my light.<area> (ie light.kitchen) entires are showing the error โ€˜Entity not availableโ€™ on my dashboard. Iโ€™ve recently updated HA to core-2021.3.4 Does anyone know how I can fix it? Many thanks.

twin tusk
#

check state of the lights in dev tools

olive scarab
twin tusk
#

and u checked them also?

olive scarab
twin tusk
#

i have a group of lights and works fine

glass tapir
#

On the google calendar when added in Lovelace as List mode, i see the calendar Items only the last week. Can this be increased to half year or maybe the last year to see it in the list?
You can scroll it left - right but is not very handy..

#

I have added the calendar entity as a card

olive scarab
# twin tusk i have a group of lights and works fine

Thanks for confirming light groups should work. The only other thing I can think off is Iโ€™ve recently added a ConBee 2 to the HA server (though canโ€™t for the life of me get it to work with my magic cube!), do you think the conbee could have effected the light.<area> entities?

twin tusk
#

what integration u use for lights?

#

conbee is still experimental as far as i know

olive scarab
feral rivet
#

I am trying to create a button card that when I flip it, it change the available set of devices that are displayed. I have setup the animation and set the cards up in what I think is the right format, but there is no button card. https://paste.ubuntu.com/p/G9PzNz93qB/ here is a shot of what I have so far .https://imgur.com/W6zTtg0

cloud vector
#

Is there a way of disabling a card in Lovelace like we can with devices and entities?

polar kelp
#

Wrap it in a conditional card that's never true.

bitter bolt
dark dirge
#

you can try a horizontal-stack. that crams two cards together in a single column

cloud vector
#

@polar kelp Thank you

polar kelp
stoic thorn
#

Hello guys! I am re-configuring my HA from scratch ๐Ÿ’ช Sometimes it's just better to start fresh hehe. Is there a way to keep a dashboard that is auto-populated by HA + another dashboard that I can control myself?

For instance, keep the "Home" tab as it is right now, populating automatically, and add a second "Custom" tab where the Cards would need to be added manually?

Thanks in advance!

polar kelp
#

configuration -> Lovelace Dashboards -> โž• Add Dashboard

#

So not a tab, but imo this is better because you get a new button in the sidebar instead.

half pawn
#

Hopefully this is the right place to ask a question about 'cover'. I have used this for my Tuya controlled curtains and my Garadget controlled garage door. The garage door works fine and the curtains work BUT often when I look at my overview screen I see just the 'stop' button highlighted, with the up arrow nor down arrow both 'greyed out'. If I use the slider on the pop up to move the curtain a few percent, sometimes one or both arrows goes full brightness. I can then click on them to move the curtain. If I fully open or fully closed, both arrows grey out. What am I missing?

#

@polar kelp Just wanted to add I love your slider app, I am using this for my curtains.

polar kelp
half pawn
#

Is 'cover' an integration?

polar kelp
#

Yes. And Tuya and Garadget definitely are.

half pawn
#

There doesn't seem to be a problem with Local Tuya and Garadget, they seem to be working fine. Its just the cover, I suspect that there needs to be a deadband around 0% and 100% so that say less than 2% is "closed" and over 98% is open. I will try integrations.

#

By the way I left a comment on your github, as my curtains at 0% are 'open' and at 100% are 'closed' but your slider app calls 100% 'open'. Would be nice if the text could be user defined maybe?

jagged slate
#

https://imgur.com/a/Vo9KtHm

here are some screenshots of my history graphs, anyone know what happened for it to turn out like this?
the last one is the default "history" tab.

jagged slate
#

it makes some of the graphs completely unusable... I thought it would fix itself with an update, and that worked for 5 minutes then it went back to what you can see above. I don't know what it is, I don't know why it is, and I don't know how to fix it...

compact karma
#

Hi, i have added the "last modification" in the secondary info of a equipement in lovelace UI.
sometime, when get new information it's like in the futur, not in the past , like "in 1 second" instead of "1 second ago" do you think a bug or it's normal ?

blissful crater
#

I have an mqtt sensor accurately giving me this value:

2021-03-17 08:41:34.548657-05:00

How do I use this in a Lovelace card to give me time since that value in duration like seconds, minutes, hours, etc? I cannot figure it out and have wasted hours. Please help and thanks in advance!

grim scaffold
#

Hey all. I have created a Lovelace button that starts a automation to turn on a geyser for 1 hour. type: button. Here is the lovelace code
tap_action:
action: call-service
service: automation.trigger
service_data: {}
target:
entity_id: automation.kids_geyser_on_1_hour
entity: switch.sonoff_main_gate
name: Geyser on for 1 Hour
icon: 'mdi:water-boiler'
show_state: false

#

my question is. Is it possible to have the icon light up while the automation is running? Currently It works but I have no idea if it is running or not

twin tusk
#

@grim scaffold u can set icon colour according to state

grim scaffold
twin tusk
#

is not a dev backgroud required

grim scaffold
twin tusk
#

i use card_mod custom card first

#

and colour icon is part of style

#

so...i say what needs to be changed: -paper-item-icon-colour

#

and if the state of your entity is on

#

then the icon should be....#ff45443

#

but u can write white

#

or purple

#

or whatever u want

#

it can be done without card mod if u don't want to isntall custom cards, but right now i cannot say how

grim scaffold
grim scaffold
twin tusk
#

sure

grim scaffold
twin tusk
#

card-mod

grim scaffold
clear pivot
#

Hi guys, may I ask a question about how to modify a lovelace card to display additional info ?

twin tusk
#

show your code and what is the scope

kind shellBOT
clear pivot
#

damned...well, I have the above code in a glance card, for my aquarium. I also have an automation for the aquarium feeder, and I'd like to add a line in this card to display when was last triggered that automation.

#

sorry for the "off-limit" pasting of code, now I know the rule ^^

twin tusk
clear pivot
#

ok thanks, but not what I want to achieve unfortunately...My card looks like this and I just want the automation last triggered to be added
https://ibb.co/bQ5CGP0

twin tusk
#

glances doesn't seem to support that

#

i mixed entities card and glances card with "custom:hui-element" .

#

or move from glances to buttons

clear pivot
#

can you paste me the code of your mixed card ? looks more like what I'd like to achieve

twin tusk
#

immediately

clear pivot
#

thanks, really appreciated ๐Ÿ˜‰

grim scaffold
# twin tusk sure

I got it working. Thanks so much for pointing me in the right direction

twin tusk
#

avec plaisir

devout hatch
#

is there any custom card like card light but with the double circle-slider?

#

I have rgbcct led strip, 2 channels one is for color other for temperature light

#

I would like to put as one bulb with 2 sliders around it one for color, other for temp

dense haven
#

Hey guys, I'm having trouble with a part of my dashboard. I found some code which will allow the Spotify playlist to have a drop down and switch between users. I put it in my lovelace config but I'm getting a type unknown encountered for entities. Any ideas why that would be?

blissful crater
#

Is it possible to have secondary info on a card show where the primary info should be? So instead of a switch showing up it is replaced with what is in the secondary info part of the card?

buoyant furnace
#

maybe a easy question but is it possible to make lovelace zoomable?

#

i put it on fully kiosk browser on my firehd tablet, the dashboard is a little bit big for the screen, not a lot, but i cant zoom out a bit so it would show all the content WITHOUT SCROLLING, how do i do that ?

versed kettle
#

Anyone use an Echo Show for displaying Lovelace?

blazing galleon
#

Hey there! I have plenty of experience in home automation but am fairly new to HA. Iโ€™ve got my system up and running but there are a few tweaks I need done to both the interface and automations. Currently I am struggling to even find documentation on possible solutions and donโ€™t quite have a good enough grasp on everything at the moment to troubleshoot it myself. Unfortunately I donโ€™t have plenty of time at the moment to learn everything myself and I am interested in paying someone (maybe $100 or so) for an hour or so of their time (remotely of course) to help walk me through a few things. If any experts on here are interested in helping me, please let me know.

shell island
#

Hi people! Is it possible to generate numerous graphs based on auto-entities?

#

using mini-card-graph

shell island
#

thank you so much Thomas!

feral rivet
#

hey guys 2 quick questions. 1) can I add the entity divider without have a list of entities preceding or following it. 2) does picture elements not support basic lovelace cards?

small badge
#

I have a presence sensor showing current the room I'm in.
Is it easily possible (custom integration) to get a pie chart showing how much percentage of the day I'm in the different rooms or do I have to create a history_stats sensor for each state of the presence sensor and work with that?

shell island
vapid field
#

Hi ppl.
I've been tinkering with a small possible addition to the frontend. How do I share what I've made? I guess a pull request would be the thing, but I feel a bit lost here. Someone to the rescue?

polar kelp
shell island
#

Sorry, I guess I'm a bit slow. The example you showed me is two separate examples, right?

lapis hatch
#

Is there a way to make lovelace card titles change dynamically?

#

Paging @polar kelp?

polar kelp
lapis hatch
#

Ah hah! Perfect

#

Thank youuu

polar kelp
#

@shell island First you need a card which can create multiple cards based on a list, e.g. grid, vertical-stack, horizontal-stack or custom:layout-card.
Then you tell auto-entities which entities you want, and where to send them. But instead of sending them to the entities: option of the card, you tell it to send them to the cards option of it.
Then, obviously, you need to make sure that the data that's sent also contains information about what card type you want to put in the grid/stack/layout, just as you would if you entered it manually.
I know you're one of those who can figure this out from the example I linked.

lapis hatch
#

That's very generous ๐Ÿ˜‰ whoops! I thought your "can figure this out from example" comment was in reference to me for some reason

polar kelp
#

Layout-card makes things a little bit simpler. And there's an example in its readme.

dark dirge
#

the just-released layout-card is playing havoc with my icon sizes

#

I made the layout -> view_layout change, but I can't figure out why it has had such a dramatic effect

#

I'm using a bunch of layout-cards to organize a fleet of custom button cards, and there seems to be some perhaps unintended impact on sizing. Some have become really small, some much too big

polar kelp
#

That was quick.

dark dirge
#

yep

polar kelp
#

Are you using a grid layout?

dark dirge
#

some auto, some horizontal

shell island
dark dirge
#

no grid

polar kelp
#

Do you have a screenshot?

dark dirge
#

I can get the sizes back by playing with the size and aspect_ratio parameters of custom button card, just wasn't expecting to have to

#

sure

#

the icons at the top used to be proportional to the text, the Bluetooth icons fit on a single line. The grid (which is really "auto") in the middle had icons that were marginally larger. All three columns used to be roughly the same height

#

I can go back and grab a "before" shot if that would help

polar kelp
#

It's not simply that you accidentally renamed a few too many layout to view_layout?

#

custom-button-card still uses layout for its options.

dark dirge
#

I don't think so. I still have the step_layout parts

#

I'm investigating

#

actually, those are for water heater

polar kelp
#

Mind sharing the code?

dark dirge
#

Sure, I'm trying to get a minimal example

#

it's a pretty complicated nested layout

polar kelp
#

It's ok. Just pastebin it all. I think I know what to look for in this case.

#

But I appreciate the thought.

dark dirge
#

ok. I do want to prove to myself that going back to an earlier version fixes it and I'm failing at that right now.

polar kelp
#

Ok. Then I'll go to bed now. Ping me if you don't solve it and I'll look at it tomorrow.

#

Actually, ping me if you solve it too.

dark dirge
#

sure, no problem. I'm at a place where I'm questioning reality ๐Ÿ™‚

polar kelp
#

Oh, I know that feeling.

dark dirge
#

like, it's been caching for a while and I'm just now seeing the effects of some other change. or something like that

#

but I track my YAML in git and I've only made a small change in quite some time. could be an interaction with another plugin

#

reverting back to the older version (I'm on 2.0.0 now) fixes it on Mobile, but I'm still seeing the weird behavior on my Chrome desktop

grim estuary
#

I have a question not sure if this is the appropriate channel to ask. I have video recordings that I'm able to pull up through home assistants media browser. They are clips from a surveillance camera. Is it possible to display the latest recorded clip in a card on a dashboard? Or perhaps create a camera from that recording (similar to what Ring integration does)?

dark dirge
#

@polar kelp My fault - I hadn't fully internalized the breaking changes in 2.0.0 and my laziness only just came to light with the latest release

#

Moving back to v16 fixed everything, so then I actually read the readme and realized that I was doing everything wrong ๐Ÿ™‚

#

all good now

feral rivet
#

I am trying to create a tablet dashboard

dark dirge
#

Nope

vapid field
#

How do I contribute to the Frontend project? I've made an addition but I guess it has to be reviewed. How does that work? Do I make a PR directly or how does it work?

polar kelp
#

....actually, those aren't really requirements at all... if you know what you're doing, just PR.

#

... haven't read that page in a while...

vapid field
#

Thank you Thomas!

#

I've read that page, and after reading it I feel like I'm missing something. But I guess it is simpler than I envisioned

upbeat blade
#

I want to customize the media control card on my dashboard to fit my needs. But I can't figure out how to know which functions my entity nor the media control card supports. As a hint I got this website recommended ( https://www.home-assistant.io/integrations/media_player#media-control-services ) but I dont understand what to do with its information. Is there a guide something to fill the missing pieces?

feral rivet
#

@polar kelp tried to use you grid layout yaml code example to to get a feel of how it works , but as I mentioned to RobC last night I am getting nothing but a black screen. I have cleared my cache and refreshed my browser , but I am still not getting a single card to display. I am also running the latest version of layout card and HA.

stoic rain
#

Has anyone struggled with loading the Decluttering-card lately?
I've followed the recipe to a T, but it keeps telling me there's "no integration named" that. But according to the config, we should put "decluttering_templates:" in the config.yaml

#

(Despite it not being an integration).

stoic rain
#

It was easily solved using horizontal-stack, but I was hoping the gridcard would eliminate the need for those.

polar kelp
#

Try turning off the square setting.

stoic rain
#

It.. worked! That was not what I was expecting the square-option to perform.

stoic rain
polar kelp
#

That's the custom-button-card, right? It probably doesn't stretch to the entire height, because that used to be discouraged. But you can see that the grid is kind of square-ish.

exotic dew
#

I have Imperial units set in the profile, but I have a few temp sensors I need to display in Celsius. When configuring an entities card I can't get it to display anything but F. The single entity card displays in C though.

frozen olive
#

How do you take an image from your media folder, and use it in an image card? Cant seem to get it to display

formal tide
#

everthing you want to display in the browser needs to reside in /config/www

feral rivet
#

Is anyone else having issues with the grid layout yaml code supplied in thomasloven's example?

#

I copied the exact code into my setup just to play and test it out, but my screen remains blank. no errors displayed on screen of in the logs just a dark screen.

twin tusk
#

share code

polar kelp
#

Works for me on my prod setup.

#

Browser console?

reef obsidian
#

I have Nabu Casa when im try with my phone open my HA in Chrome not working: This Site cant be reached.
I use my locally ip to HA

modest field
#

Hello guys, any one issue like this:

#

Something happening with front end, on all historical trends there are strange noises like artifacts

twin tusk
stoic rain
#

Does anyone know of any sliders that are... thicker? Especially on the mounted tablet, trying to hit the little dot can be an adventure. Anything like the Apple Home sliders that can be placed on a lovelace card?

feral rivet
#

Browser console? What is that?

rancid schooner
#

Is it possible to add internal urls like portainerip:port / Deconz, node red, nginx, grafana, influx to the home assistant sidebar?

Pages now keep being blank

dark dirge
#

should be, as long as you're not trying to load http content into an https site

rancid schooner
#

That's the problem then ;)

dark dirge
#

(see warning at the top)

frail bridge
#

Does anyone know how to hide the input field in a Entities Card

rancid schooner
#

๐Ÿฅบ

frail bridge
#

I just want to display the text_input value, not edit

#

*edit it

dark dirge
#

it's a browser thing

rancid schooner
#

Thanks gotta make them https then I guess

fathom vault
#

template sensor I mean

polar kelp
upbeat sun
#

has anybody figured out how to display a camera from frigate (or its RTMP stream) in Lovelace? (please reply in a thread so i get the notification since i'm going to be AFK for a while)

exotic dew
#

ok, which install method do I need to use in order to maintain the level of control of my yaml that I had w/ 0.78? I only need 4 entities to display in Celcius and nothing I do accomplishes this. way too much of the code is hidden now.

feral rivet
#

Is anyone able to help me sort out this issue with grid layout. I have rebooted the device twice, cleared my cache a few more than that, but still I am not getting anywhere. I have copied thomasloven's code verbatim https://paste.ubuntu.com/p/jfSGyZpV2V/.

pallid needle
#

Is there a way to force a reload of lovelace?

#

I somehow got something called an unamed view in the navigation

#

when I deleted it actually deleted my first tab

#

I restored the .storage/lovelace and can see the missing tab that was deleted

#

however it doesn't show up even after a hard refresh

#

Ah I just restarted it's back, but there are two ghost unnamed view tabs

#

it happened when I added a panel

modern portal
#

Hi is there any "sensor" allowing calculate and show measured value increase per some period time?
Let's say I have sensors which shows "working time since start", now I would like to see "working time in last 60 seconds"
Displayed as (for example) "3 units/minute"

rich eagle
rich eagle
rich eagle
rich eagle
feral rivet
exotic dew
#

I have 4 sensors that are in C everywhere except HA. The global setting of imperial won't left me change them by any means I've tried.

pallid needle
feral rivet
#

Hey guys I am getting this message twice in Browser consolelayout-card.js:40 Uncaught (in promise) TypeError: this._config.cards is not iterable at HTMLElement.setConfig (layout-card.js:40) I am not sure what it means , but since I am not able to get layout card to show even a visual error. I am asking for some help .

rich eagle
rich eagle
rich eagle
exotic dew
#

Thanks. Will go over there then.

feral rivet
rich eagle
#

Then someone else needs to assist, since I do not run any custom cards so far.

pearl iron
#

hey guys (forgive me I am kinda new at this) but I have a MYq from liftmaster garage door system. I like their templates for the doors. Can I use them for my garage door interface I made?

pallid needle
#

but things are back to the way they should be

feral rivet
#

I am getting this code in browser console for layout card Uncaught (in promise) TypeError: this._config.cards is not iterable at HTMLElement.setConfig (layout-card.js:40) What does it mean? Could it be the reason that my attempts to copy and paste from the example yaml code for grid layout is not working? How do I fix it?

frigid kayak
#

Does anyone know how to just change the active icon color of the default theme of HA, and especially in the dark mode.

feral rivet
rich eagle
rich eagle
rich eagle
#

However, that will use the light theme as the base. I have an open PR that will allow creating themes based on the dark HA theme, but that is not yet supported.

frigid kayak
rich eagle
frigid kayak
#

Thnx

polar kelp
feral rivet
polar kelp
#

Make sure you specify a list of cards. ๐Ÿคท

pearl iron
#

ANyone on this: ey guys (forgive me I am kinda new at this) but I have a MYq from liftmaster garage door system. I like their templates for the doors. Can I use them for my garage door interface I

rich eagle
tropic adder
#

Hello all. I'm using the storage configuration, and I've created a custom card (pure yaml, and references a couple of other resources). Is there a way to save that as a reusable card?

dark dirge
#

โ€˜Creating a custom cardโ€™ implies writing JavaScript. It sounds like you just configured an existing card

#

But no, thereโ€™s no easy way to save that and refer to it later. You can duplicate an existing card in the UI, though

#

If you manage your Lovelace config in YAML, you can use YAML anchors to do pretty much what you want

vapid field
feral rivet
pallid needle
rich eagle
pallid needle
#

yeah it's pretty easy, one moment

#

I updated with the config actually and added a comment on how I fixed it

pearl iron
#

@rich eagle thanks for the reply! I want to use the same interface as myq. They show a door and its open or closed and I can click it to toggle its position

tropic adder
rich eagle
#

@pearl iron I think with the default buttons in HA we only have a static icon currently, but with custom cards you can change the icon based on the entity state.

tropic adder
#

And I'm mor familiar with the yaml configuration method, I just like what I see of the UI method, and wanted to see if what I wanted was possible within it. I can easily stick to yaml mode.

dark dirge
#

I think that's just allowing you to edit the YAML for a specific card manually. My earlier comments stand

tropic adder
#

Aye, I was just confirming that what you said was correct ๐Ÿ™‚

dark dirge
#

you should look into YAML anchors, but know that the anchor scope is the file where it's defined. You can't put it in a separate file and include it somewhere else

tropic adder
#

But I can use !include to separate things out into separate files, correct? Is that different than anchors?

#

Sorry for what may be stupid questions. I'm just googled out, after finding the same thing over and over, I realized I was probably using incorrect terminology, which is frequently my nemesis.

dark dirge
#

anchors are anchors

#

yes, you can include YAML from other files

#

be careful doing that for ui-lovelace.yaml, though, because changing included files doesn't automatically cause those changes to be reflected in the UI. You always need to at least touch ui-lovelace.yaml as well

#

I found it annoying enough that I just don't do it

tropic adder
#

Good to know, thanks!

dark dirge
#

I mostly use anchors for card_mod styles, like this:

#
  red_background: &red_background |
    ha-card {
      background-color: red;
      box-shadow: none;
      }
#

and whenever I want to use it:

#

style: *red_background

tropic adder
#

And red_background is just defined at the base of the interface file?

dark dirge
#

somewhere in ui-lovelace.yaml

tropic adder
#

nods Ok, thanks

dark dirge
#

I put them before I start defining views

tropic adder
#

That gives me some to work with. And that's just a straight replacement, right? What I'm doing is a mashup of stuff using button-card and declutter-card to make a remote control. But I don't want that massive nested definition to be in the way when I'm setting up the other views.

#

Someone posted a custom remote they made in the comments for the roku-remote integration. I liked the idea of giving my kids limited access, and quick buttons for specific apps that they like most, like GoNoodle and PBS Kids.

#

And since I've not messed with HA since I broke the FreeNAS Jail I was running it in, I'm starting over mostly from scratch. But a lot has changed.

dark dirge
#

you can configure the interface based on the user with the state-switch card, if that helps

#

I use it for mobile/desktop

#

and you can use an !include for each user to get it out of the main file, but keep the touching ui-lovelace.yaml in mind

#

maybe once it's working and you aren't messing with it...

tropic adder
#

nods

polar kelp
stoic rain
#

So I'm having fun playing with CSS and different card configs.. what's a good way to store a configuration for reuse? like ha-card, h1, h2 etc?

#

So I don't have to add style: for every card.

dark dirge
#

with something like card_mod?

#

the answer is probably "YAML Anchors"

#

see examples above

stoic rain
#

Excellent! Where do you store all those, then?

#

And what is the difference between using:

card_mod:
  style: |

or just:

style:

?

dark dirge
#

that's new syntax for card_mod

#

I answered that up there, too

#

I put them before I start defining views

stoic rain
#

Thanks! So &red_background is the anchor you can call in this case?

#

or, whatever you put there is the name you use to call it.

#

(as opposed to !include)

dark dirge
#

yes

#

with style: *red_background

#

there's much more to YAML anchors that you can find online

stoic rain
#

Thank you, @dark dirge ๐Ÿ™‚

#

I'll fire another before I go to bed:

#

Has anyone struggled with loading the Decluttering-card lately?
I've followed the recipe to a T, but it keeps telling me there's "no integration named" that. But according to the config, we should put "decluttering_templates:" in the config.yaml
(Despite it not being an integration).

polar kelp
#

You mean here?

The templates are defined in an object at the root of your lovelace configuration.

#

That's not configuration.yaml.

stoic rain
#

Oooh.. I've set my yaml-views in configuration.yaml. Does this refer to ui-lovelace.yaml?

polar kelp
#

Yes.

stoic rain
#

Got it. I see I last edited my mobile/tablet yamls a year ago. And all they contain is an !include to the split view files ๐Ÿ˜‚ no wonder I'd forgotten it was there.

#

Thanks again, author of half my cards!

ebon crest
#

Hi! I have an AutoPi in my truck and I configured it to report back its GPS location via mqtt back to homeassistant. I have my lat/long in a json payload that looks like: {"lat": 100.5432, "lon": -10.12345}, what might be the best way to get that number to show up in the lovelace map card?

#

(Since I have full control of the code from the vehicle to homeassistant, if it makes more sense to format that data differently I can also do that.)

feral rivet
spark eagle
#

I think I have a supervisor or UI problem. When I click on the supervisor tab firefox/chrome/other browser does not load the tab. In the browser console I can see an error:

"Failed to load โ€˜https://homeassistant.alheureux.com/api/hassio/app/frontend_latest/entrypoint.d6c7a0d5.jsโ€™. A ServiceWorker intercepted the request and encountered an unexpected error. service_worker.js:1:11014
Uncaught (in promise) TypeError: error loading dynamically imported module"

It does that for all the different addon tabs too. I've rebooted, used the cli to repair the supervisor, checked the supervisor and core logs using the ha CLI from the machine. I do not know what to check anymore. Anyone has an idea?

#

otherwise, homeassistant seems to run fine

polar kelp
#

The base use of layout-card 2 is as a replacement for the View, and the actual custom:layout-card is just an extra convenience thing. I recommend starting over, rather than trying to convert a precious layout-card based configuration.

#

Therefore, the code samples relate to views rather than cards.

feral rivet
#

got it I am starting over and I plan to work each one separately till it makes sense to me

#

In the UI for Layout-card, what is the purpose of the default option? there is no mention of it in the readme.

polar kelp
#

That's using the default lovelace layout engine. I probably should mention that,yes...

#

Pretty much exactly the same as horizontal, except with no options and it calculates the number of columns based on the width of the entire window rather than of the layout-card.

feral rivet
#

So it that case I would not have anything in the layout-options . The cards just go where every there is space?

polar kelp
#

yes

polar kelp
feral rivet
#

a bit of clarification is needed https://imgur.com/GxQvh2L to the options in the table go under view-layout: or layout_options the examples and the documentation appear to say either is correct?

polar kelp
#

That's a mistake from my side. I'll fix it.

#

It should be layout if a view, and layout_options if a layout-card. But I just realized I could make it layout for layout-card too. So I'll do that.

#

I got a bit overzealous with replacing things when the layout parameter for the cards had to change name...

pearl iron
#

i guess I am looking for a tutorial onj garage door covers

#

๐Ÿ™‚

#

people wrote some stuff but its 2 years old and the yaml stuff is no longer applicable I see?

feral rivet
vivid cobalt
#

Is there a list somewhere with which icons change when Color icons based on state? is set?

acoustic patio
#

Can anyone tell me how to get "Sun" off of the dashboard?

vivid cobalt
#

Actually, let me rephrase my question: How can I have different icon colors for sensor type entities based on the state value?

twin tusk
#

@vivid cobalt u can try card-mod

#

@acoustic patio u refer to sun badge default ?

scarlet geyser
#

Hi, I keep getting Login attempt or request with invalid authentication from [IP]). See the log for details. when attempting to login to home assistant from outside the network via an openlitespeed reverse proxy. What causes this and how can I fix it? Thanks in advance. #integrations-archived

twin tusk
pearl iron
#

seems like someone has had to use a relay and sensor to automate their garage door. I did I just need to make the interface work ๐Ÿคท

twin tusk
#

where is the question ?

pearl iron
#

I asked hours ago I am look for some examples of a cover for garage door

#

I have my sensor and my relay

#

I just don't know how to get a cool implementation

#

I have on/off status for the sensor on the door and I have a switch for the relay to make it toggle - and that works

twin tusk
#

so put entities card and that's it

pearl iron
#

right thats what I have - I want something all inclusive like I have with the myq system

#

shows the door status properly

twin tusk
#

all inclusive?

pearl iron
#

let me show you

#

oh I can't upload an image?

#

I mean there is a card that shows the garage door

twin tusk
#

read the topic

pearl iron
#

an image?

twin tusk
pearl iron
#

its neither

twin tusk
#

use whatever suits you

#

imgur

pearl iron
#

uploading now but im watching a twiks commercial

dark dirge
#

hungry?

pearl iron
#

im joe pesci

twin tusk
#

so what u want to achieve?

#

when u press button to open garage door ?

pearl iron
#

see the stuff on the left

#

that "Garage Door" icon?

#

its exactly what I want to achieve - with my grear - not liftmasters

#

๐Ÿ™‚

twin tusk
#

so?

pearl iron
#

so um im a NEWB

#

๐Ÿ™‚

#

and I don't kmnow how to do that

twin tusk
#

this is not your pic ?

pearl iron
#

the icon will show an open door with different color when open

#

it IS my pic

#

that stuff on the left is myq

#

the stuff on the right is my gear (entities card)

twin tusk
#

ok. maybe someone who understand you will help

pearl iron
#

im not sure wehat you don't understand. I didn't code that interface with the doors

#

that "came with the myq integration"

#

I would like to apply the shininess to my other sensors

#

does that help clear it up?

twin tusk
#

no

pearl iron
#

oh!

#

do you speak chinese?

twin tusk
#

perhaps

pearl iron
#

oh - I don't

#

let me explain slower

#

the icons with the door

#

see that?

#

thats a black box to me

#

it just appeared when I added the myq integration

dark dirge
pearl iron
#

yes

#

if you look at my yellow shit on the bottom thats what I tried - I think

#

let me compare code

#

yes

#

thats what I did too

#

just like that

twin tusk
#

:))))

#

so check what is your entity

pearl iron
#

welll

twin tusk
#

developer tools states

pearl iron
#

in RobC's example what is his entity?

twin tusk
#

oh...well...better try to read docs

pearl iron
#

perhaps you could send me a link to the docs? shoudl I read them all?

#

im not being obtuse or an asshole

dark dirge
#

there are two entities - a sensor for the door and a switch to open/close

pearl iron
#

correct

#

so in lovelace what do you reference/

#

thats the part I Think I am missing currently

#

can I see your Card Configuration?

dark dirge
#

I use a custom button card

pearl iron
#

is that voodoo?

twin tusk
#

:)))))))))

dark dirge
#

I'm using some fancy templates, but this is it:

pearl iron
#

I don't have that option by card

#

I will google it now

#

๐Ÿ™‚

dark dirge
#
                    - type: 'custom:button-card'
                      entity: cover.garage_door
                      name: Garage Door
                      template: glance_template
                      variables:
                        abnormal: "open"
                        normal: "closed"
                      tap_action:
                        action: call-service
                        service: switch.turn_on
                        service_data:
                          entity_id: switch.garage_door_switch
twin tusk
#

RobC is a voodoo priest undercover

#

that's why he is coloured

#

now seriously: custom cards in HACS will help you achieve that

dark dirge
#

more templates, but here's some more:

pearl iron
#

yes thanks

dark dirge
#
  glance_template:
    template: glance_parent_template
    styles:
      icon:
        - color: >
            [[[
              if (entity.state === variables.normal) return "green";
              else return "red";
            ]]]
pearl iron
#

more

#

theres more?!

#

oh jesus help me

#

Configuration errors detected:
No type provided.

#

noe easy copy and paste huh ๐Ÿ™‚

dark dirge
#

no

#

you need to install custom button card, but I don't recommend copying and pasting things you don't understand

#

consider this a concept

pearl iron
#

I understand everything

#

until it doesn't work ๐Ÿ™‚

twin tusk
#

if u don't find google

pearl iron
#

ill go in the other channel to aks where config/www is ๐Ÿ™‚

#

you guys will learn to love me

#

I am a lot of fun!

#

did you like Falcon and Winter Solider?

twin tusk
#

try to stay on-topic

pearl iron
#

oh I thought it was a lull in the conversation?

#

guess not

#

im install hacs now

#

good move, bad move?

#

hacs is installed

#

ok custom card is installed

#

that was easy

#

๐Ÿ™‚

#

and it kinda works

#

Door 1 is open but the icon isn't changing color or showing the open door

dark dirge
#

Is the cover template state reflecting what the card is looking for? And is it accurate?

pearl iron
#

um I don't know how to answer that- but the button did open the correct door?

#

I think I figured out that problem

#

but I have a second question

#

covers:
garage_door1:

#

I added the 1?

#

so I could have a 2, and 3 and 4?

#

does that make sense?

#

because now it says the entity doesn't exist?

dark dirge
#

Itโ€™s just a name for the entity

pearl iron
#

I don't understand wouldn't I replicate that code you showed for each door in the configuration.yaml?

dark dirge
#

Yes

#

Giving them different names, of course

pearl iron
#

and is that line under covers: the name?

#

i am assuming it is?

dark dirge
#

Yes

pearl iron
#

type: button
tap_action:
action: toggle
entity: cover.garage_door
show_icon: true
icon: 'hass:garage'

#

but I change teh name to garage_door1 I think

dark dirge
pearl iron
#

and it still shows?

dark dirge
#

You understand entity names?

pearl iron
#

nope

#

apparently not

#

cover:

  • platform: template
    covers:
    ** garage_door:**
#

i thought that was the name

#

it has a friendly name

#

so that block seems like it would have to be uniquie to each door

dark dirge
#

That is the name

#

It does

pearl iron
#

then it shouldn't work in lovelace

#

becasue I names it garage_door1:

#

and it still works

#

cover:

  • platform: template
    covers:
    garage_door1:
#

seems like I should have to use cover.garage_door1

#

where cover.garage_door should not be found?

#

when altering covers do you need to restart anything? I wouldn't think so

dark dirge
#

You can reload template entities

#

But you canโ€™t just change it and expect it to be reflected without doing that

#

It seems like your just randomly change entity IDs and I donโ€™t know why

pearl iron
#

why?>

#

well I copied your code and it worked for one door?

#

now I need to replicate for door 2 and door3 and door 4?

dark dirge
#

Maybe I shouldnโ€™t have pushed my code

pearl iron
#

your code is what I had

#

as a matter of fact I didn't copy it I already had it from the link you just sent

#

its pretty common - I just couldn't get it to work with the custom card jaz

#

z

dark dirge
#

You need to create cover templates for each door and use the entities that they create

pearl iron
#

entites

#

yes

dark dirge
#

You used โ€˜Offโ€™ where you want โ€˜offโ€™

pearl iron
#

but my display says off all lowercase