#frontend-archived

1 messages · Page 196 of 1

feral cliff
#

hi. i have 2 of my blinds that can be operated via MQTT, and they're discovered by HA. great. 3 buttons for each: up, down, stop (well the stop can be used for a predefined level too, if operated when the blinds are not moving). in the cards i'm only finding a card with one big button, but i'd like to have cards with 3 buttons. how can i achieve that? i'm still discovering HA. thank you

knotty abyss
#

Simple way is maybe use a horizontal stack and just add each button you want and give it a title.

feral cliff
#

let me see

polar kelp
#

That was mentioned in the podcast, iirc. Scripts save a trace, since they are basically automations without a trigger, but there’s no UI to view it yet.

feral cliff
#

@knotty abyss in terms of UI, that will do for now until i learn to do better 🙂 now if i want to send specific MQTT messages, i believe i first need to create a file that defines that action, https://community.home-assistant.io/t/mqtt-script-payload/211454. do i just create such a file in the same place where HA's configuration.yaml lives?

#

thank you:)

feral cliff
hallow mango
#

check out multiple-entity-row, it might do what you want

kind shellBOT
knotty abyss
#

oof first time that happened.

#

Ahhh ok, no more then 15 lines. I'll keep that in mind

knotty abyss
#

SO I figured out how to add an attribute to an entities card which is wonderful. What I'd like to do is remove the word items though on a sensor in an entities card

#

would this require a template sensor to do so? I'd rather not have to do that but

vapid field
#

Hey, sorry for late reply. Based on the Readme of card-mod - it does not work with the grid card 😭

vapid field
#

Does anyone else have an idea how to get a grid-card centered ?

polar kelp
#

Could you show a screenshot of the problem?

vapid field
#

sure

polar kelp
#

That's very odd... but that's the custom button-card, right?

vapid field
#

yes, it is

polar kelp
#

Did you manually set the aspect ratio of them?

vapid field
#

To be honest it´s very much copied and adjusted to my fittings

#

For sadness i am not the css crack that i should perhabs be

polar kelp
#

Did you check what happens if you turn off the "render cards as squares" toggle?

#

It can be fixed with card-mod (using mod-card), but I don't recommend that and it wouldn't look good...

vapid field
#

i tried it with the toogle on and off but that has no effect

#

setting aspect-ratio to 1/1 in every card makes it looks like this:

#

setting the toggle (squares) to off and setting the aspect ratio to 1/1 makes it look even more odd.

In the picture you should see 4 cards in the card:
https://imgur.com/ScKKuVv

polar kelp
#

Ah. I see now. It's the lines yaml - height: 220px - width: 150px

#

They obviously mess up the aspect ratio

#

Just a whim; try changing that to min-width: 150px

#

...and the other place where you have width: 150 px

vapid field
#

but now the space between row1 and row2 is missing 🙈

polar kelp
#

Don't forget to remove the aspect ratio thing again

vapid field
#

ah

#

that did the trick! thank you very much!

tender bronze
#

is there a way to hide a card in lovelace based on its state? For example I want my chromecast cards to appear only if the chromecasts are on

honest estuary
#

Condition cards

bitter bolt
#

has anyone ever run into a bug with the visual editor where when edited a card and typing, it acts like you have insert on your keyboard toggled and starts overwriting text/writing backwards?

#

closing and re-entering the editor fixes it, but this happens to me sometimes. i think when i cut and paste stuff.

dark dirge
#

Code Mirror, which is the underlying package, has been known to have issues

hallow mango
#

@bitter bolt that happens to me sometimes editing f on the android app

#

gotten a bit better recently, but still happens sometimes

dark dirge
#

it has definitely been known to have issues on mobile devices

hallow mango
#

def related to cut and paste for me too

dark dirge
#

it was completely broken on mobile during one of the beta periods

hallow mango
kind shellBOT
left wren
dark dirge
#

you can't turn scenes off

#

you only activate them

hallow mango
#

I would use scenes more if you could "turn on" a scene, and "turn off" to return to the way it was before

dark dirge
#

you can do that by creating a scene on the fly, activating an existing scene, and then activating the first one

#

but it is a bit cumbersome

hallow mango
#

^

dark dirge
#

I guess you could write a script to do that

hallow mango
#

really I should just play with scenes and see if I'd find them more useful than I'm imagining

dark dirge
#

it could get pretty complicated, though

#

scripts are better than scenes most of the time, if not all of the time

#

capturing and restoring state is the only cool thing about them

hallow mango
#

I don't have a lot of places where I think a scene would be useful... mostly things like "bedtime" or "movie time", but those are usually more controlled by "hey Google turn off the lights" or activities from harmony

limpid apex
#

Anyone knows why this is happening on Android? This is a normal entities card, it started happening after I updated home assistant https://imgur.com/G9BFjHu

spark sedge
#

Awesome! I'll try to keep an eye out for it.

steep jewel
#

just wanted to drop by and say whoever modified HA so it works again on older ipad's is a legend

errant plover
kind shellBOT
heady gorge
#

Hi, I am changing the sidebar items order, disable some items etc, its working fine. But when I restart HA or relogin with the same user settings, the tabs will be back to the default setup.
How can I save the settings permanently for a user?

boreal sluice
#

anyone have problems with history tab? It don't show anything

left wren
# dark dirge you can't turn scenes off

So is the issue that I'm trying to use buttons with scenes? I thought I could just press the button for another scene, but maybe that's wrong. (I can still activate them from the normal menu but this doesn't work)

limpid apex
#

@errant plover that solved It. Thank you very much!

orchid night
#

Hi - what I think is a simple question. I have a url in a lovelace card, where part of the URL needs to be the output of a sensor. I can't find the right syntax to achieve this. Anyone have a pointer or know where to find a help page for this? Thank you!

dark dirge
left wren
#

Interesting, I'll try that. Thanks!

eager cypress
#

Is there a way to have missing entities in an entities card go grey instead of the ugly yellow? I want to do some troubleshooting where I temporarily remove a package but that will cause Lovelace to have the annoying yellow

static grail
#

Is there a way to reference attributes of a device programmatically? Specifically, referencing the card/entity name in the yaml as the defined name of device - therefore always keeping the card label in sync with the name of the device

hallow mango
#

@orchid night @static grail you do that with templates, but not all cards support them

orchid night
warped yew
#

Hi! I have a aqara door sensor that reports on/off on the ”alarm” to home assistant. How can i change it to display open/closed?

karmic tiger
static grail
dark dirge
#

"not all cards support them"

#

if a card supports templates, it will say so, and how to format them

static grail
#

...nevermind, HA keeps resetting the name on me. (Ah, I see; I have to update that in the Entities configuration)

#

Seems silly that I can't just print the name of the Device as a simple variable to title a Card or Entity control

hallow mango
#

usually you use entities

final nacelle
#

Sup guys has anyone a working lovelace to adjust and start a timer? Like if I want something to be turned off after let's say 30min, not every day just if I want to (like a toggle), another day I want it to turn off after 40min. I need a solution that works in the ui without going into scripts etc. so other people that use hass with me can adjust it aswell.

hallow mango
#

and the friendly name of an entity is what's usually used when you show it in a card... but most have the ability to change that as well

#

just not ALL cards support a template to have it update automatically if you've specified something besides the normal friendly name it'll already use

static grail
#

Ah, okay.... So I was worried about renaming the entity (e.g. "Testbench on_off" to "Testbench" and whether it would follow the name of the Device. But it seems as long as it can do a replace(?), the name follows.

So updating the target Entity to the name of the Device keeps it in sync.
...but of course I have to update my cards to reference the new name.

As a point of feedback, I see this as a downside to HA, honestly. In other platforms, you can just rename the device and all the references "just work"

hallow mango
#

basically I'd recommend naming your devices/entities whatever you want them to be and not changing them regularly

#

that way you don't have to update things as often

dark dirge
#

the introduction of device_id to improve on this has not been great. You can't pick the ID, so it's really only usable in the UI, and it doesn't work everywhere or support all functionality. I'll call it a work in progress

hallow mango
#

also as long as the entity id stays the same, name and stuff will stay in sync

#

on your card, I mean

honest estuary
#

Why change the entity is, i change the name of the entity and keep the entity id the same

polar kelp
#
type: custom:auto-entities
card:
  type: custom:layout-card
  layout_type: masonry
  layout: {}
  cards: []
  view_layout: {}
filter:
  exclude: []
  include:
    - domain: light
      options:
        type: custom:auto-entities
        card:
          type: custom:layout-card
        filter:
          template: |
            {{ [
              {
                "type": "entities",
                "title": state_attr(config.entity, "friendly_name"),
                "entities": [config.entity]
              },
              {
                "type": "button",
                "entity": config.entity
              }
            ] }}
#

Not as bad as I feared.

hallow mango
#

sorcery lol

#

though, could be done similarly (and less confusingly lol) with any card that supports templates, which was basically what I was getting at

mortal crystal
#

What'd be the best way to have an entity in a lovelace dashboard that can only be turned on at certain times of day (but off at any time of day)? I'd like to make sure I don't accidentally flip my kid's bedroom light on at 10pm ever again.

hallow mango
#

I honestly didn't know you could do that fancy of a thing with auto entities though, which is neat

#

@mortal crystal restriction-card probably

mortal crystal
#

that was easy - not sure why i didn't manage to turn that up in google

halcyon basin
#

evening all, Is it possible to change to display "Away" for wifi device trackers rather than unknown? not sure if this should be a front end question, or an integrations question. TIA

dark dirge
#

some cards let you change the displayed value for states (typically ones that support templates), or you can create a template sensor based on your device_tracker that returns whatever you want

karmic tiger
#

Why would unknown be 'away'? Unknown means it can't tell.

hallow mango
#

where am I?

dark dirge
#

"away", obviously

gloomy tiger
craggy dagger
#

Is it possible to control my thermostat with an Aqara Temperature sensor? My ecobee is in the worst spot and is always running for hours longer than it needs to. I'd like to be able to create multiple, so if I'm sitting in my office it can turn it on/off based on whatever room I'm in. I know I could set up an automation, but I'd like to have something I can tweak as I need it in lovelace so I can control it by degrees instead of each sensor having 10 different single degree difference automations

dark dirge
#

No, you cannot integrate non-ecobee sensors into the ecobee thermostat like that

craggy dagger
#

Right but is there no way to control that via Home Assistant to connect the two systems, or is that not possible? Some way to monitor the temperature with Aqara and then use Home Assistant to turn the ecobee on/off

balmy wolf
#

For the entities card can you make the first switch only target specified entities instead of everything in the card?

#

Or not even display that master switch?

dark dirge
#

You can adjust the temp targets, turn on the fan, etc. but there’s no way to change what it thinks the temp is or what to do about it

#

The ecobee remote sensors’ purpose is basically to do what you want, though

#

They monitor room presence, and you can tell the thermostat to ignore some or all

craggy dagger
#

Ah, I get it. Sorry, I think I wasn't clear. I don't want to trick the ecobee or anything, I just want to utilize the Aqara sensor to turn it on or off. Basically, this is what I'd like to accomplish:

Create a thermostat card in lovelace bases it's "current temperature" on the aqara sensor in my living room, and I can set a "target temperature". If I adjust the target temp down (let's say the current temperature is 74 and I adjusted the target temperature down to 72), that'd trigger Home Assistant to call the climate.set_temperature service to HVAC Mode: Cool, and the target temperature to something ridiculous, like 50 degrees (realistically it could be anything that there's 0 chance the ecobee would ever actually be able to cool the house to), and then once it reaches that target temperature, it'd call the climate.set_hvac_mode service to Off

bitter bolt
#

how do i make certain pages on the left sidebar not appear for certain users? can i do this as the admin for specific users or does it need to be done from the user device?

ex; i only want some users to be able to see my Overview link for lovelace ui default_view, but not calendar or file editor or media browser.

dark dirge
#

From the device

bitter bolt
#

is there any kind of integration that can stop this? kind of dumb because then anyone in my HAS group can see my gcal.

boreal trellis
#

Hi guys. This might seem fairly nooby but I'm going round in circles. I have a picture elements card and want to tap on an icon to toggle an entity. The tap-action function will override 'toggle' to 'more-info' if it deems the switch entity doesn't support 'toggle'. This is weird because in the 'more-info' card that appears there is a toggle switch that can be tapped to toggle the entity! Anyhow, I tried a work-around by creating a toggle entity helper, that I was going to link to a node-red function to actually switch the entity, but that doesn't work either!
- type: state-icon
entity: input_boolean.pump_1
tap-action:
action: toggle
icon: mdi:pump
name: Jets 1
when tapped, this pulls up 'more-info' instead of toggling.

polar kelp
#

tap_action

#

Always _ to the left of :

boreal trellis
#

oh god I'm blushing.

#

Thank you.

safe notch
#

Is there an easy way to change the color of an icon in Lovelace UI? I have an entity that always shows unavailable (by design, unfortunately) and I'd rather not see the gray icon.

hallow mango
glacial ledge
#

Is there a thermostat card that has a time scheduler like a regular programmable thermostat wake/sleep/etc...

leaden relic
#

hi all im booting new image from usb, but i get error cli not started how can open/check logs?

mortal whale
#

Is there a way to get an input_datetime helper to just show the date without being able to edit? I use a node red flow to enter values for next garbage days and want to just display them in a card.

dark dirge
#

You could use a markdown card

#

In the end, it depends on the card

mortal whale
#

Got it! I was trying to use some sort of entities/vertical stack and entity card and that wasn't working. I'll play around with different cards

plain onyx
#

https://imgur.com/a/9Hb0zxn

i run the speedtest integration only 3 times after midnight via an automation , but during the day the bars remain, but the numbers say NaN how to fix ?

#

only after i manually speedtest , the numbers popup again

tawny vault
#

Are these because of browser_mod or any idea what?

2021-06-11 23:50:06 ERROR (MainThread) [frontend.js.latest.202106030] https://*******.ddns.net:8123/lovelace/default_view:0:0 Uncaught 
2021-06-12 00:10:30 ERROR (MainThread) [frontend.js.latest.202106030] https://*******.ddns.net:8123/lovelace/default_view:0:0 Uncaught 
halcyon basin
#

Evening, I've got a device_tracker integrated from traccar, and i have it in a glance card, but i seem to be unable to add a picture to it. in my customize file i have:

device_tracker.bike:
friendly_name: Sophie
picture: /local/images/sophie.jpg

the image is stored in www/images as bike.jpg
Any idea why it isnt displaying the image?

karmic tiger
#

Well the YAML you posted is invalid, so that probably doesn't help.

#
device_tracker.bike:
friendly_name: Sophie
picture: /local/images/sophie.jpg```
#

D'oh, bad bot.

#

But you want to indent the second and third lines.

halcyon basin
#

Not sure why it pasted like that, but they are indented in the yaml file

karmic tiger
#
device_tracker.bike:
  friendly_name: Sophie
  picture: /local/images/sophie.jpg

This has different meaning.

#

Ok

halcyon basin
dark dirge
#

There’s entity_picture

#

Is ‘picture’ a thing by itself?

halcyon basin
#

PERFECT! Thank you!

dark dirge
#

RobC, Reader of Docs

upbeat latch
#

is there a strange password convention for home assistant passwords?

dark dirge
#

No?

#

What does that mean?

#

No chickens need be sacrificed

upbeat latch
#

I can't access my home assistant anymore after a chrome browser clear. I am unsure what I am getting wrong, and wondering if there is maybe specific minimum password lengths of no special characters etc.

karmic tiger
#

So what you're really asking is 'how do I get back in?'?

upbeat latch
#

I was hoping to be able to guess my correct password before I needed to go through with that.

dark dirge
#

It’s no worse than 8 characters including a symbol and number

karmic tiger
#

What's this 'guessing' thing? You should store them all in a password manager.

sharp grove
#

Guys, I'm a little bit annoyed by: every time I use a new device, or cleaned cache/browser-storage, some frontend settings need to be re-configured.
For example: which panel to show/hide, and primary/accent colors. https://imgur.com/a/T0rYyXv
I remember i read it somewhere that some frontend configs are stored in local storage, which makes sense that they gets cleaned often.
But is there a way (for example write my default config to a yaml file) to give frontend explicit default configs?
Thanks in advance!

dapper wharf
#

hi all! Have beginner problems with loveloace and splitting configuration. Someone here for a hint?

honest estuary
#

It really helps you when you describe your problem first

dapper wharf
#

ok.

#

its complex to discribe, lets begin

#

one of my dashboard configuration looks like this:
title: My Home Assistant
icon: mdi:'home-outline'
views:

  • !include lovelace/areas.yaml
#

my areas.yaml looks like this:
title: Areas
id: Areas
path: Areas
icon: mdi:texture-box
panel: false

cards:

  • !include_dir_named lovelace/areas/
#

one of my yaml files in areas kook like this:

  • type: entities
    title: Schlafzimmer
    entities:
    • light.lampe_1
    • light.decke
    • light.bett_li
    • light.bett_re
    • scene.schlafen_rot
#

error was: No card type configured

rain hawk
#

is there anyway to remove the decimal from climate control? its showing up in my thermostat control and the graph. its also making my graph look like its drunk. i dont nee to see a 0.1 temp change.
thanks for any help

dark dirge
#

It depends on the integration that’s providing the climate entity. Some have a precision: option

vapid field
#

Hey there, a few days ago, thomasloven helped me with a custom button-card put in a grid-card. (#frontend-archived message)

At the end i change my code to this https://pastebin.com/Rekz0Y1g

The trick was to set min-width. But for now i would like to reduce the width but no value smaller than 150px changes the width.

Could one of you experts help me once again?

errant peak
#

Hi all

#

is it possible to show a video on the lovelace UI?

#

the video is an attribute of a sensor

#

I have the path of the mp4 file

clever sedge
#

Hey, I've got the problem, that one of my lovelace pages started from one moment to another to go blank after some time. Its just one page and if i refresh the page it works again for some minutes. I've already cleared all cookies connected to hassio and the problem also appears on the android app for me. I've thought that it cloud be, I've got any device that doesnt exist anymore, i did indeed find 3 of them and deleted the cards they appeared in but it didn't solve my Problem. The Update of Hassio to version 6 didnt help with it either and i didn't find anything on the internet for my specific problem or didn't search for the right things...
Thanks in advance if anybody has an idea to solve my Problem

clever sedge
#

omfg, i feel so dumb rn
I did delete a card in the graphical interface but apparently it was still present in the yaml config although it wasn't showing up
I've removed the entry in the yaml and now its working

heavy pasture
#

I am having an issue with a custom card Mail and packages. It works 3 of my devices and fails on three others. All are using chrome. On the ones that fails I get custom element does not exist. I have clear cache on all and tried other browsers and same issues.

lime glacier
#

Open page in your Home Assistant?
You've been linked to the page that will show your event developer tools.

how do I make this work? the instnace URL is correct

#

always get a 404

dark dirge
#

It should work if the url is correct, but it’s just a shortcut to devtools -> Events, so you can just go there yourself

lime glacier
#

yeah, I think I figured this one out. I don't use 'default_config' so need to add the 'my:'. Doing that now, just waiting on restart.

#

yeah, wasn't sure where it is taking me as I am trying to work out a zwave issue and that link in the doco wasn't working and, blah, blah

dark dirge
#

Yeah, docs are written for the typical case

lime glacier
#

yeah, right.

anyawy, that works now

frail iron
#

hey guys, how do you clean the frontend in firefox? i removed all site data, had to relog but still shows an error in HACS about unexpected frontend version

errant plover
#

It's getting harder and harder to clear the cache, last time I wiped my browsing history completely.

#

There's a way to dump the cache through the inspector.

#

Not sure how though.

frail iron
#

weird yeah, i mean isnt that the whole point of remove site data button 🙂

#

it manages to remove the login cookies but not the cache, ridiculous

wheat current
#

||fucking|| service workers....

frail iron
#

just verified that it should work in theory, a new session in a private window doesnt have that error

wheat current
#

yeah, it's still cached in the service worker

frail iron
#

just kill all firefox executables?

wheat current
#

will probably not help

#

open browser console, then hit ctrl+shift+r 5-10 times

frail iron
#

no luck, i found the about:serviceworkers section though

wheat current
#

don't mess with that

frail iron
#

just unregistered the one for my ha

#

haha

#

still no change, cleared site data and cookies again

wheat current
#

ignore it

#

it will eventually disapear

frail iron
#

allright, i thought its something to do with my hacs misbehaving

#

nothing happens after I click explore repositories

#

I had to reauth on github and have lost the nodered integration in the process, maybe not the right channel for this though

wheat current
frail iron
#

it works in the private window I just logged in, so definitely can't just ignore the wrong frontend from 4 months ago

junior gulch
#

Hi, I have an issue with drop down options in Chrome and only chrome, this does not happen with Firefox, in both cases there are no extensions enabled, and I tried cleaning cache. Is this a bug?

#

oh no images allowed

#

uhh

#

here

kind shellBOT
wheat current
junior gulch
#

i see, i missed the issue when taking a quick look

#

thanks

severe tapir
#

how do I setup the https in the UI? I installed the duckdns with letencrypt, but I'm still http instead of https.. so what am I missing that I can do in the UI to fix?

wheat current
broken marsh
#

Possible to combine light control and show watt usage in one entity in entities card?

severe tapir
#

Is it intergration thou? I don't see anything for http in intergration in the UI

wheat current
#

If it was not I would not say it was, and would not directed you to the correct channel

viral sorrel
#

I moved a second card to a panel view and discovered that this was not supported via a little text message at the top.. but now what? it doesn't support it but it did do it and I can't see any way to move either of the cards out.

safe notch
#

Is there a way to change the color of an icon in Lovelace? For instance, making it red, or green?

safe notch
#

Disregard, just found out about themes.yaml 😄

gaunt lark
#

Howdy everyone,

is there any way to prompt the user for script inputs from dashboard? I don't want to use inputs bound to entities, because I don't want to sync their values across multiple simultaneous users.

Any ideas? Thanks upfront!

polar kelp
#

I don't know if maybe html5 push notifications can be actionable... otherwise someone should get on that 🤔

#

... they're probably not actionable with arbitrary input anyway, so that may be a dead lead...

fringe rampart
#

Hi - I am using a horizontal button with two buttons. How do I make one of the buttons change colour for a couple of seconds when pressed then return the colour and state back to normal?

#

And can I also make the pressing of one button change the colur state of the other button?

tacit pumice
#

Has anyone customized the layout of the manual alarm card? Would it work the same as any other card?

vapid field
heavy pasture
#

I have a strange problem where one of my custom cards gets an error of custom element does not exist on some of my computers and on others no issue. Cleared cache on all that do not work and all are using the same version of Chrome

meager geyser
#

Hey y'all, do you know how I could merge 3 different entities together in one card? i.e changing the state of one is mirrored to the other 2 devices. (This is for my Philips Hue playbars which are all showing up separately)

dark dirge
#

Those are two different things

#

How they’re displayed and how they work are separate problems

#

Sounds like you need an input_number and an automation to change the state of other entities based on its value

terse arch
#

Is there a way to put commas in the mini graph cards

#

Like show 8,000 instead of 8000

half raptor
#

not sure if this is the right channel but ill try, anyone have any luck sorting out a 404 nout found error while using haproxy?

#

not*

dark dirge
#

is this related to Home Assistant?

half raptor
#

It is, apologies I get a 404 error when trying to access home assistant through my duckdns address

dark dirge
#

seems like your problem is with haproxy

#

where "ha" doesn't stand for Home Assistant

half raptor
#

i would tend to agree but all of my other forwards are working without issue

dark dirge
#

anyway, definitely not a frontend thing. point it to http://xxx:8123 and configure this and the next item. Further questions to #general-archived

half raptor
#

thanks!

frail goblet
#

Hi all

#

Does the HA frontend have a way to delete scenes? I've checked all over but I cant seem to figure it out

#

Seems that all I can do is disable the entity

#

But I want to remove it completely

#

glad if anyone can help, thanks

dark dirge
#

It’s under the 3-dot menu

frail goblet
#

Ahh...that seems to be my issue then

#

Thanks. I honestly think it should be a little less hidden

#

lol

fiery ledge
fiery ledge
wheat current
fiery ledge
#

rather call it an undocumented feature 😉 and it was very useful at that, because not all is defined in the default default theme...

wheat current
#

don't rely on undocumented bugs/features/whatever

#

if you feel strongly about the usecase, raise a feature request

fiery ledge
#

thanks, will do, and no, you are right, we shouldn't rely on that, it's just that I noticed only now, so maybe a recent change in the frontend? anyways, Ill try and conjure up an FR.

wheat current
#

themese changed recently to allow for dark/light modes to allways inherit default

fiery ledge
#

yew, maybe thats it. Will write it up

abstract maple
#

I have a danalock. It does not know if it is locked or not (yeah it sucks). And so it thinks it is always locked and shows only the "lock" button in my entity card. Is it possible to have both actions shown? eg. "Lock" and "Unlock". https://ibb.co/fkpVsCH (image)

fiery ledge
visual gull
#

Is there a way to overlay the temperature of a room (say, from a tasmotized temperature sensor) on a video stream (say... Nest camera stream)...

worthy moat
#

Morning all, why would I be getting this error ONLY on this light group, but not the others? The error itself makes sense, but the light group itself is showing as "unavailable" (individual lights in the group are available and controllable) "This entity ("light.master_bedroom_lights") does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.

You can overwrite some attributes in the entity customizations section." - platform: group name: Master Bedroom Lights entities: - light.master_lampleft - light.master_lampright

tame dove
#

That error has nothing to do with it being unavailable, only that it has to be edited in yaml and can’t be edited through the UI.

nocturne steeple
#

Is this the section I can ask about configuring where the db would be created/saved ?

dark dirge
#

nope

kind shellBOT
nocturne steeple
#

please guide me to the right spot

dark dirge
#

it depends on what you're looking for. recorder is the integration that handles connecting to the main HA database, and that's an #integrations-archived , but it's not the database

#

it does have information on how to connect to a number of different databases

kind shellBOT
keen plume
#

Hi All. Noob here. Is it possible to create a custom card that shows a countdown timer in one row and in the next row there are 3 buttons in 3 columns for "Start", "Stop", and "Reset"? I figured out how to make the timer row but not the buttons row. I would like to make the text the button that can be tapped/clicked.

keen plume
#

@errant plover yes I saw that but it didn't look like I could put it in a row within a card

#

and didn't want to continue discussion in wrong channel

errant plover
keen plume
#

ah perfect! thanks! i think that is exactly what I was looking for

#

@errant plover side question.. is it possible to also control the state dynamically? that is to make it greyed out when the button doesn't apply?

errant plover
keen plume
#

ahh ! ok perfect.. I did see this but wasn't sure

errant plover
#

It can be a complicated card to configure because it is hugely customisable. Start simple.

keen plume
#

will do.. i am a sw engineer so I should be able to get it working.. just needed a little direction 😄

#

one other question.. i am trying to understand a little on the vocabulary here.. when you build a custom a card in yml.. it will consist of various entities and types, right? and those types can be other "cards" ?

errant plover
#

A card has a type, e.g. entities, glance, horizontal stack, etc... Cards can contain different elements, like rows, or other cards.

keen plume
#

ahh ok that makes sense

#

thanks... will play with it more after work

cursive sapphire
#

Hi all. Asked that already in #ios_and_mac-archived cause it’s bugging me there the most. But it’s a generell Frontend Problem so: what can I do if my entities cards (standard Lovelace, no custom card) have been broken since this release? there are line breaks every day I open Lovelace in the browser. After the first refresh via F5 it disappears but reappears in the next session. In the iOS App it is the same but stays forever. See #ios_and_mac-archived message

#

To be clear: it is not related with ios or the app: it’s the same in Firefox and Safari in mac and pc

cold tulip
#

is there a way to !include other files in a themes yaml? trying to include animated-weather-icons.yaml code into themes rather than copy each .svg path

polar kelp
#

Trust me. That's the problem.

craggy schooner
#

in a yaml I'm looking at there is code contained in [[[ ]]] brackets.. where or what should i google to find documentation on this... example:

          [[[ return entity === undefined ? 'rgba(255, 255, 255, 0.3)' : '#efefef'; ]]]```
dark dirge
#

That’s probably from a config using custom button card

#

And it’s JavaScript

cursive sapphire
craggy schooner
#

thanks

polar kelp
#

You have template-entity-row installed, right?

cursive sapphire
#

I have it linked though not using it at the moment in my dashboard. Once I used it

#

With linked I mean it is still in settings - dashboards

polar kelp
#

That’s enough. Either remove it or install the latest version. Then clear your frontend caches.

cursive sapphire
#

Thanks 🙏

polar kelp
#

For the app there’s a button to do that in the settings somewhere. For uour browser, see the guide linked near the top of the readme for any of my lovelace things.

cursive sapphire
mild veldt
#

It's not luck, Thomas is always watching from the shadows...

tough cairn
#

Hi, Grid card. 3 columns. 3 media player entities. I like the width. How do i make the card taller so it shows more info?

#

I notice for a brief second it changes height and shows more info when i change the number of columns as shown in the video above

polar kelp
#

Turn off "Render cards as squares"

tough cairn
#

I did

#

Nothing

sly pulsar
#

Anyone know why triggers_update is not working in my custom: button-card. It only change the card from the main entity but the triggers_update entity don't update the card.

#
entity: binary_sensor.voordeur
triggers_update:
  - binary_sensor.achterdeur
kind shellBOT
tribal sage
#

I started using browser_mod.pop_up this week. I'm having an issue where the pop_up doesn't just happen on the device I'm using but all devices. Thomas's example shows - this in the deviceId. I was hoping this would filter to only this device but I'm not having any luck in this code: https://paste.ubuntu.com/p/gNYyRDWTrT/

karmic tiger
#

No

heavy pasture
#

Is there anyone that can give me a clue on what to look for to solve an issue? I use the mail and package custom card on some computers with the same Chrome version I get an error saying that the element does not exist. On other computers it displays correctly. I have cleared cache, many times and no difference. Thanks

#

The error in the console is ```Uncaught SyntaxError: Home-Assistant-Mail-And-Packages-Custom-Card.js:712 Unexpected token 'export'

polar kelp
flat steeple
#

theme keeps changing after i login and log out how to specify a permeant theme for a specific user ?

polar kelp
#

Can't. It's a per-browser setting.

flat steeple
#

can anyone tell me why this isnt changing back to default ?

data:
  name: default```

i tried refreshing numerous times
heavy pasture
#

@polar kelp were you directing the link to me? My resource type says JavaScript module

whole heron
#

I use some conditional cards to display graphs based on an input_select, can I use templates for that aswell?

dark dirge
#

only if it says so

#

and it doesn't

whole heron
#

or to be a bit more precise: could i use the selected entity from an input_select for a auto-entity card?

dark dirge
#

so you're not using a conditional card?

whole heron
#

well right now I do that:

dark dirge
#

auto-entities is a completely different card

whole heron
#

- type: conditional conditions: - entity: input_select.load_graph state: "Stunde" card: type: history-graph title: 'Systemload (Stunde)' hours_to_show: 1 entities: - entity: sensor.load_1m name: 1m

#

works well for some graphs (hour,day,week and so on)

flat steeple
whole heron
#

I want a list of all my esps and based on that input_select auto-entities for that esp

#

a conditional card for esp32 1 to 12 would result in a lot of lines

#

@flat steeple thanks, but I assume that won't fit my usecase

dark dirge
#

I'm not following why auto-entities can't do everything you need

whole heron
#

sure it can but how do I replace the filter with the selected entity in the input_select field

dark dirge
#

the filter can take a template

#

and a regex

#

you just have to construct a template that outputs a list of entities based on the input_select, based on entity_id, name or whatever

#

I don't know how you're correlating them, but there are examples in the auto-entities docs

#

in any case, the answer is "no, conditional cards don't take templates"

whole heron
#

ah maybe I should replace include with template...

#

thanks

#

sorry it's late

dark dirge
#

I'm sure the magic is there, you'll just need to play with it

mortal whale
#

Can I call a service from the frontend that has randomly generated rgb values? My service call works when I manually enter values but fails when I try to get it to randomly generate a value.

#

I am using ```
"rgb_color: [{{range(0, 256) | random()}}, {{range (0, 256) | random()}}, {{range(0, 256) | random()}}]"

#

How do I display my code here in that format that you guys use? Was never able to figure that out...

dark dirge
#

You should call a script and put the template in there

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

Don't forget you can edit your post rather than repeatedly posting the same thing.

For over 15 lines you must use a code share site such as https://paste.ubuntu.com/ or https://www.hatebin.com/.

mortal whale
#

I am using a custom button card where I am trying to use the double tap to call the service to turn on a light to a random color. Would a script work for my case?

#

I've also never used scripts.

dark dirge
#

Then you’re not using the right template syntax either

#

But yes, you should be able to do what you want in a script. You can probably find threads on the forum about it

mortal whale
#

Kept trying without the script and this is the error I am getting "Failed to call service light/turn_on. expected float for dictionary value @ data['hs_color']" ```
double_tap_action:
action: call-service
service: light.turn_on
service_data:
entity_id: |
[[[ return entity.entity_id ]]]
hs_color:
- "{{ range(360)|random }}"
- "{{ range(80,101)|random }}"
brightness_pct: 100

dark dirge
#

You’ve randomly used two different template types

mortal whale
#

yeah...im not really sure what Im doing to be honest. I've just been trying to learn from forums. Most, if not all, of the stuff I have working uses the template type like the entity_id one I used. The hs_color part I found online and I am trying to get to work. The template documentation explains the jinja syntax seems to be what the hs_color is using but to be honest I am not sure what that means for my use case...

dark dirge
#

So it seems 🙂

#

You have to follow the docs for the card you’re using

mortal whale
#

Think I got it!

double_tap_action:
      action: call-service
      service: light.turn_on
      service_data:
        entity_id: |
          [[[ return entity.entity_id ]]]
        hs_color:
          - '[[[return Math.floor(Math.random() * 361)]]]'
          - '[[[return Math.floor(Math.random() * 20)]]]'
        brightness_pct: 100
dark dirge
#

That looks better

mortal whale
#

Too much learning for today. I appreciate the guidance!

gaunt wadi
#

cant change device states...something wrong with states in the dev section? or am i missing something?

polar kelp
#

The Set State button will set what Home Assistant thinks the state is. This will not reflect into reality.

gaunt wadi
#

i feel stupid now.. how can i test device parameters?

#

services I guess

vapid field
#

Has anyone done any nice media front end GUI's they wouldn't mind sharing ? Looking to use HA for starting a cinema room. and a 7" Fire as a little control pad for it all.

fiery ledge
tough cairn
#

Can a media player card show a picture while inactive?

urban herald
#

Hi we have problem with https my cert is valid but url say not secure 😫

#

dont know why

mortal crystal
#

Is anyone using a Zen01 thermostat? I'm struggling to get it to show it's fan mode in the dashboard properly. When it's run in what I'd call "fan only" mode it has a "Fan Mode" of "On" and an "Operation" as "Off". The default lovelace card presents the entire thing as "off" which is confusing. I'd appreciate some guidance on fixing how that presents.

tender bronze
#

is there a way to force a button to be square when in a horizontal stakc?

polar kelp
#

If you want only the one button to be square, it's probably easiest to put it in a grid in the stack.

tender bronze
#

That stretches both of the items in the stacks vertically. what I want is to have one square button on the right and another one which fills the remaining space

kind shellBOT
craggy schooner
#

Is it possible to force the language for the weather card? I like my settings to be in english but want my weather reported in my language of choice

hallow mango
dark dirge
#

for some cards, yes. Like custom button card

fiery ledge
#

would anyone know of a custom-card creating vertical rotating number selectors for an input_datetime: ? the core way of showing this in frontend is practically unusable on mobile devices if you have larger hands(fingers) like I do... 😉

fiery ledge
dark dirge
#

yes, I forked that and gutted it to make my own sorta-similar card 🙂

quaint snow
errant plover
#

You need to supply the entity: option so it knows what to monitor the state of. Also you don't need the operator: option.

quaint snow
#

Thanks mate 🙂

quaint snow
rough coyote
#

How do i display a camera in the GUI? I have a camera.buienradar but i dont have a card it seems that can display cameras'

rough coyote
#

Oh i tried that but id did not show in the configuration editting so i discarded it. thank you Tom.

errant plover
rough coyote
#

sweet, works.

#

What does the 'idle; mean. That it's currentlky not retrieving data?

fleet fractal
#

Good morning !!!

#

I am facing this "issue" with Lovelace.
It is "adding" cards to my dashboard without my consent. I have deleted them many times and it comes back !!

errant plover
polar kelp
#

idle is as opposed to recording or streaming.

#

Don't know if there's any camera integrations that actually set another state than idle, though.

errant plover
polar kelp
#

I assume that's the first step of "deleted them many times"...

errant plover
#

Yeah I was just coming to that conclusion

polar kelp
#

It could be a backup being restored somehow, or possible file permission problems.

fleet fractal
errant plover
#

Yeah you've already done it if you are deleting cards

#

It only shows once

fleet fractal
#

I've been using HA for quite some time now... and I never had this problem.

errant plover
#

When does it happen? When you install something new?

fleet fractal
errant plover
#

Fiddlers? As per my second comment?

fleet fractal
errant plover
#

🤷‍♂️

fleet fractal
#

LOL

fiery ledge
dark dirge
lyric atlas
#

Hi,

I’m pretty new to this and would really appreciate some help. I am trying to add Traccar information to a Lovelace dashboard. I would like to add the speed attribute to a gauge. I have tried adding the following:

states.device_tracker.car1.speed
states.device_tracker.car1.attributes.speed

I have also tried adding the following to my config file to create a value template

Copy to clipboard
car1_speed:
value_template:
"{{states('device_tracker.car1.speed') | float}}"
Any assistance would be greatly appreciated

karmic tiger
#

You've said what you've tried. You haven't said what the problem is. Are you getting an error?

cedar girder
#

has something changed recently regarding Markdown cards? My conditional card which had some templates in it doesnt work anymore

#

in particular doesnt show [[states]] anymore

karmic tiger
#

Are you getting an error?

cedar girder
#

not really it just started rendering states as text [[ state ]] instead of resolving it

#

ok i see that {{ states.blahblah }} still works

#

but it used to work with [[ ]] in markdown card, right? im not going crazy here?

dark dirge
#

I've never seen that. Custom button card uses [[[ ]]]

#

it's really a question of whether it uses the Jinja engine in the backend, in which case {{ }} is expected, or if it's javascript, and then the delimiters are card-dependent

lyric atlas
#

No error that I can see ... the lovelace card is just showing 0.0

dark dirge
#

I'm not sure what your config is anymore, or where the value is that you're trying to surface

#

this is definitely wrong: "{{states('device_tracker.car1.speed') | float}}"

sharp sapphire
#

i have been trying to integrate my robot vacuum into home assistant using a vacuum template and showing its status using this vacuum card https://github.com/denysdovhan/vacuum-card but cant seem to get the van speed to work the relevant part from the config is available here https://pastebin.com/MdEZpd7r does anyone have an idea of what is going wrong. if this is the wrong chanel please redirect me to the correct one

dark dirge
#

doesn't do anything? what do the logs say?

#

can you change the fan speed from devtools -> Services?

#

it looks like it's calling set_fan_speed

#
  handleSpeed(e) {
    const fan_speed = e.target.getAttribute('value');
    this.callService('set_fan_speed', false, { fan_speed });
  }
sharp sapphire
dark dirge
#

You need to make sure it works in devtools -> Services

#

That’s all the card is doing

finite sand
#

hi, i have a question about the sensor card. in one github update it says, that

"Default limits still automatically fit the data unless any unit_of_measurement is %. Then the default are 0-100."

is there any way, of getting back automatically fitting limits if unit_of_measurement is %?

#

i liked my humidity sensor card better before that change

#

i know i can change limits like with:
e.g.

limits:
min: 0
max: 30

but is there an option to automate?

winter blade
#

Is it possible to apply a gray filter over the image of a media player that is being displayed using the custom mini media player card. Someone told me about custom CSS but I have no idea how to do it. If it's possible, can someone tell me how?

#

Or maybe point me in the right direction

lost hatchBOT
dark dirge
#

#botspam for bot...spam

lyric atlas
#

My config file looks like this ....

#

This does not work
car1_speed:
value_template:
"{{states('sensor.device_tracker.car1.speed') | float}}"

This does work ... MQTT data

  main_battery_percentage:
    value_template: 
      "{{ ((((states('sensor.mainbattery') | float) - 11.8) / 1.08) * 100.0)| round(1) }}"
grim scaffold
#

Hi All. I am trying to get custom:notify-card working to send announcements via my google home speakers but I just cannot get it to work. Please does someone have sample code that I can use?

proven oar
#

hello together. i'd like to have several cards that use the full screen width on my dashboard and also mix in some "normal" cards. is this possible and if so: how? setting the dashboard to panel mode only lets me display one full screen card or i am doing something wrong 🙂

livid lodge
upper zephyr
#

is there a way to change the temp from F to C in a card? i have unit_of_measurement: '°C' under the sensor but its not working

steel warren
#

is there a plugin or someway i could make some of the data of my home assistant public on the internet? like expose one card to a url without authentication

summer willow
vapid field
#

Hi, I want to put all the entities in an area. I know a card for area is not available (yet), but is there a way of exporting all the entities for the area, so at least I can include it in the entities card please. Thank you

dark dirge
#

I don't think that's currently possible. I don't see it in the state object definition, and I can't create a template that pulls the area from an entity. Areas for entities are relatively new

polar kelp
#

auto-entities

upper zephyr
#

Is anything having the issues of HA just ignoring the customize.yaml? It works for about 10-30 seconds then back to what it was. I'm trying to change some sensors too Celsius (I use both)

vapid field
dark dirge
#

oh, hey

surreal agate
#

Hello, would anybody know how to display this sort of label on a door or other binary sensor? To just say open/closed. On the binary sensors you don’t get this label. I do have card mod, but I don’t know how to do it in css. Thanks. https://imgur.com/a/W8YUAAO

dark dirge
#

device_class

proven oar
#

@summer willow this is pretty cool, would you maybe @ me when you get something like this working? 🙂

surreal agate
# dark dirge device_class

Yea unfortunately I have tried this. It updates the icon correctly to its state, but the label is still not present

finite pond
#

How do I get state_color to work with a sensor in an entities card?

umbral pier
#

Hi, I created a js for creating a custom icon in the www folder. I added that as a resource. Worked. Found out it needs editing, so I modified the js. However I don't see the effect on the frotend. I'm not fully aware of the js loading mechanism... What should be restarted, redone to make the new js effective?

errant plover
#

Or other binary devices like switches.

finite pond
#

Custom card to the rescue it seems

errant plover
#

card-mod would do it

jagged vapor
#

I m using a Gauge card for measuring moisture content. The card exceeds the max value which is 100 when the sensor actually exceeds the percentage.
Is there any way to manipulate the gauge card from exceding the maximum value?

dark dirge
#

you could create a template sensor that clamps the value

jagged vapor
mortal whale
#

Working on an icon using the custom button card but I am having a hard time with the layout. Does anyone have experience with a button that has a main center icon at the top and two additional buttons within that button that just display data? I have it laid out but I cant get the main icon to center on the top. Its hanging out towards the left side.

kind shellBOT
long crane
#

Is there a way to organize/reorder the panels on dashboard?

#

Ah, i got it. The arrows 🤦‍♂️

craggy perch
#

Is it possible in the mini-graph-card to get the value by hovering over after disabling "show_points"?

proven oar
#

@long crane you probably want to look into horizontal/vertical stack cards too ... i missed them myself for some time

wind bobcat
#

Hi, is there anyone who knows if you can restrict access to the history panel for other users?

fossil orbit
#

Hello, quick question. Is it possible to use one icon in lovelace for 2 entities? One to turn to the right when on and the other one to the left?

steady pike
#

Hi, I am creating a progress bar that shows me the remaining print time on my 3D printer. I'm using bar-card and I'm wondering if it's possible to manage time values to set the "max" parameter to the total print time

vapid field
#

Hi, is anyone having problems with the frontend?I am getting what I think are time-outs. e.g. When I add a card to a dashboard view, the SAVE button simply has an endless circle going around and around. Additionally, I'm finding that I have to constantly clear my browser cache to get the most simplest thing done. This is HA specific. This seems to have happened after I tried to upgrade from 2021.06.4 to 2021.06.5 and it failed several times.

#

https://imgur.com/a/6pzaMIT Home assistant does not appear to be showing short events on the logbook card.. It will only show the "closed", and I want to see the openings. How can I do that?

limpid apex
#

Hello, I'm trying to customize an icon based on a attribute of my media player, but I can only use the state which is on or off.. can someone help me with this?

dark dirge
#

It depends on the card you’re using

#

And how you’re current specifying the icon to use

manic harbor
#

how can i make a dashboard have 3 cards side by side?

dark dirge
#

horizontal stack?

manic harbor
#

thanks I'll check that out

dark dirge
#

Might need to use panel mode to not be constrained to a single column

#

Or you can get fancy with a layout card or grid card

bitter bolt
#

anyone use custom-sidebar ? wondering how i get the proper names of the sidebar items that the plugin utilizes.

manic harbor
#

grid and horizontal panel all fit the cards into one card space

#

is there any way to make cards use 3 columns

#

or span multiple columns

dark dirge
#

Might need to use panel mode to not be constrained to a single column

manic harbor
#

i tried googling for panel mode but not sure I was finding the right thing

#

can you give me a bit more of a pointer please?

manic harbor
#

ah I see

#

thanks RobC

#

panel mode is what I needed, thanks, got it working

limpid apex
#

@dark dirge im using card mod for a buttun card. Example: icon A when state on and icon B when state off. But instead of on/off I want it to be an attribute of the entity

dark dirge
#

you could create a template sensor with whatever logic you want for the icon, or use a custom button card

limpid apex
#

I'm using a custom button card atm

dark dirge
#

then you can use whatever logic you want for the icon

hollow sky
#

is there a way to add custom css to lovelace ?

forest vector
frozen olive
#

Does anyone know why this isn't overriding my variables?

      card-mod-root: |
        ha-app-layout {
          background: url('/local/background.png');
          background-size: cover;
        }
      card-mod-view-yaml: |
        .: |
          hui-view {
            background: none !important;
            min-height: 100vh;
          }

I can see the background.png is there, but the hui-view is inheriting the background colour and doesn't seem to override it

#

I can see that the style applied is

hui-view {
    background: var( --lovelace-background, var(--primary-background-color) );
}
blazing hamlet
#

Howdy

#

I'm facing an issue with lovelace recources, the js module can be displayed if I'm accessing the ui from internet (external access) but not locally 192..168.x.x

#

lol looks like the issue is resolved after the latest update

tranquil saddle
#

I'm trying to add an arrow after the current temperature, to display wether the temperature ist rising or falling. Any idea, how to add an arrow to a string on a button card?

hollow sky
#

@frozen olive i mean global css, not just for a card

frozen olive
#

not entirely sure how that'll work through shadowdoms though

upper zephyr
#

So i'm not sure how to tackle this, i wanna be able to update a PNG on my frontend according to a sensor but this is the location i get. could someone point me in the direction of how to maybe do this? https://i.imgur.com/jnEByYW.png

brave basin
#

I see Kindle Fire HD 10 2021 version on sale for $79 in US on Prime Day. Anyone have experience using those as a HA display or rooting them?

errant plover
frozen olive
#

Has anyone had issues with custom icons intermittently not working

final nacelle
#

Sup @formal zodiac did you get your sleep timer working? I'm failing on it aswell...

charred frigate
#

Can I combine two (other/unrleated) custom cards using the hui-element custom card (if anyone has done something similar)? And if so , is it mandatory that the card that will encompass the hui-element has a entity: or entities: attribute or it can be just any attribute ?

frozen olive
#

does anyone know if theres a flexbox layout card

hidden plinth
#

Is it possible to create a template title for the notify service call? Basically I want the title to return the name of the user that has activated the service-call. I couldn't find anything regarding that in the template docs or notify docs. Or if it's possible in the message that would be great too. I use the service-call with custom:button-card btw. This is my code if anyone has any thoughts: https://paste.ubuntu.com/p/PGYKR74B9Q/

timid moss
#

How can I make a button to turn off all lights in my house, if some of them are light.xx and others are switch.xx? I thought of making a group containing them all, but what service would I call?

dark dirge
hidden plinth
dark dirge
#

user: The user object (equivalent to hass.user)

hidden plinth
#

so the notification that pops up on the notify service call, shows that name of the user envoking the call

dark dirge
#

Action
All the fields support templates, see templates.

#

service_data object none Any service data Service data to include (e.g. entity_id: media_player.bedroom) when action defined as call-service. If your service_data requires an entity_id, you can use the keywork entity, this will actually call the service on the entity defined in the main configuration of this card. Useful for configuration templates

#

and so on

#

here's an example where I've used a template for the service_data:

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

'[[[ return `Kritieke melding van ${user}, doorgaan?` ]]]'

I tried this, but that doesn't work

#

I think I'm not fully grasping the template yet

dark dirge
#

ok

#

keep at it. mine works fine

hidden plinth
#

perhaps I figured it out

wheat current
#

user === hass.user so user.name === The users name

dark dirge
#

yeah, that too 🙂

#

message: "[[[ return `${user.name}` ]]]" works

#

there we go. gotta double tick it

wheat current
#

If that works, message: "[[[ return user.name ]]]" should work as well

dark dirge
#

it should. there was some weirdness around confirmation popups that required the other syntax, though

#

the simpler one works fine in a persistent_notification

hidden plinth
#

🥳

#

yes, thanks guys, makes sense now as well

fiery ledge
#

this is for custom button-card is it?

wheat current
#

No it does not, nothing about this makes sense 😂

dark dirge
fiery ledge
#

a ok, for a moment I thought I missed templates in core...

dark dirge
wheat current
#

You need that if you are using a variable inside the string

dark dirge
#

ah, not a JS guy

wheat current
#

"need", Hi there ${user.name}! is the same as "Hi there " + user.name + "!"

fiery ledge
#
  confirmation:
    text: >
      [[[ return 'Are you sure you want to toggle ' + entity.attributes.friendly_name + '?'; ]]]
#

can be used too. A Ludeeus beat me to it.. sorry

dark dirge
#

I learned just enough to make a simple custom card, and that's already started leaking out

timid moss
#

How can I make a button perform two tap_actions?
I tried

          tap_action:
            - action: call-service
              service: light.turn_off
              service_data:
                entity_id: light.all_lights
            - action: call-service
              service: homeassistant.turn_off
              service_data:
                entity_id: group.all_switches

but nothing happens when I press the button

dark dirge
#

use a script

wheat current
#

use a script

dark dirge
#

no, use a script

wheat current
#

NO! use a script

timid moss
#

Wait I think I might try using a script

wheat current
#

sounds good 👍

dark dirge
#

way to think out of the box

timid moss
#

Yeah it just came to me

hidden plinth
#

you can call multiple service calls according to RomRider

#
tap_action:
  action: nothing
  multi_calls: |
    [[[
      hass.callService(
        "light",
        "turn_on",
        { entity_id: "light.my_light", brightness: 200 }
      );
      hass.callService(
        "switch",
        "turn_off",
        { entity_id: "switch.my_switch" }
      );
    ]]]
wheat current
#

yeah.... was about to say that you have full hass access in the template, so you can just abuse that 😄

hidden plinth
#

I haven't used this myself, just happend to come across this ticket when I was submitting a ticket a few days ago

wheat current
#

but scripts, are the cleaner way

dark dirge
#

gack, yeah, I wouldn't do it that way except to show off 🙂

wheat current
mortal whale
#

I remember I had seen a card with a drop down that let you select the device you wanted to cast to. Does anyone know how to achieve that?

dark dirge
#

sounds like an input_select entity

wheat current
#

Input select?

dark dirge
#

no, input_select

wheat current
#

Ah! input_select

#

Yeah that make sense

dark dirge
#

feels some serious deja vu

mortal whale
#

Ah input_select maybe with another card that can show/hide depending on what is selected. Good idea.

charred frigate
#

Hey guys - is there any chance I can combine two (other/unrleated) custom cards using the hui-element or some custom card (if anyone has done something similar)? And if so , is it mandatory that the card that will encompass the hui-element has a entity: or entities: attribute or it can be just any attribute ?

manic harbor
#

with the history graph, if I make one for 7 days (168 hours), it still shows time of day on the x axis rather than days

#

see left hand graph in that image

#

is there some way to make it show day/date instead of a time?

fresh heath
#

Anyone else not able to use light&dark themes? I tried making just a basic one and it doesn't give me the option for the modes when I select it

vapid field
#

I'm reading other users who are also experiencing intermittent refreshes of their HA WebGUI. I've just started to experience the same thing. Based on my troubleshooting, it seems (to me at least) that somewhere between the 2012.06.4 and the most current release has somehow introduced this. My config is sitting behind pfSense and HAProxy and I've implemented the "timeout tunnel 1h" suggestion to no avail. I'm not using https, and HAProxy is forwarding to <ip_address>:8123. My setup is on an RPi4. Anyone else experiencing something similar?

EDIT: If the refresh tries to take place when I'm clicking Save or Create, then HA says "unknown error." But when I click Save or Create again, it goes through, but nothing seems to be in the HA logs.

lucid pumice
#

looking to just show text from a sensor that is text (weather forcast info). Any good ways to do that in lovelace?

fathom fox
#

I am seeing this error quite frequently in the logs 2021-06-22 13:38:28 ERROR (MainThread) [frontend.js.latest.202106030] :0:0 ResizeObserver loop completed with undelivered notifications.

frozen olive
#

there's nothing fancy to get custom fonts in is there, just a font.css in www/font.css and then included in resources as { url: /local/font.css, type: css }

#
@font-face {
    font-family: "sf text";
    font-weight: 700;
    font-style: italic;
    src: url(/local/fonts/SF-UI-Text-BoldItalic.otf)
}
      ha-card-header-font-family: "sf text"
#

for whatever reason, i cant even see my font.css being loaded

polar kelp
#

Doesn't that define a font family that only works for italic text with weight 700? I could be way off

#

And try adding a semicolon to the end there. After url()

frozen olive
#
@font-face {
    font-family: "sf text";
    font-weight: 400;
    src: url(/local/fonts/SF-UI-Text-Regular.otf)
}

then in the computer section I can see

font-family: "sf text"
font-weight: 400
#

but it looks like times new roman to me 😂

polar kelp
#

Still missing that semicolon

frozen olive
#

didnt make much difference adding it

hollow otter
#

can I use a template to a generate the enties for a logbook card?

type: logbook
entities: {% for i in states.input_boolean if 'chore' in i.entity_id %}
  - {{ i.entity_id }}{% endfor %}
hours_to_show: 24
title: Chore Activity

I want to have this card, but it doesn't appear to be working, before I totally give up assuming it's not possible without a custom card I thought I'd ask here.

polar kelp
nocturne plume
polar kelp
#

It's rather useful.

hollow otter
#

Awesome, I figured a custom card probably existed for it, but I try to avoid them until I know the built in ones can't do what I want.

slow pilot
#

Can anyone tell me where to find floorplan.yaml

#

I'm trying to get floorplan working, but all these guidelines say to modify floorplan.yaml

#

it doesn't exist anywhere in my HA tho

#

Was there some version change where floorplan.yaml doesn't exist anymore

#

I have floorplan up and running, but when I want to add sensors and action behind them, i need to modify flooorplan.yaml

#

but i cant find it anywhere

#

help pls!

hollow otter
slow pilot
#

Then how does the floorplan work at all without it? It's just built into the lovelace card?

hollow otter
#

Or alternatively, you can use the new picture elements card in lovelace.

slow pilot
#

That's what's so frustrating, honestly. There are so many different tutorials and they seem to refer to outdated versions of floorplan

hollow otter
#

Yeah, if you're new to home assistant, I'd recommend sticking with the official home assistant stuff on that https://www.home-assistant.io/ site to start until you're comfortable with the platform and only then looking up more custom 'fan made' project tutorials.

slow pilot
#

the picture-elements example seems like it's what i'm shooting for

#

i have a bunch of water sensors that i want to embed in my background image. they show "dry" image version when sensor is dry and "wet" image version when sensor reads wet.

hollow otter
slow pilot
#

i've got the svg of my background. i know how to add the 'dry' icons and label them. i'm just not sure i see how to set up the connection between the wet/dry image and the actual sensor in my HA setup.

hollow otter
slow pilot
#

Seems like map sensor to different images is the way to go. But where do I put the .yaml coding that the example shows?

hollow otter
#

You can do it however you do your lovelace cards.

#

you can set up your lovelace in the UI, or you could also map it to a .yaml file.

slow pilot
#

i guess i'm doing it in the UI

#

i find this launguage when i dive in

#

type: 'custom:floorplan-card'
full_height: true
config:
image: \local\floorplan\JSG\Basementv2.svg
stylesheet: \local\floorplan\examples\home\home.css
log_level: info
console_log_level: info
defaults:
tap_action: more-info

#

that seems to be the basis for 1 of the 3 (cards/pages) that i'm workin gon

#

is that where I stick the "elements:" tag and start setting up the entite etc

hollow otter
#

Well if you're going with the picture elements card for now, you need to wipe everything you've done so far with the floorplan card.

slow pilot
#

argh lol

hollow otter
#

yeah lol, some of the stuff may overlap, not not everything does 😅 so having stuff from the other one could cause your card to break

slow pilot
#

I dont mind doing some research but this feels like a series of traps

hollow otter
#

haha, yeah that's why I said stick just with the official home assistant site until you get comfortable. some custom stuff is really awesome, but can be confusing when you are just getting started

slow pilot
#

Why isn't it just this;

#

rules:
- entity: light.garage
element: light.garage
state_action:
action: call-service
service: floorplan.image_set
service_data: '/local/floorplan/examples/home/light_${entity.state}.svg'

#

or is this based on some outdated floorplan?

#

the entity is the ID in the svg. So does that mean that the element is the HA sensor i'm trying to attach to?

hollow otter
#

That looks like it was based on some custom project, I'm not familiar with that ever being an official part of home assistant.

slow pilot
#

would be so nice if there was some way to tag outdated instructions

hollow otter
#

yeah, that's a community project. Anything in the community tab should be taken with a grain of salt.

#

I don't use that project, it may not be outdated, but it's a custom add-on to HA, it's not built in.

slow pilot
#

well u seem to know whats going on here more than me.
My goal here is to highlight which of the leak sensors is showing as wet. Is there an easier way to show that at a glance?

#

i was planning to drop them on a real map of the house and let the right one light up. but that seems like a dead end

hollow otter
steady sluice
#

Hey guys, so im trying to use mdi icons but this one isnt working. mdi:cast-variant

slow pilot
#

@hollow otter thanks for ur help; i gotta run

steady sluice
#

It says it is on the mdi website here

slow pilot
#

that seems like the same place i'm going

hollow otter
polar kelp
next goblet
#

Hi folks. I hope this is the right place to ask. I'm using history graphs in my lovelace UI, and even after setting the refresh interval to e.g. 120, my browser is sending requests for more info every 4 or so seconds. This causes a fair amount of work for my HA server.

#

Am I doing something wrong?

#

I am planning to try out: https://github.com/kalkih/mini-graph-card to see if it is more power/network efficient, but I thought I would ask here first to see if anyone else had the same issue, or any insights into fixing it.

slow pilot
#

@hollow otter Is the only way to place the "state_image" using top/left percentages? You cant inlay the base image in the background image?

slow pilot
#

Why is it ignoring "State_image"

#

type: picture-elements
elements:

  • type: state-badge
    entity: binary_sensor.ls_ro_room_dry
    state_image:
    "Dry": \Local\Floorplan\JSG\leaksensordry.svg
    "Wet": \Local\Floorplan\JSG\leaksensorwet.svg
    style:
    top: 32%
    left: 50%
    image: '\local\floorplan\JSG\Basementv2.svg'
dark dirge
#

wrong slashes

slow pilot
#

type: picture-elements
elements:

  • type: state-badge
    entity: binary_sensor.ls_ro_room_dry
    state_image:
    Dry: /Local/Floorplan/JSG/leaksensordry.svg
    Wet: /Local/Floorplan/JSG/leaksensorwet.svg
    style:
    top: 32%
    left: 50%
    image: /local/floorplan/JSG/Basementv2.svg
#

sitll nothing

#

"basementv2.svg" is being found and used, but the dry/wet are not

dark dirge
#

now you have random capital letters

slow pilot
#

type: picture-elements
elements:

  • type: state-badge
    entity: binary_sensor.ls_ro_room_dry
    state_image:
    Dry: /Local/floorplan/JSG/leaksensordry.svg
    Wet: /Local/floorplan/JSG/leaksensorwet.svg
    style:
    top: 32%
    left: 50%
    image: /local/floorplan/JSG/Basementv2.svg
#

ok all the capitalizations match

dark dirge
#

not above

slow pilot
#

above?

dark dirge
#

Wet: /Local/floorplan/JSG/leaksensorwet.svg

#

it's /local

slow pilot
#

type: picture-elements
elements:

  • type: state-badge
    entity: binary_sensor.ls_ro_room_dry
    state_image:
    Dry: /local/floorplan/JSG/leaksensordry.svg
    Wet: /local/floorplan/JSG/leaksensorwet.svg
    style:
    top: 32%
    left: 50%
    image: /local/floorplan/JSG/Basementv2.svg
#

appreciate your help. still not working

dark dirge
#

I see no evidence that state_image is an option for the state-badge type

slow pilot
#

the images example there uses "state_image"

#

should I try state_badge instead?

dark dirge
#

not with type state-badge that I can see

slow pilot
#

OOOH

dark dirge
#

you need to conform to the options specified for each type

slow pilot
#

should I try type "Image"

#

type: picture-elements
elements:

  • type: image
    entity: binary_sensor.ls_ro_room_dry
    state_image:
    Dry: /local/floorplan/JSG/leaksensordry.svg
    Wet: /local/floorplan/JSG/leaksensorwet.svg
    style:
    top: 35%
    left: 55%
    image: /local/floorplan/JSG/Basementv2.svg
#

like that, the sensor disappears entirely

dark dirge
#

looks more promising. But binary_sensor.ls_ro_room_dry will never be "Dry" or "Wet"

#

binary_sensor is always either "on" or "off"

slow pilot
#

oh. it reports as "Dry" state right now.

#

but just reinterpret that as on/off? ur thinking?

#

type: picture-elements
image: /local/floorplan/JSG/Basementv2.svg
elements:

  • type: image
    entity: binary_sensor.ls_ro_room_dry
    state_image:
    "On": /local/floorplan/JSG/leaksensordry.svg
    "Off": /local/floorplan/JSG/leaksensorwet.svg
    style:
    top: 35%
    left: 55%
#

didn't help

dark dirge
#

always look in devtools -> States

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

Don't forget you can edit your post rather than repeatedly posting the same thing.

For over 15 lines you must use a code share site such as https://paste.ubuntu.com/ or https://www.hatebin.com/.

dark dirge
#

your unformatted text hurts my eyes 🙂

#

and it's "on" and "off". case matters everywhere

slow pilot
#

'''
type: picture-elements
image: /local/floorplan/JSG/Basementv2.svg
elements:

  • type: image
    entity: binary_sensor.ls_ro_room_dry
    state_image:
    "On": /local/floorplan/JSG/leaksensordry.svg
    "Off": /local/floorplan/JSG/leaksensorwet.svg
    style:
    top: 35%
    left: 55%
dark dirge
#

you still haven't fixed the case

#

or found the backtick

slow pilot
#

one lesson at a time, lol. which backtick

#

lol

#
type: picture-elements
image: /local/floorplan/JSG/Basementv2.svg
elements:
  - type: image
    entity: binary_sensor.ls_ro_room_dry
    state_image:
      "On": /local/floorplan/JSG/leaksensordry.svg
      "Off": /local/floorplan/JSG/leaksensorwet.svg
    style:
      top: 35%
      left: 55%
#

Progress!

#
type: picture-elements
image: /local/floorplan/JSG/Basementv2.svg
elements:
  - type: image
    entity: binary_sensor.ls_ro_room_dry
    state_image:
      'off': /local/floorplan/JSG/leaksensordry.svg
      'on': /local/floorplan/JSG/leaksensorwet.svg
    style:
      top: 35%
      left: 55%
#

it works!!!

#

but the image is huuuuge. Is one of the style functions going to let me set the size?

#

THANK YOU!

dark dirge
#

it looks like it, but I know nothing about CSS

slow pilot
#

adding "width: 9%" below "left: 55% seems to have worked!

#

thank you RobC!

dark dirge
#

np, glad to help

steady sluice
#

Hey guys, so im trying to make a frontend for my fire tablet but it looks like this

#

I cant figure out how to make the buttons span the entire page

#

Ive tried using a vertical/horizontal stack card and panel mode, it still looks like that^

crystal oyster
#

Is there a way to change the background color of a webpage within the webpage/iframe card for lovelace?
As in, the webpage itself has a white background that i'd like to change to a darker background.

#

basically inject my own CSS

lime portal
#

Is it still true that you cannot use templates in a conditional card's state check? i.e.

    - entity: {{ state_attr('media_player.name', 'app_name') }}
      state_not: 'Spotify'```
#

(for those curious, I have a card stack setup with all my media_players, but if a media_player is running Spotify I don't want it to display that player as Spotify has its own card)

errant plover
#

Yes it is still true. Have a look at the custom-auto-entities card.

final nacelle
#

Would be nice, thanks

upper zephyr
#

Hi, so im trying to setup a 3d printer dashboard but i use mainly imperial, but for 3D printing i use metric. is there a way to do the conversion from F to C? i tried using unit_of_measurement: '°C' but that would only change the letter for maybe 5-10 seconds and go back to F with no changes to the value. any advice on how to make this work?

exotic dew
vapid field
#

Hi! Not sure if this is the correct channel for this. I have home assistant running with docker. I wanted to use the drag and drop functionality (https://github.com/RACELAND-Automacao-Lda/Custom-Grid-View). I downloaded the file, added as a resource and edited the yaml file in the dashboard (all on IU). I tried to run home assistant in another device and I got an error. Is this because the resource is locally installed?

upper zephyr
#

i think this is how you change from f to c with the calculations too {{ ((float(states('sensor.sensor1')) * 9 / 5 ) + 32) | round(1) }}

wheat current
#

spaghetti_sensor?? 🤔

exotic dew
#

my Supervisor API is refusing to load and the green LED on the Pi is on solid. The db is still being written to as far as I can tell since the graphs are being generated after the last reboot.

upper zephyr
exotic dew
#

My SD card is only a few months old and the last one I bought lasted 2yrs.

upper zephyr
exotic dew
#

SSH is kind of working, but it got hung waiting on the supervisor to load. SMB is taking forever to do anything and my last attempt to browse the shared location to check my configs timed out.

upper zephyr
#

hmm could be the sd card failing? im not sure i run mine in docker. ive had to many issues with sd card

exotic dew
#

I've had good luck w/ SDs in octoprint and my previous HA install. the newer release (I was on 0.78) seems to hit the SD a lot harder and runs slower on the same hardware for me not having any more stuff configured than before.

upper zephyr
#

ahh, could be that no issues with klipper here. but i do alot with my HA so wanted something a bit more reliable

exotic dew
#

The Pi is my best option so far since my QNAP NAS is slow as molasses

#

I have a spare 128GB SSD that I could press into service, but if HA killed an SD this quick then it might happen to the SSD too

upper zephyr
#

yeah i get that, i run a few pcs and servers so yes xD. if you have a Pi 4 maybe look into a ssd? ive never tried it but should be better than an sd card

exotic dew
#

I have a pi4 on the way, but it's allocated to my next printer build.

#

pi3b is my HA rig right now

upper zephyr
#

i have an ITX pc for my HA with a 120 ssd i think for like 3ish years with no problems

#

so the ssd should be fine

exotic dew
#

yeah, my first samsung SD lasted 2yrs so I got another when it went read-only.

upper zephyr
#

not SD, SSD. for pi stuff i try to only run Class 10 for this reason. what class is the SD card you used?

exotic dew
#

class 10

#

yeah, I read you're using an SSD. I was referring to my setup

upper zephyr
#

ah ok xD

exotic dew
#

i need to see if the 3b can run an SSD. SDs aren't expensive, but replacing them this quickly will get to be

upper zephyr
#

im not sure, but if it does that would be huge

exotic dew
#

crap... have a teams meeting in 2min.

upper zephyr
#

MULTITASK!!!!

exotic dew
#

PCs are not conveniently close. lol

#

power cycle sped up the SMB response it seems

#
  unit_of_measurement: C
sensor.octoprint_actual_tool0_temp:
  unit_of_measurement: C
sensor.octoprint_target_bed_temp:
  unit_of_measurement: C
sensor.octoprint_target_tool0_temp:
  unit_of_measurement: C
#

@upper zephyr that's what I have in customize.yaml

upper zephyr
#

oh i have '°C' could be that

exotic dew
#

yeah, that ascii doesn't play well for some reason

upper zephyr
#

So the template is set up like this

      spaghetti_hotend_actual:
        friendly_name: 'Hotend Actual'
        value_template: '{{ states.sensor.spaghetti_sensor.attributes["extruder"]["temperature"]  | float | round(1) }}'
        device_class: temperature
        unit_of_measurement: '°C'
        icon_template: mdi:thermometer
exotic dew
#

I don't use a template, just the octoprint sensors. I had a time w/ the new version detecting it as an integration and conflicting w/ my old yaml file

upper zephyr
#

YAY that was the issues lol

#

but yeah moonraker needs a bit more setup and tamplates to make everything a bit smoother

#

gunna keep an eye on it for like 5min so it it stays the same

exotic dew
#

i haven't tried moonraker, but have considered it even tho i'd lose several plugins i use in octoprint

upper zephyr
#

yeah, im building a huge voron but i added all i needed like Gcode preview, gcode send to printer with SuperSlicer and cams (im using a Pi2 for cams even tho klipper is on a Pi4)

exotic dew
#

MQTT is a big thing for me. I use it as a backup to TRP in case of a failed mosfet

upper zephyr
#

neat temps are good, gunna change the rest

#

TRP?

exotic dew
#

thermal runaway

upper zephyr
#

ahh you might like klipper its a bit complicated but really nice and alot of features

exotic dew
#

I have a smart switch w/ power monitoring on my Ender 3

#

I'm a Klipper fanboy

upper zephyr
#

octoprint ive noticed is like the entry point of all this

exotic dew
#

been running it for over a year

upper zephyr
#

ahh ok cool, i switched a few years ago and love it

exotic dew
#

I'm on track to a 25min benchy once I get my driver cooling issue resolved. 3 attempts have all failed due to massive layer shift at the same point. sliced 2 different times too.

#

my hotend can only handle about 14mm/s3 w/o really cranking up the heat

upper zephyr
#

i missed having a printer, been about a yeah do to health reasons and Hypercubes being a pain. So decided on a 350x350x400 Voron xD

#

might mess with speed benchys after i tune is properly

exotic dew
#

I was talking up on socials about wanting to do a 500 cube Ratrig. Then karma kicked me and I won the V-minion on a giveaway last month. it's 180 cube. similar design to the prusa mini

upper zephyr
#

All im waiting on is the Bed (under weight for the silicone mat and magnet for 24 hours) then add High temp silicone for another 24 hours so im hoping to be back into printing around Friday or Saturday

#

oh thats cool. i might stick with the voron community they are just so nice and supportive. big difference from the Hypercube community

exotic dew
#

it's good to have options.👍

upper zephyr
#

yeah

exotic dew
#

looks like I need an OS and HA update. I'll do that after updating addons and getting a snapshot

exotic dew
#

wow, history graphs are popping now. haven't seen this response since March when i left 0.7x. Hope it lasts.

nova bloom
#

is there a way to move the icon to the left of the name in a button card?

dark dirge
nova bloom
#

does that remove the regular button card or just in addition to?

dark dirge
#

it's a separate card

#

it's pretty great, highly recommended

nova bloom
dark dirge
#

well, it's there

nova bloom
#

oh boy there it is. sorry. for some reason i forgot how to use Hacs

junior topaz
#

using fan-control-entity-row with bond fan. I can set speed but off button doesn't appear to work. any ideas?

lucid pumice
#

HACS saying everything installed is not loaded, yet the are loaded and work on lovelace. any ideas whats up with that. I've been thorugh the related help doc and not managed to fix it

serene ridge
#

Not sure if this is the proper channel to ask. But when adding people, can I bind that to an "existing" account? It asks either unable to login or to create an account.. but the user already exists.

#

And finding it weird that I'm unable to change the main zone :-\

frail crag
#

Hi there, can't figure out from the manuals if there is an equivalent for templates for frontend. As a concrete example... a sensor graph that I would like to duplicate for 20 similar sensors. Do I have to copy paste 20 times?

serene ridge
#

Is the biosensor lock bugged? It's asking me to unlock twice

dark dirge
#

@frail crag Look into YAML anchors

bitter bolt
#

whats the easiest way to make a template's text change color depending on the number of the state? i have a state with a number like 77.4, which refers to the temperature in F.

right now i'm using a plain sensor. card

dark dirge
#

it looks like you'd want to define a theme and then apply it using the theme option, or you could use card_mod

steady sluice
#

Does anyone know how I can make a card a square?

#

Right now its formatting into a thin rectangle when I want it to be a square

#

Its a custom light card

polar kelp
#

Put it in a grid card with one column?

copper yoke
#

Yesterday my HA reset my dasboard to a complete new one with all the entities, any idea why this happened or how to reverse it?

polar kelp
#

Sounds like .storage/lovelace went missing somehow. Are you sure that's the only thing that happened?

#

Either way, restoring from your last backup is probably your best bet.

copper yoke
#

[supervisor.jobs] 'SnapshotManager.do_restore_partial' blocked from execution, system is not running - CoreState.FREEZE

serene ridge
#

Meh, unable to send attachments. Anyway.. Apparently according to the logbook, TV turned off.. Which is correct, but afterwards it says "TV Changed to problem". Why would it see it being off.. a problem? If it knows it turned off?

verbal finch
#

Hey guys i'm new to hassio i want to chang the severity colours on a guage card 0- 30 red 30 to 70 green and 70 to 100 blue . any suggestions on how to do this as i cant figute it out

carmine shoal
#

good morning. after rebooting HA, my living room entities are stuck. clicking on a light turn the light on/off but the displayed status of the entity reverts to on.

#

for switches and lights

errant plover
#

Check your error logs.

#

Refresh your browser cache.

frozen olive
#

Just using card-mod, this is my structure: https://imgur.com/a/qMfA2mS
I've got my card-mod code in, but it's not changing the color for example. Is there somethign im missing?

      card-mod-view-yaml: >
        "grid-layout$":
          hui-grid-card:
            $: |
              h1 {
                line-height: 0 !important;
                padding: 1vw 0 2vw 0 !important;
                font-weight: 500 !important;
                color: red !important;
             }
unkempt hull
#

I have an mqtt cover for my garage door... using a shelly1... everything works great... how can I change the icon based on the state of the garage door? Everything I read said I need a cover template but can I have a cover template AND a cover mqtt?

nova bloom
#

is there any way to do a button with navigation as 'back' as in the view last viewed rather than explicitly saying which view to go to?

heavy peak
#

Are there any alternatives to custom:vertical-stack-in-card? mine keep occasionally loading as big huge red error boxes and development seems to have stopped? (checking out stack-in-card element but that also stopped development in 2020)

tight scarab
#

What do I do when something does not seem to be in HACS, or is not searchable, but I can't add a custom repository because it tells me it's in the store? 🙂

dark dirge
#

You probably didn’t hit the add button?

frozen olive
polar kelp
vapid field
#

Hi everyone, is there a way to make my custom frontend plugin configurable?

mild cliff
#

I would like a list of all battery entities that has not been updated/changed for X days in my Lovelace dashboard. Is this possible with some of the default cards, or do I need to use custom cards? The need for such list is that some of my devices stop reporting battery status when the battery is dead, and last battery state can be hanging on 30% for instance.

polar kelp
mild cliff
polar kelp
#

Yes. That one

mild cliff
#

Hehe, thats your work 🙂

polar kelp
#

New here?

mild cliff
#

Relatively! Not been so active at Discord at least. Not so new to HA

silent obsidian
#

Good evening, how would I make an conditional card based on whether a sensore/entity is available or nor?

chilly drift
#

Hi all!
I would like to display the current weather icon in lovelace. How can I do that?
{{ states.sensor.yrnext2hours_symbol.attributes.entity_picture }}
Renders to:
https://api.met.no/images/weathericons/png/clearsky_night.png

muted sorrel
#

How can I add a card to adjust alll lights in the room? Like a light card with the colors and all but for whole room?

vital wigeon
#

anyone know how to include state of an entity greater than a value? the less < than symbol works, but not greater than >

          state: <5```
#

oh using quotations works

dark dirge
#

that's not how that works at all

fiery ledge
#

trying to card-mod style an icon and icon color, i cant get this to work. both templates work on their own, but not together. What am I doing wrong here:

#
        card_mod:
          style: |
            :host {
              --paper-item-icon-color:
                {% if states(config.entity) == 'backed_up' %} green
                {% else %} red
                {% endif %}

              --card-mod-icon:
                {% if states(config.entity) == 'backed_up' %} mdi:check-circle
                {% else %} mdi:alert-circle
                {% endif %}
            }
#

please be gentle, Ive only just started to use card-mod on single entities...

timid moss
#

How can I make sure custom:button-card is always a square but also is responsive to screen size?

#

My dashboard layout is currently:

grid-template-columns: 29px 1fr 1fr 1fr 1fr 20px
grid-template-rows: 20px 1fr 1fr 1fr 20px
gap: 1px 1px
grid-template-areas: |
  ". . . . . ."
  ". masterBedroom bedroom sideRoom newRoom ."
  ". livingRoom kitchen upstairsBathroom groundBathroom ."
  ". basement front deck shed ."
  ". . . . . ."

errant plover
#

You might be able to specify one of width or height along with an aspect ratio. Not sure. Have not tried it.

timid moss
#

I'll give that a shot, thanks!

fiery ledge
quick vessel
#

I'm not sure if it is for #integrations-archived or #frontend-archived. I'm using the KNX integration to control covers. I provide an absolute position for the covers to move to and receive a state with the current absolute position.
It works fine if I select the cover in the UI and use the slider, however the "Up" and "Down" buttons do not work (nothing is being sent to the bus).
Is there a way to make them send 100% and 0% as absolute position?

keen socket
quick vessel
#

It does. I was just hoping to save myself the trouble of setting it up in the ETS software.

#

I can do it of course if it is required to get it to work

keen socket
quick vessel
#

Alright, I'll do it that way then. Wish I could automate the KNX software as well 😄 So much dragging and dropping to set everything up

quick vessel
#

I'll seriously consider it. Might be a useful addition

stuck hazel
#

i'm new to home assistant, can someone help me with a garage door + door sensor?

dark dirge
stuck hazel
#

i do already have the hardware in place

#

On my dashboard i have a button to open/close the garage door, and another one to see if the door sensor is opened or closed, can i combine these in one?

dark dirge
#

Yes, a template cover

#

It’s quite a common use case

stuck hazel
#

i've tried looking at it online, but i don't understand enough about the yaml programming to do it

dark dirge
#

You just add some variant of the example in the docs to your configuration.yaml

stuck hazel
#

i've tried using ur latest link and just change the variables, but it says "no card type found"

dark dirge
#

That’s not a card

#

You create a cover template and then add that to a card

stuck hazel
#

and how do i create this cover template?

dark dirge
#

Configuration

To enable Template Covers in your installation, add the following to your configuration.yaml file:

stuck hazel
#

so i put the whole code in the configuration.yaml file?

dark dirge
#

Yes

stuck hazel
#

done, how do i add this to a cart?

kind shellBOT
#

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

stuck hazel
#

didn't show problems and restarted server already

dark dirge
#

Does the cover show up in devtools -> States?

stuck hazel
#

i have a cover.garagedoor

dark dirge
#

Does it work?

stuck hazel
#

managed to add the card and the button works

#

but the icon doesn't change

dark dirge
#

Great

#

~share your cover definition

kind shellBOT
#

Please use https://paste.ubuntu.com/ to share code or logs. Please don't use Pastebin, since it can randomly add spaces to the main view.

stuck hazel
#

what is the cover definition?

#

the entire code?

dark dirge
#

The thing you added

stuck hazel
#

through the bots url?

#

done

dark dirge
#

You need to share the link

stuck hazel
dark dirge
#

Your icon template is incorrect

stuck hazel
#

where's the error?

#

is it the l > thing?

dark dirge
#

Partially

#

binary_sensors are on or off, not On

#

Second, is_state, not states

stuck hazel
#

i don't see "is_state"

dark dirge
#

Where?

#

That’s what you need to use

stuck hazel
#

or is it all the "states" that need to be converted to "state"?

dark dirge
#

No?

stuck hazel
#

oh, all "states" need to be "is_state"?

dark dirge
#

Not all of anything, just that one

stuck hazel
#

it works

#

thanks

#

can i change the color? depending on open or closed?

dark dirge
#

Only with a card that lets you do that, or with card_mod

stuck hazel
#

i'm using a "button" card

dark dirge
#

Not directly with that

stuck hazel
#

another card?

dark dirge
stuck hazel
#

copied these files in custom_components

dark dirge
#

Oops

polar kelp
#

🎉

stuck hazel
#

i don't have the ui-lovelace-card.yaml file, create it in the custom folder?

#

config folder

dark dirge
#

No

stuck hazel
#

in the www folder?

dark dirge
#

Add that to configuration -> Lovelace Dashboards -> Resources

polar kelp
stuck hazel
#

should i have a new card option now or something?

dark dirge
#

You should be able to add the yaml from the examples as a new card. Just omit the leading ‘-‘ shown in the examples

stuck hazel
#

tried changing the card, but it gives a orror

#

error

#

no type given

#
  • type: 'custom:button-card'
    tap_action:
    action: toggle
    entity: cover.garage_door
    color: rgb(28, 128, 199)
    state:
    • value: 'off'
      color: rgb(255, 0, 0)
dark dirge
#

Like I said, remove the -

stuck hazel
#

bad indentation of a mapping entry (2:2)

kind shellBOT
#

Please use https://paste.ubuntu.com/ to share code or logs. Please don't use Pastebin, since it can randomly add spaces to the main view.

stuck hazel
dark dirge
#

Or just review the examples

#

Move everything below the first line one space to the left

stuck hazel
#

Custom element doesn't exist: button-card.

#

what does the spacing mean exactly? when to use it and when not?

kind shellBOT
#

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

dark dirge
#

It’s how things are grouped

lucid pumice
#

Use vscode integration for managing your config and it will fix issues and highlight what cant be fixed.

dark dirge
#

Not so much with the Lovelace UI

lucid pumice
#

it gives me all the validation issues, missing fields, auto completion for cards and sensors, formats on save. not much more needed 😄

stuck hazel
#

and how do i get this vscode?

#

only installed home assistant yesterday, so total noob

polar kelp
#

Still not useful if you do your lovelace configuration in the GUI.

#

As you probably should

stuck hazel
#

ok, i'll forget about the vscode for now

lucid pumice
#

supervisor -> add-on store -> community add-ons you will find it there

stuck hazel
#

i don't have the supervisor button

lucid pumice
#

you logged in with a admin account?

stuck hazel
#

yes (i think)

polar kelp
#

The supervisor is only available in a few installation methods.

stuck hazel
#

i've used a docker container on a synology nas