#frontend-archived

1 messages · Page 133 of 1

split granite
#

That goes in your Lovelace config

spare meadow
#

are you sure? this is under the section 'Services'

muted inlet
#

service_data is only used in lovelace cards, not automations

spare meadow
#

any chanc eyou know what the proper keyword is?

muted inlet
#

in automations/scripts it's data or data_template

spare meadow
#

perfect. thank you!

#

that did it. simple.

muted inlet
#

also data_template is only if there's a template in the service data

#

but it'll work even if there's no template, it's just unnecessary

spare meadow
#

extra cycles where they are not needed, yeah.

clear dome
#

Thanks for the info @proper mesa did you have to mod your Fire at all with any launchers by rooting it?

strong falcon
#

I have this template that is working as expected, is it possible to add an "OR" and another series of "ANDS" after that? Essentially grouping two groups of AND statements with an OR so if either is true the sensor is on?

#
        value_template: >-
          {{ is_state('binary_sensor.workday', 'on')
             and is_state('binary_sensor.schoolhours', 'off')
             and is_state('binary_sensor.sleeping_weekday', 'off')
             and is_state('binary_sensor.someone_home', 'on') }}
muted inlet
#

yeah, just wrap each section of ANDs in parentheses

strong falcon
#

i was hoping that it would be that simple, thanks

twilit remnant
#

Heyo I have a question about sensors in automations, how to I access specific states from a sensor? Example https://prnt.sc/q20slf what do I need to enter to get the game for example, I'd like to have something happen if I start a specific game.

elder pendant
#

Those are called “attributes”. You can make a template sensor to pull out that attribute. Ask in #330944238910963714 if you need more information, this channel is for frontend questions

cold blaze
#

Hey there, I seem to be unable to add sensors to the top of my UI as small icons. I had the sensors in a card and a group and for some reason when I remove them from both they dont appear with my device trackers and weather icons at the top. Any idea as to what setting I might be forgetting ? Cheers !

mild veldt
#

They don't automatically move, thats up to you. Edit the view badges to add them

vapid field
#

Anyone available to help with a newbie lovelace issue?

cold blaze
#

@mild veldt thanks mate, ill give it a go. I though the badges were the tabs...still new to hassio. thanks again !

proud carbon
#

Hello guys. I love the scene editor. I added one scene as entity in my lovelace. I can enable it but can't disable it. Any idea how this could be done?

sacred quarry
#

Hi guys, I am playing around a bit more with the decluttering card in order to reduce the size of my views (due to graphs mainly) and for temperature I do use mini-pgrah-card with config-template-card, but I need now to "move" this into decluttering but without set static variables.. I tried this: - entity: [[entity]] - binary_sensor.night_time variables: - states['sensor.[[entity]]'].state

sacred quarry
#

@mild veldt by any chance do you know how could I achieve that?

mild veldt
#

i've never played with the decluttering card

sacred quarry
#

I see, I thought it was more related to "[ [[]] ]" rather then strictly the card 🙂 Thanks anyway

mild veldt
#

that's not how it would look to the decluttering card. I haven't looked at its source, but it is likely looking for the '[[' pattern. not '[*[', where '*' is a wildcard

polar kelp
#

wouldn't entity be sensor.whatever anyway?

mild veldt
#

are you trying to use variables inside variables @sacred quarry ?

#

🤷‍♂️ from that small snippet I have no idea what is going on and don't know anything really about the decluttering card

sacred quarry
#

This is an example: ``` type: custom:config-template-card
entities:
- binary_sensor.night_time
- input_number.night_time
- sensor.living_room_temperature
variables:
- states['sensor.living_room_temperature'].state

#

unless I am using the variables wrongly, I need to dynamically replace the variable from what comes from the decluttering card

#

the variable for decluttering card is [[entity]]

#

so in "entities:" it works perfectly, but in variables (if I am using them correctly) I need only to replace "sensor.living_room_temperature" and not the rest with the "[[entity]]" variable

#

That card allow to have a variable as part of text (ex: icon: 'mdi:[[icon]]') but I think in my case the problem is that inside "variables" I do already have the [ and somehow that causes an issue

#

Hope it make a little more sense now, if not let me know and I'll try again 😄

polar kelp
#

right click your card, select Inspect, make sure <config-template-card is selected and type $0._config into the console. See what you really get.

sacred quarry
#

The original with variables pre-configured or the decluttering card attempt of it?

polar kelp
#

I'm off to pick up the kids at daycare. Good luck!

sacred quarry
#

Daycare, they sound very young, you might need more luck than me 😉

#

Soon I am gonna have the same "problem" ^^

#
card: {type: "custom:mini-graph-card", name: "Temperature", icon: "${vars[0] > 30 ? 'fas:thermometer-full' : vars[0] …:thermometer-quarter' : 'fas:thermometer-empty' }", more_info: false, height: 150, …}
entities: (3) ["binary_sensor.night_time", "input_number.night_time", "sensor.living_room_temperature"]
type: "custom:config-template-card"
variables: Array(1)
0: "states['sensor.living_room_temperature'].state"
length: 1
__proto__: Array(0)
__proto__: Object``` Not sure what to look for in here tbh
#

@mild veldt if I use inside the card states['var[0]'].state and only sensor.living_room_temperature inside variables, would that work inside your card?

#

ok no.. I tested it 😄

kind shellBOT
sacred quarry
#
        entities:
          - binary_sensor.night_time
          - input_number.night_time
          - sensor.living_room_temperature
        variables:
          - sensor.living_room_temperature
        card:
          type: custom:mini-graph-card
          name: Temperature
          icon: "${states['vars[0]'].state > 30 ? 'fas:thermometer-full' : states['vars[0]'].state > 25 ? 'fas:thermometer-three-quarters' : states['vars[0]'].state > 20 ? 'fas:thermometer-half' : states['vars[0]'].state > 10 ? 'fas:thermometer-quarter' : 'fas:thermometer-empty' }"
#

it returns an error (quite briefly):VM573:1 Uncaught (in promise) ReferenceError: sensor is not defined at eval (eval at _evaluateTemplate (config-template-card.js:3305), <anonymous>:1:1) at HTMLElement._evaluateTemplate (config-template-card.js:3305) at config-template-card.js:3276 at Array.forEach (<anonymous>) at HTMLElement._evaluateConfig (config-template-card.js:3265) at HTMLElement.render (config-template-card.js:3256) at HTMLElement.update (config-template-card.js:2827) at HTMLElement.performUpdate (config-template-card.js:2285) at HTMLElement._enqueueUpdate (config-template-card.js:2237)

mild veldt
#

i thought you were doing stuff with decluttering card...?

elder pendant
#

Please don't repost the same thing that the bot just deleted for being too long

sacred quarry
#

Sorry @elder pendant I was trying to write a full sentence, that's why it was moved away so I simply splitted it.. I'll avoid that next time

mild veldt
#

if you're just doing config-template-card, cool, we can figure that out. if you're trying to mix and match with decluttering card...i'm not up for figuring that out

sacred quarry
#

Yes I am trying to use decluttering, but the problem is the use of the variable inside the config-template-card, if I can move the "states['XXX'].state" bit inside the "icon" bit, I can use [[entity]] as variable and this would fix my problem basically

#

Sounds confusing I know and I am sorry

mild veldt
#

so things work with config-template-card, but you're trying to move it to decluttering so you don't have duplicate configs, right? sounds like a decluttering card issue then and not something i know about

sacred quarry
#

Correct

#

I am not 100% sure where the problems "sit", but what I know is that if I move the "states[' '].state" inside the "icon" line, I fix the "compatibility" problem

#

Basically this bit here now is preventing me to have it working "${states['vars[0]'].state" , but it is also true that this approach is kind of a workaround

sullen nymph
#

Themes question- When using a dark theme and go to Configuration > Entities the list of entities and background color are both white. I am trying to find in themes what field I need to edit.

elder pendant
#

@sullen nymph the key is data-table-background-color

charred zealot
#

hi - installing a custom card for the first time. there's a snippet in the documentation which says to add the following to my lovelace config. how do i do this from the UI editor?

Add the following to resources in your lovelace config:

resources:
  - url: /community_plugin/weather-card/weather-card.js
    type: module
elder pendant
#

You need to use the raw config editor. While in edit mode click the same three dots that had the option to enter edit mode. You will see an option for raw config

charred zealot
#

ok cool, just found that

#

resources is a root yaml key?

#

i.e. indented to the left the most?

#

or does it go under the views: key?

elder pendant
#

Leftmost as in no indentation, yes

#

no, it goes in the root

charred zealot
#

👍

sullen nymph
#

@elder pendant That was it. Thanks. I added the key it wasn't in any of the themes.

elder pendant
#

It's a newer key

sullen nymph
#

Is there a list of keys somewhere?

sullen nymph
#

Got it. Thanks again for your help.

mellow lark
#

Just a quick poll - do you manage your lovelace ui via yaml or the UI editor?

split granite
#

Yes

mellow lark
#

Can you do both?

#

I thought if the mode was set to yaml the UI editor would stop working.

mild veldt
#

correct

modern breach
#

but usign the raw editor in ui mode works fine

split granite
#

You asked if folks used one or the other - and I do 😛

#

Most folks IMO should be using the UI editor. It's only folks who want to use secrets or anchors that should be using YAML. Oh, and holdouts like me...

proper mesa
#

@clear dome no my tablet isn't rooted although i'm thinking of it since it seems there's a 100% software way now for rooting it. Last time i checked it was only hardware - but i probably won't gain any speed in doing that. The cpu is cr*p anyway.

But i follow -that guide- that tells you how to skip the amazon account part in order to be able to install the google play service and play store.
I think that if you's download the APK and adb install app.apk it'd work.. but still, the play store might anyway come handy

vapid field
#

Hi all, Im having a whale of a time trying to get some lovelace things working. after failing on the slider-row thing, someone suggested using HACS, but that's tossing me an error I cant resovle " No module named 'aiogithubapi'" I've tried every which way to install it, and I see its added, but HA just doesn't. Im running Hassbian. Can someone help?

mellow lark
#

@split granite in my early playing with the UI editor, (I had done some yaml for lovelace during beta then walked away for a bit), it seems like the UI editor doesn't let you control the stacks (or I'm missing it).

split granite
#

Other than the two things I mentioned, you can do everything in the UI editor you can do with YAML

#

Heck, it has a raw editor in which you can enter YAML

mellow lark
#

Ok, maybe I'm missing how you group some cards into a stack (vert or horiz)

mild veldt
#

@mellow lark there is not a UI editor built for stacks yet, but that doesn't stop you from using stacks when in storage mode

split granite
#

Should be quite do-able with the raw editor?

mild veldt
#

or just the UI editor. it will just display the yaml code editor

mellow lark
#

So basically cut and paste the yaml from the other cards in the stack's yaml?

mint mauve
split granite
#

I'd start here

mint mauve
#

🙂 Ok, thanks. As far as I can see (and followed the steps on Github) I have done everything right to install card-mod, I have places the JS in a sub directory in www and I have entered the path in de raw config... I can't seem to use the styles in the cards.. I think I am missing something, is it correct that there is only one JS scrpt from Github I had to use? (casue there are many others) sorry if it's a 'open door' question, but I am learning 🙂

mild veldt
#

@mint mauve fairly certain it requires card-tools as well. check your browser console for errors

mint mauve
#

Ok, I will.. Thanks !!

#

I don;t see any errors in de homeass logging...

mild veldt
#

browser console, not HA logs

mint mauve
#

Sorry, misunderstood..will have a look

#

a lot of errors 😦

#

:8123/local/plugins/cardsmod/card-mod.js?v=1:1 Failed to load resource: the server responded with a status of 404 (Not Found)

#

stupid typo from my side in the path.... 😦 excuse me...

tepid flume
#

Hi folks,
I am trying to set up an entity-button which open and closes all my Somfy blinds. I started using the group "all_covers" but I got an error message saying: "Not passing an entity ID to a service to target all entities is deprecated. Update your call to cover.open_cover to be instead: entity_id: all" Now I try to adjust my entity-button but I am still struggling

#

I have now:

kind shellBOT
tepid flume
#

and get the error: invalid entity
any ideas?

elder pendant
#

I think you're looking for group.all_covers

#

or try what the error suggests

tepid flume
#

I used the group.all_covers first and got the error message I posted first

#

and trying what the error suggests leads me to "invalid entity"

#

and my button won't show up+

elder pendant
tepid flume
#

ok, I added now the entity: group.all_covers, so it shows the button will see if I still get the error message by tomorrow morning

polar kelp
#

@mild veldt card-mod does not require card-tools. None of the plugins in hacs (with the blue diamond) does.

#

(except card-tools in hacs, which kind of required card-tools to be installed to work...)

mild veldt
polar kelp
#

Oooh! Retropie-based?

mild veldt
#

Oh yeah

polar kelp
#

sweet!

mild veldt
#

My joysticks are way too clicky though

#

Went too cheap with them

polar kelp
#

Then that will probably rectify itself soon

brazen basin
#

anyone know what I need to do to get my HA views cast to my Lenovo Smart Display?

#

not clear on the instructions

sacred quarry
#

Hey there, anyone can help me understanding if I am doing something wrong here? (presumably yes because it not showing up :D) ```

  • entity_id: sensor.house_alarm_siren_link_quality
    name: House - Alarm Siren - Link Quality
    options:
    type: "custom:secondaryinfo-entity-row"
    secondary_info: 'Battery Level: [[ if(sensor.house_alarm_siren_link_quality.state != "unknown", sensor.house_alarm_siren_battery.state , "Not Available") ]][[ if(sensor.house_alarm_siren_link_quality.state != "unknown", "%" , "") ]]'
    tap_action:
    action: none
    not:
    state: "unavailable"
#

Sorry, I missed that it is an auto-entities card

split granite
#

entity_id 🤔

#

I mean, given you only posted a tiny part of the card, it's possible that you've only posted the filter part... 🤷

sacred quarry
#

Ah! I found the problem 😄

#

it was the "name:" that was supposed to be in options with the rest 😄

hexed bramble
#

I have installed https://github.com/dnguyen800/air-visual-card using HACS, but I'm having trouble understanding how to actually activate the card. I have toggled manual UI editor and I assume I should add some rows via the raw config editor

#
Click on Install, and be sure to include the following in your ui-lovelace.yaml.
- url: /community_plugin/air-visual-card/air-visual-card.js
  type: js
#
Write configuration for the card in your ui-lovelace.yaml and list your AirVisual sensors. An example is provided below:
  - 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.dark_sky
    city: 'San Francisco'
#

What do I actually need to write in the raw config editor?

mild veldt
hexed bramble
#

Okay, thank you for the help. So as the second code block of my code states that I need to write the configuration for the card in ui-lovelace.yaml, it is not possible to use with raw config editor?

mild veldt
#

ui-lovelace.yaml === raw config editor

#

they are not different

hexed bramble
#

Okay. Well, didn't get it to work 😦

#

Apparently the author has his configuration on github, maybe I'll try to look from there

mild veldt
#

errors in your browser's console?

hexed bramble
#

Yeah, some errors there. Maybe I should try with some other card to see if the issue is related to this card or my implementation. Thanks

mild veldt
#

well what are the errors?

hexed bramble
#

air-visual-card.js:164 Uncaught TypeError: Cannot read property 'attributes' of undefined
at HTMLElement.set hass [as hass] (air-visual-card.js:164)
at HTMLElement.value (hui-view.ts:61)
at HTMLElement.value (hui-view.ts:334)
at HTMLElement.t.addEventListener.once (hui-view.ts:68)
at r (fire_event.ts:76)
at create-card-element.ts:111

#

Some other custom card works fine, so there must be something wrong with that one

mild veldt
#

sounds like one of the sensors you provided to the card doesn't exist in your instance.

hexed bramble
#

Seems like that, fixed the sensors but now the card states that the custom element does not exist

#

However, chrome console is empty and home assistant log is empty

#

however, I can access the plugin using the url I have given in resources

#

I'll just give up with this card, thank you a lot for your help

mild veldt
#

it was also throwing errors...might try clearing your browser cache

hexed bramble
#

Didn't help :/

mental kayak
#

could someone potentially help me with adding css to a card? I'm using a custom card and I'm trying to style it with card mod but I'm having no luck regardless of how I edit the code

#

just trying to change the color of the font to red and can't even get that done 😦

#

Here is my simple card:

#
cards:
      - entity: light.kitchen
        type: 'custom:slider-entity-row'
        name: Under Cabinet Lights
        toggle: true
kind shellBOT
#

@mental kayak 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

mint mauve
#

Hello all, I have the card-mod working (at least I can change font colors) but what I want to achieve is formating the cards and the entities so that they have a equal size on the screen... I just don;t get it how to do this, havent found a good example neither...anyone a clue ? Now the cards are all different sizes and that is just not nice 🙂

mental kayak
#

hey @mint mauve did you get that working for a custom card by chance?

mint mauve
#

@mental kayak not for a custom card, but did you get any result on other cards with card-mod? If you don't perhaps the setting to the JS file in raw config isn't right? at least it was for me the problem 🙂

mental kayak
#

Oh good idea I will check that...

#

@vapid field it does work with other cards just not custom cards...

mint mauve
#

Thanks @mental kayak !!

mental kayak
#

no problem!

#

also I had posted a question before about color bleeding with rounded corners for a card and found the answer to the issue and fixed the color bleeding by using overflow:hidden; in the css

broken plover
#

For some reason my lovelace won't use files I have locally for pictures in the picture elements card, is there something more to it than just typing the /path/inside/the/docker/container?

mild veldt
#

Yes. Must be in www folder inside configuration folder

#

Are then references as /local/mypic.png

broken plover
#

Where is the www folder located? Or do I have to create one?

polar kelp
#

Yes. Create /config/www and then restart hass.

#

After creating it, you won't need more restarts as you add files to it.

errant birch
#

Is there a way that I can make the font size smaller ?

#

I'm trying to set up a central control panel but it only has 1440*900 resolution (19") and the letters are just too damn big

#

adjusting font size in the chromium browser does not help

wheat current
#

Ctrl + -

errant birch
#

actually, that seems to do the trick .. thanks for pointing out the obvious 😉 🤦‍♂️

#

another smaller issue.. I'm using a custom banner card with following settings

          - background: mediumpurple
            entities:
              - person.papa
              - sensor.papa_batterij
            heading: "\U0001F468 PAPA"
            row_size: 2
            type: 'custom:banner-card'
#

on all my devices this displays an icon of a man next to the word "papa"

#

but on the raspbian I'm using to run the control panel it just gives me a rectangle

#

even though both browsers claim to be using the same font

sacred quarry
#

Hey there, does anyone knows if it's possible to combine multiple "not" condition inside auto-entities?

mental kayak
#

anyone know why when I click on 3 buttons in the top right of lovelace the option to configure the UI doesn't pop down anymore?

#

using Chrome on my macbook to modify...

#

was working and then just stopped

#

and lovelace mode isn't yaml

polar kelp
#

@sacred quarry yes

sacred quarry
#

Hi @polar kelp , I knew you might know, didn't want to disturb you over and over again 😄 I tried to use not with two different "state:" lines but it didn't seems to work, I also tried two "not" options separately but again, no luck

#

test #1

                  options:
                    name: CC2531 Router - Link Quality
                    tap_action:
                      action: none
                  not:
                    state: "unknown"
                    state: "unavailable"

#

test #2

               - entity_id: sensor.cc2531_router_link_quality
                  options:
                    name: CC2531 Router - Link Quality
                    tap_action:
                      action: none
                  not:
                    state: "unknown"
                  not:
                    state: "unavailable"
#

Of course I was able to achieve the result using state: "un*" but I was curious to understand if I had more "control" on it 🙂

sacred quarry
#

Oh so I have to repeat the whole "entity_id" block?

#

That I did find out but I thought there might be a "cleanest" way 😄

#

Because doing that way of course it will show the same entity twice when it's not any of those two states, both conditions would be true and it will be show twice 🙂 Unless I missunderstood ^^

mental kayak
#

tried resolving my issue and so under .storage I renamed my lovelace file restarted and got a whole new lovelace as if I started over, so I then went to .storage and removed the new lovelace file and renamed my old file back to lovelace and restarted...

#

now my lovelace ui just gives an error Expecting value: line 136 column 33 (char 5709)

#

anyone have a clue?

#

theres an option to reload lovelace however goes back to the same error

#

guess I'll delete the file and start over

errant plover
#

You probably only had to Ctrl+F5

polar kelp
#

@sacred quarry I think what you need is ```yaml
include:

  • entity_id ...
    options:
    ...
    not 1:
    state: "unknown"
    not 2:
    state: "unavailable"```
#

Or... I guess yaml not: state: "un*"

sacred quarry
#

The un* works as I wrote, but "not 1" and "not 2" are actually going to work?

polar kelp
#

It should. That would match entities which satisfies have the correct entity_id AND is not in unknown state AND is not in unavailable state.

sacred quarry
#

I'll give it a try 🙂 Thanks!

#

It works! Thanks 😉

atomic glacier
#

Getting these HACS Warnings and browser-mod errors: https://imgur.com/a/2xoghTf
As soon as UI loads they pop up and the initial loaded page has no browser-mod actions.
any clue where to start? @polar kelp
Ignorable warnings for HACS? @wheat current

wheat current
#

In most cases warnings can be ignored

mossy otter
#

any idea how to make a "friendly picture" of my sensor so that it's just a big picture that shows up?

#

so just the icon of the sensor rather than the value itself if that makes sense?

ancient harness
#

there might be one already created to assist? would be pretty cool

#

i can see a valuable use for that concept

errant plover
main night
#

Can you horizontally stack entity buttons? I need a row of buttons but when i try to use a stack it keeps saying invalid type "entity-button".

gilded veldt
#

I am looking for an automation that will check that all the doors are closed, and if any is open it will send a notification or announce what door or doors are still open

#

does any one have anything like this or close?

errant plover
#

@main night Yes you can. Upload your card config to pastebin and post a link here.

polar kelp
#

@atomic glacier It may be a race condition thing... I think I know how to fix it.

#

Can look at it in a few hours or so

sacred merlin
#

Gettting something similar:

#
2019-11-29 17:22:40 ERROR (MainThread) [frontend.js.latest.201911196] http://192.168.3.122:8123/frontend_latest/app.2bfaeb1c.js:724:266218 SecurityError: Attempt to use history.pushState() more than 100 times per 30 seconds
civic stream
#

Is there a place where you can put feature requests? 🙂

kind shellBOT
split granite
#

It has a feature request section

civic stream
#

Thanks!

#

Voted!

steady jolt
#

I would like some inspiration on a lovelace dashboard, do you know another cookbook other than the one on the home-assistant website?

split granite
#

The cookbook doesn't have examples of dashboards

#

The forum, and people's GitHubs... that will

steady jolt
#

in some cookbook there's some screenshot of people interface that's what i meant by that

split granite
#

There's three links to UI things, and links to a host of GitHubs

#

The search in the box at the top of the page will take you to many more

steady jolt
#

Thank you i'll look into it 🙂

mental kayak
#

anyone know why you might not be able to click on the ui config anymore for lovelace? Used to be able to click on it to edit my cards now I click on it and nothing happens...

#

almost like my config somehow broke it

meager grotto
#

Can I open a link defined in a markdown card in a new tab? A new tab of the browser not of HA.

ancient harness
#

new to HA, and am not 100% sure what is possible with what you're trying, but if you are able to use plain HTML in the markdown (which markdown SHOULD support, although it's not exactly a followed standard), in which case you'd do: <a href="http://google.com" target="_blank">click here</a>

#

and with CSS you can make that look fancy

#

but again, it's going to depend on the markdown engine used within HA, as not all are created equal :S

polar kelp
#

Sorry, Dino. I'm just not feeling it tonight... I hope it's not breaking for you.

tacit cave
#

@obtuse lantern what's the issue

obtuse lantern
#

Hey Petro, I'm trying to create a custom-card for my blinds. And am running into an issue where I want to create a link (a clickable object in home assistant) to call an IFTTT service. but I can't seem to get the call to work

tacit cave
#

Lemme look

#

@obtuse lantern Why isn't any of your service data in quotes?

midnight frigate
#

@polar kelp can auto-entities show all devices/entities grouped by areas?

#

I've been trying to get it to work but no luck

polar kelp
#

It can show all entities for each area, but you'll have to specify which one manually

midnight frigate
#

ah, ok

#
      - type: custom:auto-entities
        card:
          type: entities
          title: All areas
          show_header_toggle: false
        filter:
          include:
            - area: "*"
              options:
                type: custom:fold-entity-row
#

I was hoping something like that could work

#

In trying to do a battery low card, is there a way to make it show the parent device name?

#
      - type: custom:auto-entities
        card:
          type: entities
          title: Battery below 20%
          show_header_toggle: false
        filter:
          include:
            - domain: zwave
              options:
                secondary_info: last-changed
                type: custom:fold-entity-row
              attributes:
                battery_level: "< 20"
#

this is what I have now and it shows all of the sensors for a given device that are allow below the setpoint @polar kelp

obtuse lantern
#

@tacit cave I can change to quotes.

viral sorrel
#

is there a guide on how to group cards together that goes beyond the vertical/horizontal stack documentation? specifically how to best go about this when utilising the web based lovelace configuration

wraith crypt
#

I bought a google (nest) home mini yesterday and i'm loving it... only one problem is that every theme I've tried aren't translating when casting. accent colors and background colors stay default yellow/white

#

has anyone else run into this? are there any known-working themes when casting? what should I look for?

viral sorrel
#

can vertical stack not work with custom cards?

errant plover
#

Yes it can.

kind shellBOT
obtuse lantern
#

I am trying to get this service to call if I click and hold. Should I wrap it in a div container like below... or not?

slender wraith
#

My Lovelace "Unused Entries" is empty - I wonder why?

wheat current
#

your theme?

slender wraith
#

maybe - I fixed themes all night yesterday

#

But maybe midnight_blue is broken too

errant plover
#

@slender wraith Mine too. Even on the default theme. There should definitely be unused entities too.

wheat current
#

My list has items 🤷‍♂️

errant plover
#

Yeah it does not seem to be a common problem.

#

No errors in the log or system log. Everything else is tickety-boo.

#

Not that fussed. I never use it.

wheat current
#

I've "used" it 2 times, to check if it's there after posts in this channel 😛

slender wraith
#

@wheat current I never use it because it never works 😋

tacit cave
#

@obtuse lantern the dictionary needs to have quotes around all strings inside it:

this.hass.callService("ifttt", "trigger", {
      "event": "all_blinds_up_request"
    });
obtuse lantern
#

I did that, but the call doesn't even seem to be activating

hexed bramble
#

I'd like to display a web page on my dashboard. However, I'd like to only display a part of the web page. I know that I can achieve this with html iframe, but is it possible to actually use the iframe code with a card to achieve the result?

wheat current
#

1: Save that in www/
2: Use http(s)://instance/local/something in the Lovelace iframe card

hexed bramble
#

Got it working, thanks

polar kelp
#

Is that the Gulf of Finland?

hexed bramble
#

Yes

#

@polar kelp could you give me a little pointer how to change the width of a iframe card? I tried to inspect the element and ended with

style: |
          ha-card {
            width: 200%;
          }
#

But that doesn't work (the spaces are wrong above but right on my lovelace editor)

polar kelp
#

Card widths are limited by the layout. If you want to change it, your best bet is using panel-mode.

hexed bramble
#

Ahh, that sucks

polar kelp
#

Second best is layout-card

hexed bramble
#

Well, thank you for helping me!

sinful socket
#

Question - is it possible to remove the "Home Assistant" name from the UI top left?

#

I know tihs is a lovelace forum - but thought this would be the appriopriate place to ask - since it is the front end 🙂

dark dirge
#

or at least shrink the header so that space is gone

#

@sinful socket

sinful socket
#

Thanks @robc

polar girder
#

Hi, im quit new to home assistant and i'm having a hard time configuring the views. I tryed to replicate something done in the demo from Isabella Gross Alström. I want my presence detection for my systems to change colore if the system is offline. I allready set up the template sensors displaying Online or Offline and i copyed the customize_glob template for the sensors. If i look at them the template has been applyed but hs_color has not been set.

#

I'm also not really sure about the hs_color option. I was not able to find anything about it in the documentation.

dark dirge
#

here's an example from my customize.yaml using hs_color:

#
cover.garage_door:
  templates:
    hs_color: if (state === 'open') return [0,100] ; else return [120,100];
    brightness: return 100;
polar girder
#

Thanks, i think i need to look into that some more, i thing i got it installed and activated but still nothing

dark dirge
#

3 things to check: go into dev tools (devtools)->Info and see if it mentions CustomUI, make sure that the state of the sensor changes, and force refresh in the browser (ignore cache)

polar girder
#

Thanks, it was cached 🙂

#

thank you very much, it works great now. I'll look into what other stuff custom-ui can do.

dark dirge
#

👍

unique jetty
#

I feel like this is super basic, but how do I get all the sensor data from my phone to stop from showing up on the homepage?

#

nm, im a goof

vapid field
sullen stream
#

ok... I finally have an interface question.... not sure if it's a good one. I have a sensor that is working and all that sends me notifications, all is good. But..... on its' tile there is a slider button that toggles to on/off..... it seems to have absolutely no effect. Is this common? and have I wired up something incorrectly. Thanks in advance.

#

@vapid field is that a good link for sharing screenshots? do you pay for that service?

vapid field
#

🙂 It's just my ShareX dump

#

People didn't like going to my proxy URL lol

sullen stream
#

forgive me for not completely understanding... so share X is a screen capture tool for Windows... I can grok that.... but.... the link etc?

#

the reason I ask, is I find myself wanting to share screenshots from time to time and you've done it.

vapid field
#

Right right

#

so ShareX is the program I use and I use a " custom uploader " inside of the app.. You can select imgur ect but I would rather have control over where it goes because of what I share sometimes and I would like to go back and delete from the server 🙂

#

I could share my php script, all you would need is a webserver and a domain..

sullen stream
#

I have a domain.....so the webserver could be hosted or you mean something like the Pi with HA on it?

#

I have both.

vapid field
#

I mean.. You could use the Pi but I personally just would want a separate device if I'm going to give the URL to strangers

spare meadow
#

any suggestions for missing icons on an older tablet? works fine on every modern device... but this one android 7.1 it doesn't show some... updated the webview though... no luck... https://imgur.com/a/qQOsMfY

#

i can't even see the play/pause button on the media controls 😦

sullen stream
#

@vapid field ok.... if you want to share the script.... plus any links to setting up a pi server for sending strangers to see screenshots would be appreciated.

#

ok just saw the pastebin....

vapid field
#

@sullen stream also wouldn't suggest running that on your home instance.. I run that on a public cloud server, I wouldn't want to give out my home URLs / IP

sullen stream
#

👍

dry ingot
#

does anyone know how to open local ip address on the same network of home assistant but remotely (using duckdns, meaning when not on same network)?

errant plover
#

Your local ip address is not routable over the internet. You would have to use a VPN.

split badger
#

@dry ingot You could consider forwarding the ports you use to access that device

wheat current
obsidian orbit
#

If I want to have an raspberry pi with touch and showing HA but only one tab and don't show anything else is that possible? Like have a user that has its own space and tabs?

#

Or is there any other frontend that is more suited to do this that you can connect to HA?

mild veldt
obsidian orbit
#

@mild veldt Thanks, hade missed that we had that one to play with. That will help a lot

opaque roost
#

I accidently clicked that i want to manage the lovelace interface myself. How do i get back to letting HA manage the interface?

mild veldt
#

@opaque roost delete .storage/lovelace file and restart

opaque roost
#

Thanks!

paper shuttle
#

is it possible to pull exterior temperature from darksky and feed it into a history graph on lovelace? I have a graph showing historical temperature for 2 rooms pulling from motion sensors and thought it would be interesting to see how the changes track with the exterior temperature.

mild veldt
#

@paper shuttle use a template sensor to grab the exterior temp from the darksky sensor

scenic mist
#

hi all, is it correct that the main brightness control of an mqtt light has different values than the light card itself?

mild veldt
#

if that is the same light, no

scenic mist
#

it is the same light

#

both wheels dont seem to update at all when triggerd from another source (tasmota web ui)

#

well tomorrow another day

granite bison
#

Where would I store images that are referenced by a custom card/plugin?

#

Currently have an image (netflix.png) in the /www/ folder and am referencing it with /local/netflix.png but no image is appearing.

#

Nevermind... I just had to restart 🤦‍♂️

mental kayak
#

anyone ever see a vertical slider for controlling lights instead of the horizontal one?

#

or know how to modify the slider entity to make it vertical?

ancient harness
#

hmm, if you can apply simple css, this is something i knocked out super quick: https://jsfiddle.net/m8vsbgfk/1

may or may not work depending on the document layout of the rest of the page, but just a proof of concept that css could change stuff if needed 🤷‍♀️

I've yet to install, brand new to the project and researching like crazy

vapid field
#

hello im having trouble getting a HACS theme to work.. i did all the steps in the instructions but the theme doesnt apply to my HA.. would anyone be so kind and give me some quick help? 🙂

vapid field
#

got it to work thanks anyway 🙂

thorny verge
#

is there any way to make a card scrollable?
Want to use the custom calendar card, but have it take up a set height, and still be able to scroll through 7 days.
Right now I achieve it by creating a view for just the calendar, the showing that view in a iframe, but it is not ideal with reloads.

mild veldt
#

@thorny verge restricting the height with card-mod might work. Not sure

thorny verge
#

I did try that, but then it sometimes cuts the card off at a weird spot, doesn't look quite right.

#

Plus scrollable is perfect for a calendar card. Works in iframe, just not great, and didn't know if there was a better way.

mild veldt
#

@thorny verge you might need to add overflow: scroll as well

thorny verge
#

Oh, sweet, is that added in style: ?

mild veldt
#

yeah, card-mod

thorny verge
#

I have this, doesn't seem to work, shows full card height

              ha-card {
                height: 100px 
                overflow: scroll
              }

mental kayak
#

@thorny verge what if you use max-height?

shy sail
#

Hi i'm trying to get monster-card or auto-entities working but both dont work and restult in a "cannot read property 'setConfig' of undefined". And the preview states "No card type found". i can see in browser debug mode both files are loaded. any idea what i could check?

thorny verge
#

@mental kayak works mostly the same as height, but height looks better on a refresh (max-height shows small height until redraw finished)
@mild veldt
But, got it working with overflow: scroll... thanks, looks awesome!
This is what I needed;

  ha-card {
    overflow: scroll
  }
  ha-card {
    height: 300px 
  }
mental kayak
#

perfect

mild veldt
#

@shy sail monster-card is deprecated. Use auto-entities

shy sail
#

Yeah tried that too but got the same errors...

karmic heron
#

Whats a good card to use if I want to display all my FireTVs as media players?

near crypt
#

It is possible in Lovelace to show camera's still image (with xy sec to refresh) and on click show live view?

For live I can use:

camera_view: live
entity: camera.hikvisionout
type: picture-entity```
mental kayak
#

@karmic heron Maybe mini media player

karmic heron
#

@mental kayak Hello, will that let me put them all on one page?

mental kayak
#

just add multiple cards on the same page

civic stream
#

Is it possible to edit the sidebar?

#

I know it's possible to add things, but can I remove "Map" for instance?

split granite
#

To remove map you have to disable map:

civic stream
#

Ok! What about history? I want history recorded to be able to click a specific device and see it's history, but I don't want the sidebar "History" item. Possible?

#

That page takes several minutes to load, btw. Not even running on a rpi.

elder pendant
#

remove history: from your config

civic stream
#

That won't remove history for the devices, just the sidebar item?

elder pendant
#

Yes

civic stream
#

Removing history: didn't remove the sidebar item

elder pendant
#

Did you restart home assistant?

civic stream
#

Yes

elder pendant
#

Do you have default_config: still?

civic stream
#

No

#

I do have history_graph:

#

How to I write in code in discord?

kind shellBOT
#

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

devout hatch
#

Why I cant figure it out with layou custom cards an image entity

#

the problem is at - type: entities entities: - type: picture-glance title: Sony TV Living room entities: - input_select.tv_input - switch.terace_wall_light image: /local/sonyxf75.jpg

#

I am receiving red box with Invalid config given.

elder pendant
#

Because you're trying to put a card config under entities?

mental kayak
#
              type: picture-glance
              title: Sony TV Living Room
              entities:
                - input_select.tv_input
                - switch.terace_wall_light
                - lock.front_door
              image: /local/sonyxf75.jpg```
sullen stream
#

hello, I'm trying to setup the picture card so that I can put items on a floorplan and see their status etc. I'm following Juan M Tech's how to.... but when I refresh the UI no joy. Would someone be willing to look at my yaml to see why the card is not showing? Thanks https://pastebin.com/yyJKFjYG

#

Do I need to manually add a view or something?

#

Here's where I'm losing his train of thought. " then, open the lovelace.yaml file and set up a separate View for the floor plan. You also want to set up the View as a panel so like that the Picture Elements card displays in full width." ....
The reason is: I do not have any "views" in my ui-lovelace.yaml file.

#

per the docs do I need this in my configuration.yaml file?

lovelace:
  mode: yaml
#

What have others done for their floorplan cards? Looking for a best practice here. The thought of doing all UI stuff in .yaml sends shivers down my spine.

mild veldt
#

@sullen stream yaml mode is not required

sullen stream
#

@mild veldt thanks I'll check it out

obsidian orbit
#

I'm about to set different visibility on different views but I can't find where I can configure it. I can't do that from the UI, where to look for the config file?

slow wave
light vortex
#

@slow wave correct custom component is also installed. I’ve check everything so many time.

polar kelp
#

@obsidian orbit dotsvertical -> Configure UI, then dotsvertical -> RAW editor

obsidian orbit
#

@polar kelp Thanks, feels so stupid now 😐

polar kelp
#

It's not obvious.

obsidian orbit
#

Maybe not, but sometime i felt I should just have pressed there. But I feel that the buttons sometimes aren't where I expect them to be

#

But I see so much progress since I started to use this. So many things are in the UI now days so I never use the raw editing. I guess this is something that will be in the UI sometime in the future also

slow wave
#

@light vortex I just tried, I added the sensor, that gave me a sensor I see in devtools states sensor.plex_recently_added and I now add the custom card to my lovelace, lets see

#

And that works fine here

light vortex
#

@slow wave okay so my sensor is actually not showing up. What method did you use to add it

slow wave
#

This is all I have

#

plus installing the custom component and lovelace custom card via HACS

light vortex
#

@slow wave I’m going to try to do it over

polar kelp
#

@obsidian orbit It definitely will

atomic glacier
#

https://imgur.com/a/2xoghTf could I possibly use card-loader to put a bandaid on this for the time being? Not 100% positive, but it may be the culprit of my browser crashes👩‍🔧 @polar kelp 🤔 although, since it appears on a view that doesn't contain any browser-mod actions, probably won't help...🤔

unborn cedar
#

I have a Winddrection sensor, giving me the angle of the wind. Is anyone using a card for that?

sweet sail
#

Hi, is there a limit how many pages can be added in overview ? I have 11, and I can't add new one. How are you solving layout, if you have 2+ floors ?

atomic glacier
#

@sweet sail AFAIK, you can have as many as you want. I was up to 46 views at one point, but moved all of my views to popups and I only have 1 main view now.

#

@unborn cedar really depends on how you want it to look and where you want to place it in the view. entities-card ? custom:weather-card ?

unborn cedar
#

@atomic glacier i found a template helping me out 😄 thanks 🙂

spare meadow
#

is there a way to display a card only if a current front-end theme is set?

#

'conditional on theme'

#

i feel like the conditional card is for entities and the theme isn't stored in an entity... maybe there is an alternative way though?

unreal saffron
#

Can anyone tell me if there is an easy way to change the open and close icons for a contact sensor?

split granite
#

With a device class

vapid harness
#

Is the only way, to edit a card in lovelace panel mode by deactivating panel mode for editing purposes?

mild veldt
#

@vapid harness use the raw-editor

vapid harness
#

@mild veldt The raw editor? Do you mean editing the yml file through a console?

#

ahh

#

i found it. thank you!

#

wow, it even has auto-indent. awesome!

next sparrow
#

Hi. I have the following problem: I have a wall tablet with Chrome (Win 8.1) and HADashboard. If the screen turns off after one minute, the status and time will not update. When I open HADashboard in the Internet explorer everything is going great, but I can not switch anything. Hadashboard and Lovelace makes no difference. Chrome or Firefox also makes no difference.

mild veldt
#

Well this is lovelace channel, so let's focus on lovelace. My guess would that you machine goes to sleep and the websocket connection gets severed within the browser

next sparrow
#

@iantrich#6541 I want to use Lovelace. I only tried HADashboard because I wanted to know if the problem is there.

mild veldt
#

Sounds like a system/browser issue. A few solutions that come to mind:

  1. Reload the page when you wake the device up
  2. Disable the screen/sleep function
  3. Use a screen saver
sacred gyro
#

I installed HACS, and installed the Midnight theme. It works, all of my cards are dark black, but the main UI is still all white. Any ideas? Did a full restart.

distant stag
#

it might be a basic question, but i used to let homeassistant auto manage what is on my ui

#

it was easy for when i was debugging

#

but i turned it off and i have to idea how to turn it back on

elder pendant
#

Stop home assistant, delete .storage/lovelace, restart home assistant

distant stag
#

thanks!

atomic glacier
#

@sacred gyro sounds like the theme might need updating, but that's just a guess without seeing the actual themes .yaml

split granite
fiery coyote
#

Hey guys, is there an easy way to combine mdi symbols with titles in lovelace? For example the server mdi and then the name Server

elder pendant
#

There is no built-in way to do that. You pick icon or title. You might be able to find a plugin that does that

fiery coyote
#

Thank you for the fast answer @elder pendant

sacred gyro
#

I got casting via lovelace to work to my Chromecast, but it is in low resolution. If I cast from a browser I can see like 20 elements onscreen, but from lovelace maybe 4 or 5.

neat flume
#

\

#

'

vapid field
#

How to add custom components to the lovelace ui?

sullen stream
#

Do you mean cards... or views....or?

vapid field
#

well, a custom component 🤔

sullen stream
#

How to add the nightlight switch to my WLED card in LoveLace?

sullen stream
#

@viral sorrel hi

viral sorrel
#

the search for floorplan wisdom begins

sullen stream
#

is where at the very bottom they say:

Then add the following to your Lovelace configuration:
#

I interpret this as adding it to the /config/ui-lovelace.yaml file...

viral sorrel
#

yeah I see.. that doesn't quite make sense as is

#

that looks like a view

sullen stream
#

would that mean then that the "default_config:" setting in the configuration.yaml file was turned off?

#

and what ramifications would there be since the comment says that that controls the (frontend, api, etc)?

viral sorrel
#

I'm currently going with using the web editor and that would use the raw editor.. I presume it should still work with a manually configured ui-lovelace.yaml

#

the pasted part looks like one view in the config

sullen stream
#

ok.... so you're pretty sure you need an .svg right?

#

I guess I'm looking for the best way to do it... and there doesn't seem to be one. I assume you have more HA experience then me as I've only been doing this for about 3 months.

viral sorrel
#

absolutely.. at least for this component

sullen stream
#

ok... so what about the Juan M Tech is different?

viral sorrel
#

I thin he's just using a method that doesn't require a custom component. fully manual

sullen stream
#

it looks like he did a simple image and used CSS positioning to place buttons over it.

viral sorrel
#

I do wish someone did a comparison and tutorial of the different ways of doing this along with the pros and cons

sullen stream
#

do you have multiple views in you HA overview?

viral sorrel
#

yeah but mine is currently a mess.. it's currently all ad-hoc.. having trouble coming up with ways I'm happy to represent things so that I don't have to keep jumping between views.. a floorplan might just be that

sullen stream
#

Is there a simple way that we could test out Juan's way and/or the one you shared quickly and then revert back?

viral sorrel
#

when he wrote that tutorial the custom component didn't exist yet (for lovelace)..

sullen stream
#

where to get the custom component?

#

add-on store?

viral sorrel
#

well the one I shared has the simple example which should jsut work.. I may try it after lunch

#

I got it via the HACS custom component

viral sorrel
#

yep.. that's the one.. should be possible to just tweak it a step at a time to something closer to your config just to see how it works

sullen stream
#

ok, I see the latest commit was May 13th.

viral sorrel
#

yeah I don't know if that's because it's abandoned or because it does everything required 😛

sullen stream
#

is HACS an add-on?....

viral sorrel
#

yes

#

well.. it's a custom component

#

how are you running home assistant?

sullen stream
viral sorrel
#

by addon are you reffering to hassio addons?

#

ok

#

it's not an addon

#

it's a custom component.. so you need to manually install it as per web page

#

but after that other custom_components can usually be installed via it

sullen stream
#

which webpage?

viral sorrel
sullen stream
#

ok... thanks

#

thanks for your time...

viral sorrel
#

np.. good luck.. now time for lunch 🙂

main night
#

Can someone help me find where the syntax so I can set colors to a card for a condition. Eg: I want to color the card or have an image for states likes "low" "moderate" "extreme".

#

I have done serverity for the the numbers just not words

young seal
#

I see a weather card in a fresh install of HA. How to setup in my build with out doing a fresh install?

polar kelp
young seal
#

@polar kelp thank you

sacred gyro
#

Is there a way I can configure lovelace to only use 2 columns? It is showing 4 on my resolution and making some of my cards really tiny

shy sail
#

Hi trying to use auto-entities but getting error "Cannot read property 'setConfig' of undefined" with this card config:

    show_header_toggle: false
    title: Nefit entities
    type: entities
  filter:
    include:
      - entity_id: '*nefit*'
  type: 'custom:auto-entities'

any ideas?

elder pendant
sacred gyro
#

ok i am using horizontal stack somehow i missed vertical stack 😛

#

well that didnt really give me what i wanted. i have 2 columns now, but now there is just wasted space to the left and the right of them. the cards themselves stayed the same size

#

can i set the width for one of the columns larger?

elder pendant
sacred gyro
#

i hate to be blunt but that mode is useless. the first card is full width but none of the others are rendered? so i only get 1 card?

elder pendant
#

You have to put everything in a stack

tawny rapids
#

right, and the "first card" in this case would be your vertical stack

sacred gyro
#

oh ok! i guess i never thought of combining the two. trying now, thanks

polar kelp
elder pendant
#

That's why I said with a combination 😉

boreal charm
#

Hey everyone! Anyone ever have the options menu when in the configure UI Page disappear? I recently had to restore my installation from a backup and have been in the process of setting a few things back up and can't seem to get to the raw config editor or even access the options menu it normally is in anymore...

Looking for suggestions!

mild veldt
#

@boreal charm sure you're not looking at the states UI? In your web address is it /states or /lovelace?

boreal charm
#

@mild veldt It's for sure love lace its domain/lovelace/phone-home where phone-home is one of my page urls

pallid needle
#

Is there a way to edit a page that is in panel mode?
or do I just need to disable panel mode each time

boreal charm
#

@pallid needle I've always had to disable panel mode each time. It is a bit of a pain...

#

But panel mode is nice! 🙂

pallid needle
#

yes

#

I'm using it for floorplan

boreal charm
#

That's my plan as well!

#

Walmart was running a deal on onn brand 7" tablets @ $28 🙂 I bought 3.

#

They will now be my wallmounted HA Control Panels.

pallid needle
#

oh nice

boreal charm
#

Yep! Just need to figure out why I can't access the raw configuration mode. 😦 Need to edit my CCH rules so I can lock each tablet to a specific page... lol

jade sable
#

hi, quick question that I knew the answer to once upon a time: How do I reference repeating code? like If I have a bunch of cards that all use the same code, I know there's a way to write the code once and then reference it

elder pendant
#

If you use YAML mode, yes

jade sable
#

yes but how

elder pendant
#

!include

jade sable
#

like && or something

#

no you define it at the beginning and then reference it later in the yaml

elder pendant
#

Oh there might be something with YAML that makes it possible. Best to check the yaml docs. Would be easier to just use include imo though

jade sable
#

YAML anchors and aliases

elder pendant
#

Seems messy

polar kelp
#

Note that the yaml parser of home assistant does not support redefinition of node anchors unless you have lovelace_gen installed.

jade sable
#

thanks @polar kelp

#

really cleaned up my media card to define stuff once and reference it

light vortex
dry oxide
#

After enabling the Android location tracking feature my Lovelace has had a stroke. Already posted in #android-archived but figured I'd see if anyone else has seen what follows:

#

Well NVM, I can't post photos apparently

dry oxide
#

Update on my issue: appears to be a caching issue on my phone. Using an incognito browser showed everything correctly. Hmmm

#

Update: solved the issue. Accidentally had States as the UI instead of Lovelace. Whew 😌🤔

green raft
#

Is it possible to use Jinja templates in Lovelace? Trying to use {{ state_attr('media_player.playstation_4','entity_picture') }} in my UI and it's returning NULL, even though it definitely exists.

split granite
#

Not in any of the stock cards, no

green raft
#

Hmm, bummer. Best way to create a template sensor with a state image of that then?

split granite
#

Not sure I understand... it's just a string, you create a template sensor of that attribute, and that string becomes the state of that new sensor

green raft
#

Was thinking that I could get a few things done in one sensor because there's some other attributes there which would be handy to use in Lovelace like "media_title" and the actual state.

polar kelp
#

A template sensor is probably the best way, yes.

#

with entity_picture_template

fallen badge
#

I'm trying to get the remaining time of a timer to show in a glance card. If I ad the timer itself it's just "active" as that is it's state. So I created a sensor template to pick out the "remaining time" but it never updates. Is there any other way to achieve this?

polar kelp
fallen badge
#

@polar kelp is that a reply to me or above? 🙂

polar kelp
#

To you

fallen badge
#

@polar kelp Does not seem to work. https://pastebin.com/RZQzegBg

It might be a bug or something because if you actually look at a timer in Developer Tools>States you can tell that "renaining" does not update. I'm not sure where from the entity card get's the count down from.

polar kelp
#

Ah. I see.

#

I've been looking through the code, and the timer doesn't actually update itself very often, understandably - that would be a waste of resources.

#

The entities card calculates the time remaining by looking at the remaining attribute and the difference between the current time and the last_changed time of the timer.

fallen badge
#

@polar kelp Oh! Is it a dead end for glance cards then? Or could I go around it somehow?

polar kelp
fallen badge
#

@polar kelp Will have a look. Thanks!

grim cairn
#

I really need to setup my UI currently I just go to unused entities because I have been too lazy to maintain my frontend

mild veldt
#

A timer badge is on my to-do list, but won't be until after the New year

polar kelp
#

There's a thought... why isn't the glance card just displaying badges?

atomic glacier
#

Getting a few browser-mod errors in console, but they haven't had any major affects on IU ( so far raised_eye ) https://imgur.com/a/aErbvqQ @polar kelp not sure if related to the first one ???

polar kelp
#

It's probably related, and I've probably solved it.

#

I just need some more testing to be sure.

atomic glacier
#

No rush😉 just thought I'd pass it along

polar kelp
#

The hass frontend avoids downloading stuff that browser_mod uses (such as lovelace cards) unless necessary, so browser_mod sets up a hidden lovelace instance for a second to force it. But sometimes, if the connection is slow, it tries to do this before the backend has been able to tell the frontend that there's even such a thing as "lovelace", and that's where it fails.

obsidian orbit
#

I have added visible for my views where different users should see different parts. But when I log in all users see the first view even if the visible isn't set for that user. If I have a new created user that isn't set to see anything it see the first view. Is this working as intended or is this a bug?

atomic glacier
#

Getting this console error Uncaught SyntaxError: Invalid or unexpected token .... VM2150 yaml.min.js:1 (pretty self explanatory... but lacking in skills dept. ) and I downloaded the file again, cleared cache, but the same error still persists. I am using Cloud9 IDE (running HA on Pi4 🙄 ) and it says Parsing error: Expecting Unicode escape sequence \uXXXX raised_eye , but I don't know where exactly it should be. File was from here: https://github.com/pkozul/lovelace-floorplan/blob/master/www/floorplan/lib/yaml.min.js Is there another program or something I can use to locate what I am trying to fix? Kind of clueless here 🤔

polar kelp
#

@obsidian orbit @mild veldt That sounds like a bug

mild veldt
#

yeah, @obsidian orbit please open an issue ticket on GitHub. I won't be working on it anytime soon, unfortunately

polar kelp
#

Christmas is approaching fast...

mild veldt
#

Playing through old Zelda titles is taking precedence at the moment 🤣

polar kelp
#

Good priority!

obsidian orbit
#

Will fix a bug report tonight

obsidian orbit
#

@mild veldt Should I create an issue in home assistant repo or home-assistant-polymer ?

mild veldt
#

polymer

willow knoll
#

Hey, guys!
How it's going?

I have some architectural question: what is the proper way to get data from influxdb (installed as influxdb add-on) and place it to Lovelace custom card?
Wanna do some periodic flux queries and put it in custom card.

split granite
#

Well, you'd have to pull it into sensors, and then you could display it however you want

willow knoll
#

I should write kinda custom component for that, right?

willow knoll
#

Yep, I found it, but seems it isn't support flux scripts. I need some features of flux like hourSelection() 😳

kind shellBOT
#

@vapid minnow 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

boreal charm
#

Hey everyone! So I dropped in a few days ago struggling with an issue of not being able to access the menu that has 'Raw Config' in lovelace... I'm definitely in the lovelace UI not in states. And I can see the 'Configure UI' button but not the 'Raw Config' button after I entire UI Configuration mode...

I first noticed this after trying to restore my system from a back up after an SD card pooped out on me...

If anyone has any suggestions I would really appreciate it! Also I would love to know where json/yaml for lovelace lives now. I know it's not recommended to edit it that way, but desperate times call for desperate measures and I'm wondering if I simplify my UI temporarily if I can fix the issue? Or perhaps a previous configuration has borked up the raw config UI?

mild veldt
#

file is .storage/lovelace

#

@boreal charm after you enter configuration mode, what is in the overflow menu where "configure UI" was?

boreal charm
#

@mild veldt the triple dot menu does not open at all.

mild veldt
#

but you're sure you are in edit mode?

#

I don't see how that is possible

#

Only thing I could fathom is that you are logged in as a non-admin user, so therefore cannot edit, but then you wouldn't have "Configure UI" as an option either

split granite
#

Corrupt file somewhere?

obsidian orbit
tame crescent
#

What would be the easiest way to run some custom javascript code before showing an iframe?

#

Without learning how to build up a custom card

finite dragon
#

Is there anyway to change how a lovelace card displays? My thermostat card shows up funny in mobile. and I would like to change the spacing on the modes to make it fit.

elder pendant
#

@tame crescent so you want to know how to do something without learning how to do it?

muted inlet
#

@crimson fable if I understand you correctly, the thermostat card supports an high and low temp for heat_cool (auto) mode

limber fjord
#

Is it possible to have the the alarm panel card show a countdown when selecting arm away? I'n the gif on the documentation it shows the 'pending' icon blinking but thats not happening for me?

mild veldt
#

@limber fjord do you have a delay set?

#

That gif is so outdated...all the doc images are...

crimson fable
#

@muted inlet okay but what does that mean? does it wait for low temp and then heat to high temp?

boreal pike
#

at the start when you try and edit the UI it says lovelace will take care of it, but went ahead anyway, but how do i get it so lovelace will take care of new UI automatly again?

limber fjord
#

@mild veldt yeah when I set the alarm it gives you 30 secs to leave before any motion actually triggers the siren... the gif on the page shows it with a keypad as well... it’s worth mentioning that it is actually all functioning correctly, however when disarming the alarm it doesn’t even require me to give a pin (which I’m okay with) and the preciously mentioned issue - that when arming it does not show anything so it is unclear if the command actually when thru

muted inlet
#

@crimson fable it means both heating and cooling could potentially be active. The low temp is the setpoint for heating, and the high temp is the setpoint for cooling

#

If it drops below the low temp, heating turns on

#

If it goes above the high temp, cooling turns on

crimson fable
#

ah!

#

thx

pallid needle
#

Is there a roadmap to getting some of the more popular custom cards into home assistant core?

#

is there a community discussion thread around that I could review?

wheat current
#

The roadmap is: {developer name} want to take the time to do it.

#

Ofc. Most of the custom variants needs/should be stripped down before added

pallid needle
#

wariand?

#

ah

wheat current
#

IMO the cards in core now is a nice base, and adding custom cards is super simple

pallid needle
#

Yeah

#

but even things like @mild veldt roku remote is far better than anything in core right now

#

for roku

#

or floorplan

#

though I guess floorplan is so large it needs it's own development cycle

wheat current
#

I don't see integration/device spesific cards being in core

pallid needle
#

why is that?

#

I feel like half the utility of the integration with roku comes from that card

tawny rapids
#

bloat

#

not everyone uses roku

pallid needle
#

That's fair

tawny rapids
#

(for the easy example at least)

pallid needle
#

what about things like floorplan

tawny rapids
#

some of them might be common enough that it might merit inclusion

#

but someone would have to put in the effort

pallid needle
#

well that's why I was wondering about a roadmap, if there was a process for getting included

tawny rapids
#

and with HACS (or however it is spelled) these days, i don't think anyone is willing to do the extra work

pallid needle
#

and judging interest

#

I'm not familiar with HACS

wheat current
#

AFIAK the spelling never changed @tawny rapids 😅

tawny rapids
#

i've never paid attention to it 😛

#

i don't know how its spelled in the first place 😛

wheat current
#

How you wrote it

pallid needle
#

lol, I think that looks useful

tawny rapids
#

coo

pallid needle
#

and might fit what I was looking for to be honest

#

like right now I have no way other than manual to see if there are updates

wheat current
#

caveman

modern breach
#

got me thinking, anyone has a good example of a card that only shows when needed, and show me if there is an update to hass, an add-on, HACS or something installed using HACS?

pallid needle
#

I will be setting up HACS I think

modern breach
#

mm, that's the conditional part. I think I've done one before so that I can manage. Not sure how to do the rest. For hass itself there is binary_sensor.updater. but for the rest I don't see anything?

split granite
#

The rest of what?

modern breach
#

updates to add-ons and updates to things installed through HACS

split granite
#

Do those things show up in devtools -> States?

#

As in, the presence of updates

modern breach
#

not as far as I can tell

wheat current
#

HACS does, add-ons do not have that

tawny rapids
#

addons definitely wouldn't. that's all in the supervisor

split granite
#

Personally I use a push notification for HACS updates, I'm not in the UI enough to notice a message there

modern breach
#

im getting there too, sooner or later. But Im not there yet.

wheat current
#

I don't bother, I do updates when I have time

split granite
#

I like to know when there's an update, so I can ignore it

wheat current
#

I assume there is allway at least one update

split granite
#

Like getting a notification that the printer is almost out of toner, so I can ignore ordering a replacement until it's too late

wheat current
#

Are you our office manager?

split granite
#

😂

last prism
#

lovelace seems to default to unit_system: imperial
which is fine for my other temps
but my 3d printer is in C
and i want it to display C

#

how do i force it to display this temp in C?

split granite
#

What card?

last prism
#

entity list

split granite
last prism
#

yeah

#
  - entity: sensor.printer_status
    icon: 'mdi:printer-3d-nozzle'
  - entity: sensor.nozzle_temp
  - entity: sensor.nozzle_temp_target
  - entity: sensor.bed_temp
  - entity: sensor.bed_temp_target
  - entity: sensor.percentage_done
    icon: 'mdi:file-percent'
type: entities```
#

wait, it seem to be storing it as F

#

even tho i have unit_of_measurement: "°C"

#
    state_topic: "octoPrint/temperature/tool0"
    unit_of_measurement: "°C"
    name: "Nozzle Temp Target"
    value_template: "{{ value_json.target }}"```
#

the raw mqtt is in C

split granite
#

That sounds like it's worth opening a backend issue

last prism
#

sensor.nozzle_temp_target 392.0 unit_of_measurement: °F
friendly_name: Nozzle Temp Target

#

it thinks its F on states page.

boreal charm
#

@mild veldt sorry I got caught up at work and didn't get to reply. Yeah, it's confounding me as well. I am positive I'm in edit mode and I'm logged in as an admin account. @split granite a corrupt file is the only thing I can think of too. I'm hoping it's one of the Lovelace config files which is what I am going to check now. Fingers Crossed

granite thorn
#

hey guys quick question that I can't seem to find the right terms to get an answer from google: how do I make my cover always show open/close buttons instead of being stuck with only close

split granite
#

What integration did you use for it?

granite thorn
#

esphome

#

I have my tv volume acting as a cover and want "open" to raise volume and "close" to reduce it from the UI

split granite
#

So... I'm going with MQTT cover then?

granite thorn
#

no its not mqtt

#

it was automatically added as part of an esphome device

#

using api

split granite
#

Ah, then ... there's nothing documented about that

granite thorn
#

yeah I tried that no dice

split granite
granite thorn
#

the issue is it used to work with the same esphome code, I just lost my home assistant stuff 😦

boreal charm
#

@mild veldt & @split granite thanks for the help! As usual the community has helped me solve my problem! 🙂 It turns out something was corrupted in my lovelace config. Simplifying it solved the issue. I'm still not sure exactly what it was, but I am able to access the raw editor menu again! So now I can fix it. 🙂

pallid needle
#

I'm trying to get HACS installed and it's not showing up in integrations

#

it's in custom_components/hacs/...

split granite
split granite
polar kelp
#

@atomic glacier browser_mod 14

atomic glacier
#

@polar kelp 🎉 Any changes in the past few hours from the master ❓ I was checking it out earlier this morning and added:

browser_mod:
  disable:
    - all

to my remote HA and it worked like a charm 💯

polar kelp
#

Yes. A fix from 15 minutes ago should remove your errors.

#

Then again, since they are timing related, your neighbors cat sneezing could remove them too...

atomic glacier
#

🤣

polar kelp
#

... which makes it an absolute pain to debug...

#

The latest release should be more stable than strange cats, though.

atomic glacier
#

I'll update... and thank you again for the time & effort, very much appreciated

limber fjord
celest glacier
atomic glacier
#

@celest glacier you want it to look like that? or you want them all in one line? Sry, bit confused

odd gulch
#

is it normal that sometimes editing an entity list causes the editor to freeze up for a few minutes?

#

and for the tab in chrome to eat 1.3gb ram? o_O

hollow loom
#

Is it possible to make a card in Lovelace that just displays an RGB color?

#

I've got the CheerLight MQTT feed and I can display the value using the sensor card. I'd like to show the value (E.G. "#FF00FF") as well as a square of that color.

mild veldt
#

@hollow loom use card-mod to dynamically set the background color

full sand
#

Hey guys, with Lovelace being standard now do I still use the navigation path /lovelace/first_floor.png?
...

  • type: picture
    image: /local/first_floor.png
    tap_action:
    action: navigate
    navigation_path: /lovelace/first_floor
    ...
full sand
#

Nevermind, got it 😅

sullen stream
#

ok, I added the WLED nightlight card to my overview page (it's kinda of a big button).... how to combine it with the on/off for the WLED switch and not have them be large and separate. thx

atomic glacier
#

@sullen stream what is it showing? pic? might be able to help

sullen stream
#

I can send you a screenshot

#

got the screenshot but need to pm you... just a sec

errant plover
atomic glacier
#

👋🏻 @polar kelp sry, I know it's a bit early for you ⏰ and it's getting late for me 🌒 , but after the upgrade to v14, android webview kept crashing and wouldn't load & lost connection to cloud and had a heck of a time getting frontend to come up locally. I reverted back to 13.2 and cleared caches and got it back up. I didn't have my logger set for browser-mod , but I managed to copy what I had before I restored the first time (did this twice ). Didn't need to after all, but was in a frenzy, LOL. Let me know if you need the log or if you find anything out.

polar kelp
#

I was afraid that might happen...

atomic glacier
#

Didn't notice on my remote when I updated that one earlier, cause I only connect to it locally 🤷🏻‍♂️

split granite
#

@rocky sleet 👋

#

All files are by default in your configuration directory

hollow loom
ionic coral
#

Hi guys, Is it possible for me to automate day/night themes only for a specific user or device?

median jolt
atomic glacier
median jolt
#

@atomic glacier not quite what im looking for but close. that will show/hide a card depending on an entities state. Im looking for a card that will hide the contents of the card BUT show the header still with a shw/hide toggle

#

A workaround for what im looking for would be to specify an entity_id for the header toggle. can that be done?

modern breach
#

you could create a group that you show on the first row, then the individual folded below it. the group name would then be your header

#

not exactly what yo want, but doable

winter wasp
#

is there a way to use a Picture Glance card to show the actual temperature value instead of the entity icon?

#

i can use show_state i guess, but it feels cramped

paper oxide
#

Hi there, is there a way to show a button card where the icon is based on a state of a sensor and the tap_action is toggling a switch?

winter wasp
paper oxide
#

@winter wasp Thanks for your reply. But that gives me the option of one icon

#

I have a sensor for a garage door

#

It have to show different icons when it's open or closed.

#

that's not possible is it?

#

with both cards

#

Oh wait, it is with the button-card

#

the icon supports templates

winter wasp
#

if you want to change the actual icon (not color) then you'll need to use the latter

#

or perhaps use the icon template on the template sensor itself

paper oxide
#

@winter wasp I've managed to fix this. Thanks for pointing me in the right direction 🙂

atomic glacier
#

@median jolt yes, that is how I use fold-entity-row. Examples and pics in my repo. Also use plenty of popup-cards to save space and clutter. Actually, all of my stuff is pretty much hidden in popups.

median jolt
#

I have been browsing through your repo. lots to read. massive config files which is hard to follow in browser

stiff perch
#

ive been googling but i cant find how to do it

split granite
stiff perch
#

they're device trackers

split granite
stiff perch
#

Expected a value of type `undefined` for `style` but received `{".":"ha-card {\n --state-home-color: #2ecc40;\n --state-not_home-color: #ff4136;\n}\n",".entity":{"$":{

#

mhmm

#

figured it out, thank you!

#

weird. it works on one card, but not the other

#

nvm got it

rough portal
#

hi guys, i just got my hands on some cheap 8" tablets but i feel like lovelace are running a bit slow on them when you switch room for example

#

any tips to speed it up? im using chrome

polar kelp
#

I really need to add a note about that in the readme...

rough portal
#

seems like Puffin is the best browser

#

will try it out and see if it works better

stiff perch
#

i cannot get custom icons to work

#

in the customizer i set the icon for my person to /local/sam.jpg

#

i put a sam.jpg in/config/www/local/sam.jpg

#

what am i doing wrogn here

#

even setting it to an imgur url didnt work

polar kelp
#

Browser_mod 14.1 released to fix the freezing bug. @atomic glacier

atomic glacier
#

@polar kelp Tested all my browsers and devices...🎉 💯 Thanks again!!! 💥 for the quick fix 👨🏻‍🔧 (all good so far👍🏻 )

charred zealot
#

really dumb question. what is the name of these icons and how do i add them to lovelace? googling 'add circles to top of lovelace' doesnt get me too far https://imgur.com/a/FxiVtdA

split granite
#

Those are badges

charred zealot
#

👍

split granite
charred zealot
#

do you ever eat or sleep @split granite

#

you're always here saving my bacon

split granite
#

I'm a swarm AI - I'm everywhere all the time

#

Sadly 99.9999% of my processing capacity is taken up by cat videos...

charred zealot
#

whos isn't?

terse hound
#

Can anyone help with this? My Sonos cards on the homepage, if not paused, show jibberish (WTMXFMAAC_SC?TGT=TuneIn.....ect.) Is there a way to clean that up? https://imgur.com/a/MdKhear

vapid field
#

I am styling my picture elements card. I've added a state-badge element and am trying to hide the title. In the doc it says "title: null" should do it. But that isn't changing anything for me though

polar kelp
#

Probably just in time for you to have replaced all your popups with browser_mod, right @atomic glacier ?

vapid field
#

Can I scale my picture elements card, when the view it is on is in panel-mode?

polar kelp
#

You can "scale" it in powers of 1/2 by using a horizontal stack...

atomic glacier
#

Actually, I have 16 or so that are still old school popups, mostly cameras, but still love the speed from them. Camera feeds are slow enough already

polar kelp
#

Hm... that makes me think that perhaps I should have tested what happens if you have both browser_mod and popup-card installed...

atomic glacier
#

I only have 2 that are identical...browser_mod loses the race, but not too much
both are mobile

vapid field
#

@polar kelp that doesn't do anything if I am in panel-mode.

polar kelp
#

You'd need to add empty cards of some kind to the side. But it's a bad idea anyway.

#

A better bet is probably either scaling it with css using card-mod or more directly using layout-card.

#

The new functionality in browser_mod 16 works the same way popup-card does, so it should be just as fast.

#

Basically, it's a drop-in replacement.

atomic glacier
#

Well... you know I'm gonna at least see for myself 😜
I'll give them a race a little later 🛵
I've been wanting to finalize the migration for awhile now, got stuck getting repo to pass build last week, but will have free time later this evening

vapid field
#

@polar kelp can't really get it to work. Changing the size of the image also doesn't matter at all. I want the picture elements card to display at the max height, without having to scroll. Isn't there anyway to do that?

polar kelp
#

Scaling things to height is notoriously hard to do on the web, for some reason...

vapid field
#

if it would just factor in the size of the image....

#

maybe it works if I add white space to the left and right of the png file

#

alright that worked better than expected! nice

polar kelp
#

...on that screen in that browser...

#

But that's good enough for most.

vapid field
#

that's right, but I mainly use the floorplan on the wall mounted tablet.

atomic glacier
#

Okay, so the backend won't have to send popups anymore <scratches head> and that means I'll have to set them back up in lovelace file with !includes this time .... so before I begin migrating back...do you think I can get a couple months before you change your mind again? 🤔 🤣 😜 😂 soon @polar kelp

vapid field
#

@polar kelp What about using your card modder plugin and changing the size?

polar kelp
#

@atomic glacier I make no guarantees.

#

@vapid field As I said above, I think that could work.

#

card-mod, rather than card-modder, though.

#

But seriously, Dino. With the amount of irritation this has caused, I don't see myself removing it again anytime soon without a really good reason.

prime umbra
#

awsome job om add popup-card functionality

polar kelp
#

It was made possible by fixing your bug, btw.

atomic glacier
#

Wasn't really that hard to change over and I honestly welcome them back to my ui-lovelace.yaml where they belong 🏠

#

Been wanting to use more of the lovelace_gen functions anyawys and get my file structure more permanent ( <--- or at least decent 🙄 )
your due some more 'kaffe' for bringing them back ☕ Thanks! @polar kelp

vapid field
#

@polar kelp How exactly do I modify the size of a card, if it's not with the use of card-modder but card-mod?

polar kelp
#
style: |
  ha-card {
    height: 200px;
  }```
vapid field
#

"r.setConfig is not a function" 🤔

polar kelp
#

🤔 indeed. That doesn't even exist in card-mod.

vapid field
#

meaning? 😱

polar kelp
#

Do you have the latest version of card-mod? Could you show me a screenshot of the error?

#

For those playing along at home, this was solved in PMs. Summary: card-mod is not a card.

vapid field
#

Still trying to modify the title of a state-badge somehow....

polar kelp
#

There was a bug with that at some point... What's your hass version?

vapid field
#

0.102.3

polar kelp
#

What have you tried?

vapid field
#

title: null
and
title: Test
nothing changes, still shows entity id

polar kelp
#

try name:

vapid field
#

doesn't work

vapid field
polar kelp
#

Oh. Sorry

vapid field
#

Np. I might change the type though... Not happy with how it displays climate entities

#

how can I access attributes of entities? Like a climate entity?

tawny rapids
#

{{state_attr('climate.climate_1', 'attr')}}

#

if it accepts a template at least

vapid field
#

yea no, it doesn't in my case

polar kelp
#

Then you need to make a template sensor

vapid field
#

Ok. I just configured the template sensors so they won't throw any errors. But they do not show up as entities

tawny rapids
#

where are you looking?

vapid field
#

devtools -> entitites

tawny rapids
#

did you restart after creating them?

vapid field
#

yes

kind shellBOT
#

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

tawny rapids
#

do that?

vapid field
#

I did 🙂 I know the system recognized them, because I had errors. After wiping them out it worked fine, but they do not appear

tawny rapids
#

hmm

#

i have a few template sensors and they work fine

vapid field
#
---
platform: template
sensors:
  bathroom_temperature:
    unit_of_measurement: '°C'
    device_class: tempertaure
    value_template: "{{ state_attr('climate.fussbodenheizung_bad', 'current_temperature') }}" ```

My sensor template. Am I doing smthng wrong?
tawny rapids
#

yeah, seems fine

#
sensor:
    - platform: template
      sensors:
        whole_house_avg_temp:
          friendly_name: "Whole House Average Temp"
          device_class: 'temperature'
          unit_of_measurement: '°F'
          value_template: >- # template```
#

what's your include look like?

vapid field
tawny rapids
#

yep, that's the key

vapid field
#

That's still a thing a have to get used to xD

tawny rapids
#

😛

#

i just do everything in my config.yaml because lazy

vapid field
#

Yea, wanted to try something different 😉 I like it so far. Makes things a bit more difficult, but much easier to maintain etc

tawny rapids
#

that's beyond my exp ¯_(ツ)_/¯

vapid field
#

Oh, I can use a state-icon and change the tap_action....

vapid field
#

Can I remove the floating point of a template temperature sensor?

tawny rapids
#

|round(<num_of_digits>)

#

the template from my example above:

#
          value_template: >-
            {% set sensors = [
                states('sensor.living_room_temperature')|float,
                states('sensor.office_temperature')|float,
                states('sensor.thermostat_temperature')|float
              ]
            %}
            {% set ns = namespace(avg_tmp = 0.0) %}
            {% for sensor in sensors %}
              {% set ns.avg_tmp = ns.avg_tmp + sensor %}
            {% endfor %}
            {{(ns.avg_tmp / (sensors|length))|round(1)}}```
#

a lot more complex than what you're doing, but has all of the bits

vapid field
#

oh jesus, this is hard to read in discord

tawny rapids
#

lol probably too wide

vapid field
#

so, round(0) is what I am looking for?

tawny rapids
#

yep, if you want no sigs

vapid field
#

Can you explain what you did there? Don't really get it, but I am interested

tawny rapids
#

defining a list of sensor states, looping through that list and adding them together and then dividing that sum by the number of items in the list to get the average

#

i have 3 copies of this with 3 different lists

vapid field
#

alright, I get it. Nice.
whats the difference between using {{ }} and {% %} ?

tawny rapids
#

{{}} is for an output, {%%} is for logic

vapid field
#

alright, awesome, thanks !

tawny rapids
#

np

vapid field
#

I am so happy about my first climate entity in my floorplan and I can't share images in this channel, DAMN

kind shellBOT
#

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

vapid field
green raft
#

You should use an SVG for your floorplan so that it scales nicely :)

Or perhaps a super-high res render from SweetHome3D.

vapid field
#

I used magicplan. I'll have a look if I can get the svg file from there

#

@green raft The svg file from magicplan contains the dimensions of every single length 😮

ruby merlin
#

You can always get an svg editor and remove the dimensions

green raft
#

Surely there's an option on export to not include the dimensions.

vapid field
#

Yea, just found that. Sometimes I should just test things out before complaining mindblown

vapid field
#

Can I cut a svg file somehow? There is some text on the right side

ruby merlin
#

You can open the SVG in the editor of your choice and change it any way you like.

vapid field
#

What do you mean with editor? A code editor or something like paint/gimp?

vapid field
#

I am trying.... I have just deleted the text from the svg file, but I don't know if I am doing something wrong, or if that program isn't working. the text still appears

hollow loom
vapid field
ruby merlin
#

use a different editor or edit the xml directly

sullen stream
#

restarted my HA and for some reason cannot add my WLED light back .... any help would be appreciated....

#

It says that it's already configured under integrations but having trouble adding it in UI

sullen stream
#

@timid burrow So when adding it... just add as a light.... or a manual card.... or?

#

added as light... it worked !!!

timid burrow
#

I have my lights on an entities card.. depends on how you want to see them but make sure you see it in dev told>states first

#

Ok good news

sullen stream
#

so what I was doing wrong was?

#

not deleting it from devices and integrations both

timid burrow
#

I have no idea... your questions to me have been very specific rather than any problem

#

Oh

#

Well i don't understand why it got into a tizz in the first place

#

Like I said it's nothing to do with ssl

sullen stream
#

I think it is related to my port forwarding... but I'm a noob.

timid burrow
#

I doubt that

sullen stream
#

ok, it's confusing to me for sure.

timid burrow
#

PF will just screw up external access

sullen stream
#

I'm quite careful (maybe too careful) to only change one thing at a time....

#

so returning to our earlier discussion how long does that take to implement?

timid burrow
#

Caddy?

#

Or the Xiaomi token?

sullen stream
#

Caddy....

timid burrow
#

Caddy is straightforward if you follow the instructions systematically

sullen stream
#

ok, I have your instructions so I'll meticulously go through them. At that point I should have the SSL working and only one port instead of my current 3 right?

timid burrow
#

Yes

sullen stream
#

ok, thanks again.....I keep stepping on HA land mines and breaking things. cheers.

timid burrow
#

Lol... good way to learn for a while till you get tired of it

sullen stream
#

ok, when you get tired of it.. then what?

timid burrow
#

Well by then you have a pretty good idea of how it all works and won't have too many problems

#

You won't be a noob forever

sullen stream
#

gotcha... have a good one... need to rest over here. You've been quite helpful.

timid burrow
#

No worries

#

Cya around

sullen stream
#

🍻

atomic glacier
#

Thinkin' I don't like what I'm thinkin' about what this may mean...🤔
...but...I could be totally clueless as usual 🤐
https://imgur.com/a/UhegzZz
Note: Just tested a dozen or so using v15 when I started noticing the errors...🤷🏻‍♂️ @polar kelp aside from the errors, it was equally as fast IMO 😉

polar kelp
#

You're not mixing card-modder and card-mod styles?

#

Or maybe have a card-modder card with a stray colon in the styles or so?

atomic glacier
#

Unfortunately, I'm only using card-mod on one card🙄, so not mixing, but I was falling asleep at the keyboard last night 🤔so I'll definitely check for the latter. Thanks

vapid field
atomic glacier
#

Okay...since I only use one lovelace view and multiple users within the view, I checked all users and I only get errors with my mobile login, which helps. Yamllint validates as well. I am assuming that the resources:, anchors:, popup_cards:, etc... (<--basically everything before the actual view) loads for every user? therefore error would have to be within my user login set via state-switch within the actual view itself? thinking this is the best place to start??? @polar kelp just trying to eliminate places to look...haven't made any drastic changes lately, but not promising my late night sessions are very valid 🧐 Thanks!
EDIT: I know the anchors: only load where they are called specifically, so checked those just for my login

polar kelp
#

I believe the problem is that a style setting of a card-modder card is interpreted by the yaml parser as something other than a string, could be something like color: accidental: colon or something that needs quotes. The problematic style won’t work.

atomic glacier
#

Should be only under my user section, correct?

polar kelp
#

Could also be someting with a magic value, like asd: (empty value) or fgh: on

#

It’s a card that’s currently seen, I think, but I’m not 100% sure of that.

atomic glacier
#

Okay, I'll just yank out my user, validate & rebuild section at a time till I find it. Thank you!

arctic thistle
#

Hey i have my ui in yaml mode and i have created a new view for my 3D printer but when i click on the button for that view it opens a different view what can be the issue here ?
My ui yaml: https://pastebin.com/Ccgagrk0

split granite
#

Which is the relevant bit for the question?

#

It looks like you truncated it right at the 3D Printer view 🤔

arctic thistle
#

So the last view is the new one and when trying to open that one shows the cards of living

#

Yeah still need to add the cards to it

#

Bit when putting the 3d printing view above living it works fine

split granite
#

Wait?

#

You have an empty view

#

And you're surprised that it's not working?

#

I'd start by adding some cards

#

You've said here's the cards for this view and then ended the file

arctic thistle
#

I did still the same res

split granite
#

Did you reload?

#

Can you show us what you've done?

arctic thistle
#

yes

#

i did this

#

and gives me same result when clicking on 3d printer view it shows the living entities (and bureau view works just fine)

split granite
#

We only need the relevant part, not the whole thing

#

However, that still looks like an incomplete definition