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
#frontend-archived
1 messages · Page 196 of 1
Simple way is maybe use a horizontal stack and just add each button you want and give it a title.
let me see
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.
@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:)
@knotty abyss actually the HACS shutter card is awesome! https://github.com/Deejayfool/hass-shutter-card
check out multiple-entity-row, it might do what you want
@knotty abyss posted a code wall, it is moved here --> https://paste.ubuntu.com/p/VV8JTCxCj7/
oof first time that happened.
Ahhh ok, no more then 15 lines. I'll keep that in mind
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
Hey, sorry for late reply. Based on the Readme of card-mod - it does not work with the grid card 😭
Does anyone else have an idea how to get a grid-card centered ?
Could you show a screenshot of the problem?
That's very odd... but that's the custom button-card, right?
yes, it is
Did you manually set the aspect ratio of them?
here is the code of the button-card :
https://pastebin.com/wvyBYErd
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
Did you check what happens if you turn off the "render cards as squares" toggle?
Either that, or you could try setting the button card aspect ratios to 1/1 https://github.com/custom-cards/button-card#aspect-ratio
It can be fixed with card-mod (using mod-card), but I don't recommend that and it wouldn't look good...
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
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
great. looks much better: https://imgur.com/DbWVST2
but now the space between row1 and row2 is missing 🙈
Don't forget to remove the aspect ratio thing again
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
Condition cards
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.
Code Mirror, which is the underlying package, has been known to have issues
@bitter bolt that happens to me sometimes editing f on the android app
gotten a bit better recently, but still happens sometimes
it has definitely been known to have issues on mobile devices
def related to cut and paste for me too
it was completely broken on mobile during one of the beta periods
maybe I just quit c/p'ing on my phone lol
@left wren posted a code wall, it is moved here --> https://paste.ubuntu.com/p/t4xb9gsgPD/
Any ideas why this new button set I made for scenes can't call the "turn_off" service?
https://paste.ubuntu.com/p/t4xb9gsgPD/
I would use scenes more if you could "turn on" a scene, and "turn off" to return to the way it was before
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
^
I guess you could write a script to do that
really I should just play with scenes and see if I'd find them more useful than I'm imagining
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
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
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
Awesome! I'll try to keep an eye out for it.
just wanted to drop by and say whoever modified HA so it works again on older ipad's is a legend
There was a problem with template-entity-row card that caused that issue in other cards. Do you use it? If so update it and try really hard to clear your browser / app cache. It can be persistent.
@winter prism posted a code wall, it is moved here --> https://paste.ubuntu.com/p/Qdx6F2Jn9s/
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?
anyone have problems with history tab? It don't show anything
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)
@errant plover that solved It. Thank you very much!
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!
Since they don’t support turn_off, toggle doesn’t make sense and I suspect that they don’t support that either. Use call-service with scene.turn_on
Interesting, I'll try that. Thanks!
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
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
@orchid night @static grail you do that with templates, but not all cards support them
ty I will research further into that
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?
You'd customise it and set a device class (which is more of an #integrations-archived question).
Hrm. Docs don't really share how to put Templates to use in Cards. But your suggestion led me to being able to find where to update the 'Friendly Name' for states. I might still have to manage the name there, but at least gives more global-based reference if I ever need to update a name (e.g. switch/plug location)
"not all cards support them"
if a card supports templates, it will say so, and how to format them
...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
Thanks! That was easy enough!
well you don't really use devices for cards
usually you use entities
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.
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
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"
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
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
also as long as the entity id stays the same, name and stuff will stay in sync
on your card, I mean
Why change the entity is, i change the name of the entity and keep the entity id the same
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.
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
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.
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
that was easy - not sure why i didn't manage to turn that up in google
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
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
Why would unknown be 'away'? Unknown means it can't tell.
where am I?
"away", obviously
Does anybody know why the ability to edit my views is no longer in the header while in edit mode? https://ur.lifes-a-me.me/TZkoEY
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
No, you cannot integrate non-ecobee sensors into the ecobee thermostat like that
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
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?
Ecobee still wants to maintain control. You can review the services provided by the climate entity and the additional ones the the ecobee integration provides, but you can’t treat the ecobee as a dumb thermostat
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
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
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.
From the device
is there any kind of integration that can stop this? kind of dumb because then anyone in my HAS group can see my gcal.
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.
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.
custom-sidebar
show_header_toggle: false
Is there a thermostat card that has a time scheduler like a regular programmable thermostat wake/sleep/etc...
hi all im booting new image from usb, but i get error cli not started how can open/check logs?
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.
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
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
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
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?
browsing to the url myinstall.com/local/images/sophie.jpg allows me to view the image
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.
Not sure why it pasted like that, but they are indented in the yaml file
device_tracker.bike:
friendly_name: Sophie
picture: /local/images/sophie.jpg
This has different meaning.
Ok
PERFECT! Thank you!
RobC, Reader of Docs
is there a strange password convention for home assistant passwords?
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.
I was hoping to be able to guess my correct password before I needed to go through with that.
It’s no worse than 8 characters including a symbol and number
What's this 'guessing' thing? You should store them all in a password manager.
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!
hi all! Have beginner problems with loveloace and splitting configuration. Someone here for a hint?
It really helps you when you describe your problem first
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
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
It depends on the integration that’s providing the climate entity. Some have a precision: option
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?
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
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
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
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.
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
It should work if the url is correct, but it’s just a shortcut to
-> Events, so you can just go there yourself
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
Yeah, docs are written for the typical case
yeah, right.
anyawy, that works now
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
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.
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
||fucking|| service workers....
just verified that it should work in theory, a new session in a private window doesnt have that error
yeah, it's still cached in the service worker
just kill all firefox executables?
no luck, i found the about:serviceworkers section though
don't mess with that
just unregistered the one for my ha
haha
still no change, cleared site data and cookies again
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
#integrations-archived is better for that
it works in the private window I just logged in, so definitely can't just ignore the wrong frontend from 4 months ago
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
Want to see what issues are open (or were open and are now closed)?
- The core (backend) - for HA itself, and integrations
- The frontend (UI) - for cards and display issues
- The Supervisor
- HassOS
- The documentation
Finally, don't forget to check for any alerts
Command '.issues' was invoked by: Ludeeus
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?
You can't, you need to configure the http #integrations-archived
Possible to combine light control and show watt usage in one entity in entities card?
Is it intergration thou? I don't see anything for http in intergration in the UI
If it was not I would not say it was, and would not directed you to the correct channel
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.
Is there a way to change the color of an icon in Lovelace? For instance, making it red, or green?
Disregard, just found out about themes.yaml 😄
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!
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...
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?
Has anyone customized the layout of the manual alarm card? Would it work the same as any other card?
Hey there, perhaps it was just too late yesterday. It´s driving me crazy - i just can´t get the card in a smaller width. Could anyone of you have a look?
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
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)
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
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*
is this related to Home Assistant?
It is, apologies I get a 404 error when trying to access home assistant through my duckdns address
i would tend to agree but all of my other forwards are working without issue
anyway, definitely not a frontend thing. point it to http://xxx:8123 and configure this and the next item. Further questions to #general-archived
thanks!
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
Ahh...that seems to be my issue then
Thanks. I honestly think it should be a little less hidden
lol
can we no longer set things like ha-card-border-radius: 0px in the theme default: ? this worked nicely before, but no longer. haven't checked the theme for some time, so maybe not new. this https://community.home-assistant.io/t/can-we-change-add-variables-to-default-theme/214507/2?u=mariusthvdb was very nice, but all seems gone now?
or would this be more of a #devs_frontend-archived question...
https://www.home-assistant.io/integrations/frontend/#defining-themes does not mentioning adjusting default at all, so if that worked before I'd say that was a bug.
rather call it an undocumented feature 😉 and it was very useful at that, because not all is defined in the default default theme...
don't rely on undocumented bugs/features/whatever
if you feel strongly about the usecase, raise a feature request
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.
themese changed recently to allow for dark/light modes to allways inherit default
yew, maybe thats it. Will write it up
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)
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)...
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
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.
Is this the section I can ask about configuring where the db would be created/saved ?
nope
The topic of this channel is:
Discussion regarding the UI and configuration (https://www.home-assistant.io/lovelace). The Resources section of the UI is hidden unless you have Advanced Mode enabled in your user profile.
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code or logs
Command '.topic' was invoked by: RobC
please guide me to the right spot
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
Command '~recorder' was invoked by: RobC
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.
@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
Horizontal stack three buttons in a row. If you want them in an entities card you will need the custom-hui card too. https://community.home-assistant.io/t/hui-element-use-built-in-elements-in-the-wrong-place/192154
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?
That would be better done with the custom button card.https://github.com/custom-cards/button-card
ahh ! ok perfect.. I did see this but wasn't sure
It can be a complicated card to configure because it is hugely customisable. Start simple.
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" ?
A card has a type, e.g. entities, glance, horizontal stack, etc... Cards can contain different elements, like rows, or other cards.
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
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
Update template-entity-row to the latest version.
Trust me. That's the problem.
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'; ]]]```
I trust you. But I am not sure what u want me to do 😁 could u point me in the direction how to do that? Thanks!
thanks
You have template-entity-row installed, right?
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
That’s enough. Either remove it or install the latest version. Then clear your frontend caches.
Thanks 🙏
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.
Worked. Thank you very much. How lucky I was that the developer read along and answered immediately 🤩
It's not luck, Thomas is always watching from the shadows...
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
Turn off "Render cards as squares"
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
@tribal sage posted a code wall, it is moved here --> https://paste.ubuntu.com/p/gNYyRDWTrT/
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/
Help
No
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'
Go here and make sure the type of the import is set to "module" not "script" https://my.home-assistant.io/redirect/lovelace_resources/
theme keeps changing after i login and log out how to specify a permeant theme for a specific user ?
Can't. It's a per-browser setting.
can anyone tell me why this isnt changing back to default ?
data:
name: default```
i tried refreshing numerous times
@polar kelp were you directing the link to me? My resource type says JavaScript module
I use some conditional cards to display graphs based on an input_select, can I use templates for that aswell?
or to be a bit more precise: could i use the selected entity from an input_select for a auto-entity card?
so you're not using a conditional card?
well right now I do that:
auto-entities is a completely different card
- 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)
i use this it has templates, works very well. https://github.com/thomasloven/lovelace-state-switch @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
I'm not following why auto-entities can't do everything you need
sure it can but how do I replace the filter with the selected entity in the input_select field
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"
I'm sure the magic is there, you'll just need to play with it
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...
You should call a script and put the template in there
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/.
Command '~format' was invoked by: RobC
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.
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
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
You’ve randomly used two different template types
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...
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
That looks better
Too much learning for today. I appreciate the guidance!
cant change device states...something wrong with states in the dev section? or am i missing something?
The Set State button will set what Home Assistant thinks the state is. This will not reflect into reality.
hey thomas how you doing? you helped me out ages ago.. appletv i think 🙂
i feel stupid now.. how can i test device parameters?
services I guess
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.
anyone else experiencing an empty first placeholder in grid card using conditional cards: https://github.com/home-assistant/frontend/issues/9433
Can a media player card show a picture while inactive?
Hi we have problem with https my cert is valid but url say not secure 😫
dont know why
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.
is there a way to force a button to be square when in a horizontal stakc?
If you want only the one button to be square, it's probably easiest to put it in a grid in the stack.
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
@mortal crystal posted a code wall, it is moved here --> https://paste.ubuntu.com/p/pJFw8W4JyN/
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
Seems to be a real bug … https://community.home-assistant.io/t/grid-card-shows-empty-first-card/316146/9
is that [[[ ]]] a valid template thing? I've never seen that
for some cards, yes. Like custom button card
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... 😉
well, this is quite nice: https://github.com/GeorgeSG/lovelace-time-picker-card
yes, I forked that and gutted it to make my own sorta-similar card 🙂
trying to get a pause/play button to change icon based on the state....
https://paste.ubuntu.com/p/d4JGy2HFH5/
but it isn't working, am I missing something?
You need to supply the entity: option so it knows what to monitor the state of. Also you don't need the operator: option.
Like this https://paste.ubuntu.com/p/2kgyCTvJ9j/
Thanks mate 🙂
hmm still isn't working for some reason
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'
type: picture-entity
Oh i tried that but id did not show in the configuration editting so i discarded it. thank you Tom.
Your states are wrong. Tested this, it works: https://paste.ubuntu.com/p/9WjTjNnzPD/
Here's an example https://paste.ubuntu.com/p/98n9Q2zxj6/
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 !!
No idea, that's why I used show_state: false to hide it.
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.
Click the three dots icon upper right and take control.
I assume that's the first step of "deleted them many times"...
Yeah I was just coming to that conclusion
It could be a backup being restored somehow, or possible file permission problems.
there is no such option in mine.
I've been using HA for quite some time now... and I never had this problem.
When does it happen? When you install something new?
Could someone be fiddling and adding devices to Lovelace from Configuration / Devices ? https://i.imgur.com/6Guz8L9.png
No, it just shows up... I already have everything installed.
Fiddlers? As per my second comment?
I don't think so...
🤷♂️
and can we have a look at that 😉 gota link please?
It’s very specific to my espresso machine and requires the accompanying integration: https://github.com/rccoleman/lovelace-lamarzocco-config-card
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
You've said what you've tried. You haven't said what the problem is. Are you getting an error?
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
Are you getting an error?
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?
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
No error that I can see ... the lovelace card is just showing 0.0
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}}"
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
doesn't do anything? what do the logs say?
can you change the fan speed from
-> 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 });
}
1 .i dont have any messages in the logs. 2. the attribute isnt showing up in the devtools 3. how would i go about implementing that? onto the vacuum template or onto the cards config?
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?
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
#botspam for bot...spam
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) }}"
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?
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 🙂
hallo, can someone help me with advanced styling of custom button-card ? I need to change max-width from fit-content to 100% of root element <button-card> as shown in these img -> https://ibb.co/BL6Js1t and there is desired view -> https://ibb.co/rQC9GbP (images uploaded via https://imgbb.com/)
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
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
Hi! Does anyone know if someone has made something similar to the sun position in the upper left corner for HA?
https://community.openhab.org/t/show-current-sun-position-and-shadow-of-house-generate-svg/34764
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
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
auto-entities
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)
Thanks Thomas! Made my life much easier...
oh, hey
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
@summer willow this is pretty cool, would you maybe @ me when you get something like this working? 🙂
Yea unfortunately I have tried this. It updates the icon correctly to its state, but the label is still not present
How do I get state_color to work with a sensor in an entities card?
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?
state_color only works for binary sensors.
Or other binary devices like switches.
Custom card to the rescue it seems
card-mod would do it
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?
you could create a template sensor that clamps the value
If you have any reference code, Can you please share that here?
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.
@mortal whale posted a code wall, it is moved here --> https://paste.ubuntu.com/p/PH7pcJzXf2/
Is there a way to organize/reorder the panels on dashboard?
Ah, i got it. The arrows 🤦♂️
Is it possible in the mini-graph-card to get the value by hovering over after disabling "show_points"?
@long crane you probably want to look into horizontal/vertical stack cards too ... i missed them myself for some time
Hi, is there anyone who knows if you can restrict access to the history panel for other users?
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?
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
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?
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?
It depends on the card you’re using
And how you’re current specifying the icon to use
how can i make a dashboard have 3 cards side by side?
horizontal stack?
thanks I'll check that out
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
anyone use custom-sidebar ? wondering how i get the proper names of the sidebar items that the plugin utilizes.
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
Might need to use panel mode to not be constrained to a single column
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?
@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
you could create a template sensor with whatever logic you want for the icon, or use a custom button card
I'm using a custom button card atm
then you can use whatever logic you want for the icon
is there a way to add custom css to lovelace ?
@limpid apex Have you seen https://github.com/benct/lovelace-multiple-entity-row
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) );
}
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
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?
@frozen olive i mean global css, not just for a card
https://www.home-assistant.io/lovelace/dashboards-and-views/#resources add it as a resource
not entirely sure how that'll work through shadowdoms though
thanks
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
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?
That would be a #hardware-archived question.
Has anyone had issues with custom icons intermittently not working
Sup @formal zodiac did you get your sleep timer working? I'm failing on it aswell...
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 ?
does anyone know if theres a flexbox layout card
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/
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?
see this for a much more flexible button card, including the ability to template the service_data and pass the user in: https://github.com/custom-cards/button-card
that is the button-card I'm using. But I don't know how I can pass the user that is pressing the button through the service-call.
user: The user object (equivalent to hass.user)
so the notification that pops up on the notify service call, shows that name of the user envoking the call
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}` ]]]"
'[[[ return `Kritieke melding van ${user}, doorgaan?` ]]]'
I tried this, but that doesn't work
I think I'm not fully grasping the template yet
this one works fine, I have that for some buttons btw
perhaps I figured it out
user === hass.user so user.name === The users name
yeah, that too 🙂
message: "[[[ return `${user.name}` ]]]" works
there we go. gotta double tick it
If that works, message: "[[[ return user.name ]]]" should work as well
it should. there was some weirdness around confirmation popups that required the other syntax, though
the simpler one works fine in a persistent_notification
this is for custom button-card is it?
No it does not, nothing about this makes sense 😂
yes
a ok, for a moment I thought I missed templates in core...
this required the backticks, and ${} for some reason: https://github.com/custom-cards/button-card#confirmation
ah, not a JS guy
"need", Hi there ${user.name}! is the same as "Hi there " + user.name + "!"
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
I learned just enough to make a simple custom card, and that's already started leaking out
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
use a script
use a script
no, use a script
NO! use a script
Wait I think I might try using a script
sounds good 👍
way to think out of the box
Yeah it just came to me
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" }
);
]]]
yeah.... was about to say that you have full hass access in the template, so you can just abuse that 😄
I haven't used this myself, just happend to come across this ticket when I was submitting a ticket a few days ago
but scripts, are the cleaner way
gack, yeah, I wouldn't do it that way except to show off 🙂
Reminds me of the CTF GitHub had earlier this year https://github.blog/2021-03-22-github-ctf-results/
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?
sounds like an input_select entity
Input select?
no, input_select
feels some serious deja vu
Ah input_select maybe with another card that can show/hide depending on what is selected. Good idea.
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 ?
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?
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
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.
looking to just show text from a sensor that is text (weather forcast info). Any good ways to do that in lovelace?
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.
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
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()
it does, although I have all the variants in there too
@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 😂
Still missing that semicolon
didnt make much difference adding it
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.
This is a beautiful card 🙇♂️
It's rather useful.
I'm actually just starting to realize how useful myself: <#frontend-archived message>
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.
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!
it doesn't exist by default, if you're starting one you have to make it as a blank text file to start.
Then how does the floorplan work at all without it? It's just built into the lovelace card?
it also never existed by default to my knowledge. You may want to re-read that tutorial to figure out what they're talking about. There have been a few different floorplan projects over the years.
Or alternatively, you can use the new picture elements card in lovelace.
That's what's so frustrating, honestly. There are so many different tutorials and they seem to refer to outdated versions of floorplan
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.
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.
All the cool custom stuff is simultaneously the best and worst part of home assistant 😅 best because it shows just how much awesome stuff you can do, but worst because if you're new to the project and trying to re-create any particular screenshot you find can be damn near impossible.
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.
you will need to map different states of the sensor to either different images, or different css styles. https://www.home-assistant.io/lovelace/picture-elements/#how-to-use-state_image
Seems like map sensor to different images is the way to go. But where do I put the .yaml coding that the example shows?
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.
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
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.
argh lol
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
I dont mind doing some research but this feels like a series of traps
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
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?
That looks like it was based on some custom project, I'm not familiar with that ever being an official part of home assistant.
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.
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
Looks like this is a current project, not outdated, and this is the website for it that may have better documentation for you to look at https://experiencelovelace.github.io/ha-floorplan/
Hey guys, so im trying to use mdi icons but this one isnt working. mdi:cast-variant
@hollow otter thanks for ur help; i gotta run
It says it is on the mdi website here
that seems like the same place i'm going
Looking at the site it's more complicated than the picture elements card, but you get a lot more flexibility and functionality in exchange. I'd still recommend you starting over based on the picture elements card link I sent you to start with, because it seems like it can do everything you need and it may be easier.
https://www.home-assistant.io/lovelace/picture-elements/#examples
That website is terrible for several reasons, but unfortunately the best source I know of... Among those reasons are that they seem to display that icon under its version 6.0 name cast-variant while claiming they display the version 5.8 iconset where that icon is named apple-airplay.
Thanks!
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.
@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?
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'
wrong slashes
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
now you have random capital letters
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
not above
above?
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
not with type state-badge that I can see
OOOH
you need to conform to the options specified for each type
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
looks more promising. But binary_sensor.ls_ro_room_dry will never be "Dry" or "Wet"
binary_sensor is always either "on" or "off"
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
always look in
-> States
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/.
Command '~format' was invoked by: RobC
your unformatted text hurts my eyes 🙂
and it's "on" and "off". case matters everywhere
'''
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%
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!
it looks like it, but I know nothing about CSS
np, glad to help
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^
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
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)
Yes it is still true. Have a look at the custom-auto-entities card.
Would be nice, thanks
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?
If I wasn't having an issue w/ my install I could offer advice. I had this same issue when I updated from an ancient HA version a few months ago
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?
so i have a template set up like this so its a bit more confusing value_template: '{{ states.sensor.spaghetti_sensor.attributes["extruder"]["target"] | float | round(1) }}' (this is someone else code for Moonraker stuff)
i think this is how you change from f to c with the calculations too {{ ((float(states('sensor.sensor1')) * 9 / 5 ) + 32) | round(1) }}
spaghetti_sensor?? 🤔
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.
yeah moonraker, klipper stuff
My SD card is only a few months old and the last one I bought lasted 2yrs.
are they both the same?
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.
hmm could be the sd card failing? im not sure i run mine in docker. ive had to many issues with sd card
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.
ahh, could be that no issues with klipper here. but i do alot with my HA so wanted something a bit more reliable
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
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
I have a pi4 on the way, but it's allocated to my next printer build.
pi3b is my HA rig right now
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
yeah, my first samsung SD lasted 2yrs so I got another when it went read-only.
not SD, SSD. for pi stuff i try to only run Class 10 for this reason. what class is the SD card you used?
ah ok xD
i need to see if the 3b can run an SSD. SDs aren't expensive, but replacing them this quickly will get to be
im not sure, but if it does that would be huge
crap... have a teams meeting in 2min.
MULTITASK!!!!
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
oh i have '°C' could be that
yeah, that ascii doesn't play well for some reason
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
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
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
i haven't tried moonraker, but have considered it even tho i'd lose several plugins i use in octoprint
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)
MQTT is a big thing for me. I use it as a backup to TRP in case of a failed mosfet
thermal runaway
ahh you might like klipper its a bit complicated but really nice and alot of features
octoprint ive noticed is like the entry point of all this
been running it for over a year
ahh ok cool, i switched a few years ago and love it
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
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
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
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
it's good to have options.👍
yeah
looks like I need an OS and HA update. I'll do that after updating addons and getting a snapshot
wow, history graphs are popping now. haven't seen this response since March when i left 0.7x. Hope it lasts.
is there a way to move the icon to the left of the name in a button card?
I don't think so. You can with a custom button card: https://github.com/custom-cards/button-card
does that remove the regular button card or just in addition to?
looks wonderful. shame my HACS does not seem to show it for download.
well, it's there
oh boy there it is. sorry. for some reason i forgot how to use Hacs
using fan-control-entity-row with bond fan. I can set speed but off button doesn't appear to work. any ideas?
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
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 :-\
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?
Is the biosensor lock bugged? It's asking me to unlock twice
@frail crag Look into YAML anchors
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
it looks like you'd want to define a theme and then apply it using the theme option, or you could use card_mod
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
Put it in a grid card with one column?
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?
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.
[supervisor.jobs] 'SnapshotManager.do_restore_partial' blocked from execution, system is not running - CoreState.FREEZE
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?
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
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
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;
}
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?
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?
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)
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? 🙂
You probably didn’t hit the add button?
I still can't get this working. Anyone have any ideas?
You check the other sections, like ”integrations” for e.g. Browser_mod
Hi everyone, is there a way to make my custom frontend plugin configurable?
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.
How do you mean?
You need auto-entities. Or an automation that checks for this and sens you a notification.
@polar kelp you mean this: https://github.com/thomasloven/lovelace-auto-entities? Since I have bunch of battery devices I would rather want to have a list of entities, then a lot of notifications
Yes. That one
Hehe, thats your work 🙂
New here?
Relatively! Not been so active at Discord at least. Not so new to HA
Good evening, how would I make an conditional card based on whether a sensore/entity is available or nor?
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
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?
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
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...
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 ."
". . . . . ."
My rooms are laid out in cards like this: https://paste.ubuntu.com/p/DbZ6rtGyg4/
And it gets cut off on my tablet: https://imgur.com/a/KnsHku4
Specify an aspect ratio **instead of **a width and height. You can not use both at once or weird things happen. https://github.com/custom-cards/button-card#aspect-ratio
You might be able to specify one of width or height along with an aspect ratio. Not sure. Have not tried it.
I'll give that a shot, thanks!
for the interested, I made a mistake of not delimiting the templates with a semi-colon.. all good now. both icon and icon color get modded (in the card, not the more-info though), see https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/1915?u=mariusthvdb for more on this
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?
Hi! Doesn't your actuator support binary up/down position commands? Most do. If not, I think this would require an update to the knx integration.
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
its a pretty standard thing. I have not seen any installation not having binary configured, whereas there are some that don't support %. I'd go this route.
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
If you like python more than ETS you could also add the function to xknx 😉 https://github.com/XKNX/xknx/blob/a9ebe999fff118a55b96e4dba70a04101aabcd2e/xknx/devices/cover.py#L175
I'll seriously consider it. Might be a useful addition
i'm new to home assistant, can someone help me with a garage door + door sensor?
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?
i've tried looking at it online, but i don't understand enough about the yaml programming to do it
You just add some variant of the example in the docs to your configuration.yaml
More examples there: https://community.home-assistant.io/t/template-cover-for-garage-door/241763
i've tried using ur latest link and just change the variables, but it says "no card type found"
and how do i create this cover template?
Configuration
To enable Template Covers in your installation, add the following to your configuration.yaml file:
so i put the whole code in the configuration.yaml file?
Yes
done, how do i add this to a cart?
Always run the configuration check command when you make changes. Don't trust the UI check - it misses some problems.
Command '~check' was invoked by: RobC
didn't show problems and restarted server already
Does the cover show up in
-> States?
i have a cover.garagedoor
Does it work?
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.
Command '~share' was invoked by: RobC
The thing you added
You need to share the link
Your icon template is incorrect
i don't see "is_state"
or is it all the "states" that need to be converted to "state"?
No?
oh, all "states" need to be "is_state"?
Only with a card that lets you do that, or with card_mod
i'm using a "button" card
Not directly with that
another card?
copied these files in custom_components
Oops
template-entity-row now has support for templating actions and toggles: https://github.com/thomasloven/lovelace-template-entity-row
🎉
i don't have the ui-lovelace-card.yaml file, create it in the custom folder?
config folder
No
in the www folder?
Add that to
-> Lovelace Dashboards -> Resources
https://my.home-assistant.io/redirect/lovelace_resources/ If HACS didn't already do that for you.
done and restarted
should i have a new card option now or something?
You should be able to add the yaml from the examples as a new card. Just omit the leading ‘-‘ shown in the examples
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)
- value: 'off'
Like I said, remove the -
bad indentation of a mapping entry (2:2)
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.
Command '~share' was invoked by: RobC
Or just review the examples
Move everything below the first line one space to the left
Custom element doesn't exist: button-card.
what does the spacing mean exactly? when to use it and when not?
It’s how things are grouped
Use vscode integration for managing your config and it will fix issues and highlight what cant be fixed.
Not so much with the Lovelace UI
it gives me all the validation issues, missing fields, auto completion for cards and sensors, formats on save. not much more needed 😄
and how do i get this vscode?
only installed home assistant yesterday, so total noob
Still not useful if you do your lovelace configuration in the GUI.
As you probably should
ok, i'll forget about the vscode for now
supervisor -> add-on store -> community add-ons you will find it there
i don't have the supervisor button
you logged in with a admin account?
yes (i think)
The supervisor is only available in a few installation methods.
i've used a docker container on a synology nas