#frontend-archived
1 messages Β· Page 100 of 1
Used it for the zwave and zha domain entities
That way I donβt have to update them
And I split the zha one between offline and online devices so the offline ones stay at the top
I do
@summer eagle the top left card has a link to the creator's configuration
cheers
any of you running HA on RPI? If so, is lovelace (and cards, plugins, etc.) impacting performance?
all the work is done by the browser for the most part
so, rpi (I only have a 16GB card) should not be impacted?
In the old UI there was an option for controlling the group toggle behavior. all
(boolean)(Optional)Set this to true if the group state should only turn on if all grouped entities are on.
Is there a way to control that in Lovelace?
It seems that the Lovelace default behavior is equivalent to setting all: true. I would like to reverse this.
Use show_header_toggle: false
But then I would not be able to turn off all the light groups that are on.
I would like for the group toggle switch (parent) to change states to 'On' when any of the child switches is 'On".
Is there a way to state the size for a picture glance card? My camera images are coming through making the card full res (2048x1520) and they are just huge
@warm stone use aspect ratio as stated in the documentation for picture glaNCE
picture-glance
@charred star are you using a light group?
https://calculateaspectratio.com/ to get your dimensions down
aspect ratio according to picture card docs is
aspect_ratio
(string)(Optional)Forces the height of the image to be a ratio of the width. You may enter a value such as: 16x9, 16:9, 1.78.
So thought that meant 16x9, 4x3 etc not scale 25% etc like mentioned in other cards.
if that doesn't work then you'll have to use one of the custom cards to change it
@mild veldt It looks like HA converted my group to an entities card. How do I define the light group? I tried changing the card type to "light" and I get an error stating that I must use and entity from the light domain.
I'm talking about your actual group
@charred star if your group is all lights, put it in a light group. That is a component not a card
Ahh let me try that. Didnt know there was a special component for lights
I'm trying to use the custom:mini-media-player card. I've downloaded the card, copied it into my config/www directory, and updated my ui-lovelace.yaml. I've also tried changing type: module to type: js. I've tried clearing my cache and restarting home assistant. I still get Custom element doesn't exist: mini-media-player.
@mild veldt So... I can confirm that using the light-group entities has the behavior I want. However, all my lights are controlled through Sonoff switches and those are outside of the light domain. I had to create a separate light-switch entity for each of my switches and then I was able to create the light groups. This was a lot of work and turning the ligths on/off seems a bit sluggish. I guess that now I have to toggle light group > toggle light-switch > toggle switch. The old UI did what I wanted with the default group card π¦
Thanks for the helping me get this working though π
@woven echo double check that your physical path and path in your config match 100%
also try to navigate to the file in your browser
@charred star you could try a light template instead of a light group https://www.home-assistant.io/components/light.template/
@woven echo what mode are you in for lovelace? yaml or storage?
is there a way to use custom cards in storage mode?
if you're trying to add resources in storage mode, use the raw config editor
top right menu > configure ui > top right menu > raw config editor
add a resources section
and you're golden
ahh, that's the part I missed. thanks
Is there a place holder "entity" for glance cards? I want 2 items in the first row and 3 in the second. Instead of 3 in the first and 2 in the second.
Is it possible to use "special" characters in a title name on an entity in the Lovelace UI?
Should work, if it doesn't you'll know quickly enough π
That's the documentation standards, not what's valid in Lovelace...
π€¦ π€£
Hey All, anyone had much luck filtering available states from the thermostat card, I remember seeing it once but can't find it again.
Hello, is there easy way to do floor plan in full screen in hassio 0.86.2?
~faq @white fern
@white fern There are a number of FAQs at https://home-assistant.io/faq/, including one explaining the difference between Home Assistant (the software) and Hass.io (an installer) https://www.home-assistant.io/faq/#home-assistant-vs-hassio.
Home Assistant is the software you're running, Hass.io is the installer you used
And yes, see the view docs for panel mode - https://www.home-assistant.io/lovelace/views/#panel-mode
im sorry, im new with Home Assistant
@split granite and how can i use Panel Mode please?
See the docs I linked to, they show you how
@split granite thanks a lot! π
quick question, how do I use the state filter in a glance card? I'm using the new ui editor
I want to have motion sensors only appear when they detect motion
this isn't working,:
type: glance
entities:
- binary_sensor.livingroom_motion
state_filter: - 'on'
says
Your config is not supported by the UI editor:
Expected a value of type undefined for state_filter but received ["on"].
Falling back to YAML editor.
@odd light see the example at the bottom of this page: https://www.home-assistant.io/lovelace/entity-filter/
you need to use entity-filter cards in the glance card
I have a yeelight which i can set different colors etc, which lovelace card would i use for this?
@odd light try this:
- type: entity-filter
entities:
- binary_sensor.livingroom_motion
state_filter:
- on
card:
type: glance
I haven't tested it
cool
With 0.86, where can i configure Lovelace to load custom card ?
raw config editor: guide: https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins
If you are using the GUI editor for Lovelace, you can add the resources section using the Raw config editor, which you reach by entering Edit mode and then clicking the three dots in the top right corner.
@naive ruin ^^^
Thanks, when adding a ressources, need to reload HA ? @sinful fulcrum
Just the page afaik
Lovelace doesn't require HA to be restarted
You have to restart HA the first time you create www/, but as far as Lovelace itself goes, just refresh/reload the page
Ok thanks
anyone knows how to have iframe card taller? I can't find a way to specify it's height
why the automation group toggle (on/off) goes off when i reload the default view? latest HA version
I'm running 0.86.3, how can I keep the contents of the main page, but make it a different tab/view?
I have very little configured right now
or is there a way for me to show what's currently on the default view, before I make changes to the views?
I think I may have figured it out
Is it possible to setup a view tied to a user?
ok, thanks. I did see something like an add-on that might help, but I was looking to see if it was just part of HA yet. Thanks for the info. I'll keep an eye on it for the future
@tight olive https://github.com/thomasloven/lovelace-state-switch
Hey guys. I'm using homeassistant 0.85.1 with lovelace. No errors in logs . Using history_graph so I can plot two sensors on a graph together over past 48 hours (sensor.isp_upload and sensor.isp_download). Graph shows up on the front end as 'ISP Speed Unknown" but when I click on it, it looks great and plots both sensors. How do I specify what graphed metric to show on the front end instead of 'Unknown' ?
@mild veldt thanks, I'll take a look at that
@sturdy bough you'll have to play with the aspect_ratio
@jagged cargo you could give this a try https://github.com/thomasloven/lovelace-color-picker
Hello,
since the update to 0.86.3 i have a lot of Entity not available:<entity name> on my frontend, i checked the pinned message for illegal characters, but dont see anything that should cause the problem,
i have multiple sensors, automations, device_trackers which give the error, but not all, about 99% of my config works...
@signal marlin You can check the entity names in 
@reef citrus sounds like your sensor is not conforming to the standards for units_of_measurement? Is it listed when you look in
?
the automation for example are in the folder in /config but not in 
@signal marlin then your problem is not the frontend, but rather that you automations did not load. Check
dev logs
I have a "widget" from windy.com that is 650x450.
When rendered in lovelace in an iframe, is like 496x246 that is a different aspect ratio
ah
understood
i'll try
i did try it before asking here, without success
but i noticed i was using "aspect_radio" π¦
does not tell me what wrong with this particular automation. most of my automations work and show up after the update
maybe one of you can take a look?
check config does not show any errors
Got, it the error was in the file for some reason, i deleted it and recreated it and now it shows up again
Hi guys! I'm looking into re-enabling the default panel I switched to the personalized one already and I'd like to go back to the default one, is this possible? Thanks
@silver dome delete ./storage/lovelace
@mild veldt no, it is not. It is my own custom sensor. The sensors are just 2 floats that are plotted on a history_graph
@mild veldt pretty much just like this example https://www.home-assistant.io/lovelace/history-graph/
set unit_of_measurement
@mild veldt it's set to mbps, but how will it show up on the card BEFORE I click on it to view the graph? Surely there would be an option as well to specify what to show on the card? Otherwise which of the plotted sensors will it know to show?
so when i have saved some custom card js to my www folder, how in the front end gui do i now add that custom card?
brb
I got a quick question about Lovelace, when I switch to the Lovelace UI, can I get rid of my group.yaml files? Does Lovelace still use them?
Does someone use Fully Kiosk Browser on an Android tablet and has issues with lovelace? Since I upgraded to 0.86 the website gets stuck, the entities do not refresh and I cannot scroll the page. When I swipe from the left to access Fully's menu and load the start page again, HA is responsive again. I have set javascript_version: latest and my tablet runs Android Pie (9.0) with the latest WebView (almost identical to Chromium)
@craggy isle the autogenerator will use your group.yaml to do the initial generation. Once that is done and you take control of your UI, in terms of rendering the UI they are not necessary. But if you want to stay in automated mode, you'll want to keep it around. Doesn't really hurt you to keep it around, so I wouldn't remove it for now
@reef citrus I don't follow
@mild veldt Ok, and do you recommend taking control by the UI or the yaml mode?
well as I've made lots of the UI editors I of course recommend UI π
hehe, good, thanks!
IMO there's little to no reason for anybody new to Lovelace to go YAML mode - the built in editor is great, and only getting better
I asked because I am trying to hide my alert card on my first view. Before Lovelace, the alert section would show when there is a active alert. Now, with Lovelace, it show all my alert as idle
Conditional card
- type: entity-filter
entities:
- entity: alert.garage_door_l
name: Garage door, bike
- entity: alert.garage_door_r
name: Garage door, car
show_empty: false
state_filter:
- 'on'
card:
type: entities
title: Alerts```
@split granite thanks, this is exactly what I am playing with right now!
That's one of mine
Now I just need to find how to put the Alarm control back in a round button at the top
@split granite yes, I still need to do a lot more research on Lovelace, I did not check it out during the development and now I think I should have
Just added a new cert expiry sensor to my config (now that my router is fed by a script and should always have a vaild cert) and wondered why it did not show up. It sits inside unused entities.... why?
Aaaand as Nr2: I kept auto configure active till about 1 minute ago. Now I switched to manual and wonder how to get back. ^^
Is there a specific house floorplan builder that people are using to make those neat looking cards?
I think he, and a few others, worked from the floorplan from their builder/architect/developer
sweet home 3d is good
has anyone any good examples for lovelace with themes at hand?
hello is there a way to call mqtt from a lovelace card?
i tried hass.temp1.callService('mqtt.publish', 'ledstrip/office', {state: 'ON'})
says invalid service
@tight finch pretty nice so far, thanks!
@lavish lily have you looked at the demos?
@loud thistle things don't get automatically added in storage/manual mode. To get back to auto mode remove .storage/lovelace
@mild veldt Thank you! (about how to reset lovelace)
@mild veldt tried that and yes, it looks good, but the warning when switching did not show up anymore, so I wondered a bit. But in auto mode which I used before the sensor still does not show up.
@loud thistle in auto mode, after a restart you may need to clear cache to see new entities, I believe
@mild veldt yes. although I must confess, I didn't check for themes
will do that ...
@flint musk Create a script and call the script from the lovelace card
I'm trying to edit the lovelace ui using "Cofigure UI" on the top right but it's complaining it's in yaml mode. How do I disable yaml mode?
@eternal belfry https://www.home-assistant.io/lovelace/yaml-mode/
@mild veldt yeah but that tells you how to enable yaml mode. To disable it do I just remove the top 2 lines?
yes
Hey Lovelace channel...question. I am trying to set up a history graph for a temperature sensor and getting back "entities need to be an array" with this as my input:
Entities need to be an array
{
"type": "history-graph",
"entities": "sensor.master_br_motion_temperature",
"name": "Bedroom Temp"
}
what array is it looking for, I am not seeing much on this and am just cutting my teeth on lovelace
entities:
- sensor.master_br_motion_temperature```
before you yell at me ......i know, I didnt format the paste right....I forgot
see the docs carefully https://www.home-assistant.io/lovelace/history-graph/
but I am editing the card directly through the UI, it's formatting it on it's own.....or am I not picking up what your putting down?
@mystic root there is an edit button for when you forget to format π
So, I'm in the card configuration, when I type the configuration on the top line, it inputs the code below it with the formatting. Toggle editor is grayed out and non-selectable.
And history graph doesnt have a UI yet, so you should enter the yaml like in the docs
I guess I will play with other cards for now and trying to come through some others examples to find my gap...(obviously between my ears right now)
Except for the first -
well that might be my issue @winter hollow I tried adding the card since it is a selectable option.
@mystic root just change your yaml
type: history-graph
entities:
- sensor.master_br_motion_temperature
name: Bedroom Temp
I will do it the manual way, I was trying it live through the UI adding it as a card since it is an option, thanks for the help
Yeah, that still works?
you can do it from the UI
@mild veldt DOAH...that worked, for some reason when I was hitting enter, it would skip to the next line, copying and pasting did the trick
"would - "wouldn't"
has anyone got an example history graph lovelace config they can send? None of my graphs are showing
- type: history-graph
title: Sun
entities:
- entity: sensor.sun_elevation
name: Elevation
It will, but maybe not as pasted there
I think you have to strip the leading - from the type line
I updated to .86, but the dashboard is broken. I had groups in the old UI, but cant find how to re-add my groups
i can add the group by adding an entity but then there is only 1 switch
I just want this in lovelace: 
@green bough so you have groups.yaml and on boot the the auto generated doesn't show what you had?
also, you can't do that for links in discord unfortunately
nothing at all?
just an empty page
anyone know where I can get the lovelace code for the entertainment section in the demo? https://www.home-assistant.io/demo/
@green bough any errors in the browser console or in
? Also, did you do anything special during the upgrade; i.e. use a migrator, setup yaml mode?
@hoary temple follow the link to the author's repo in the top-left card
try clearing your browser cache
no errors in console or log from ha
thanks
try a private session in your browser to be sure you cleared the cache
yes i did that in chrome
and still no errors seen?
no
states ui works fine
Tried to add a few buttons to control Kodi and this happens when playing something. http://imgur.com/gallery/JCCEoaP xD
Expected? Can the auto icon change be disabled?
@green bough are you able to click the top right menu and configure UI and add cards/views?
yes
let's try this. delete ./storage/lovelace. restart homeassistant and then clear cache again once it is back up
restarting...
@undone depot what are you using for your buttons?
and is back π
π
but if i edit the ui manually, new groups dont get added?
correct
they will be in the "unused entities" view found in the menu
we'll likely add a way to toggle between or at least replace the unused entities with an auto view in a future release
for: minutes: 0 is no longer supported with lovelace, for a state trigger change in an automation?
so from now on, if i add a light to a group or remove one, i also have to do this in lovelace
@mental crystal #330944238910963714 read the breaking changes for 0.86.
I have, I see that time changed to time_pattern, but the trigger here is state. is it considered the same breaking change?
because instead of trigger: time for me, the trigger is state, so Im not sure what is the related change
@green bough lovelace is explicit in what you want to view. Are you adding to a group for reasons beyond display?
@mental crystal a question for #330944238910963714
well first off, I would recommend adding your lights to light groups, and not just groups. then they would be just part of that control group of lights
Thanks I will
whats the difference with a normal group and a ligth group
can i also add a switch to a light group?
groups have traditionally been used as a hack to control the UI and not necessarily for the state machine
I'm using a glance card for the kodi buttons
a light group is all about the badkend and translates well to being displayed in the frontend
thanks, will dive more into it
anyone have an example of using card-modder with a stack?
@undone depot I see. Sounds like a bug if you've overridden the icon, but to get around it, just use a stateless entity and then in your service_data call, specify the entity_id
So, how to install a custom card is not documented?
@prime nacelle it is.
carefully
@mortal cape That's great!
the "plugins" name kind of throws me every time
@polar kelp do you think your wiki should be part of the official docs?
oh i see...plugins includes custom cards
Plugins is my name for it. I suppose it should actually be called "resources"...
@mild veldt Parts of it definitely should... I suppose
Okay, I found it. Never thought to click the dots a second time, that's hard to discover ...
Or at the very least a link to the wiki from the official docs
@polar kelp since you're here, do you have an example of using card-modder with a stack?
Can we not use call-service to call python_script? I have the following that does not work in LL hold_action: action: call-service service: python_script.set_state service_data: entity_id: 'device_tracker.meta_rashmi' set_state: 'home'
the same works in services 
@raven nacelle looks like it is not indented properly...
shouldn't the service: part be under action: like 2 spaces indented?
yes
@mortal cape You have to card-mod every card in the stack separately
ok...I see what you are saying...let me check
ok thanks, that's what I was wondering. Having it above all worked for some but not all modifications
Thanks iantrich, that worked great. Also yes I've overriden the icon on all buttons. But also the icon disappears from the entities card in the top as well but I guess it's because I've overridden the icon for the entity.
It probably works for things starting with --
yep
I'll do my best to introduce a --card-corner-radius or something after the feature freeze, btw. Then all cards can be given rounded corners via the theme.
Anyone know how to scale the light card with a horizontal stack? I'm trying to use 4 light cards in one horizontal stack but because of how large the light cards get it doesn't look very nice
- type: horizontal-stack
cards:
- type: light
entity: light.room_top_1
- type: light
entity: light.room_top_2
- type: light
entity: light.room_side
- type: light
entity: light.underlight
And card-modder will lose 90% of it's user base...
ok hold_action: action: call-service service: python_script.set_state service_data: entity_id: 'device_tracker.meta_rashmi' set_state: 'home' works
@hoary temple Yeah, unfortunately, some cards don't scale very well (yet)
~yaml @raven nacelle π
@raven nacelle YAML is the mark up language used by Home Assistant. Consistent indenting (two spaces per level) is key - read more at https://home-assistant.io/docs/configuration/yaml/
LOL
@mortal cape thanks, it is working now π
@raven nacelle do you suggest for now I just separate it 2x2?
yes, 2x2 should look fine
@raven nacelle finally migrated everything to LL now
is there a way I can optimize this code to use -entities rather than multiple lines?
- type: horizontal-stack
cards:
- type: light
entity: light.room_top_1
- type: light
entity: light.room_top_2- type: horizontal-stack
cards:- type: light
entity: light.room_side - type: light
entity: light.hue_lightstrip_plus_1_2
- type: light
- type: horizontal-stack
told you it was not that difficult @glossy birch
@hoary temple Unfortunately, no...you need type: light for each light entity
Hello all!
I'm running HassOS 0.86.3 on an RPi3+. I have been running lovelace as my default interface for a while now in yaml mode. Is there a way to change OUT of yaml mode? I have tried removing the "lovelace: mode: yaml" lines from my configuration file, and renaming ui-lovelace.yaml. Neither of those allows me to use the Configure UI option.
This, people! This is how you ask a question! (Here's my exact setup,. Here's what I want to do. Here's what I tried. Here's what happened instead)
Removing mode: yaml and restarting really should do it. What interface do you get? The one from your ui-lovelace.yaml?
@polar kelp , Yes, it did default to the ui-lovelace.yaml that I had in place.
And you restarted Home Assistant?
I will uncommenting the lovelace: line from my config file. Yes, I restarted after commenting out the lines in the config and after renaming the ui-lovelace.yaml.
Restarting now... will let you know the results.
@polar kelp , No changes after adding "lovelace:" back into my config.
Still defaulting to my previous ui-lovelace.yaml layout.
I'm still a bit confused regarding groups with lovelace. I had many groups defined in groups.yaml, but as far as I understand, that file is no longer used, but the groups defined there still exist because they were generated when i updated HA. But how do I create/remove groups now when the groups.yaml isn't used anymore?
I made new groups for lights using the light group function, but the old groups are of course still there.
Groups are still used for automations, you just have to approach it differently from the frontend
@polar kelp I get this in the log Error executing query: (sqlite3.DatabaseError) database disk image is malformed [SQL: 'INSERT INTO events (event_type, event_data, origin, time_fired, created, context_id, context_user_id) VALUES (?, ?, ?, ?, ?, ?, ?)'] [parameters: ('service_registered', '{"domain": "recorder", "service": "purge"}', 'LOCAL', '2019-01-28 20:43:42.463207', '2019-01-28 20:44:38.054954', '157ca0c53af34e89affafd376f9e8019', None)] (Background on this error at: http://sqlalche.me/e/4xp6)
Villhellm: Is groups.yaml still used?
making changes to backup-ui-lovelace.yaml to see if they reflect in the HA page.
For backend control, as far as I know, groups.yaml is still the preferred method.
@polar kelp Evidently making a change to the renamed ui-lovelace.yaml made the difference because my UI got really ugly π I've got some cleaning up to do.
@civic stream I used this script to generate the lovelace UI from existing groups https://paste.ubuntu.com/p/hymb2D4FRH/
it took me 2 minutes to generate new lovelace UI from my existing code
Hm, ok. But I'm pretty satisfied with my UI, mostly thinking of how to remove old created groups π
Don't understand exactly what you mean by generate lovelace UI?
the yaml code that goes into the ui-lovelace.yaml file.
Ah, ok!
I went through the site and the pinned notes but don't see this basic Q. How is it that I enable Lovelace? I read the docs, and Git issues and it seems like once I create a ui-lovelace.yaml file in config and restart HA it should automatically load. It's not doing anything, and I feel like I need to add something in configuation.yaml
If you have the latest HA release, it's automatic
I believe I do, I installed it via docker. Lemme find out where the version # is.
Ah seems I don't. 0.65.5. Quite a bit out-dated.
Yep
If you recreate with the latest docker image, it will automatically convert to lovelace
Thanks - New to container station (Using a NAS). Assumed it would have auto pulled the latest. Forcing it too now. Simple fix.
Those are the best fixes
From 0.65 to 0.85... @solid minnow expect breaking changes...
Lots of them
Hahaa thanks for the call out. It's a fresh install, thankfully.
So perhaps this'll fix a lot of the bugs I was battling.
Fixed a lot of my issues, including the 'small drop down' from above. Thank you guys.
I have a fancy bulb that can shine in very many colours, prior to locelace I could change the colour, but with lovelace I can only chnage the brightness...am I missing something?
Hello Everyone,
I am having trouble using the custom card-modder with the Lovelace UI Editor. I probably read something wrong or missing a step. Any help would be appreciated.
Running HomeAssistant: 0.86.3 on Ubuntu: 18.04.
I created a <config directory>/www/plugins folder and added card-modder.js and card-tools.js (copied the data from github page in raw mode). I then opened the Raw Config Editor and added the following resource section to my config.
title: HomeAssistant
resources:
- url: /local/plugins/card-tools.js?v=1
type: js
- url: /local/plugins/card-modder.js?v=1
type: js
views:
I did a ctrl+F5 in the browser and restarted homeAssistant for good measure. When I attempt to add a - type: custom:card-modder element I recieve the following message in the editor, TypeError: type is undefined.
@thorn stag are you using the light card with Phillips Hue, I noticed the light card doesn't do color, but if you place your lights in an entity card you can still change the color.
Did you put the card name in single quotes? type: 'custom:card-modder '
if you add a badge with multipe lights you can contral the color of multiple lights at once.
@sand parcel - will give it a try - thanks
@elder pendant no, but I just tried with single quotes and got the same error.
Any useful error information in the console?
@sand parcel - It worked, not quite as elegant as the light card, but it will do the job - thanks
no prob
@elder pendant the quotes helped, the bit of sample code I pasted in also started with a - and it shouldn't when using the editor. Now I am getting card config incorrect.....so I just have to work through that. Thanks, the bit about the quotes helped with my roadblock.
π got it working thanks again, I knew it would be something silly.
Is there a way w/ Lovelace GUI edit mode to add custom cards ?
I see reference to "ui-lovelace-card.yaml" here https://github.com/kuuji/button-card and I'm wondering it thats a type-op or if there is a way to do imports this way ?
pre-lovelace i had group.all_lights in my default_view and it auto updated to include all the lights when i added new ones, is there a way to do this in lovelace or do i need to manually add the entities each time i add a new light?
There is
1 sec
I used that to replace the zwave and zha domain entities panels
even lets me split zha between offline and online
Hey
I have a super dialed in Lovelace setup
I'm afraid upgrading HA will break this
Anyone experience this?
Aside from some entities possibly changing ids that you have to fix you should be fine. Most people are having problems because they weren't using lovelace yet
If you have a lot of groups/automations if might be a pain to fix all the ids
It just depends on the platform you use and how it gets it's id, some of them changed the way they are generated
Interesting
That's less than ideal, I'll dive in with both feet and see what breaks I guess π
It's the HA way
That's the spirit
Is it possible to downgrade if necessary?
I know it is, but I've never done it personally
Like a remote control, for your TV
I have a new entity called remote.bedroom
Do you have a roku tv or something?
https://www.home-assistant.io/components/remote/ here are the supported platforms for the remote
If it's a TV you can control the power now
No dice there. Does it work over HDMI CEC?
No clue
Hi folks. Just upgraded and jumped on the lovelace train
things seem ok for now - however
When I try to use the "configure ui" menu option and hit the "take control" button, I'm met with a dialogue that says " saving failed: not supported". The logs don't indicate much of anything.
Hmmm
Are your permissions in order?
It might be trying to create a file but not have permissions to do so
Any useful information in your browser's development console?
hmm
I hven't tinkered with permissions so much. I'm a Windows boy treafing carefully on my little RasPi install - permissions always end in tears
@elder pendant - where might I find that?
Linux permissions are so much simpler than windows though
oh - you mean the JS console?
Yeah
You can copy paste the information that's there https://paste.ubuntu.com/
{message: "Not supported", code: "error"}
code: "error"
message: "Not supported"
proto: Object
saveConfig @ 8ee9235β¦.chunk.js:5609
async function (async)
saveConfig @ 8ee9235β¦.chunk.js:5609
_saveConfig @ 496caa1β¦.chunk.js:125
handleEvent @ app-3b4bb4ed.js:137
EventPart._boundHandleEvent.e @ app-3b4bb4ed.js:137
What browser are you using?
chrome 71.0.....
Hmm... those errors are pretty non-descript
yeah, thats what I thought π
Anytime there is an error saving something my gut reaction is also permissions based
I have noticed a lovelace.yaml file from mid december
I'm going to remove that and reboot, just to see if that was an issue
back it up first
Sounds like GUI editing π
thanks folks - sometimes you just need to talk it through. Plus - I'm still in holiday mode π
doesn't it just!
@wary dust might want to check out my new roku remote card https://github.com/custom-cards/roku-card now that you have found that you have one π
I can highly recommend that card π
just not in firefox π
Hi, hoping this is something simple, i want to use custom card color-picker. So i have followed instructions https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins .. I have put both color-picker.js and card-tools.js files inside www/lovelace folder.. I am using the gui editor, how do i now add color-picker to the actual UI now. When I click + icon, i don't see color-picker or a custom option ..
You have to use the raw editor to add the resource and card
At the very bottom of the 3rd step on that page it tells you
I just want color-picker, so i will have the URL point to card-picker. can I leave out views: ?
think after i do the first custom card it will click in my head and the rest will be simple
views: should already be there if you have anything setup in lovelace
You need to add
resources:
- type: module
url: /local/color-picker.js?v=0
Er not sure what your type is, but that's an example
make sure you restart home assistant after you added the files to the www directory
think I got it, the part i was missing/didn't know how to do was in the raw config under the cards: section add - type: 'custom:xxxx' so that is how you add a custom card π lesson learnt
@jagged cargo you can also add a new card with the + button, and then choose "skip" in the bottom right corner of all the card choices
@mild veldt Thank you!
I feel like lovelace should auto-populate custom cards from an approved repo or something
There's so many great custom cards but no good directory for them
Unless there is and I just don't know abou tit
Well there we are!
hopefully we'll have some sort of built-in store in the future, however
'store' but not for money, I assume?
no, like the add-on store for hassio
Can anyone tell me where I can make a floor plan for a picture card that looks like those in the new demo page?
@burnt bone - you can use http://sweethome3d.com/ to build one.
@nimble dirge Thanks
no worries
Anyone know what would cause lovelace to display a loop? When I go to lovelace it displays the sidebar again inside where the ui should be and just whitespace inside of that.
How can I apply customization of some entities as I could with the previous UI? where I had a customize section with icons or friendly-name ?
customize: in configuration.yaml still works.
But you can also set icon: and name: in most lovelace cards. That way you can have e.g. the same switch in two places in the UI, with different name or icon.
Is it possible to set the icon and name on the entity, from the UI?
because I find only how to do it on the card itself
Do you mean http://<your HA>/config/customize?
Ha. Yes. Thanks :)
Im so used to just work with yamls that I didnt even realize that menu exist. Thanks!
@raven nacelle Hi , first of all many thanks for the great demo site. It's been a great help so far. I'm currently copying your nice harmony / entertainment card. One thing i cannot figure out and that is the picture / icon of the harmony activity. Can you please give me a hint where to find this in your config?
how do I add a custom card when I havent created a ui-lovelace.yaml file? Ive only used the GUI editor since 0.86 was released
trying to add this: https://github.com/jonkristian/lovelace-cards/tree/master/entur-card
thanks
Morning! I have a question regarding Lovelace and the Bluenight Theme. I noticed that when I'm using the Bluenight theme, cards that have Entity Buttons don't seem to change colors when state changes. But if I change to the default theme and push the button, the icon changes to Yellow when ON.
Is that an issue with the Bluenight theme causing the icon to not turn yellow when ON?
Nice! Thanks Thomas!
You're welcome. Seems like an easy fix.
yep! that worked for me. thanks again
hmm,. cant seem to get this working. I get these in log: :8123/local/entur-card.js?v=3:7:1 Uncaught SyntaxError: Unexpected token <
Custom element doesnt exist: entur-card.
https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins Near the bottom
Ok, did that now:p the card doesnt show up now, but I get this: Uncaught TypeError: Cannot read property 'attributes' of undefined
w00t, got it working π
Your entity: was wrong, right?
I had this from the example: - entities:
- destination: Studentersamfundet
entity: sensor.entur_halstein_gard
icon: 'mdi:bus'
name: Halstein GΓ₯rd
- destination: Halstein GΓ₯rd
entity: sensor.entur_studentersamfundet
icon: 'mdi:bus'
name: Studentersamfundet
title: Busstider
type: 'custom:entur-card'
that gave error, while this worked:
- type: custom:entur-card
title: Togtider
entities:
- destination: Drammen
entity: sensor.transport_hokksund_stasjon_platform_3
icon: 'mdi:train'
name: Hokksund
- destination: Hokksund
entity: sensor.transport_drammen_stasjon_platform_4
icon: 'mdi:train'
name: Drammen
~share
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code.
There it was.
I cheated in #botspam π
ok π
I thought I did to π
@polar kelp The card works, but every time I restart HA docker, I need to enter config mode for GUI for it to show up, is this normal?
@vapid field That's very odd. Never heard of it before... It's not enough to wait for a while?
Btw, for short snippets like yours I suppose it's better with
~format
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Click on the link to learn how to format: https://raw.githubusercontent.com/skalavala/HassBot/master/format.gif
I'm using storage mode. what's the deal with the custom updater and tracker? Can I use both as long as I create a ui-lovelace.yaml even though I'm still using storage mode? or can I only use the tracker card? I'm a little confused as to which parts I'm supposed to be using
The custom updater checks and loads the *.js files and edits the ui-lovelace.yaml resources with the new version numbers.
Not sure if this works, but after update you have to edit the version numbers with UI Raw editor by hand.
Is there not a git or issue tracker for lovelace so I can see if my issue has occured before?
@polar kelp Hey Thomas, finally got a chance to test the custom card-loader, and it's working great!
One question, and this is not-nitpicking, it is great as is, just wondering, for a split second I get the red error, "still waiting for vertical-stack-in-card", then it disappears. Any way to get rid of that?
This is almost awesome... https://www.dropbox.com/s/jwihijrezviqhoh/Screenshot 2019-01-29 15.55.55.png?dl=0
If only the 17track preamble in the friendly name wasn't so long. :/
@sterile hemlock https://github.com/home-assistant/home-assistant-polymer
Feature Requests: https://github.com/home-assistant/ui-schema/issues
@old karma Thanks
Anyone heard of lovelace opening inside of lovelace? IMG: https://photos.app.goo.gl/aMiZfmGy2kd2R6uu5
refresh browser @sterile hemlock
I did that. Also cleared and disabled cache.
Ok....looks like you have some custom panel that has Lovelace in it
it is not a lovelace issue....something to do with how you have configured that panel
Yeah, from when it wasn't default. It's in my iframe list... Makes sense that would muck things up since iframe entries create an endpoint url. Never thought of that. I've removed it and restarting.
Is there a way of combining auto-entities/monster card with something like list-card (https://github.com/custom-cards/list-card) ?
@raven nacelle That did the trick. This is what happens when you beta test things and forget to clean up afterwards. Thanks!!!
@ornate mason Check https://github.com/thomasloven/lovelace-auto-entities
@raven nacelle That's what I'm using, but so far I've only been able to figure out how to show them as entities, which is not great for 17Track, as all friendly names have "Seventeentrack package" prefixed, meaning only the first two or three letters of the package name is visible.
list-card wont take the result of auto-entities as input.
I have used custom button-card from https://github.com/kuuji/button-card pretty neat, and simple to use. any other cool custom cards that folks have written?
Ah! Looks like this is what I need: https://github.com/custom-cards/flex-table-card
That card is amazing @glossy birch. I am not using, but folks really like the mini media player card https://community.home-assistant.io/t/lovelace-mini-media-player/68459 and the animated weather card
yes, it is - love the fact that you can add tap-actions: and allows you to have additional styles...etc
will look at the media player
hmm auto entities looks really cool, but if we want to hide the card we need to utilize conditional card?
I used conditional cards, auto entities?
@glossy birch was just reading about this: https://github.com/thomasloven/lovelace-auto-entities
I have 7 entity-filter/monster cards on my home page id like to see if i can consolidate but i like how each one is hidden when its empty
@frosty pelican cool. thanks! will look at that too!
yea im also looking at Folding Entities one too that is demoed in that link
they look like a neat combo to simplify things
Hey guys, I have a basic question. Now that lovelace.yaml file is not there, where do I add custom cards?
Go to configure UI. Then click on the three dots again and select Raw config editor.
Im talking about custom cards where you have to import the js file
Like for this one: https://github.com/kuuji/button-card
The instruction tells me to add a line to the ui-lovelace.yaml file to include the js file
Me too. You copy the custom js file to the /config/www folder then add a resources: section at the top of the Raw Config Editor for lovelace...
I have always put mine at the top. So I'm not entirely sure about that.
Top between the title and views?
I have mine above the title even.
You're welcome....π
Hello, is there a way to remove the dimmer slider on a light card? Light doesn't have a dimmer so no need to show it
Use an entity card for just on off
Sure I do that with all the switches, this was kind of like the primary light in the living area so liked having it stand out
I'll check out picture entity
@glossy birch check sharethelove.io
Howdy
it's possible to add a secondary_info to a glance entity ?
Hey guys, changing the theme doesn't update the theme of cards until a refresh, or the side drawer is open and closed. Can anyone share some insight into why this might be happening?
@snow wren Check out picture-elements card too.
@snow wren I think wabil may have meant to say entity-button before: https://www.home-assistant.io/lovelace/entity-button/
I tried to use windy option in my lovelace window
But after starting the windy tab it only shows red window with windy.com written
I m unable to run the windy tab as a running screen
How to use windy ?
Hey, is there any place that people show off their lovelace setups? I'd like to get some inspiration
π€
The answer is here π
There's also a link to Awesome HA in the pinned messages
Yeah, I've seen the demo site. Looking for something beyond that since people are using custom cards.
Beyond that, you can find many people's configs via the cookbook page on the main HA site
The cookbook looks good. Thanks!
Is there a way to do 'or' conditions in a conditional-card?
where were example cards again ?
why isnt this working :
doh, how did you paste formattted code again
~format
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Click on the link to learn how to format: https://raw.githubusercontent.com/skalavala/HassBot/master/format.gif
~share
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code.
aaah thnx
i made some changes on lovelace on the UI, i restarted my hassio device, and it all reverted back to the original setup? Is there a method of saving which i missed?
- type: picture-elements
image: /local/bedroom.jpg
elements:
- type: state-icon
tap_action:
action: toggle
entity: light.keittio
style:
top: 50%
left: 50%
just wanted to try this, but dont get anything, not even error π
@thorny verge , use @polar kelp 's https://github.com/thomasloven/lovelace-state-switch
With a template sensor as state you can do everything.
Hi guys! My problem is very similar. i just wanted to add a custom card, but when I copied js file into /www folder HA says still "Custom element doesn't found"
did you include the file in your config?
of course
- url: /local/simple-thermostat.min.js?v=1
it looks like the file is not found even though
how can I check if that file is ecen reachable from the browser
even*
double check the permissions
how did you copy file ?
by wget
did you wget RAW file ?
I'm using hassbian and am a homeassistant user, so permissions looks fine
don't assume....check everything and make sure you have the raw file as @potent fjord suggested
check your .js does it contain actual file or weppage
i did this mistake with wget
we have all made that mistake at some point π
How can I make the size of the picture element card bigger?
I tried using a larger background image but size stays the same.
dont know, i dont get any picture on my config π
So I think I tested everything and copied it again and it didn't work
i took the file from here: https://github.com/nervetattoo/simple-thermostat/releases/tag/0.14.0
can you check the file size for me?
mine is: 28709 Jan 29 22:38 simple-thermostat.min.js
yeah, that should be good... so I think the problem can be somewhere how the URL is resolved
permissions are fine
resources:
- url: /local/simple-thermostat.min.js?v=1.0.1
type: module
and like this ?
yes
weird
resources:
- url: /local/simple-thermostat.min.js?v=1.0.1
type: module
title: Control Centre
views:
-
title: Home
icon: 'mdi:home-outline'
cards:Climate
- type: custom:simple-thermostat
entity: climate.bedroom
- type: custom:simple-thermostat
~format @vapid field
@cloud geyser To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Click on the link to learn how to format: https://raw.githubusercontent.com/skalavala/HassBot/master/format.gif
resources:
- url: /local/simple-thermostat.min.js?v=1.0.1
type: module
title: Control Centre
views:
- title: Home
icon: 'mdi:home-outline'
cards:
# Climate
- type: custom:simple-thermostat
entity: climate.bedroom
should I get something when I type the URL manually in the browser address?
I'm stupid! I didn't restored HA after I added the resource line... Didn't know I have to.
now it works
ah heh ok π
thanks for help!
π
@potent fjord DO you know how quickly increase the size of the "Mode" field on that card?
Cuz my "Schedule" or "Manual" modes are cut off
so I see only "Sche"
okay, I found it.
what is the best way to add a binary sensor via into the UI, I am adding all my doors and windows together in a view. Using 0.86.3
sorry if its a dumb question, i wanted to add it via UI,, but if needed I will add via Raw Config Editor
depends on what you are looking for. You can use any of the cards listed on the website (e.g., entities) to list your sensors
How can I make the size of the picture element card bigger?
I tried using a larger background image but size stays the same.
I just opened Entities actually and thought ah ha
i just want to show open/closed for doors and windows nothing more fancy
i was looking in Sensors which is what threw me to start
@thin spade THe size of the card is constrained by the overall layout (three columns). You can use panel mode if you want a larger image
perfect, that done the job thanks
@mossy gale You could just use the entities card.
So I can only change that for all the views? not 1 view?
@thin spade You can use panel for as many views as you'd like
got it! π thx
I use Panel on my tracker horizontal card https://imgur.com/a/uhKPmpc
the images change for each location (always Simpsons styled though π )
been using HA for 9 months or so now, and I am stunned at the amazing changes during that short space of time, especially Lovelace and the new UI
how do I prevent it from resizing to the full width?
I put it as a panel but now when I want to edit the floorplan I don't see the Edit card button anymore..... https://i.imgur.com/ELrZ9BE.png
I am not using the UI editor, so cannot confirm what is going on
ok
I don't know how else to easily find the positions where I want to have an entitity on the image.
you can use any image editor to find the positions or there is a custom card floating around
I've also confirmed that is indeed a bug it appears
The inability to edit a card while in panel mode, that is
Think I could recreate this in lovelace? https://goo.gl/images/iNJGho
Is it possible to make media querys in lovelace?
how does one setup hassio to see devices like printers etc if they are connected to the local network or disconnected
can anyone assist
?
@slender pond you'll have to make some custom cards, but yes
@gilded veldt #330990055533576204
@slender pond Actually you can use a picture-elements card in a panel mode and get very close to that
Im probs abour 70% of the way through creating in with vue but now wondering if theres too many limitations by going via api but im stumped if i go local or if i go external
@raven nacelle is probably right about picture elements but would probably not scale well and would require making a phone view and a larger view
I tried my floorplan in panel mode and it worked fine on all devices
for all picture elements, you need to use transform: none for elements to work well across devices
man lovelace is awsome, after redoing my config I was able to get rid of a lot of entries in the groups file and the customization file
What would be my simplest method to just have a card that shows all media_players that have a state of 'playing'? mini-media-player or something even easier?
Does the state of the media player say playing when it's playing?
Yep
Please the media players in a glance card and see if you like it https://www.home-assistant.io/lovelace/glance/
Where are you saving the YAML it's giving you? in customize.yaml or in the raw editor?
I guess it's same either way. I ask because I'm getting custom element doesn't exist for mini-media-player
you have to install the custom card for mini media player, it should work with regular media player component
hey all quick general question just started trying to figure out lovelace. My question is ui-lovelace.yaml contail all the code for the interface. because for some reason what i see on the frontend and what is in the ui-lovelace.yaml is two different things. Any help in the right direction would be appreciated
Installing card is just downloading the JS and placing it in config/www yea?
https://github.com/kalkih/mini-media-player <- mini media player custom card
yes, check the github for more specific instructions
I feel like I need to include the lovelace.yaml somewhere.
resources:
- url: /local/mini-media-player-bundle.js?v=0.9.8
type: module
I put this inside of it....
Yea I'll play around.
Thanks again!
Yea.
@light saddle if you want to change the yaml you need to enable yaml mode otherwise the lovelace file is stored as json in the .storage directory and should be edited through the UI
@solid minnow did you enable yaml mode in your config? if not see my post above
Ahhh, so I should be throwing all of this in the raw config editor in the UI, then.
yes unless you want to use yaml mode
Sure enough, viola.
I must be used to the OG HA too much. I am way over complicating some of this stuff.
Lovelace is nice.
there should be three dots in the top right corner you click that and click raw editor andd add it in there (the rescources bit) once thats done you should be able to add mini media player just like any other card I believe
be warned I do not use the UI editor so I am not too familiar with it, I know more about using yaml mode. dont blame me if your computer explodes
lovelace is great, if you want to see what I have done with it and what custom cards I have made use of check out my github
~sinker1345
Have a peek at my git maybe it can help https://github.com/sinker1345/Home-Assistant-Configuration
One dumb question - How often do you have to actually restart? I feel like I need to do it whenever I modify config.yaml but when I came back everyone told me you don't have to restart it nearly as much anymore.
https://github.com/ciotlosm/custom-lovelace here are some custom cards to have a look at as well
I'll def check out your github - once I get my sensors etc setup I'll be full onto custom. I loved some of the ones I saw.
@tepid locust i cant seem to add just the entry in the raw config editor either. says invalid?? been trying to mess with lovelace mini graph wth no luck
Like the one guy who had a visualization of the house and each sensor/settings.
lovelace does ot require a restart when editing the UI, edits to config.yaml still require a restart
Got it, so I was right. Nice.
@silver escarp what are you trying to add can you paste a link to your code?
I have found it is much faster as most of my day to day work on HA is refining the UI. I dont add components daily.
@tepid locust whats the best way to paste code in discord??
~format
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Click on the link to learn how to format: https://raw.githubusercontent.com/skalavala/HassBot/master/format.gif
https://hastebin.com/ if it is more than 15 lines
'''
resources:
- url: /local/mini-graph-card.js?v=0.0.7
type: module
just trying to add this reference. have added to ui-lovelace.yaml but I dont think that is the right spot??
did you enable yaml mode for lovelace in your config?
@tepid locust forgive me for being a newb. but I clicked on the three dots on the top right. clicked configure UI
@tepid locust for being such a newbie i am not sure straight up code is the way for me to go hahha
Click on three dots in top right corner, select ConfigureUI. Click 3 dots again and click on Raw Editor and add the resources to the top there. got that from a thread on the forums
no problem, just need to know how your setup is configured to give proper advice π
@tepid locust so i did that but it gives me this error when i click save
Your config is not valid: TypeError: Expected a value of type [object] for views but received undefined.
did you add that to the very top of the file in raw editor mode? you have to click the three dots twice apparently
when splitting up ui-lovelace.yaml using includes, how do you set the order of the tabs/views? using yaml mode
@tepid locust well an editor comes up with a white screen and says "edit config" at the top
and you added the code you pasted to the top?
ya with resources: at the top
@tepid locust but when i use the raw editor it is blank
im not sure how else to go about troubleshooting this then, I dont use storage and cant view the editor screens for it since I am in yaml mode. I wish I could be more help but im at a loss. hopefully someone here who is more familiar with the other lovelace editing modes can help
sinker, you use Spotify component?
@tepid locust yes i did and thats what gave me that error. was checking out the forums and looks like someone else had the same issue https://community.home-assistant.io/t/lovelace-blanc-raw-config-editor/95216 they say its in the .storage folder
@tepid locust I think it was a cache thing. i just tried incognito mode in chrome and it seems to show me code
when in doubt with lovelace ctrl+f5 (for chrome anyway) π
@raven nacelle for something like what @slender pond posted though, the actual format of display changes based on your screen size
true....it may not be a perfect replacement, but it sure is significantly easier compared to using all the APIs and all
@solid minnow there are a lot of good resources in the pinned messages
@raven nacelle agreed
honestly, that screenshot, while beautiful to look at, was not very functional
Ahh you're right iantrich - I thought there was, but when I checked earlier I swear it showed as blank to me which seemed off. Perfect.
dumb question but how is everyone adding a custom card using the GUI. I click add. then it shows me the screen to pick a card if i want. I hit "skip" and then paste in my code but I am getting error Cannot read property 'startsWith' of undefine
scratch that I figured it out. there is so much to learn. I never know if i need to indent. dont indent. etc
I'm using the new lovelace web gui. I am trying to add a floorplan to it using a picture element card. But, it only shows up as a small rescaled picture? The actual image width is 1500px. I have added the panel: true line to the card configuration, but it is still not resizing?
@fiery violet try clearing your cache
I tried that, plus opened in a private tab as well. Also, tried Chrome and Firefox.
Been googling and the only thing that I've found others doing is adding the panel line. I am thinking of switching to using the yaml file for lovelace instead, this might work better?
Please use https://www.hastebin.com/ or https://paste.ubuntu.com/ to share code.
Added to the card
Ah. Added to the raw config editor and it works
Removed from card
Cool. Thanks for that.
should be in next release https://github.com/home-assistant/home-assistant-polymer/pull/2628
Anyone know which card I'll better choose to view multiline-sensors?
I have an issue where my entity-card show everything in same row, like: https://paste.ubuntu.com/p/fsSSNsYn7c/
I'll try one of them. Dont really understand the markdown-card tho. Can you explain it a bit? Should it work?
Seems like tho, as you state a carrige return in the text and it is on a new line underneeth.
Is it a js or module?
When include as resource.
But my lovelace just crash while try using it (as js) :/
It should be included as js
I believe it should work. I've seen other people use it for skolmaten.se for example.
But its something in the code in the js I think. I dont get that red square. It cant even load the page.
<host>....123/local/lovelace/card-tools.js?v=0.1:42:9 Uncaught TypeError: Cannot read property 'shadowRoot' of null
uhm
thats not the right card anyhow.
mapping values are not allowed here in "/config/lovelace/schoolfood.yaml", line 13, column 15
line 13 -- : https://paste.ubuntu.com/p/VnSxKdX4yb/
That error is almost always due to bad indentation
the c in content should be exactly in line with the t in type
Your're right. Sorry.
Now I get the red square. I check more.
Seems to work now. Thanks alot for a lovely card π
Okay. I got this working, BIG thanks to @polar kelp but not completely the way I would likeβ¦yet. Live camera feeds as background image. Just using random input_ select.state for images for now. Would like to have PIR detection designate the camera feed displayed. I know this has been done kind of with the custom : surveillance-card, but would like help if anyone has an idea of how to accomplish or a shove in the right direction...Thanks!
Hi all, I have just updated to 86.3 and the lovelace ui wont load. Gets stuck on the spinning circle. Any ideas? No sig logs and chacked for extra "_" in the entities etc.
what does the homeassistant log say? @craggy cave
Please follow the rules, @robust mulch! You have 5 warning(s) left. You posted a message/code that is more than 15 lines. It is moved here --> https://paste.ubuntu.com/p/wP7QhMd43H/
Please follow the rules, @robust mulch! You have 4 warning(s) left. You posted a message/code that is more than 15 lines. It is moved here --> https://paste.ubuntu.com/p/cFWgyTFXh5/
Please follow the rules, @robust mulch! You have 3 warning(s) left. You posted a message/code that is more than 15 lines. It is moved here --> https://paste.ubuntu.com/p/NHCYjRXWyh/
@robust mulch You can probably do it with a template sensor
Or maybe not, since the entities are dynamic, I guess...
I tried with a template sensor, but I haven't succeeded probably because of the dynamic entities.
probably it should be done within the component.
If the component could do it (via a setting perhaps) that would be best, or maybe just expose the package name as an attribute.
Is it some how possible to have the header toggle button of a card only allow switch off but not on/toggle?
I would like to switch all my lights off by these buttons but not on
hi! A question... Iam trying to play with lovelace abit and everything is by default centered and not drawn over the whole pane... I found the pane: true setting, but it does not change anything. Any tips on how I can use the full pane-width with my cards?
panel not pane π
π€£
If you've set panel: true then you get a single full window card
But, only if you set it on the view
and then lovelace still kinda screws with the way things are distributed within that card. you may wanna look at custom layout card to get more granular control
https://www.home-assistant.io/lovelace/views/ @azure sapphire
I suggest you re-read the docs π
works now. well I did read them.. I just understood em wrong π
@polar kelp re: entity-button, that's perfect. Thanks!
There's plans to add support for non-dimable lamps to the light card as well, btw.
I think so
@polar kelp the package name is in the friendly_name attributes, but still contains the text I want to avoid.
I saw that I can change the friendly_name, so if I can create an automation that scan for each sensor that start with "sensor.seventeentrack_package*" and if the friendly name contains 'Seventeentrack Package: ' remove it an maintain the rest of the text, could be the solution
how the frick do i make scenes work on glance cards?
https://i.imgur.com/s0DYbOo.png
title: Scenes
entities:
- entity: scene.film
tap_action:
action: call-service
service: scene.turn_on
service_data: scene.film```
Also, dear awesome community, is there a way to enlarge the icons?
- type: entity-button
name: Turn Off Away
tap_action:
action: call-service
service: climate.set_away_mode
service_data:
entity_id: climate.living_room
away_mode: false
entity: script.turn_off_away
Is this the proper way to make an entity button?
hey all, is it possible to set a custom width to a glance card?
I've heared something about font awsome being available as alternative to mdi, but I cant find anything in the docs?
@thin granite
https://github.com/thomasloven/hass-fontawesome
cool, thanks
Can someone show me their Raw Config Editor example what just a button (entity to 'do something on click' or a switch) on a page would look like? When I try to emulate it I end up with another tab, somehow, that's blank.
For instance
- type: entity-button
name: Turn Off Lights
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.turn_off_lights
entity: script.turn_off_lights
just makes an "Unnamed View" tab with no details. I assume it has to do with my indentation but unsure.
Indentation.
it should be in cards of a view
Please follow the rules, @solid minnow! You have 5 warning(s) left. You posted a message/code that is more than 15 lines. It is moved here --> https://paste.ubuntu.com/p/hVBZ5gC99S/
Whoops. Didn't realize iit was that long.
Your card has to go in the cards: section.
When it comes to yaml. Indentation is king. http://thomasloven.com/blog/2018/08/YAML-For-Nonprogrammers/
Your cards comment gave me what I need, yea. I get how Lovelace is expecting the format more now. Perfecto.
Second question
type: entity-button
name: Turn Off Away
tap_action:
action: call-service
service: climate.set_away_mode
service_data:
entity_id: climate.living_room
away_mode: false
entity: script.turn_off_away
This is resolving to "Invalid Entity" but this is the name of the entity climate.living_room which makes me feel like I'm missing something. Any thoughts?
Put Entity on the top level and now it's just informing me that script doesn't exist. Is that script not the declared button above it? Am I conflicting uses?
you need the script to be present for the entity button to work
I think that's what's confusing me. Isn't the script what I am identifying above with the tap_action?
no...frontend is completely separate from the backend
anyone able to break ui-lovelace.yaml into multiple files? it is growing like crazy already!
you need to define the script in your configuration
Ahhhh, so I'd have to create a script for every button I want to 'do something' on the front-end? it can't change states?
yes, you can now have include in lovelace @glossy birch
cool - let me try @raven nacelle
with picture elements, is there a way to make state-icon or state-label invisible?
or do I need to use card-modder for that
You can use some css styling @mortal cape
oh style: ?
yes
Just starting with Lovelace and keep getting "Custom element doesn't exist" . I have the custom cards in www folder, restarted, am on 0.86.4, any tips ?
did you include the file?
I'm thinking of switching to YAML mode vs Raw Config - Any real downside of this besides the UI validation in real-time?
yea like this: https://paste.ee/p/iq6OY right ?
for the "simple-thermostat"
there seems to be different opinions on needing quotes or not, but have tried both regardless
@surreal haven resources should start above everything I think
hmm
you have them in a view
mmm...I haven't seen it like that anywhere until you π
If you've seen it like that doesnt mean its working π
positioning things in picture elements suuuucks...I can do this though
also true :> thanks all β€
still kinda miss the old thermostat style, the boring simple one worked for me, that seems gone now
Put a climate entity in entities card
oh wow! great
so helpful
the reloading with a refresh is so nice, even cooler would be hot-reloading haha
@surreal haven use the UI editor and it will
Because you are in yaml mode?
just to be clear - HA uses Lovelace by default right?
hrm maybe things are all gunked up because I had an old version of HA installed on this PI that I just blindly updated 3 times in a row to get up to date
@steel valley be sure to clear your browser cached
an entities card can't have it's own icon?
say if I wanted a card for bedroom stuff
also when I enable YAML mode, can I clear groups.yaml ?
@mild veldt I made an giant roku remote. way too big
Good work
Can I reset the UI and make it regenerate somehow?
I guess you have to manually delete the config file
remove ./storage/lovelace
why put it in its own view?
i've been using thomas' popup-card with my roku-card with a lot of success
takes up no space until i need it
So I setup lovelace using horizontal and vertical stacks in a Itβs 4 x 5 matrix. Itβs looks looks great on my desktop but on iOS itβs all messed up. Is there anything I can do about this ?
In picture-elements is there anyway to hide state-label base on condition like state-filter where condition like :
not-state :
- home - office
@next aurora if you're using stacks, they are what they are. you could create/hide items on iOS use thomasloven's state-switch
@thorn matrix You could perhpas use https://github.com/thomasloven/lovelace-useful-markdown-card and put the label in a template sensor where the state is empty when you want it blank?
So the issue i have 2 source of location , GPS and BLE(Room Level) and and i want to control which sensor to show base on that
If am home show ble sensor.if ble sensor not_home show gps
@mild veldt
I am teying to avoid Template sensor and checking if there another way
actually, i haven't tried it but you should be able to use the conditional card in picture-elements
would be custom:conditional-card
let me I try, I think that's true
hmm, not working. I could have sworn that worked at somepoint. Maybe we broke it as it was never intended to do that
Oh man π¦
no, I swear I used to have a picture-elements card that did this. @polar kelp was the one who figured out it could be done...hui-conditional-card doesn't work either
I'm sure thomas will remember
@thorn matrix nevermind. I had a typo. It totally works
π
I started splitting up my giant ui-lovelace.yaml file today using !include. I noticed that if I misspell the file name or provide the wrong path the whole Lovelace UI fails to load and HA defaults to the states UI.
Is that the expected behavior?
@thorn matrix you'll want to use type: custom:hui-conditional-card
Do i have to download any custom js
Awesome thank much man!
you can use any card, row or custom card in picture-elements
@blissful kernel no, but you could always just use the UI editor and never have to worry about that again
I don't know if it will make the next release, but bram has really enhanced the Raw config editor as well on the frontend
I don't want to use the UI editor, I am a control freak... I like knowing where everything is... Lol
I mean, it would be right where you see it visually...but to each their own
I really like having it in text files, use git for version control and host them in GitHub.
that's still possible when using the UI if you really want it. When you want to update github, open Raw config editor, copy yaml and paste into old ui-lovelace file
or you could do version control on your .storage/lovelace which is the same thing, just in json instead of yaml
Can anyone point me to a simple yanl file to display a temp sensor?
~edit @trail stream
@trail stream Instead of sending the message again, please edit the original message. For more information on how to edit messages in Discord, please visit: https://support.discordapp.com/hc/en-us/articles/207618817-How-do-I-edit-my-messages-
Anything else needed in the yaml file to make this display?
No, not if you've put it in a view
And, obviously, it goes in ui-lovelace.yaml, not configuration.yaml or anywhere else
ugh....
view:
title: ugh
type: sensor
entity: sensor.temperature
name: TEMP
~format @trail stream
@trail stream To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Click on the link to learn how to format: https://raw.githubusercontent.com/skalavala/HassBot/master/format.gif
Those are the quotes to the left of the 1β£ key on many keyboards
You might be better off not using YAML mode and using the UI editor
I think I'm using yaml mode.
See the link I posted about YAML mode - if you are you'll have those lines in configuration.yaml
I'm just having trouble finding an example simple enough for me to understand
lovelace:
mode: yaml
Yep. It's there.
https://github.com/DubhAd/Home-AssistantConfig/blob/master/ui-lovelace.yaml is my entire Lovelace config file
it's not simple though π
1500 lines...
I'm looking for somethign 5 lines or less
I just want 1 number printed on the screen
no charts, no pictures, no cats
Just a number... use a glance card
None of the stock cards are really designed to display a raw state like that though
That's the only example file I could find that made any sense but I was unable to modify it to print a number
I think I missing the minimum requirements
views:
title: ugh
type: sensor
entity: sensor.temperature
name: TEMP
I think you're missing formatting your posts
is there somethign else needed in this yaml file?
Can't tell, you're posting unformatted messes
I'll say it again though - stop messing about with the YAML, move to GUI mode. It'll be a lot easier for you
views:
title: ugh
type: sensor
entity: sensor.temperature
name: TEMP
@trail stream YAML is the mark up language used by Home Assistant. Consistent indenting (two spaces per level) is key - read more at https://home-assistant.io/docs/configuration/yaml/
views:
- title: Overview
id: overview
cards:
- type: picture-glance
title: "The house"
There's a snippet out of mine
tada! Thank you!
- title: Overview
id: overview
cards:
- type: sensor
title: "The house"
entity: sensor.temperature
https://pastebin.com/0eScKyp1 Tapping/clicking on Auto Bathroom Light brings up the info dialog instead of toggling as expected/specified. What am I doing wrong?
Now I can sleep.
action: call-service doesn't seem to work either
gonna go back to an Entity Button until I figure this out. Takes up way too much screen space...
also doesn't show the state of it
So, how does one migrate from Lovelace Yaml mode to the "new" non-Yaml mode?
And also, is it possible to run Lovelace custom cards without yaml mode?
β€
Should I be able to apply a theme to a panel view?
Not sure if this is a lovelace question or not but are there any smaller media control cards? For example spotify and chromecast shows an image of what's playing. I don't want that.
@stoic solstice , https://github.com/kalkih/mini-media-player
Hi All
In the past I feel like I remember all new sensors/switches automatically being added to the front-end. I do see the "Unused Entities" tab, but am I mis-remembering or is there a way I can re-enable that?
Can someone point me in the right direction on how to turn an entity attribute into a sensor?
thanks
@solid minnow entities are automatically added in auto mode only
If you have made any manual edits to your interface in the GUI editor, you can go back to auto mode by deleting the file <config>/.storage/loveace, which will remove all your customizations.
@old karma Thanks! That looks like what i want. Now i need to find the config dir and how to use this without a ui-lovelace.yaml file
Hi guys - anyone know if there is a card to display the contents of a group - eg group.all_devices
the custom ones auto-entities or group-card can do that
When using the iframe card, my CCTV image is zoomed in to the top left hand corner, making the card unusable. Is there a way to fit the complete image within the card?