#frontend-archived
1 messages · Page 199 of 1
so i guess if I wanted to say, toggle two switches I should just make a group then for that particular action
Card mod. https://github.com/thomasloven/lovelace-card-mod There's an example here: https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/191
Yes that would be a way to do it.
thanks mate
@errant plover - its just as complicated as learning HA 🙂 Cannot find a direct example
Hello! Is it possible to set whether an icon is lit up or not depending on the state of the entity?
Please take the time to search to see if other people have asked similar questions. In this case, it was literally still on screen.
Whoops, sorry!
I just linked you to a direct example.
How do integrations do it by themselves? I've created an AmbientLighting pyscript module that tracks 'on' and 'off' as its state, wondering if it's possible for Lovelace to infer the highlighted state directly from the entity
For instance if I add an automation to a glance card then it'll be highlighted when it's on and not when it's off
Yes but only for binary on/off type entities. Use state_color: true in the card.
Beautiful! Everything else is an attribute
Use sort method state, not name.
Yeah got it.
Aww state_color didn't work. Should it work for any 'on' and 'off' even if the entity has attributes?
On the plus side, my ambient lighting is working great. It can estimate how much lux is being provided by the lights in the room, estimate the ambient lighting, and set the light brightness to the required level
It should work for any entity with a binary state. Not sure about binary attributes. Stand by will do a test...
I don't think attributes are considered binary or otherwise. It's just the state of anything where the domain is binary sensor that cares.
So it has to be able to know if the state is binary. pyscript entities could have any state
I think, probably, my best bet is to create a switch entity with the pyscript module that ties in to the state of the pyscript entity
card-mod might be better here then, since you can provide templates to check.
I'd rather have something that has as few dependencies as possible
Confirmed.
I meant the one I needed =) but thank you
pyscript can't create switches 😦
There seems to be a bug where list items for device nor entity are selectable for scenes 😦 I posted in iOS but was told this is the better place to mention it.
If I want to convert my unifi controllers RX/TX output from KiB/s to MB/s can I do the conversion directly in the card or do I need to write a template first?
why does my HA keeps adding a card with an entity on my dashboard every time i restart the server. (Its a Sonoff Switch(EWelink smart home plugin)
hey , which channel do i ask? my home assistant just stopped working for no reason and wont startup again
That’s a terrible description of a problem. Which version? Whats actually happening? What error if any? Is the process running? Etc.
Maybe a card is hardcoded in your configuration yml, that your HA uses when starting up?
I’d create an issue of homeassistant’s github with instructions on how to recreate the issue.
@vocal laurel hey have you checked the logs yet? Do you have a supervisor tab on the sidebar to the left of the screen?
Hello, does anyone know how I can make a card that will show me what automations are currently running?
I tried that, it shows me which automations are active or not, I want to know what automations are currently actually doing something and not just in standby
You could move all the actions to scripts
I'm afraid I'll break something, if I try that
Different question. Is there a way to show the attributes of an entity, directly on Lovelace?
I'm using the meteoalarm integration and that only shows the useful information under the attributes section. I'd like to be able to see that information directly in the dashboard
Hello everyone, I combined the ESPHOME and SGP40 VOC sensors to connect to HASSIO. But the historical image of VOC is the same as the switch, it is not a line graph. Is there a way to modify it.
The same as what switch? If you mean a boolean graph like this, then you have to give your VOC sensor a unit_of_measurement in ESPHome.
Also it has not been called Hassio for 19 months. Please stop calling it that. It confuses newcomers. It is Home Assistant OS, or HasOS for short.
Yes, VOC is the image of your picture by default. I want to change it to a line graph.Need to add a unit_of_measurement? Let me try.And... OK, HasOS marked.thank you very much.
Hi guys - having an issue with my card data going down multiple rows - sorry I don't know how to share an image..!
but what im seeing is the icons on top of the entity name on left and then on right the entity value is lower
Please use imgur or other image sharing web sites, and share the link here.
Image posting is blocked in most channels to discourage people from sharing text as images.
Ah, found it! custom declutter card js had failed me
Scratch that... refreshing broke again.. thoughts? https://imgur.com/dgtnxTl
sometimes it loads fine on Ctrl+F5 and then it breaks again
tried full cache clear
Same issue on other browsers and/or devices?
Yes, tried Chrome, Edge + Android app
Then I'd suggest checking the issues on the custom card's GitHub page. If there's not already one, raise one.
Most my cards are standard entity cards
So it's not the declutter card?
No sorry for the confusion there, i removed the declutter and refreshed and thought that had fixed it but it hadnt. The issue is from what i can see, standard entity cards
What other custom cards or frontend integrations do you have installed?
@proven sphinx posted a code wall, it is moved here --> https://paste.ubuntu.com/p/4DfpqB5JSP/
That's... a lot of things that could be interfering.
Are they all up to date? If so, try removing one at a time until the problem goes away. I'd start with stuff like card mod or layout card that interfere with other cards.
Thanks, I'll give that a go 🙂
this seems to be suboptimal ``` - type: gauge
entity: sensor.watermeter_wifi_rssi
unit: dB
min: -20
max: -95
severity:
green: -67
yellow: -70
red: -95``` and the gauge is always fully colored, no matter the state of the sensor. What should I change? (I have a bad reception at that spot, so need real low levels.
Fully coloured in what colour?
the color corresponding to the severity. Ive switched the min/max values, and that seems better, but not sure with the negative values what the optimal config would be
like this:``` - type: gauge
entity: sensor.watermeter_wifi_rssi
unit: dB
min: -95
max: -20
severity:
green: -67
yellow: -70
red: -95```
Yes, I know what the config should look like.
as said, in the first config, the gauge would completely turn to the severity color, instead of showing only a relative portion of the gauge in that color
Are you seeing it in red, yellow or green?
yes
Right. Have fun.
pardon me? have I said something wrong to annoy you?
Hi! I want to intergrate a scoreboard on my screen for billiards, I've tried a webpage but thath doesn't work very well. Is it possible to install a android app or something and intergrate this into home assistant?
I see the full gauge turn green when lower than the severity setting, same for yellow and red.
Your options will be limited depending on the source of the data. In terms of directly adding something to the frontend, you can sometimes embed a webpage (but this is usually ugly and sometimes doesn't work). Otherwise, you need to find an #integrations-archived that can fetch the data you want.
Thanks for the response! For the simple webpage view, is it possible to set it full screen? I did a attempt to intergrate this site (https://basisonderwijs.online/digibordtools/scorebord.html), but this one doesn't work at all.. What can you advise me to do.. I'm relatively new in the complete HA process, so very complex intergrations is a level too high now
is it possible to set it full screen
Sure... just open it in a new tab.
Embedding something within Lovelace (the HA UI) only makes sense if you want the embedded thing to be a part of your UI. If you want that thing to be fullscreen, there's no point embedding it.
Allright, I've put it in the lovelace panel with a web card on a new page. How do I sett the webpage fullscreen on this page? ```type: iframe
url: https://basisonderwijs.online/digibordtools/scorebord.html
aspect_ratio: 150%
@fiery ledge You're running the beta, right? Do you know if this is a problem in 21.7?
Is there a recent change that sets date to the format 2021 M07 26 16:00 or have I done something weird? 🙂
The latter
For instance in the logbook. It's like that in both Chrome and app
Marius: The expected behavior of the bar of the gauge is to be a solid color. But try adding needle: true to the configuration if you're on beta.
Expected:
Beta feature:
Not really, sorry, must admit I never used the gauges until now. Guess the negative number confused me. Will test the needle! Btw in the energy panel the needle is covering the entity state a bit at the base (its long 12,59 kWh )
The name or the value?
If these are issues you're seeing in the beta, take this to #beta (where it belongs).
Can I change the date format 2021 M07 26 16:00? I only see a time setting for 24hr or pm/am.
If I had to guess, I'd say it's your machine's/browser's locale settings causing that.
HAOS through VM in Windows 10. So then it's not the Windows 10 settings, right?
It'll be the settings of whatever machine/browser you're viewing it on, not running it on.
But even in the Android app it says 2021 M08 1 when I click on a lock sensor and look at the history
Then underneath it says Locked 18:11:25
That's a realy weird date format too... never heard of anything like it.
Here's an image so you can see: https://imgur.com/a/9Kmara6
I think it's been like this for a month
Maybe more
Is that bokmål?
Bless you
Changes to 1 August 2021, 19:00 if I change language to English (GB)
What was it set to before?
Norsk Bokmål
In HA?
But you guys use a normal date format, right?
Yeah. 🙂 Bottom right corner in windows I have 21:44 01.08.2021
Remind me where I set the language, I'll try the same thing.
Practical joke from one of my countrymen perhaps
Looks to me like someone somehow messed up the formating string from like yyyy MMM dd to yyyy Mmm dd...
In profile settings
What's your HA version? I can't reproduce on 21.7.4
Looks ok on 2021.6.6
Same. 2021.7.4
Since it's also in the Android app it doesn't seem like a browser issue to me
You've proven it's not by changing your user prefs.
Now I uploaded an image of my regional settings on my PC viewing HA: https://imgur.com/a/9Kmara6
I think thomas is right. There's probably a mistake somewhere in the date template being used somewhere. Where that mistake is, I have no idea.
Just use a normal language for now, like English or Spanish.
Has anyone in here used a button to track an event like taking a dog out?
I'm looking for ideas on different ways to do this.
The answer is almost definitely yes... but you want more than just a button. What does the button do?
Depending on what you're trying to track and what you want to do with that information, you'll probably want scripts/automations.
My dog is old and she needs to go out every hour. But GF and I are exhausted/sleep deprived and can't remember the last time we took her out. So I just want a button at the door we can tap when we come back in that records a time i can display on the front end.
Bluetooth tag on the dog 🙂
I'd start with something simple like:
- input datetime (to hold the time), add this to your dashboard
- button, press this to record a walk
- script (run from the button) to set the input datetime to the current time
Then I need a reader and a bunch of other stuff.
Not related to HA but if you're letting the dog out hourly to pee, have you considered a litter box for it instead? They're not just for cats 😄
That gives me something to google. Thanks.
Well, she's 17 and aside from mobility issues she has extreme difficulty seeing now.
That's not an entirely bad idea though.
Anything that means you get a good night's sleep is worth trying.
At 17, I take it teaching the dog to open the door for itself is out of the question.
Well, because she is deaf, and mostly blind, she barks at full volume if she needs anything.
So sleep is out of the question.
You can't believe how loud she is. I checked my apple watch using the dB meter and it says long term exposure will cause me to go deaf..
She used to use the dog door, but she has a hard time figuring out where she is now. If you've ever seen a Roomba navigate a room, that's what she does. She walks in progressively bigger circles until she finds the water.
The input datetime is probably want I want. I can probably ping that from node-red and be on my way.
If I'm trying to create a button, how do I get the current date time in the front end?
I tried this based on the help page:
- type: button
name: Reset Time
icon: mdi:calendar
entity: input_datetime.paisleypotty
tap_action:
action: call-service
service: input_datetime.set_datetime
service_data:
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
target:
entity_id: input_datetime.paisleypotty
icon_height: 40px
But no go.
You can't use templates like that in the frontend. Jinja is used by the backend. This is where you'd use the script I mentioned (so that the logic is handled on the backend). Help with scripts can be found in #automations-archived but you have the right idea.
An added bonus of doing it in multiple steps with the script is that you could have something else call that same script in the future (some automation based on sensors or whatever).
Same end result - time gets updated in your UI.
Is there a way to display the seconds on that datetime object?
Only seems to want to show date, h:m
In the Lovelace UI.
I'm not sure. I'll leave that one to someone else
anyone know what kind of card this is https://i.imgur.com/Ba4t1Wf.jpeg
Looks like maybe a custom button-card with a graph card embedded within
looking for something a little better than the sensor card to show power usage historicals preferably as a line graph with some other info sprinkled around
basically that ^ 😛
Yoyo folks, is anyone here using custom component called color-lite-card? it's for floor plan mainly in picture element card
i can't have it working as error pops up custom component doesn't exist. I've added the .js file to /www/js/ and in resources url is /local/js/color-lite-card.js and type module
have a theme (Darkblue) which turns the 'red' (noticed because it is used in a gauge card) in to the primary color of the theme. seems to be done by this in the theme:label-badge-red: var(--accent-color)
is a hard coded colorname in a config still translated back to that?
none of the other colors do that btw
Hi there, I am a fairly novice user, so forgive me if I've just not found quite the right solution...
I have four heating zones controlled by climate entities. My provider doesn't have a 'boost' function so I created a script that I pick up in the Node Red integration to create this functionality.
In my yaml for the script I defined three variables, one for the entity, one for the temp and one for the duration. I created default values and made them required. This works great in the Developer tools page - I get nice sliders for the numerical variables and dropdowns for the entity variable.
What I can't find, is how to actually present this to a normal user. I want to put a card in Lovelace where the user can pick the values like in the Developer Tools and click 'Run Now'.
The closest I have found to do this is to create four helpers, one for each variable and an extra input_select with the friendly name of each thermostat for the user to pick and then an automation to update the input text every time a different value is picked. I then have to have a 'wrapper' script that I call that looks up these values and then calls the 'real' script passing these variables. This feels very cumbersome and, unlike the built in method in Developer Tools, won't expand if I added more climate zones.
Am I just missing a trick here?
Is there a way to check a bunch of devices and add them to an area? I've been having to assign area by clickign into each device individually
Areas are pretty simple at this point, and not terribly useful. I think what you're doing is the only way
Humm i installed the beta... but not energy option in sidebar
if you don't have default_config: in configuration.yaml, then you need to add energy:
What would be the best way to add a bunch of devices in one room onto like a entity card?
in an entities card, you can either add them manually or use something like auto-entities. The latter can pull all entities from a group (more useful than an area), an area, or based on a bunch of other criteria
media player card question. if i pause/stop music after about 5 minutes to card stops working and i have to go reselect the source before it will come back up. is there a way to have it keep the source?
pretty much it goes idle and i cant do anything until i reselect the source speakers...
is there a way to keep the media player card from going idle?
Got it thanks!
Hey guys! I'm working on a 3D Floorplan for my Lovelace dashboard and because I'm using a counter that's either 0 or 1 to track the state of a lamp that sends no "status" back to Home Assistant whether it's turned on or off, I wanted to modify the function in the CSS code which toggles the displayed image (checks light state -> shows picture of light on (or off)). But how can I implement my counter into this:
opacity: >-
${states['light.lamp1'].state === 'on' ?
(states['light.lamp1'].attributes.brightness / 255)
: '0'}
PS: light.lamp1 is just another light which I'm using this code for (WLED lamp) and I wondered if it would be possible to modify this snippet of code
I've had something like counter.mycounter.state == 1 in my mind but this won't work
I don't need the brightness attribute, just the "on/off" part
Hi Guys,
Newbie here
I have an issue if anyone can help me.
setup: eWelink Smart Home integration with 3 Sonoff wifi switches
Whenever HA is restarted , i can see a ewilink card in my main dashboard readded automatically, so I keep removing it manually.
This happens in any way i restart my HA ( manual or via automation)
Is there any way i can stop this from happening ! if someone have seen this and solved it before please help me here
Is it possible to subtract from default_config? If I want to use default_config but remove a couple I don't need. Listing everything I want would prevent new stuff (like energy) magically appearing after an update. 🙂
No. You can make a copy and edit it but then it won't auto-update. If you are not interested in the entities at all you can disable them in Configuration / Entities if they were not created with YAML.
First of all: Your avatar makes me scared to see where this is going...
Second: Wouldn't it be easier to set up a template light and actually turn your status thing into something all of Home Assistant sees as a light source? https://www.home-assistant.io/integrations/light.template/
Haha no worries! It's just a joke, never touched IE in the last 10 years 😉
I never created one 😌 so if I understood that correctly, I'll only have to fill in the "on" and "off" service in the config for the template light?
And the value template
Nb. This goes in the Backend configuration i.e. configuration.yaml
https://imgur.com/a/gDTFScb This is the way I'm currently using it
One entity (as seen in the imgur screenshot) for "pressing" the on button with the optocoupler and one for pressing "off"
Hello! Is it possible to remove some items, like Logs, Map from the frontend sidebar for non-administrator users?
i mean, maybe disable it for per user?
But for a value template, I need a sensor entity right?
Isn’t that your counter?
Can I make the date picker start on Monday instead of Sunday (as the first day of the week)?
I think that’s based on your browsers localization settings. Or you could try setting your language to English UK instead of English, maybe?
Doesn't seem to make a difference
hmmm... right! But do I have to convert it into a sensor entity? (because it's just a counter)
Can I use something like this: {{ state_attr('counter.mycounter')|int > 0 }}
Should work
HI
sorry if I'm in the Wrong Channel but, is any way to start the frontend from a fresh install of hassio OS???
https://imgur.com/a/gDTFScb I added a screenshot of my configuration.yaml entry and the error message I get
try wandleuchten: instead of Wandleuchten:
oh! such a simple fix! Thank you 🙂
When clicking a light card in lovelace with the new entity, I get this error: Fehler beim Aufrufen des Diensts light/turn_on. Unable to find service switch.wandleuchte_on
EDIT: this version with a specified target seems to work.
`light:
- platform: template
lights:
wandleuchten:
friendly_name: "Wandleuchten"
value_template: "{{ state_attr('counter.wand_counter')|int > 0 }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.wandleuchte_on
turn_off:
service: switch.toggle
target:
entity_id: switch.wandleuchte_off
`
@polar kelp But the on off switch in the light card in lovelace turns itself off after a second
It'll turn back off in the UI if the value of {{ state_attr('counter.wand_counter')|int > 0 }} is false.
Hi Guys,
Sorry for asking stupid questions, but I'm getting completely lost in this. I've been using Home Assistant now for a couple of years, and want to make it the main GUI for all domotica I have in my house (almost everything is connected, I have over 30 apps for controlling my home... 😉 ).
So it's the first time I really start tinkering with LoveLace instead of just dumping whatever button / histogram I need and leave it there.
For my Energy consumption I would like to create, what I think is a basic overview, just displaying some sensor info and doing some basic caculations with sensor values of which the results need to be displayed.
But I can't find a simple way of doing this, without starting to learn and write Javascript?
@karmic tiger That is exactly what I was looking for
what do you mean with value?
First of all, stop tagging me on every damned response.
Secondly... templates evaluate their inputs into a value. Go check the value (in Dev Tools > Templates)
It's discords answer function, sorry.... 🤷♂️
And it can be turned off...
It's okay, I'll turn it off remotely for you, one sec...
The bottom one: https://imgur.com/a/gDTFScb
I created an automation which increases the counter to 1 and then toggles the switch entity (on). The other automation resets the counter to 0 and toggles the switch-off entity
@dawn viper posted a code wall, it is moved here --> https://paste.ubuntu.com/p/CkfHhVCYVB/
@sleek notch Here's what's releasing tomorrow: https://demo-dev.home-assistant.io/#/energy
I just installed the beta, but since I'm using Willem Aandewiel's DSMR reader v4.5 ( https://opencircuit.nl/Product/Slimme-meter-uitlezer-V4.5-Geassembleerd ) , I trying to adjust my manually configured sensors now, so the energy tab will find them
Apparently not trivial for rest sensors
Maybe not the right place to ask, but is there any way to get a Rest sensor in the energy tab?
I really like this!
Odd question: How do I set space between columns?
I'm already using lovelace-layout-card and I have:
width: 300
min_col: 4
max_col: 4
There's no option for that, actually.
Hmmmm I wonder how people accomplish it then. Like this: https://imgur.com/a/8BHxBVN#XQsYIGS
card-mod
or possibly a grid layout
Or maybe that was an option in the previous version of layout-card. I don't remember...
Hello everyone. Can anyone please tell me if there is a way to show the attributes of an entity, directly on Lovelace?
I'm using the meteoalarm integration and that only shows the useful information under the attributes section. I'd like to be able to see that information directly in the dashboard.
You can add an attribute row to an entities card: https://www.home-assistant.io/lovelace/entities/#attribute
When I just need the "on/off" part of this snippet, what do I have to remove?
opacity: >- ${states['light.wandleuchten'].state === 'on' ? (states['light.wandleuchten'].attributes.brightness / 255) : '0'}
Replace all of (states... .brightness / 255) with '1'
A ? B : C means If A then B else C.
hmm I tried that and it only works when refreshing my floorplan page
What card are you using?
picture elements I think
And for the templates javascript parsing?
It's somewhat integrated in a custom:config-template-card
The core cards have no support for that kind of logic (except the markdown card), so there must be something else if this works at all.
The weird thing is that every other lights work in the intended way, only this new implemented one does not
-> I can change the light colour on my main dashboard and the 3D Floorplan dashboard syncs perfectly without refreshing. When I try this with the new light, it won't work
And by dashboard, you mean like a light bulb icon?
Because those sync with the color and brightness automatically. Images do not.
My current setup:
-Main dashboard: Light cards to control my ARGB lights and the "dumb" wall panels aka. "wandleuchten"
-Floorplan dashboard: displays a background image of the room, no lights active and will overlay images with different lights active when I turn them on over at the Main dashboard (and they turn on in reallife)
- I turn on one WLED ARGB light strip
- When I look at the floorplan, the corresponding area is lit up as it should
- I turn on my wall panels
- Back on the floorplan view, they're not showing up bright and white as they should
- pressing
F5and boom, they're there
I think I know what's happening, but it's probably not what you think. Could you share your entire configuration for the picture-elements card? I can also be wrong.
Ok. First of all: type: custom:config-template-card. That's the "something else" I mentioned.
That changes everything.
please ignore the filter: ${1} in line 89, I just wanted to try out if this would change the behaviour (I removed the filter option for the last entry because there's no colour that could change)
The editor does weird things to quotes sometimes. Try changing yaml opacity: '${states[''light.wandleuchten''].state === ''on'' ? ''1'' : ''0''}' to ```yaml
opacity: '${states["light.wandleuchten"].state === "on" ? "1" : "0"}'
Also try "1.0" instead of "1"
correct, it's there
You also need to update the entities list of the config-template-card.
It's always the simple things in the end.
Now it works like a charm!!!
Thank you for your time and the great help! I would've gone crazy searching the error 😵💫 😊
you have no "buy me a coffee" or tipjar, right?
I do, but don’t worry about it. I do this for fun
I really appreciate this!
Hi everyone: Quick question. What is the best way to hide cards by user/username? I have a fairly long list of cards some of which I'd like to hide from specific users for a better...WAF rating (we are currently using 2 different views which are about 80% identical, but I'd rather have one and stop the redundancy). Using the "Restriction Card" feels like overkill to achieve this, plus it does not really hide the cards properly (i.e. leaves empty spaces).
Hello. I have a question about browser mod. I’m trying to use popup_cards but it doesn’t change the more info popup. Can it be used on a group.xxxxxx entity?
Any idea?
is there no way to create a group for devices in lovelace? I don't mean a card but an actual group of say lights and switches like you can in group.yaml?
No, groups are YAML only at the moment.
ok, koo...thanks!
hmm after the newest update i cant see the new energy settings
Go to Configuration > Info. What version of HA does it say you have?
While you're there. Also do a search for "default_config"
Home Assistant 2021.8.0
There is nothing like "default_config" there
I think you need that or energy: in your configuration
i will set energy in my config
that did the trick, thank you
Hi, it seems there is a little bug with the german translation in version 2021.8.0. The german caption of the energy entry in the configuration menu is wrong.
[%key:ui::panel::config::energy::caption%]
Hi! Using ESPHome V1.20.3 on Hassio, I have 3 DS1820s sensors. On Hassio, 2 sensors work great. Sensor named "sensor.pool_temp_out" don't. I rename my sensor and did'nt help... My config of ESPHome is https://pastebin.com/sKkbMDcu and I double check with ESPHome support and everything look good. Look like a issues with history. https://imgur.com/oAm3jaW I did not exclude any device of recorder on my config.
~~Hi, I can't select the sensor.grid_power from my SMA solarpanel inverter in the new energy dashboard, Any thoughts?~~Nevermind I use sensor.total_yield now, it just takes some time to pick up the right values.
I am not sure this is the right channel, but I am using a condition card and am wondering I can set state is and state is not to have my weather panel say stuff like "It is currently sunny" but what I want to do is have it say stuff like "It is a beautiful sunny day, the temp is currently 78 with a high of 90 and no chance of rain for the next hour". I presume I will need a complex conditional card to achieve this but I don't see how I can have it say the temperatures I tried things like {{ sensor.weather_temperature }}, can anyone point me to the right direction/guide to help me out?
You can use a markdown card to display whatever text you want, including using templates
You might be able to use card_mod to modify the existing weather card, but it’s not my area of expertise
And that isn’t a proper template, so I recommend reviewing the jinja templating docs: https://www.home-assistant.io/docs/configuration/templating/
What happened to the gap-card addon? Suddenly it's archived.
It’s included in layout-card now
Oh cool, thanks.
Does anyone know how I could adjust a thermostat to show it's decimal value in lovelace? I'm wondering if stuff discovered via MQTT can be adjusted through the config yaml file - also having an issue where the sliders on the card don't work to adjust the set point
anyone using the mini-media-player card on 2021.8? it's no longer showing up for me
Edit: ignore me, my fault
Thanks for the link! I will look at templating, I presume I could use this to convert sensor.unifi_dream_machine_packets_received from packets to millions or billions?
sure
sweet
Is it possible to add a button for check config in the lovelace and see ok or error (or similar) ?
How would the error show if you're just pressing a button?
Even if you had a way to check the config (which would be a question for #integrations-archived and probably not the obvious solution of just calling the check config service), you'd still need a way to output the response.
If you're in the UI already, it's only a couple of clicks to run the check in the usual place.
I posted about this not that long ago...
there's also the homeassistant.check_config service, but it's a less rigorous check
Anyone have a good idea of how to achieve something like this in lovelace? https://imgur.com/a/BFfxufz
The custom button card and lots of tweaking.
Fortunately, you can just rip off the styles from monitorr, so that's half the work done for you.
ok I created a template for what I want and its working but I am not understanding how to use it on a card?
Generally, you don't. Templates are a backend thing except for the handful of custom cards that allow them. What are you trying to achieve?
It doesn't have to look the same, i'm more after the functionality of if the service is up/down or unresponsive
Then your starting point is to have #integrations-archived that can tell that information. Once you have that, displaying it is easy.
ok so I am at the moment wanting it to display "forecast was last updated xx minutes ago" instead of the unix timestamp
so basically a "ping" integration of some sorts?
Yes. And speaking of pinging, please don't ping me on every response. If you're using the reply feature, toggle the ping off.
sorry, didn't know that was a thing. new to discord
Typically, you'd make a template sensor that does the work transforming how the data looks, then use the result of that new sensor in the UI.
You'd use this: https://www.home-assistant.io/integrations/template/. If you have more questions about that part, head over to #integrations-archived .
Ahh thanks so an integration is the missing ingredient thanks
realized i can use the docker plugin for "sort of" the same thing. Just not sure how to change the image since the button-card does not take an image but an icon
testing out the new statistics-graph, what kind of entities are supported?
when adding an entity for current power draw I get "No Statistics found"
are only history-stats sensors supported? 🤔
hm maybe I didn't get it... Just thought I add some sensors and get the graph... but after looking at the source it needs device_class energy and state_class measurement
my bad
would it be possible to use the new sidebar view to have buttons on the right panel that select which entity/entities is/are being displayed in the statistics graph on the left? (see today's 2021.8 release for context)
Is there a way to use a horizontal-stack that creates a second row when the stack becomes bigger than the screen?
@warped yew this guy shows some of that of in his very extensive lovelace video: https://www.youtube.com/watch?v=mkbIrXwJaG0
And is there a way to use button-card but with an image instead of an icon?
The built-in one or the custom one?
If you mean the custom one, search this for 'image' https://github.com/custom-cards/button-card
i meant the built in one. the custom one seems pretty advanced
The built-in one can barely be customised at all. It's probably not what you're after.
This one supports images: https://www.home-assistant.io/lovelace/entities/
As does this: https://www.home-assistant.io/lovelace/picture-entity/
yeah looking into the picture entity but i don't like the look fo the footer
That's the trade-off. Either it's easy to configure or it's highly customisable. Hard to have both.
yeah i guess i need to deep dive into the custom one. Just not sure how to start. Want something that looks pretty much exactly as the default one but with an image instead of the an icon
it all starts with installing HACS 😄
then it's usually very easy to add custom cards etc.
Installing custom:button-card is simple, yes... building a beautiful dashboard, not so much.
i have hacs installed and i'm using some custom stuff. but the https://github.com/custom-cards/ custom-card seems pretty complex
Is there a way to have a blank "space" or filler for alignment/formatting purposes? I would like to move Front Patio Door one below so it's in alignment with back patio door. https://i.imgur.com/K2P77C8.png
😄
Constructive answers only, please.
This is another good one for the custom button card. One of its features is that it can add blank cards. You might also be able to use layout card.
Search this for '2x blank cards': https://github.com/custom-cards/button-card
Dang that is involved.
Not really. It's just demonstrating how a horizontal stack of 6 cards where 4 are blank.
But installing custom addins to get to this
You might also be able to use layout card.
But to be honest, you won't get far if you're against using custom cards and integrations. Despite all the great work from the many contributors, HA can't do everything. Sometimes you have to use a custom solution.
Totally not against it, but I need to balance aesthetic desire versus how deep a rabbit hole just to achieve that 🙂
Hey guys, im blind on this one; i want to implement a button-card with a template. I've added the template in my frontlace raw config (on top). But i still get the message; Button-card template 'standard' is missing!
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.
Why is it that #integrations-archived disappears from my channel list when I leave the channel? I can only get back to it by clicking a link nvm I am an idiot
Ok so I got my sensor working but now I can't change the font size when I use it as an entity
the ha_card under entity with card mod 3 works for every sensor on an entity card except for my template entity, I presume I need to use some other method of changing the font size
Man i suck at styling. Really trying to create a horizontal-stack but one that will fold in on itself and create a second row if the screen is to small. Any ideas?
What is a proper way to add different buttons to a dashboard to execute different commands?
You mean if you have four things in one row, you want that to fold so the first and second are on one row, and the third and fourth are on the next?
no if i have four things and the screen gets to small it should be
1 2 3
4
Gotcha. Not sure that's going to be easy. Lovelace fills columns, not rows.
What is my best bet for making a graph similar to the history graph for my "climate.thermostat" entity? showing, current temp, "cooling", and target temp? I'd like to be able to overlay a few other bits of data on it, like outside temp.
Thomas' custom layout card might help. You can define the max width of cards, as well as the max columns. Some combination of the two will cause things to drop to the next row. https://github.com/thomasloven/lovelace-layout-card
The custom mini-graph card is pretty good for this.
This is one of my graphs with 3 sensors: https://i.imgur.com/Jj7U8HT.png
I have looked at that, but haven't found a way to put the target temp and cooling status on it?
yeah i'm trying with this one
Then I think you also need to do away with the horizontal stack and just use the horizontal layout from that card.
https://imgur.com/2bnbIlN here is the entity in the developer seciton. how can I get the attributes to show in the graph?
yeah i mean if i just lay the cards out one by one and then choose the horizontal layout for the entire view that works. But i want it in a "stack" and not the entire view.
You don't. You'll need to expose them as their own states first via making template sensors (see #integrations-archived if you're not sure how to do that)
ah, ok
was hoping it would be something like climate.thermostat.<attribute> but ok. Thanks!
so ha-card { color: rgb(196,110,29; } still works but font-size: 8px; does not -.-
You can combine/nest card types. Horizontal stack > layout card > individual cards. Then the cards should 'flow' within the layout card, while still being boxed in by the horizontal stack. Just means the horizontal stack has a single child (the layout card).
i'll try
nope, still puts them below each other
actually got it to work i think (using panel mode) but if i make the cards inside smaller than 300px i get weird spacing
Is there a way to have one card span over an entire width or specify width of the card?
For example I'm trying to make first element (web page) span across the entire width to show graphs and then have 6 buttons underneath. Any suggestions where in the docs to start looking?
I think you'd need to start by enabling "panel mode", which gives you the full screen width to play with. Then you can create your own layout
that pointed me in the right direction! got my minigraph working now. Thanks!
hello friends. is there anyway to view multiple items on the history page?
Hi, is there a way to get all gauge cards at the same size ? Ref. https://imgur.com/a/pyK5Z9J
ok seriously, what is the organisation of the lovelace ui? is there any order and the up and down seems to be random
ive spent 30 mins just trying to line them up 🙂
The gauges are the same size, but your title is bumping it up
how can you organise the lovelance ui? what do the up and down arrow buttons mean?
its the dumbest thing i have ever seen
is there a way to turn off/on many automations via a single toggle card?
i want to do this without having all the other automations listed underneath that switch.
create a group?
So I have a newbie question.
Is there a way to style the dashboard so that first element takes entire width and then have buttons fit in the row below?
Here is what I have right now and in red is rough sketch of what I'm trying to make -> https://i.imgur.com/Fua9ZaC.png
Hmm, as of recently whenever I access my home assistant configuration address, https://192.168.xx.xx:8123, it appropriately redirects me to the /lovelace URI, but then that says Unable to connect to Home Assistant. I'm definitely on the right network. Restarting the Raspberry Pi didn't help.
Any idea what I could do to debug? Do I have to hook up my raspberry pi to a monitor/keyboard/mouse to investigate locally?
I assume frontend is working fine but the home assistant server on the same raspberry pi isn't working correctly, is that accurate?
What did you do recently?
A while back I changed my router setup a tad, including what the raspberry pi was hooked up to. But I am pretty certain I could access it after that without issue.
Up until recently the home assistant was functioning fine, just wasn't accessible due to the unable to connect error in the raspberry pi. I can confirm that despite this error, the switch I configured (flux) was still changing my lights.
I restarted my raspberry pi to try to fix the unable to connect ui error, and now the lights aren't changing, i.e. switch seems to be off. I think that may just be because the switch is off by default on boot though.
Did you update HA? What browser are you using?
Oh good call on the browser, can't believe I forgot to try that. Trying on another browser fixed the issue - I can login and see the web UI now. Thanks. Clearing site data on my original browser fixed the issue too.
I had updated HA back in mid-March of this year.
But I was able to login to the UI at some point after that. Seems like some sort of site data / cookie issue caused the "unable to connect" error, as opposed to maybe it asking me to login again which may have been more preferable for my scenario.
Current versions are 5.12 for the OS and core-2021.4.6 for HA core. Updating to the latest now that I can.
So it’s a optic effect that those seems different, ok can be.
How can I force them to align at the same pixel row if the text has different length ?
How would I do something like
(sensor.value==NaN) ? 0 : sensor.value
For the value on a chart
(more specifically, I'm using the mini-graph-chart and the value it's showing is the last value before it became NaN
Looking for some help / advice on an emergency button / physical switch. I am playign around with a few MQTT connected loads at present but will be moving across to Shellys for lights. I organise my MQTT topics by indoor/outdoor, room#, light type, light# etc with the thought that I would use MQTT wildcards to switch all indoor lights on / off. Can I do this with an 'mqtt button' (don't know if I can ever create one of these) or do I have to use HA light groups?
I use a markdown card to list latest bank transactions and I do a substring of the transaction text to prevent one transaction breaking into the next line. But on different dpi settings on different PCs it will still break into the next line. Is there a way to make sure one transaction is kept to one line? I use a for loop to iterate over last 5 transactions.
You could replace all spaces in each line with non-breaking spaces
But won't it still break in the middle of a word?
It shouldn't, but I'm not exactly sure what you are trying to achieve. I assume it's breaking because the line is too long, but the only way to make any line fit would be to scale the font size and I don't think markdown can do that dynamically
Do I need to use regex_replace to replace spaces with non-breaking spaces?
Where can i find ui-lovelace.yaml if i use docker? I want to create a template for custom-button-card
It'll be the same place it would be even if you're not using Docker. Everything you have to configure for HA lives inside the same config folder.
i have a weird issue. I'm trying to make a template for my custom-button-card so i can reuse parts of it for other cards. If i add the styles and such directly onto the card it works but if i add it as a template using the "raw configuration editor" only parts use
figured parts of it out. seems like i can't template the label, only the style
Is it possible to add the values of two entities/sensors?
so wanted to ask again, is there an easy way to adjust the generic thermostat card to show the decimal value?
Yes see: #templates-archived
Is there an easy way to change the "Home Assistant" text in the sidebar? I have multiple (four) test HA instances and would like to make it easier to distinguish between them. Alternatively, any other suggestions apart from color scheme to easily distinguish
hey there, does anyone know how to connect the wall panel app to home assistant? i put in the ip and port, which works on pc browser, however i only get a white screen on the app. tia.
What happens if you use a browser on the tablet?
Then either you're doing something wrong or the app is broken. You'd have to contact the developer.
ok
wait i think i got it, kinda
if i put http:// before the ip it starts to load now
it just doesnt give me the option to login
ok so
it says home assistant with the logo
and initialising under it
but then it gives an url error
Please write in full sentences and stop flooding the chat.
Rule #6: Spam will not be tolerated, including but not limited to: self-promotion, flooding, text walls (longer than 15 lines) and unapproved bots.
Please take the time now to review all of the rules and references in #rules.
For sharing code or logs use https://paste.ubuntu.com/.
sorry
What does the full error say?
im waiting for it to give the error again, i think it was url not complete,
it says "URL is empty"
Sounds like that error came from the app. That's not a standard HTTP error.
Honestly... you should get help from the person that made that app. It's not produced by HA.
do you know of a discord for them?
No... but I linked you to their support page 🤦♂️
it seems to just be going in a loading loop now.
its something with home assistant, due to the login. it initialises, but then hass doesnt respond
It works in your other browsers, thus is not something to do with HA.
If I had to guess, that app isn't handling WebSockets correctly. But I don't know, because I'm not the developer of that app.
Using the 'afvalbeheer' integration. This integration has an entity which gives the collected waste for the day after; for example pmd, gft, paper, and so on. I only want to display on my lovelace a card with a specific picture. I made some conditional cards and the 'show/hide' functionality works based on the enitity, but... if for example only 1 type of waste is collected the other hided cards also using some space on the page, even they are not visible. The result on the lovelace page is that other cards (weather, mediaplayer, ...) are not at full size anymore. Are there eventually other posibilities to achieve this?
is this the right channel to talk about the new energy dashboard?
i have a custom sensor for energy sent to the grid since the sense integration doesnt provide one
does anyyone have any reccomendations for a panel app other than home assistants own? that one always crashes and i cant get wall panel to work. (android btw)
Fully Kiosk seems the most popular.
ta, ill take a look
i also believe i found the issue with the other app, the tablet is on android version 6.something, as it works on my phone, but not the tablet
So I have a newbie question.
Is there a way to style the dashboard so that first element takes entire width and then have buttons fit in the row below?
Here is what I have right now and in red is rough sketch of what I'm trying to make -> https://i.imgur.com/Fua9ZaC.png
i think its the same issue, as it says to update webview version current version .44
A lot of people like to use old tablets for this. The downside is they're sometimes too old.
You should look into 'panel mode' if you want full control over the layout. Essentially you turn the whole dashboard into a single card (so full width) but you can nest cards within other cards to achieve that layout.
just updated, seems to be working
YAY, indeed it does
Oh that's an interesting suggestion! I'll give that a try now. Thank you!
@karmic tiger I got it to work, or at least it looks much nicer now.
Is there a way to force everything to fit into view?
Right now ifram takes entire screen and then buttons are below (you have to scroll).
Please don't tag me 🙂 You'll need to get creative with things like the custom layout card to force things into the grid you want.
Hi all, I got a problem with my HA (installend on a Rpi4 on SSD) It's a bit of time i can't see history of my devices, if I go to log it is stucked on 22/07/2021. I tried to delete the db file and restart HA, but it doesn't work. Anyone got the same problem? Or i can do something to see what can be the problem?
@proud turtle not an HA expert here but did you change anything before this happened?
Maybe HA can't start or is getting stuck somewhere. Try to ssh into Pi and check logs or manually run HA to see if and where it's hanging/halting.
Is there anyway i can make cards smaller than their actual "container"? I have a bunch of cards in a layout-card that i want to make smaller than default. But whenever i do (using custom-button-card) i get a bunch of weird spacing instead. also the all other cards get smaller as well
Nothing changed, just a little blackout. It works good, only history doesn't work
anyone know of a nice way to display sonarrs calendar in HA?
Is there a way to have a card that is just always a live feed of a ring doorbell/camera?
I’m also looking for a card that is basically exactly the same as the default dimmable light card, but the ring is an RGB slider instead of brightness for an rgb bulb
Any ideas why button tap action is not calling service/data properly? -> https://paste.ubuntu.com/p/fzrN3WQjfk/
I verified that shell_command.water_specific_plant works properly but I changed the panel and lost previous buttons 😦
I'm not following what the exact problem is
I had buttons for calling shell_command.water_specific_plant and they worked fine. Then I changed the layout and accidentally lost the code I had.
I tried recreating them just in a different layout but for some reason now they don't work.
Any ideas why when button is clicked or long pressed, nothing happens... :\
review your HA logs
Ok, sorry about that. I put in the wrong IP :sigh:
I doubt it matters, but you have an extra space before your ":" in several places
I was putting an IP of my watering system instead of N-8-N instance 🙂
Thanks @dark dirge !
Also, is there a way to force panel mode dashboard to not have scroll bars?
I have above mentioned YAML dashboard that includes a iframe and for some reason iframe is taking entire screen regardless of what/how I configure it
I assume there is no such thing, just playing with "aspect ratio" until it fits on device I'm going to be showing it on?
Is this the right channel to ask about the new statistics card? an entitity doesn't show up but according to https://developers.home-assistant.io/docs/core/entity/sensor/#value-entities it should :/
Can I disable Energy Usage and Sources under the new energy tab?
Not sure if anyone can help but i had to put a new sd card in my pi 4 - backed up from snapshot now im getting stuck on Unable to connect to Home Assistant screen through my duckdns, - any suggestions?
You should probably start in the relevant installation channel depending on how you installed.
Not sure which install you're using? If you have system_health enabled you can check Configuration -> Info -> Installation Type, or see the following.
-
If you bought the Home Assistant Blue, flashed an image, or booted a VM with an image you're using #330990055533576204
-
If you installed Linux and then ran a script to install HA and have add-ons then you have #330944238910963714
-
If you're running
dockercommands or use a Docker manager and have no add-ons or Supervisor then you have #449717345808547842 -
Finally, if you use
pipto install or upgrade you have #551864459891703809
Having difficulty chosing an install method? See this summary for guidance.
hey, is it possible to hide the sidebar on the tablet? https://imgur.com/SLpCreX this bit?
are the colors of thhe sources and the bars in the graphs of the new energy dashboard themeable? If yes, how are they named? The blue and dark blues doesnt have a high contrast in dark mode
ello, I would like to create a button which, when pressed turns on the projector, and 2 smart plugs, and can turn off them too. How do i create the button,
I think you’ve already gotten guidance on that
Make a script, call it from the button
How does one switch from using the built in editor to ui-lovelace.yml? I have it in my config directory and have a couple of views configured, but they're not showing up. Do I need to do a full restart?
is this where I would ask questions about styling my dashboard with card mod 3?
un-related to that, is there a way that I can display my template sensor.forecast_time on a markdown card instead of an entity?
a template sensor is an entity
and yes, you can display any content or entity by constructing a template
I understand that, its just my ocd says it looks weird on an entity card
oh, you meant "instead of an entity card"
is it ok if I post a pic to show you what I am trying to do?
Please use imgur or other image sharing web sites, and share the link here.
Image posting is blocked in most channels to discourage people from sharing text as images.
but like I said, you can construct a template to display whatever you want in a markdown card
Ok I’m looking at the templating guide to figure that out
{{ states('sensor.forecast_time') }}
Oh haha I had tried everything but that facedesks
Instead of writing a really complex script I am temporarily using conditional cards to convert the daily weather to friendly formats
I will worry about scripting it all later
The templating works like python 3 right?
If by that you're after if it uses Jinja, yes. The links in the topic and pins of #templates-archived should help there.
how can i use alexa to turn on a button that calls for a script to run
Not a #frontend-archived question. Have you read the docs about the Alexa integration?
Alexa lives in 'the cloud'
how do i make alexa interact with my script then?
#voice-assistants-archived can probably help there. It's not a frontend thing.
ta pet
Nee bosh
It really doesn’t feel like you’ve read the docs: https://www.home-assistant.io/integrations/alexa.smart_home/#supported-platforms
Hi guys, I have a switchbot to start my coffee machine and I want to animate my lovelace by flashing icon state during start of coffee machine so I want to animate my button just 5s after a click on it, is it possible ?
good morning everyone 🙂 Do any of you use a honeycomb menu? I'm absolutely stuck here. I can open the menu, but no matter what I try, there are no icons there ?!?
A while ago I made this out of grid cards, buttons, etc. I had accidentally deleted it, and now I've got some time to try to recreate it, but I have no idea what buttons I used to have the custom shade icons on the top row. The icons are in my config/www folder, but I don't know how to assign them to a button card. Did I possibly use a different type of card? https://i.imgur.com/uy8T6yA.png
hi everyone. How do I do a card with multiple buttons in one row so that they toggle when presses?
similar to a glance card (this is what I use at the moment) but with toggle action on each icon
oh duh, I was using picture cards and assigning a tap action to make them behave like the button cards below them
i'm trying to figure out a condition to use for knowing if an entity is working or not but not sure how to do that. any ideas?
EDIT: Figured it out, i check for entity.state == "unavailable". Everything else is "ok"
Hi guys, I have a switchbot to start my coffee machine and I want to animate my lovelace by flashing icon state during start of coffee machine so I want to animate my button just 5s after a click on it, is it possible ?
Hello, been using HA for a few years now, i decided a few weeks to declutter my lovelace file by splitting and then using !includes to link to each tab, i've had a few issues that i've resolved, but i've hit a strange issue that i can't quite understand... i've been building some remote contol tabs to control devices and the first tab / control works fine, but when i start to program the 2nd tab even after just a few short lines of code and 1 button, it displays like the first tab with all the buttons etc from the first tab.
any thoughts? maybe something missing to correctly terminate the first included tab?
Hey there, is someone here using "Minimalist UI" that can be found on the forum ?
I can't get Scene working, I don't understand why 😢
so wanted to check again, is there a way to make the thermostat card show the decimal value that mqtt contains?
Did someone manage to provide icons to gps tracked objects on the map in lovelace? I cannot find any hint in the documentation to set an icon per entity.
It is in known_devices. Find the tracker, change picture: "/local/jeep.jpg" , and upload jeep.jpg into a new created folder below config, called www ...
Anyone have an idea why this is not working in a custom: button-card?
action: toggle
service: input_boolean.toggle
service_data:
entity_id: input_boolean.theme_switch```
Define 'not working'
Well it says : Can't call service sun/turn_off Service not found
sun/turn_off
You can't turn off the sun.
This one works fine in a button card but not in a custom: button-card.
Remove the action.
action: toggle
entity: input_boolean.theme_switch```
Action to perform (more-info, toggle, call-service, navigate, url, none)
You want to call a service, not toggle.
Toggle will toggle the entity the card represents... in your case, the sun.
Just removed that but now it have no error but it does nothing.
action: call-service
Yep that works!
Thanks allot Mono. 🙂
Can you explain why action: toggle works for the entity: input_boolean.theme_switch in a button card but not in a custom: button-card.
I already did: #frontend-archived message
Your custom button card isn't representing the input_boolean.
I have a smart meter that HA gets the meter reading from through the power company api once an hour. I have that data pull setup through nodered and it publishes to mqtt which feeds a utility meter integration for once an hour which then feeds a sensor. If I use that hourly utility meter for the Home Energy Management will more sensors be created or will it just show a graph?
It just does a calculation and displays the data
Trying to make my first custom card and I’m stuck. I can’t import the custom-card-helpers module. I did npm i custom-card-helpers and it’s in node_modules, but I get a 404 error in the console if I try to import it. Any ideas?
You probably want #devs_frontend-archived
Ok
how can I backup my front end if I'm not in YAML mode?
Back up your config dir, including all hidden files/dirs
thanks
It’s in .storage, with lots of other stuff
hello, is it possible to get lovelace to auto refresh/update when something changes on the panel?
After changing ui-lovelace.yaml you're not supposed to have to reset to see changes, right?
Does the same hold true if you change files that are being !includeed into ui-lovelace.yaml?
Yes, you can just reload the page, possibly clearing the cache
This is more tricky. You have to at least touch ui-lovelace.yaml to get it to see changes in files that you include. It’s enough of a pain that I just don’t do it
Hi! I've a super stupid question, hope somebody can help me (I'm totally new to HA, been running for about one hour)
I've added my router with Integrations, then went to Overview, added all the entities in an "entities" card, and so far so good
my only problem is the values, they're in B or B/s, I'd like them in MB or GB (/s)
I can't figure out where to change that
this works for the entities card too?
no afaik but you can create a new sensor derived from the actual one and add that in your card
oh, thanks, will try
hello
I want to turn off my lights when they are dimmed to 10%
is there any hack to do this with slider-entitiy-row custom card
or I need to make it dirty with some automations? 🙂
because my led driver is turned off when I dimm up to 10%..
Minus the 'dirty' part. It's absolutely normal to use automations for that stuff.
ok
is there a way to have video from a Ring camera playing a live feed on the dashboard?
Hi,
Webpage Card
I hoped it was possible:
type: iframe
url: https://www.radioswissjazz.ch/it
aspect_ratio: 50%
..but "www.radioswissjazz.ch refused to connect".
I have the google nest and mini-player configurated. Wanted to see what's up on RadioSwissJazz in real time.
Access-Control-Allow-Origin: https://www.radioswissjazz.ch is set in the headers
your browser refuses to load it
Thanks, taking a closer look at Chrome settings.
dont think you can disable the checking
Even if you could, you wouldn't want to. It keeps you safe.
The page loads i Chrome without any problem..
So this approach I have to forget.
So it is not possible to iframe https:// Am I correct?
Is there a way I could have two Lovelace views combined into one? Sometimes I sit at an ultrawide and it would be nice if could combine views without having to redo them.
It's nothing to do with HTTP vs HTTPS. It's to do with whether the owner of a site has disallowed embedding.
Now I got you. Thanks...
Anyone?
no. you can open a separate browser window
Also, be patient. Your question was still on screen.
He, it's like my HA doesn't connect to internet to sync data and time, it say it is 2021-07-25, 05:40 go to about 14:20 and it go back. And with this i can't see the history cause it doesn't register at correct time. How can I fix it? It is connected to internet, i can access to it from external connection and update works
Depends how you installed HA. Pick the right channel from this:
Not sure which install you're using? If you have system_health enabled you can check Configuration -> Info -> Installation Type, or see the following.
-
If you bought the Home Assistant Blue, flashed an image, or booted a VM with an image you're using #330990055533576204
-
If you installed Linux and then ran a script to install HA and have add-ons then you have #330944238910963714
-
If you're running
dockercommands or use a Docker manager and have no add-ons or Supervisor then you have #449717345808547842 -
Finally, if you use
pipto install or upgrade you have #551864459891703809
Having difficulty chosing an install method? See this summary for guidance.
Is there any way to style a horizontal/vertical stack? Trying to surround a group of cards with a background color.
Look into card_mod
yeah i did but it explicitly says that horizontal and vertical stacks can't be styled. Was wondering if there was another way
If you want full customisation, you're going to have to learn to use the custom button card: https://i.imgur.com/ZmUmfO5.png
is there a way to move the entitys freely in the lovelace dashboard
Freely? You can press up and down to rearrange them, or you can use stacks / layout cards.
You can't just drag and drop, since that doesn't really work with responsive layouts.
okay ty
Hello. Anyone know of nice vertical slider bars or arc that work with light entities. Want to put it on a picture entity. Thanks.
Anyone have issues with RGBWW esphome lights on 2021.8.4 ?
Updated for the first time today in a few months. Now my humidity sensor cards have no detail. Changing detail does nothing. Pressure, temperature looks fine. Anyone else have the same issue?
Can some help me with a css for card mod. I’m trying to make the arc on the light card bigger.
Hi all, Im trying to turn my TV into a HA dashboard to easily view whats happening around my home etc. However, Im running into problems for getting my lovelace background to show on the TV
I have this: background: center / cover no-repeat fixed url('https://live.staticflickr.com/3798/11051378005_50b62511bb_b.jpg') in my view YAML, and it is working in the browser but for the life of me I cant figure out why it isnt displaying on my TV as well
(I can get pictures to show on the TV through the use of the picture card but for some reason no bloody background)
hi, how can I hide the button named "Unused entities" in the drop down menu in the upper right corner of the lovelace-ui?
I'm using yaml mode
The one that only shows up in edit mode?
so i'm trying to build a nice looking remote for tv and stuff to show on my dashboard and am not sure how to tackle the layout of the buttons ... i started with a horizontal and vertical stack combined to get some kind of a grid to position the buttons in, how would i create an empty cell in the grid? right now i just added a custom button card resized to 1px but there must be a better way?
or is there even a better way other than combining the 2 stacks?
Or wait... maybe it's shown in yaml mode too for some reason... 🤔
I don't think it can be hidden then.
no it's always showed when I click on the vertical 3 dots (i'm using yaml mode)
You may want to consider using a picture-elements card instead. See e.g. https://sharethelove.io/picture-elements-cards/kodiremote-card
Or you could check out layout-card. That includes a gap-card which is just empty space. https://github.com/thomasloven/lovelace-layout-card
the layout card looks nice, i will try it, thank you
I took a look in the source. It's always there in yaml mode, unfortunately.
Thanks for the answer, here is a screenshot: https://postimg.cc/tscNHFG0 .
I'll try using "card-mod-root" as explained here: https://github.com/thomasloven/lovelace-card-mod/wiki/Theme-cookbook
I think this button HAVE to be hidden for non admin users to avoid non-admin to mess things
I've noticed that after removing items from the sidebar in Lovelace on Firefox on Windows, that they return upon restart. I assume this is because I am using private browsing (which I have on all the time) and no cookies? If this is the case, is there not a way to make changes stick (other than having to change the way I work)?
It's a per-browser setting, so no. They cannot stick between private browsing sessions.
Bummer. Kind of ironic given HA's focus on privacy.
What you can do is remove default_config from your configuration and only add the pieces you actually want. But that means you don't get new cool stuff automagically.
I like automagic too much for that!
It's mainly Media Browser and Energy I don't need. It would be cool to be able to have default_config as well as a config entry of specific items to EXCLUDE from it. Best of both worlds.
Kind of like what we have for History.
Would anyone have an idea how to help I’m completely stumped
is there anyway to set up sopme sort of image as a background?
because the black display is somewhat boring
Also I’m loving those custom cards you made for Lovelace
Also also sorry if I’m asking dumb questions I only just got started with this
That's certainly not a dumb question. The differences between cast and not cast are... odd and unexpected.
Yeah I haven’t been able to find anything abt it at all which hasn’t helped
How do I use that new sidebar layout?
Google isn't very helpful with that
oooh it's a dropdown when editing a page inside a dashboard
I expected some yaml
another question:
https://www.home-assistant.io/lovelace/statistics-graph/
I don't get the statistics feature. It does make some sense in the first screenshot (given that the sampling interval is quite high), however the bar graph below doesn't seem to provide any relevant information compared to just plotting the sensor value as a graph.
I expected the card to just show the increase by hour.
Am I missing something?
A line graph should only be used to plot time-continuous data. In the second figure there's one data point for each one hour period and nothing in between. If it was a line, you'd assume that at 14:30 the energy consumption was 4,739 kWh, which is both a false and a meaningless statement.
huh, I see
thanks
Can i add links to the sidebar if i run HA in docker?
Thx. I found that too and it seems to "work". Just have to figure out how to add custom headers adding api-keys so that i can bypass my auth. If that's possible.
Does it have to be an iframe or can it be a link so that it opens in a new tab?
Hey guys what happened to the dark mode settings under profile?
I'm looking to hook up a raspberry pi to a touch screen. Does anyone know of any builds or guides for where to start?
I was thinking the only real thing I need to do is get an OS on the Pi, to open the Lovelace Dashboard, and then somehow lock it down so swipes/touches can't accidentally exit the application.
#hardware-archived maybe?
Is there are reason for that /config/www are 'exposed' and you dont need to authroize to view the files?
I set up home assistant on the tablet that I want to put on the wall, but for some reason, when I use HA from the app, I see no cards in my lovelace views. I also cant see the views icons.
When I enter HA from Chrome on the same tablet, everything works
What version of Android is on it, and what version of WebView is installed?
Samsung tab A7
Android 10
WebView 81.0.4044.138
Seems recent enough it should work. Not sure what to suggest other than clearing the app's cache. Someone over in #android-archived might know.
I found the problem and the solution. I did something really stupid 😅
Even embaressed to tell
Is it just me, or is the column sort functionality on the Configuration | Entities page busted. Perhaps they are using a sort other than aphanumeric? 😧
is there a way i can add headers to the iframe Panel?
it's more that i'm trying to go around my oauth (since i'll already be logged in) but can't bypass the google page. I've been able to do it in the LunaSea ios app by adding an api-key (created by me) in the header but can't seem to recreate it here
You could always open it in a new tab/window 🤷♂️
Embedding small snippets of things sometimes makes sense (but not really). Embedding whole sites to avoid using a browser like a sane person is... odd.
that would definitely be good enough
is there a way to add outbound links to the sidebar?
Hey everybody, I am not sure whether to ask this here or in automations, but I am looking for a way to show the time until an automation triggers, is that possible?
I suppose you mean automations that trigger on a specific time or an interval? Then you could use the last_triggered and calculate next trigger, assuming you know the interval, but it seems like a bit strange. Maybe use a timer as a trigger, then you could just show the timer?
What's your use case?
I have a pet reptile that has lights that turn on at a specific time in the morning and off in the evening. I would like to know for how long the lights will be on. The reason I haven't used a timer is that I adjust the on/off hours depending on the season, I preferably wouldn't like to change two variables instead of one. (I'm still looking for a way to dynamically change the on/off hours depending on a min/max time but that's for another time)
My Google Home app keeps telling me it can't reach Nabu when I try to link it. Anyone else?
Ok, maybe put the on-time in a input_text, off-time in another, use those for the automation and a template sensor för the calculation "off time minus now"?
Then you can change the on-time and off-time separately and the rest will require no hands-on
input_datetime probaly though
You can't possibly know the next trigger time because you don't know that the event which hasn't happened yet has happened. You'll have to use information you can actually predict (like knowing when sunset will be).
@shell torrent cheers, I will try that!
@karmic tiger I hoped this was an exception because it is at set time intervals.
If you know the next set time, you don't need to know when an automation may or may not trigger. Just work out how long remains until the next set time.
My point is that automations are event based. The automation has no property that allows you to make predictions. They're reactive by their very nature.
Ah okay. I understand that automations are reactive, but seeing that my automation is at a set time, if I understand correctly I can implement boneheadsfraggle's idea in this case right?
Yes. Also:
You'll have to use information you can actually predict
I wasn't disagreeing with his suggestion. I was just clarifying why inspecting the automation is the wrong way to think about it.
Ah great 🙂 I'm just reading up on how to use templates (or rather input_datetime in templates) so I will update when I have it working, thanks!
You could use a timer entity. When you turn the lights off, calculate the time to next turn on and set it to that, then trigger your next turn on and recalculation when it runs out.
You'd also want to recalculate the timer once Home Assistant starts to handle power loss and stuff.
Timer's a great idea. It's literally going to represent the countdown 
I knew there was a reason we kept you around.
Okay sounds good! This is my first time working with timers, but I am guessing I need a template to calculate the time to next turn and use that in the automation? It is crucial for the pet's well being that the light comes on in the morning so I don't want to mess this up 🙂
My first suggestionwas a timer, but after seeing your case, I'd still suggest on- and off-time.
But both will work fine
That feels more stable
Just so I understand, you suggest on- and off-time because they are guaranteed to make the automation trigger on the set times?
yes, and they are still there after a restart and totally independent on manual interaction
the automation says turn off at x o clock, it will.
always
That feels like the way to go for me then
You can also combine an on-time with an adjustable duration (input_number for example). Like turn on at "on-time" and turn off at "on-time + duration". That's what I use for my car heater. But all three variants will work, just different paths. When you have chosen, it's time to move to #automations-archived 🙂
That sounds even better to me because I could then also implement my endgame plan where the lights are on for a longer period if it is further in the season (for instance 2 minutes added each day for a total of about 2 hours in a time-span of 2 months). But I realize this is already off-topic, so I will read up on templates as I don't even know how to work with the value of a input_datetime yet. I will pick this up tomorrow when I get home. Thanks so much for all your advice!
The majority of my entities within HA are coming via MQTT (switches and lighting, in the context of this question), and all works well. If I reboot HA then the power state of those devices is lost. If I have a light on, and I reboot HA, when I get into Lovelace, the light is showing as "off" instead of remaining "on".
I thought I'd need to use retain: true in my entity configuration (YAML), but that didn't seem to do the trick. Am I at least following the right train of thought, or am I missing something obvious?
It's not the end of the world as if I tap on the entity it'll appear "on", but would be nice if it matched. I'm not rebooting a ton or anything, more just trying to better understand things.
Home assistant publishes a message to homeassistant/status on boot. Listen for that and resend your discovery and status messages when received. Also #not-here probably #diy-archived
Thanks! Wasn't sure what the best channel would be, thought that as it was a Lovelace display thing it might be here, but that makes sense, cheers!
Check in /developer-tools/state. If lovelace shows the same state as that, it's not a lovelace problem.
Is it just me, or is the column sort functionality on the Configuration | Entities page busted. Perhaps they are using a sort other than aphanumeric? 😧
It seems this has been an unaddressed issue for over a year.
https://github.com/home-assistant/frontend/issues/5821
Hi all, I'm trying to figure out how to control/display additional properties of a custom integration, i've read the documentation i can find but i cant figure out how to do it without creating a bunch of helpers linked to automations. The integration controls a multi-zone amplifier and can turn zones on and off, change volume and select an input using the UI for a media player, however i also want access to the bass/treble/balance options, i've exposed them as a custom service and i can control them using a service call, but how do I show a UI for it?
Are you developing the custom integration?
@polar kelp Yes
it already works and does the basics, i just want to add some additional features, its actually a monoprice multi-zone amp (theres already an integration, but it wont work for my purposes) and mine has a couple of additional features, the code is not very pretty 😉
Then this might be what you need https://developers.home-assistant.io/docs/core/entity/number
I've been using HA for several years. First in a venv, then in docker and recently for a few months in a Proxmox VM with supervisor. I'm wondering if there is an non .yaml integration for Amcrest and/or D-link cameras?
it would be in the docs if there were
awesome, i think that will work! I hadn't thought of doing it that way! Thanks so much!
I had to change routers today and can no longer access home assistant. Setup the exact same subnet, HA shows up with the same previous DHCP address, which was then reserved. Port forwarding is in place just as before. Can’t even get a response from ping 😦
Any ideas would be greatly appreciated!
another question sorry, is there a way I could use custom cards/layouts from HACS on a home assistant cast? or is that not available either?
Hopefully I posted this in the right topic..
No, pick your install method channel
Any idea how I would show/hide a card based on weather conditions? For instance, I have a thermostat that is only connected to a heater, and I'd like to hide it if the ambient temperature outside is greater than 68 degrees.
I was thinking the conditional card, but it seems as though you can only use specific states and not expressions
Hey guys iam using Picture element cards with a 3d model of my room to show visual if lamps in the room are on or off and then show a spezific picture.
state_image:
"on": /local/living_room_on.jpg
"off": /local/living_room_off.jpg
Is it Possible to show pictures with other current states? Like "Color" "Brightness" or "Effects" or it only work with on and off? Ty
You can make a template sensor which translates the conditions you want into a unique state string, and then use that as the controlling entity for your image instead. https://www.home-assistant.io/integrations/template/
Like state_template: "{% if state_attr('light.my_light', 'brightness') | int >= 100 %} bright {% elif is_state('light.my_light', 'on') %} not_bright {% else %} off {% endif %}" and then yaml state_image: 'bright': /local/living_room_bright.jpg 'not_bright': /local/living_room_dim.jpg
That looks great ty, will try that. Could you give me an example how it would look with different colors with "rgb_color"
That's a bit trickier, but you can get at the color values with {{state_attr('light.my_light', 'rgb_color')[0]}} 0,1,2 for R,G,B respectively.
OK hope I get it to work, thx a lot
i've created a folder /img/services/ where i've put a bunch of images to use in lovelace but i can't seem to access them. should the path be /img/services/service.png or someting else?
Elements used in Lovelace need to be under /config/www
Then /local/img/services/service.png
awesome that worked! i was missing /local/
is there a way to figure out if the ui is in light or dark mode? Trying to have different images depending on if it's using light-mode or dark
No, but you gave me the idea for the next feature of card-mod.
haha nice. I'm trying to achieve it with using the sun state for now
I think I saw some turtorial that switches between light and dark mode as part of the lovelace which used images as backgrounds depending on which mode it is in but not sure
tbf id probs trust thomas with his response more he seems incredibly smart at this sorta stuff
I think i have it working using sun state. I figured lovelace probably uses that as well to switch between light and dark so it "should" work. Will know more once the sun has set 🙂
I am having an issue with the statistics-card and associated measurements for temperature, humidity, and pressure from the weather component; posted details in the dev-energy channel (#devs_energy-archived message); any help appreciated.
Turns out home assistant uses the browser/apps status and since I turn on dark mode at 2000 and the sun sets at 2100 (today) this approach doesn't work. Unless I change my phone to use sun aswell.
@polar kelp Hi i tryed it now for some Time i got this here Working
template:
- sensor:
-
name: "canv"
state: >
"{% if state_attr('light.canvas_fa77', 'brightness') |int >= 80 %} bright {% elif is_state('light.canvas_fa77', 'on') %} not_bright {% else %} off {% endif %}"
-
And over 80 % it turns to bright otherwise not_bright, when itz off itz off.
Is it Possible to make it that between 75-80% itz not_bright and 81-85% itz bright and so on?
Also with colors i dont get it to work at all but it would be the same first state 255,0,0 state red 0,255,0 state green ...
I cant figure out how.
Sure. You can tag on as many {% elif ... as you want with all kind of conditions.
More information here: https://jinja.palletsprojects.com/en/3.0.x/templates/, https://www.home-assistant.io/docs/configuration/templating/, #templates-archived
And you can test your templates here: https://my.home-assistant.io/redirect/developer_template/
is there any way to hide certain panels from the left hand navigation without removing default_config: ?
Only on a per-browser basis
- sensor:
- name: "light"
state: >
"{% if {{state_attr('light.my_light', 'rgb_color')[255,0,0]}} %} bright {% elif {{ state_attr('light.my_light', 'rgb_color')[0,255,0]}} %} test {% elif is_state('light.canvas_fa77', 'on') %} not_bright {% else %} off {% endif %}"```
someone got an idea what iam doing wrong here?
you're not formatting it propoerly 🙂
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/.
but if it's just like that, you need to add ">" after state: to start a multi-line template
and then get rid of the surrounding quotes. Or cram it all on one line and include the quotes
it's pretty hard to read as-is
it is like that above now and says : TemplateSyntaxError: expected token ':', got '}'
and if you're going to use a multi-line template, you may want to space it out so that it's actually readable
{{ state_attr('light.my_light', 'rgb_color')[255,0,0] }}does not work.255,0,0is not a valid index to a list of three entries.{% if {{is bad syntax. There's no{{inside{%.- #templates-archived
does anyone use panel iframe with custom subdomains?
I'm doing the following:
frigate:
title: "Frigate"
url: "https://nvr.mydomain.com"
icon: mdi:eye
but the hass app will not redirect to the right page. It takes me to the root domain page (swag default page). Yet accessing hass via a browser it all redirects fine
nvmd, organizr auth issue
What redirect?
is there anyway to trick panel_iframe to open in a new window?
hey does some know why "panel: true" is not working in my horizontal-stack? is saying: key "panel" is not expected or not supported by visual editor
`type: horizontal-stack
panel: true
cards:
- type: light
entity: light.tradfri_bulb - type: light
entity: light.wled - type: light
entity: light.yeelight_stripe_0x0000000007fe7896 - type: button
tap_action:
action: toggle
entity: switch.tradfri_outlet`
panel is a setting of the view not of individual cards.
but how do i get the horizontal stack to full width
i dont have that. i only have a toggle for all
Having an issue with Lovelace statistics-graph card; not tracking temperature, humidity, and pressure correctly which is being collected from the weather component which creates appropriate measurement state-class sensors.
Is there a way of making two scripts look and act like an (on/off) switch? (ie i have a script to turn on some lights via IR and one to turn them off again)
Haven't we been here before? That's a template switch.
Ah, you're right. It was someone else earlier today 😂
is there a card or something to show what lights are on? If i feed it a list of all my lights it would only display the ones that are turned on.
wouldn't that display all lights and statuses? i only want to show the ones that are turned on atm
Doesn't that require one conditional card per light?
Nope...
conditions list REQUIRED
List of entity IDs and matching states.
Hmm, I'm getting my cards mixed up still. That's only going to show when all entities meet the condition 😢 Entity Filter is the one I'm thinking of
Got there in the end.
But it says that conditions are treated as AND and not OR. So all contusions need to be fulfilled (I.e all lights need to be on)
I do this to only show open doors:
show_header_toggle: false
title: Open
entities:
- binary_sensor.front_door_contact
- binary_sensor.porch_door_contact
- binary_sensor.kitchen_door_contact
state_filter:
- 'on'
type: entity-filter```
End result of two of those (one for open, one for closed): https://i.imgur.com/Fn19PPc.png
No doors open right now but you'll get the idea. Both cards have the same entities.
The 'open' card is hidden when there are none open 🎉
Awesome. That's exactly what I'm after.
If it helps, this is the full config for the vertical stack I'm using there: https://hatebin.com/bhvqwqvzav
Mix of conditional card to hide empty stuff, entity filter to show only matching stuff, and a markdown card to have a permanent header. Then wrap with a stack to keep it all together.
Why would you have one for open and one for closed? Doesn't one imply the other?
How does it look in the end?
Lemme open a door 😂
It's not necessary to have both sections. I just like both lists.
If I ever come up with a fancy floorplan, I'll just have indicators on that instead.
Alright. Thx. Gonna play around with that tomorrow.
Is it possible to do a find and replace in lovelace?
Just found that it is got to edit the lovelace file and restart HA afterwards
Morning.
I have 2 light entity cards.
However, the icon changes based on the color of the lamp.
Is there a way to prevent this?
https://i.imgur.com/f0tb1rx.png
recently updated to core-2021.8.4 and seems that reloading resources in lovelace stopped working? sounds familiar?
is there anywhere i can go to look at examples of how people have set up their dashboards and suchlike? I've not put much effort in yet and its getting to be one big page of random stuff. I'd like some inspiration on how best to make it look from a usability perspective
ah cool. looks good. i'll have a look through those. some fancy looking cards on some of them
Can't find the energy dashboard or info about where it is anywhere 🙄
The link at the top just gives me a 404 for my HA server, and the cards just say "Loading" if I try to add them manually.
It's as if the energy thing isn't installed, even though I'm at the latest version of HA.
@civic stream are you not running default_config in your configuration.yaml?
if you're not you need to add energy manually
That indeed appears to be the case
How do I load it manually?
Just put energy: in the config?
I think you just add energy:
@raw egret That fixed it, thanks!
It’s a pinned message in #energy-archived , BTW
So, I'm trying to view the past 48 hours of my Thermostat metric history, because I've been doing maintenance on my evaporator coils. Right now I can only see the past 24 hours in a histogram chart. How can I see more?
You know what I just found a way.
Created a new card with history on the same page, and set the time to 48 hours. 😄
i have a question i got this work now how i want ```template:
-
sensor:
-
name: "canv"
state: >
"{% if state_attr('light.canvas_fa77', 'brightness') | int >= 220 %} bright
{% elif state_attr('light.canvas_fa77', 'brightness') | int >= 200 %} bright2
{% elif is_state('light.canvas_fa77', 'on') %} on
{% else %} off
{% endif %}"``` how can i use this entity in Picture Elements Card ? When i use the Sensor.canv it dont Work anymore with changing Pictures
-
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.
Missed that the channel even existed, thanks.
The first one is how it works So the Light shows if itz on or off. The second one is how i wanne use it with the template that it shows different Brightness Picture Depends on the Brightness but as soon i ad the sensor.canv it fails to show the picture at all
What is the current value of your sensor in Dev Tools > State?
current state "off"
Ok. All I can think of is that you haven't got quotes around all of your values. The examples in the docs do.
Hello,
I have 2 light entity cards.
However, the icon changes based on the color of the lamp.
Is there a way to prevent this?
https://i.imgur.com/f0tb1rx.png
That doesn't look like entity cards. Are you using custom cards?
hmm when i make quotes around the values in the configuration.yaml it dont change anything . When i make quotes in the Overview Editor in the Picture Card they disapear when i press save
@sonic burrow When using Discord's new Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Click @ ON to @ OFF to stop this - on the right side of the compose bar.
D'oh... Light Entity. No, no built-in way to stop the state colours.
You could look at using card-mod or similar.
Is it Possible that it dont work cause the sensor.canv dont got an unique id?
It's a light card
ty
Hi friends! I have a question. I have 5 temperature sensors on my lovelace page. And when I look at these graphs from my phone, sometimes they become the same, before the page is refreshed on the phone. All 5 sensors start to have the same graph, after reloading the page everything falls into place, but how to get rid of this? Is there such a problem.
@polar kelp you may got an idea why i cant use the sensor in Picture Elements Card?
Nope. Seems like it should work to me
Unless there's hidden whitespace in the state somewhere...
Try "-{{ states('sensor.canv') }}-" in dev-templates and check that there's no space between the dashes and the value
this works, it doesnt matter which sensor i use, when i put it in Picture Elements Card it instantly got an Error. Are Sensor may not work like for Example Lights in Picture Elements Card?
and that seems right too?
hi, what would be the way of displaying a specific state attribute of an entity in a card?
for example if i put one of my heaters in a card as an entity it shows a bunch of info i don't want. I only want it to show the 'current_temp' attribute
i figure its something to do with 'state objects'?
Is there a way to turn the legend off on the Statistics Graph Card
No though it has been requested.
Hey everyone, where is a list of all the switch types in lovelace? I currently need a toggle switch (up or down but not both at once)
that's how a switch entity will be represented in Lovelace
or it's side-by-side - is that the concern?
I'd really like a rocker switch with centre off... 🙂
There may be a custom card that I don't know about. Or a more/less clever solution might be a clickable picture
no double throw switch? nah must be 🙂
Hello.. I can't seem to get the tab for setting up the home energy monitering to show up under 'tabs'... is there something special i need to do first?
Check the pinned messages in #energy-archived
awesome .. thx you v much
Hi, I've got the ipad app running on a wall mounted ipad - it needs to be "up" all the time but it blanks out the controls after a while - like some kind of screensaver, except the rest of the HA screen is there, the lovelace controls vanish
what's going on?
Hi all.
I had a problem after I installed custom select-list-card from HACS (and have now uninstalled it) but I had applied it to an input_select in the lovelace card which appears to have conflicted with an automation I was working on. Now I cannot add a new input_select (pull-down helper) as the option is showing as unavailable.
https://imgur.com/SnP1QyC
Is my best (only?) option to restore a backup or is there another option. I assume this is a core conflict I have created.
Supervised install on RPi4.
This in the logs:
"Unable to set up dependencies of default_config. Setup failed for dependencies: input_select"
Hey everyone, I have a quick question an I thought I would ask here before submitting an issue to the repo. I am using the bar-card and trying to create some basic system monitor stats, all the examples I see the bar card has a squared look to it like https://i.imgur.com/aYhI2ET.png but when I use that same exact code, I am getting a rounded look, like so: https://i.imgur.com/ZuUX8lH.png I am guessing this has to do with the theme I have selected?
Yes. Look at your card corners.
Yep, found it, thanks!!
Is it possible to add the temperature reading from a thermostat to Lovelace so it shows up like the other temperature sensors?
I can add the thermostat to Lovelace but that shows the temperature as a minor sub element
Hi, how do I add entities to areas?
Regarding the secondary_info: is it possible to have this display any information you wish such as an IP, at this time it's not letting me do so
Show additional info. Values: entity-id, last-changed, last-updated, last-triggered (only for automations and scripts), position or tilt-position (only for supported covers), brightness (only for lights).
If in doubt, read the docs.
@hasty sandal there are a few custom-cards that allow it
secondaryinfo-entity-row and canary come to mind
I'll try those out, at this time I have a bit more around this so hopefully it all works in harmony
- name: Master Switch Ceiling
entity: switch.powerstrip_03_switch_04
- type: conditional
conditions:
- entity: switch.powerstrip_03_switch_04
state: 'on'
row:
name: Ceiling Controls
entity: light.wled_ceiling_lights_segment_0
secondary_info: "192.186.0.0"```
that's what it currently is, with the last line being what I'd like to do
ok
OMG, Canary works straight away, thank you @mild veldt
Is there a way to determine whether dark mode is enabled? With card-mod or something else?
How are you enabling dark mode?
On the browser, just manually through the Profile page. On my iPhone it is enabled Automatically.
I don't believe there's a way to detect that at the moment then.
Is there a different way to enable dark mode?
If you were doing it based on sunset or something, you could just check when the sun is down 🤷♂️
Card-mod too of course
Is it possible to hide the Energy button on the front end?
Do you want to disable the entire feature?
I would like to disable Energy. But also hiding some of them without disabling would be nice too. Like Logbook would be nice to just hide without removing.
#energy-archived can tell you how to disable the feature. If you just want to hide things, you can edit the sidebar. Long press on the title.
Yeah, I didn't know about it until very recently either. Well hidden 😄
Ahhh side bar decluttered. Thanks!
I've got my lovelace split up into different files and since the aug update I can not reload when there are changes. Having to restart to see them :/
it's always been the case that changes in !included files don't show up unless you at least touch ui-lovelace.yaml
that's not true as till the aug update I had no issues and never had to touch ui-lovelace.yaml
that's not my experience
but 🤷
some of my included files were last modified in Oct 2020 and one in Jan 2020. was definitely true then
ok, so added white space to ui-lovelace and still nothing.
no errors in console, no errors in the logs.
clear cache?
not true as it is updated after a restart with no errors
you're welcome to continue to debug this
yes, even though that was not needed before. usually just a shift+F5
If you think it's a bug, report it.
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
I would recommend that you do some sanity tests first
such as? I've been messing with this since the update came out
worked perfectly fine. updated. does not work. seems like a clear cut case 😄
delete all content in the file, see what happens
which file
whatever4
sanity tests
ui-lovelace.yaml, whatever you included
add bad formatting, make sure it breaks
what you're describing isn't normal, so something is wrong
I'm using the vs code addon so formatting is mostly fixed / highlighted as a problem
hmmm, right. I think i found the problem. If I click "refresh" it works perfectly.
so looks like the "reload resources" was moved to "refresh" and a non-functional button remains
I've added the Valetudo card and the map does not load it only displays a small yellow bar as if to display a warning but without any text.
Has anyone seen this before and knows how to fix this?
Never mind ... it was just a typo
Hey, is there any way to configure buttons for an entity on an Entities card similar to how a Curtain entity's buttons show?
So for example here, is there any way(custom components are fine too) to add two more buttons to Living Room TV the same way Curtain has 3 and configure them to do service calls? https://i.imgur.com/rY4EISm.png
E.g maybe a button to change to a specific source or have it turn some led strip around the TV on or whatnot
The entities card is perfect for my use case, would just need a way to add buttons on an entity that displays there without having to make a huge grid and size it down to small cards
Those particular buttons? Yes. You create a template cover https://www.home-assistant.io/integrations/cover.template/ see #integrations-archived for help with that.
Otherwise have a look at the highly configurable custom button card https://github.com/custom-cards/button-card
Not those particular ones, wanted to make different buttons that call different services, will look into the button-card
There is also this which may suit your needs better: https://github.com/custom-cards/button-entity-row
Ah this fits my needs perfectly, thank you so much!
Has anybody managed to get Mermaid working with the Markdown (or any other) card? Is it even possible? It would be really nice to draw dynamic diagrams
whats the deal with the 'map'? for some reason i'm only seeing my home zone on it any more. i've previously seen me, my wife, my keys/wallet etc (tile entities) but i come to check thsi past few days there is nothing there.
The others only show up when not home.
ah right i see. makes sense. thanks
Hi guys,
Im trying to have some attributes shown in a card while also excluding some others. However, the ones excluded still show up. https://hastebin.com/gadimogeto.less
That’s a pretty old card, I’d suggest just using an entities card with rows of type attribute for the ones you want