#frontend-archived
1 messages · Page 195 of 1
The card is custom:sun. I was thinking of using a conditional card, but would that work with the grid layout of custom layout card?
if it accepts cards, then yes
I actually do exactly that with a custom:layout-card and two conditional cards
So I tried adding a custom layout card with two conditional cards within it, but each conditional card is smaller than the full width of the card. I tried adding panel: true to the custom layout card, but it didn't seem to change anything
Doesn't look like panel mode is supported in layout card
panel mode is for a view, not a card
unless it's something special for that layout card
Yeah I figured haha
the conditional card itself shouldn't change the look of the card it's displaying
I've seen mysterious discrepancies of a few pixels in height, but not other than that
Top is custom: weather and bottom is custom:sun inside a conditional inside a custom:layout
you can change the width of the layout card
type: custom:layout-card
layout_type: horizontal
layout_options:
max_cols: 1
width: 800
cards:
After upgrading from a few months of no updates, my elements "don't exist".
Custom element doesn't exist: simple-thermostat.
type: 'custom:simple-thermostat'
...
lovelace:
resources:
- url: /local/simple-thermostat.js?v=1.0
type: module
and I have
/config/www/simple-thermostat.js
All good now, thanks @dark dirge !
@lucid pumice are you using Lovelace in YAML mode?
ye, think i just figured it out. it needs to be in the config now?
before it was in the lovelace yaml file
yes, you don't put it in ui-lovelace.yaml anymore
that was change from a long time ago
hmm. still not working. and I've restarted the whole thing.
from an example further down:
lovelace:
mode: yaml
# Include external resources only add when mode is yaml, otherwise manage in the
resources in the lovelace configuration panel.
lovelace:
mode: yaml
resources:
- url: /local/simple-thermostat.js?v=1.0
type: module
- url: /local/power-monitor/power-monitor.js?v=6
type: module
- url: /local/monster-card/monster-card.js?v=1
type: module
- url: /local/community/lovelace-xiaomi-vacuum-map-card/xiaomi-vacuum-map-card.js
type: module
so does that work? It's not what you posted before
nope it dont.
all those ?v=xxx bits are to avoid the cache, so try incrementing those numbers
So I have the following card that I have done some work on from something I found on the forums and everything is working great, but I would like to know is there a way to always display the absolute value? I dont want to edit the sensor its using as the negative value is correct. The spot i am speaking of is where it says "To Grid", when it says To Grid (based on other conditions) I want to display the absolute value. its using a button-card to display the icon, name and value of the entity
oh i cant post an image
ok let me get the code
@honest sluice posted a code wall, it is moved here --> https://paste.ubuntu.com/p/PfmRHXr7hM/
@honest sluice 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/.
yes thats my fault sorry, wont happen again
probably this:
state_display string optional On Override the way the state is displayed. Supports templates, see templates
You should be able to use the state_display field (I think) with a template to override the way it displays the state.
Snap.
+Math.abs()
Ok, you win this time.
🎉
hmm ok let me look, i tried looking at the docs i guess i didnt see that field
Math.abs(your_value_here), more specifically.
hmmm i dont see that in the docs
guess it would help if i looked at the docs for button-card instead of just button 😉
yeah
lol
Using the soft-ui template for a custom:button card, how can I remove all the extra space to the right of the actual card?
https://imgur.com/a/zLSp58j
this doesnt seem to work:
state_display: |
return Math.abs(states['sensor.grid_power_production'].state)
its actually just returning all of that as a string
oh duh
you need to follow the docs for templates
Does anyone know if it’s possible to set the ‘limit’ or ‘target’ using a template/sensor/attribute on a custom:bar-card? I’ve tried normal templating for the target (formatted as int) but it behaves like I just haven’t set the target at all.
Is there a way to make an entity in an entities card blink two different colors based on the entity's state?
@winter prism you could likely do that with mod-card
How do you hide the calander tile. It already has a tab in the side panel.
It shows calendars off. What use is that in the gui?
What use is that in the gui?
Some people like seeing stuff...
And if you take control of your dashboard, you can choose exactly what shows and what doesn't.
So the auto dashboard is just best effort for the moment?
Best effort? No... it's every entity.
HA doesn't know what you want to see, so it'll show you everything - until you customise it.
Yea. I guess its more about getting everything working in one magic box and not necessarily the gui.
Can you make subgroups?
If you mean cards within cards, yes. Some of the cards exist as a means to organise your layout - like the stack cards, layout card, etc.
Horizontal Stack Card Configuration This?
That's one of them, yes.
Can you change the height of a graph?
you can do all kinds of things
"Lovelace - Home Assistant" https://www.home-assistant.io/lovelace/
Doesnt look like it if its the History Graph Card
dunno, I use mini-graph-card for any of my graphs
it is, yes
To use it you have to add it via yaml config?
not necessarily
Doesn't show up in the search for me. Search cards
did you install?
Yea. Checked it only shows the option to reinstall
Not that part
Ahh just checked via ssh for the local they reference on the repo.
don't use that URL, use the one I provided
clearing the cache is generally advised
Might that go away in the future? Or is it just how browsers work.
Do you need to wipe for the app too?
HA caches aggressively, so sometimes you need to clear the cache
Guessing that wipes your login session too?
I feel like I need a video to configure it haha. Found one.
Can you make a button that controls a pair of lights?
make a light group
You can only make groups in yaml?
yes
What's y'all's workflow for editing in YAML? As I get into more custom integrations, working through the UI is cumbersome, but I feel like I don't know enough YAML to switch
- Edit, 2. Check config, 3. reload automations/scripts
I mean in terms of knowing stuff
Alright so at least I don't feel bad not knowing stuff hahaha
the community has been around for years, so there's lots of material and quality docs to help
and it'll be a lot easier to help folks writing YAML
Very true 🙂 I'm pretty new to this so I spend 90% of my setup time just digesting the documentation and videos
Really glad that's all there (and seemingly very high quality too) so I don't have to just bang my head against a wall instead
unless you're into that sort of thign
I thought I would be at first, but it's so rough when you don't have experience with this kind of thing lol
yeah, I'd never touched yaml until HA
Exactly
I think the toughest distinction I had to realize was maps vs lists
basically when to use (or not use) a -
it all generally makes sense once you figure it out
I'd say, just an advice, a good way to kind of get the "ins and outs" for yaml is to goof with Lovelace in the UI
you can immediately see how changes work and what works and doesn't
I've been messing with custom:layout the last couple days and it felt pretty good once it all clicked
With a little help from a CSS Grid generator of course ;P
we should have a "showoff" channel where people can send pics of their dashboards
As someone who isn't creative, that would be awesome
I often go looking for inspiration but a lot of designs look very samey to me
speaking of which, how do I hide the top bar?
You can with custom:sidebar, but that feature is broken right now
great lol
is there an easy way to copy a whole view to a different dashboard?
You're talking about duplicating your overview page right? I think I did that on my last install to have an experimental version
well yeah, something like that
i've made a whole new dashboard with a few views
but want to "transplant" some of my views from my old dashboard
Maybe someone else with more experience knows a way, I think I just started from scratch before since that was basically the goal anyway lol
no worries
There are instructions on the Lovelace dashboard page in the docs
Go to raw mode, copy, go to new dashboard, raw mode, paste
Any ideas my homies?
Hello; i have a light entity and i just noticed that the state does not change anymore when it is on
it is always grey when my light is on or off
it might be because they are RGB bulbs..
Did you select grey as the colour for the bulb? 😉
LOL.. I just have the brightness set to a level, no color
but when i pick a color, i can see the state change on the frontend
but when i just have the normal lights on, they are grey
before some updates - they used to show a dim yellow color
Yeah that’s what it’s meant to do, not some sort of card settings?
Never mind, I read too fast
@quaint snow Could you just do a a vertical stack such that:
- Horizontal stack with green buttons
- Card 1
- Card 2
How do you guys deal with spacing when editing YAML? It's making my head spin sitting here looking at mine
VSCode
Sweet, I'll look into it. I kept seeing Notepad++ recommended and I'm thinking surely it shouldn't be this convoluted
there's also Sublime Text for a simpler editor
Is there a YAML editor addon I need to download as well or just open it my stuff and that's it?
Is there a way to paste and keep indentation from where I pasted?
Like if I paste from four spaces in, I want each new line in my paste to start from four spaces in
Would that not have card 1 and 2 on top of each other?
If you want them next to each other do vertical stack:
- Horizontal stack
- Horizontal stack
I'm not sure if that's exactly what you're looking for though
@dark dirge
Needing a bit of a point in the right direction, I have a sensor my robot vacuum has with a link to the picture of the previous clean in the state field, i wish to use this in a picture card in lovelace but struggling to figure out how to get the url out
Is anyone using the Weather Conditions Card?
https://github.com/r-renato/ha-card-weather-conditions
I'm a bit confused about how to use the forecast part.
@heavy pendant posted a code wall, it is moved here --> https://paste.ubuntu.com/p/mK9zVrwhRt/
Ah, sorry about the code wall!
Lovelace config would look something like this (example provided by the developer): https://paste.ubuntu.com/p/mK9zVrwhRt/
However, that's not how weather integrations provide data. There is typically one weather object containing all this data. Sure, I could create a ton of templates to parse out the data, but surely, that's not how it's supposed to work.
Hi guys! I'm trying to follow this guide (https://synapselabs.io/posts/integrating-your-tesla-with-home-assistant/) for my Tesla, but i get an error on the line;
missed comma between flow collection entries at line 4, column 2:
{% set sensors = [
^
Does anyone have experience with these types of expressions in lovelace?
Direct link to code: https://gist.github.com/jseidl/571889c1f5e05b3164f9c87fe5e8a474
anyone have tips on adding slider entity row? i added it via HACS and shows up in resources. i try adding entity card like github page says but get error Custom element doesn't exist: slider-entity-row.
though in resources its now called light-entity-row.js, the github says to use - type: custom:slider-entity-row, but changing to - type: custom:light-entity-row doesnt work either and gives Cannot add property buttons, object is not extensible error
this is what i have in the entity card
entities:
- type: 'custom:light-entity-row'
entity: light.bar```
mdi:door-open/mdi:door-closed
close your browser and reopen
didnt work, also cleared cache, restarted HA... whole shebang
🤔
following directions here https://github.com/thomasloven/lovelace-slider-entity-row
what browser?
wonder if something got messed up with it since it is saying slider-entity-row, yet in resources its light-entity-row
chrome
well, i installed entity-light-row, but it shows in my lovelace>resources as light-entity-row. was a hacs update im installing and restarting. then reinstall
yep, my own dumbassery
guys i tried putting the card mode everywhere with - type: conditional in type: picture-elements CSS right after conditional doesn't work ! but before that works like a charm any suggestions ?
https://pastebin.com/YcUufWBx
Hi, does anyone know how to turn the toggle control into the lightning bolt control?
look at "assumed_state"
thankyou kind sir!
I understand the logic now
Although I feel like I've 'lost' something about the state of the control when all I wanted was to change how it was displayed in lovelace.
you can make your own button that looks and works however you want
bump
Is it possible to set a default order of the dashboards on the sidebar for all users?
is there where we can ask questions about custom frontend components?
custom cards? here
yep, that's what I meant, thanks!
hi all, ive installed the thermostat-popup-card https://github.com/DBuit/thermostat-popup-card via HACs, and it works well on a mobile device but doesnt scale properly (very tiny) on a desktop....wondering if anyone figured out how to modify the style such that is scales on any device...? climate.downstairs: title: "" style: $: | .mdc-dialog .mdc-dialog__container { width: 100%; } .mdc-dialog .mdc-dialog__container .mdc-dialog__surface { width:100%; box-shadow:none; } .: | :host { --mdc-theme-surface: rgba(0,0,0,0); --secondary-background-color: rgba(0,0,0,0); --ha-card-background: rgba(0,0,0,0); --mdc-dialog-scrim-color: rgba(0,0,0,0.8); --mdc-dialog-min-height: 100%; --mdc-dialog-min-width: 100%; --mdc-dialog-max-width: 100%; } mwc-icon-button { color: #FFF; }
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.
Can anyone tell me why my mini-media-player isn't showing any artwork from the source?
what's the source?
Hey guys, a button card that's just an image. Can it be done?
@tough cairn Try custom:button : https://github.com/custom-cards/button-card
I'm trying to get custom:sidebar to change its background color based on my theme, but it doesn't seem to be doing anything
Here's a picture: https://imgur.com/a/S3XYIzl
And here's the sidebar portion of my yaml: https://ghostbin.co/paste/8shkmks
It's a Kodi library on my computer.
All artwork, fanart, coverart etc is in the folders with the movies
And it's connected directly to Kodi via the integration.
what do i put in a name field to make it not appear?
like in an entity card for example
" " is easiest
is it possible to have a markdown card have an on press event?
@worthy moat posted a code wall, it is moved here --> https://paste.ubuntu.com/p/dKRfDp8GY7/
Is there a way to link cards for reuse? I've made specific setups that i'd like to reuse in several configurations but i don't want to have to change everywhere when i change an icon or something.
hey folks, anyone using the thermostat-popup-card (https://github.com/DBuit/thermostat-popup-card ) and have it styled (CSS) correctly so it properly scales on any device? Style from it's github page is https://paste.ubuntu.com/p/dKRfDp8GY7/
If you're using YAML mode, you can use YAML anchors.
is there a tutorial/docs on this somewhere?
Yes, Google has many.
Another weird question. I'm embedding a webpage but i want the height to dynamically adjust to the device i'm using. I've tried fiddling around with aspect ration but can't get it to work good in all devices. Is there a different way of doing it?
working on a similar issue with the thermostat-popup-card.....CSS styling through card-mod is likely the answer here, but I havent figured it out yet
if i could set the height of the iframe i think it could solve my issue. But not sure how to achieve that
you'll likely need this https://github.com/thomasloven/lovelace-card-mod
yeah i'm trying but i either can't target the right card or the height property just isn't working
now i'm starting to question weather i have installed card-mod properply through hacs
And that was the issue. Got it working!
Does someone has some infos for me?
HI everyone, I am not sure where to post this question: I am trying to whitelist a directory without using any yaml in the configuration.yaml file and am not able to find this option in the UI. Thank you!
it's not configurable in the UI - you have to use YAML
Okay. Thank you!
Hello all, I have a fold-entity-row using a template-entity-row as the head.
On desktop, clicking anywhere on the head works (fold unfold no problem). But on iPhone, either app or browser, only clicking on the arrow works, clicking other area of the head would give this error.
Anyone know why?
The error kinda makes sense since I didn’t give an entity to the template-entity-row. But why desktop works, and I hope it not to show that error if I didn’t give entity.
entity: sensor.time_since_most_recent
name: Most Recent
format: relative
icon: 'mdi:clock'
tap_action: none
https://i.imgur.com/nEa0d0d.png
what could be the cause of this sensor not displaying in a friendly format all the time? it does in this other lovelace tab i'm working in, but when i add it to another it displays ugly. comparison showed in image.
config yaml;
sensors:
time_since_most_recent:
value_template: >-
{{ states.input_text.lastusedss.last_updated.strftime('%Y-%m-%dT%H:%M:%S') }}Z
device_class: timestamp```
That exact same Lovelace code displays differently in different views?
mhm, i copied and pasted it.
Seems…unlikely
@bitter bolt posted a code wall, it is moved here --> https://paste.ubuntu.com/p/ThWbK6h65R/
@bitter bolt 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/.
Those…aren’t the same at all
Seems like you’re complaining that different cards display things in different ways
well, the first codeblock has a secondary markdown card. but the first card in the first codeblock shouldn't be reliant on the second..
One is an entities card and the other is an entity card
Those are different. No copying and pasting going on there
The only thing they have in common is the entity they reference.
wait, there's a difference between an entity card and an entities card?
There's a difference in their name, right?
You said they were exactly the same and that you copied and pasted
ok, i fixed it. ty.
what's the point of "panel mode"? like what are some use cases?
for a full screen image card, like a cctv camera?
and how do most people design their layout around certain views, like desktop vs mobile? do they log into each device on a different user account which only displays cards tailored to that device's screen resolution and aspect ratio?
That's a very broad question. Probably better for you to look at people's layouts on the forums to see how they approached it.
So, I have my theme set to backend-selected and I try to manually call up the set_theme service like so, but nothing happens. I can manually select light or dark on the user page though. Am I missing something?
data:
mode: light
name: default```
I seem to recall that that doesn't change the mode, just the theme to be used in that mode?
I remember it being unintuitive
You're right, it definitely doesn't work the way I thought it would.
Can anyone help me witth artwork on mini-media-player card? Doesnt matter waht option I choose, cover, full-cover etc, it stay gret
grey*
what's the media?
Spotify
can live camera entities in a picture card have pressable buttons overlaid on top of them?
picture-glance can do that
action: call-service
service: camera.snapshot
service_data:
filename: '/local/lorex/lorextmp_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg'
target:
device_id: e4113540def2a336ddf3ab6e272e96a0```
i keep getting "no access to path", even when i just do `/local/image.jpg` doing a camera snapshot and i'm not sure why?
The path part of filename must be an entry in the allowlist_external_dirs in your homeassistant: section of your configuration.yaml file.
https://paste.ubuntu.com/p/BxfzCwRW45/
https://i.imgur.com/3pbenKm.png
i have a camera as picture-glance. i have some entities overlaid for script toggles, represented by their icon.
how can i move the entity icon alignment around in the image? thought i'd use state_filter with style: and top/left/width, but it doesn't work.
I'm trying to use a template for a custom:button-card, but the icon size isn't following what I've set
Code here: https://paste.ubuntu.com/p/fyDRNFZHqT/
Picture here: https://imgur.com/a/brVndt3
anyone happen to have an example, or can help me, of putting the Elements of a Picture-Elements Card into a Layout-Card - grid layout? My attempt is not quite working out https://paste.ubuntu.com/p/5ZdcJ95hky/
does anyone know of a carousel style card which can be used to display cameras? I have cameras surrounding my house and want to be able to swipe from each camera in a carousel fashion
#announcements message
the swipe card?
huh, I will try that out now
That swipe card seems like it'll work with what I'm trying to do. now I just need to figure out how to integrate the swiper-api calls into my lovelace card: https://swiperjs.com/swiper-api#scrollbar
Hi i use custom weather as a card, i now just reinstalled on new pi and i see on the github the values are localized to Dutch. https://github.com/bramkragten/weather-card
However for me they are not. Despite language being Dutch. Any hints what i might be missing?
Oh wait.. he just has a value that's in Dutch same as in english.. i think it's in english too. the wind direction.
For some reason my webrtc addon isn't working. Got the card loaded in a dashboard (can see the play button, progress bar, network icon etc) but it just constantly shows ERROR: 'webrtc' on the video stream itself.
Tried with the default Bunny video on the GH page but even that doesn't work.
Checked the logs and there are no errors, even with debug level enabled via logger.
any pointers for this one? moving/aligning the entity icons in a picture glance card.
Hi! I have some sensors that are running with MQTT with deep sleep. I'm using the history card to display the sensors' values, but the result is somewhat "dotted". Is there a way to join all the dots so the graph looks better and more readable? Thank you.
Mh I guess I need to use a different "history" card that I can find from HACS. I'll look into that.
Does anyone know what font the frontend uses?
The best font, Roboto: https://fonts.google.com/specimen/Roboto
You can inspect webpages to see those kinds of details, by the way.
I'm using Gledopto GU10 lights through my Philips Hue bridge. I noticed that scenes don't work properly. When the light is off and I execute the scene, the light will always turn on with a purple-ish color. I think it's the default color of the light and somehow it's ignoring the colors that it set in the scene. When I run the scene a second time (this time with the light on, in the purple'ish color) then it sets the color correctly.
I narrowed down the root cause of the problem. Somehow, the light isn't reacting as it should to the "turn_on" command (if it's in an off state) when the scene has the "effect: none" parameter set. If I remove this line, all my Gledopto lights behave as expected.
So, I'm looking for the best way to fix this.
- It's annoying that the scene editor always adds "effect: none". I have to manually remove it whenever I edit a scene using the editor. Any suggestions on how to fix this?
- I would think that "effect: none" means NO effect should be included in the command to the device. But my device is behaving differently with "effect: none" present vs. not having the effect parameter in the service call at all. Is this a bug, perhaps?
where is the raw config editor part of Lovelace file location at ?
like the other yaml of lovelace ...
I believe you will need a picture-elements card, and then you can style it like you need to using top: left: etc
upper right-hand corner, click the '...', click Edit Dashboard, click the '...' again, click Raw configuration editor
i had trouble finding that too, is it documented at all?
Hey guys, I'm working on my new phone front-end, and am looking for anything that I might have omitted that could be useful!
This is what it has displaying so far: https://www.youtube.com/watch?v=DAVlNN1D1rw (Unlisted video since the capture was 2gb)
Motion sensors
Door sensors
Humidity/Temperature sensors
5 Room controls using a swipe
All lights in the second page
Conditions under the lights
All the ACs
It also pops a camera view on top when there is motion in front of the door
Is what documented?
where to find this raw configuration editor
im sure this is asked all the time, but google seems to have failed me
how do i theme the header?
i applied the ios dark theme, but the header is still blue
I have white buttons for my lights and the color of icon matches the bulb colors. Sometimes brighter colors make the icon nearly white and make the icon blend in. Is there a way to restrict how bright or how white the icon can get with CSS?
While matching the bulb color to a certain extent
Are we able to set a unique_id to light groups in the configuration.yaml file
taking it to the right channel @dark dirge - I added my average inside temp and my outdoors temp as cards, just would like the icons to change colour based on the temp outside
top right
ah sweet I will take a look at the docs
there's a ton of state-based color changes in my config
will revisit that too 😄
Is the only way to have multiple lights controlled by a single switch / rgb color wheel by creating a group within configuration.yaml? I did this and it worked I guess well enough, however when I tried to tie it to an area I got the error about no unique id and not able to use the ui to configure.
you can define a group or light.group in configuration.yaml, or just pass all the entities to the turn_on/turn_off calls
areas aren't very well supported
I am hoping the following will do the temps nicely
styles:
icon:
- color: >
[[[
if (entity.state < 0) return 'rgb(178,0,237)';
if (entity.state >= 0 && entity.state < 10) return 'rgb(202,241,255)';
if (entity.state >= 10 && entity.state < 20) return 'rgb(0,191,255)';
if (entity.state >= 20 && entity.state < 30) return 'rgb(216,255,81)';
if (entity.state >= 30 && entity.state < 40) return 'rgbrgb(255,193,0)';
if (entity.state >= 40) return 'rgb(255,90,0)';
]]]```
yeah seems to be working, as far as the >= 10 and < 20 goes
just wish there was room to cram a media player in there haha
might have to shrink some of the cards....
But then again, the media_player entities don't really work well for me. For some reason they only see two echo devices to cast to.
these guys are too smart for me, do you know how I can get a clock like this one into my frontend anyone?
Anyone know if it's possible to change the circle color on the default map entity?
Has anyone done a well working card for a group of lights?
Like I wanna have one control / card that is both of my lights in my living room that I can switch on and off and change color. Has anyone done this?
Just found this and remember you asked a few days ago. Hope it works for you!
https://github.com/maykar/kiosk-mode
Hi all
I have this.stateObj.attributes['status'] in javascript
that returns me the status of an object
how can I get the translated value of it?
If HA didn't know how to extract the information natively, it won't know what to translate either. You'll have to translate it yourself.
@knotty abyss https://github.com/ljmerza/light-entity-card
Anyone ever put a light popup card in a layout grid? Would love to see an example
is there a card that will show clickable thumbnails of the n most recent video clips in a folder in the mediabrowser (trying to show the most recent frigate clips for users).
or a way to add a link in a View to a specific folder in media browser?
@karmic tiger the state is translated when I look the entity itself...
Not sure where to ask this, but I got new Hunter Douglas Powerview blinds that work really well w/ HA, but if they get changed by a remote outside of HA, HA doesn't learn of that and can think they're up when they're really down and so on. This is annoying since HA disables the up arrow & down arrow UI elements when it thinks the blind is already at that spot. How can I not have those buttons disabled?
The integration docs claim "local polling", but I never see updates of state sent back into HA
I have a webpage Lovelace card, and I want to include the contents of an input_text entity as a query parameter in the URL, is there an easy way to do that? Or even just look up the entire URL from a hidden input_text?
That would require a template, and that card doesn’t appear to support them
could use card-templater
Is there no easy way to see history of an attribute or does ha not save the attributes? I know I can template a new sensor and populate with data from a attribute but seems overkill
Template sensor is the way to go
is it right that custom cards (like the fan speed controller, and bignumber-card) do not load in the apps? they just say custom element doesn't exist.
It sounds like you either didn’t add the resource or you have a leading ‘-‘ in your card definition
@hallow mango That did it! Cheers. Was a little confused why it was working on the web but not my phone. Thank you.
all good man
Does anyone have any TV remote cards they reccomend?
Im looking for a good one but cant find one that works good
Thanks!
there is a harmony card that seems like it would be worth using if you set it up right
and have a harmony remote obviously
but I have a harmony remote... so why would I pull out my phone? lol
Hey, so this gives me a card with both lights in it and 2 seperate color wheels. I'd like to have just 1 color wheel that works for both light.s
make a light group
I did, and then when you add the group it puts a color wheel for both
did you make a light group? or a group of lights?
light:
- platform: group
entities:
- light.abc
- light.def
...
vs
group:
lights:
entities:
- light.abc
- light.def
...
any way to display picture entity cards in colour rather than greyscale?
Can I use my own icons somehow?
Quick and simple question. I haven't checked out the history tab for quite a while, thus I am not sure if it supposed to look like that:
Is this correct?
I am asking because it looks very unclear and confusing.
Yes, it seems correct. Unclear and confusing, maybee, but it is supposed to be like that. It shows all your sensor that reports a % value...
Thanks
how do I use a wildcard in the entity filter card?
Invalid entity ID at position 0: sensor.
entities:
- sensor.*```
In lovelace ui, there is a layout section and a layout options. So If I specify GRID, what code do I put in layout options to restrict it to 3 columns for example?
Those options are not default. They are put there by layout-card. The readme should give you a starting point: https://github.com/thomasloven/lovelace-layout-card
aha awesome! Thanks
That worked great! So nice. Thanks a lot @polar kelp , the work you have done is so amazing
Note to self: Add a message to that tab that the options are put there by layout-card
new atomic calendar revive update https://github.com/atomic7777/atomic_calendar update: reduced sizing and more date/time format options (i'd upload an image but cant seem to find the option)
would love some help with CSS if anyone is willing. Trying to change the font size of this element, not sure how to call it in my yaml though .precipitation { color: var(--primary-text-color); font-weight: 300; }
I have a garage door opener switch, and a binary sensor that shows the status. How can I "link" the two, so that there is a single icon that shows the status, and activates the garage door when clicked?
@quaint snow use a color image? I've got bunches that are in color
would it be possible to add ui in that section for the different options? like you would get adding a card that's supported in the editor
@subtle blade A template cover
Hey all, I am seeing some weirdness with a new sensor I added. Aqara Temp/Humidity sensor was added yesterday, but when I add it to a graph card, it shows F temps but it put it in its own graph for C instead.
I can't add a pic, but if you PM me I can show you
https://community.home-assistant.io/t/weird-issue-with-history-graph-temperature/244436 looks like it goes away on its own
@dark dirge Interesting.. So the mqtt command to open the door doesn't get sent. Monitoring state looks fine, so I know mqtt is working correctly. Do you see anything wrong with this?
`cover:
- platform: mqtt
name: "Garage Door"
unique_id: garage_door_opener
device_class: garage
state_topic: "tele/garagecontroller_0051BB/SENSOR"
command_topic: "cmd/garagecontroller_0051BB/POWER1"
value_template: "{{ value_json.Switch4 }}"
state_open: "OFF"
state_closed: "ON"
payload_open: "1"
payload_close: "1"`
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.
The odd thing is that the mqtt command never reaches the esp/tasmota. Even if it was the incorrect command, I'd expect that to show up in the tasmota console
I don’t use an MQTT sensor or cover like that. Mine is just a sensor and switch
even more weird.. when I click the button on the UI, it doesn't show up in mqtt when I listen for that topic
is there a card that will show clickable thumbnails of the n most recent video clips in a folder in the mediabrowser (trying to show the most recent frigate clips for users). or a way to add a link in a View to a specific folder in media browser?
I've not seen anything like that. The main problem is that cards only know what integrations expose. You'll have to build a way to expose the filenames of the N most recent video clips first.
I'm using Soft UI in my HA, but it's not rendering properly on Fully Kiosk on my Kindle Fire HD 10 2019. Is there a fix to this or do I need a different tablet?
What happens if you just use a different browser on the same tablet?
Trying that now actually
Same thing in Chrome
FireOS 7 is based on Pie so I thought I'd be fine
Hi, I am trying to get my tailscale IP address to be shown on the dashboard. After googling as lot, I found out that this can be done using command_line entity. And so, I added this to my config.yaml:
sensor:
- platform: command_line
command: "hostname -I | awk '{print $2}'"
unit_of_measurement: ''
name: "Tailscale IP Address"
value_template: "{{ value }}"
On the cli, the above command displays the correct IP address. But this just results in a blank on the dashboard. I read somewhere else to put it in a script and echo the output. I did that as well, but the display showed "Unknown" in HA dashboard. I echoing to a tsip.txt and cat tsip.txt and had the same result. I have tried with single quote. I have tried '$(hostname -I ...)' but that shows a blank.
I can't see the error here.
I'm an idiot, I just forgot to set the dark theme
so, how would I get the ip address of the raspi instead of just that of HA? If I do hostname -i in HA's terminal, I just get 172.30.33.3 and not the others which i get in pi's cli - 192.168.1.14 100.121.63.99 172.30.32.1 172.17.0.1
Why don't you just assign your device a static IP?
I have a static IP for my raspberry pi - 192.168.1.14
Ah never mind, I didn't realize what Tailscale was
🙂
I need help with parsing. I got the details, but I don't know how to just get the ipv4 address.
(sorry, I just couldn't copy the text from the terminal window)
is there a nice drop down where u simply drop down without getting into the entity page ?
Whats the best way to regularly transfer a file from serverA to homeassistant-server? I was thinking SSH with key. I want to transfer ssl cert and some other files at the start of every month. I do this to a couple of other servers, now I am stuck on how to do it on homeassistant.
@flat steeple like a collapsing card?
you might need to describe what you want a little clearer
The picture entity card only turns the picture to colour if the entity is on. These are scripts so they literally only go coloured for a few seconds then back to greyscale. I did find a way around it though.
state_filter:
'on': brightness(100%)
'off': brightness(100%```
is it an entity that provides a picture? i guess i don't have any that use the actual entity picture... but defining an image mine all show in color. i also have a few that use cameras, but they have a constant feed so they're never "off"
but all of these show me a color image:
type: picture-entity
image: /local/wyze_logo_main.jpg
icon: 'hass:sensor'
entity: sensor.dockerpi_wyzesense2mqtt_image
show_name: false
type: picture-entity
entity: camera.front_porch
camera_view: live
show_state: false
type: picture-entity
entity: camera.front_porch_person
name: Person
show_state: false
i also have a picture glance that works similarly with a state image
type: picture-glance
entity: sensor.current_activity
state_image:
None: /local/harmony.jpg
PowerOff: /local/harmony.jpg
Shield: /local/shield.jpg
Playstation: /local/ps4.jpg
I am thinking its because those sensors and cameras are essentially always reporting or running
where as the script just runs for a few seconds
I have browser-mod installed and it mentions that you can make devices play sounds when clicking buttons, but it never gives an example
Does anyone here have one?
Actually I figured that out, but it's pretty delay from pressing the button. Is there another way to do this?
Is there no way to group entities from within the frontend interface or even a hacs addon or something.
No
That is unfortunate 🙁. Looking to see if there is a feature request for it.
yeah, a groups ui would be sweet
Just installed HA as a docker container. How does one install dashboards like this? https://community.home-assistant.io/t/a-different-take-on-designing-a-lovelace-ui/162594
you need to look at this guys config and apply the needed parts from it to your config
Ah I see, so everything must be configured on its own to achieve that. Thank you
Hey all - is it possible to dynamically change the name of an entity? I have an entity that i'm creating via a template which looks at completion of a task yesterday. The current friendly name is "Yesterday's Goal". Is it possible to dynamically update this to "Tuesday's Goal", "Monday's Goal", ect ect, - thanks!
that doesn't make sense
@honest estuary me?
who else?
idk something above, what doesn't make sense?
dynamically changing the entity name
Why not? Display name not ID
You're in #frontend-archived, blackadder. Context.
@honest estuary ok fair enough
@burnt hill You can use something like template-entity-row or config-template-card to update what's displayed.
https://github.com/thomasloven/lovelace-template-entity-row
https://github.com/iantrich/config-template-card
sorry i thought they were called cards
The display name is called name:. It's ironically confusing if you know too much...
@polar kelp thank you, this is pretty much spot on for what I need.
@polar kelp send you a question on the layout-card in the forums, https://community.home-assistant.io/t/layout-card-take-control-of-where-your-cards-end-up/147805/421 . Trying to figure out how to properly layout elements of a picture-elements card, in a grid. Any help you can offer is greatly appreciated!
Honestly; that sounds like a really bad idea.
The point of picture-elements is that you can place elements exactly where you want them, so you should use the provided tools for that instead.
hmmmm, so I was thinking that by putting them in a grid, it would help them to scale in the instance the dashboard is viewed on a smaller resolution screen....?
Maybe. But you should be able to get the same effect with top, bottom etc.
Alright I'll give it a try
Hello! I am trying to figure out how to use Layout Card and am a bit confused. My setup is in panel mode with a layout card as the main card. I have the layout card set to vertical. I can't seem to get the card to span the entire screen. It will only fill a column in the middle. Is there any way to expand this or something I am missing?
I am using horizontal stacks within the vertical layout card for each row. Still the cards on a given row will only fill up a small portion of my screen
So it puts all your cards vertically, you say? Curious.
That's not the recommended way to use it, by the way. Check the readme and use it as a view layout instead.
I'll take a look at that. If I use it in this way can I still use it in Panel mode? Yes, the layout card that you can add using just add card is similar to the vertical stack card. If I used it as a view and in panel mode, would I just use a vertical stack as my one card?
Hi guys, I've got a weird issue going on. Some of my lights have changed their UI, and the new UI isn't able to hold colour values at all. It switches and then switches back to white immediately. Any ideas? I would post an image if it was allowed
Is there an easy way to exclude an entity from showing up in the logbook through the frontend or do I still need to do it in yaml?
@hallow mango ah good idea thanks
have posted it as a topic on the forums now tho https://community.home-assistant.io/t/different-light-uis-in-lovelace-new-one-is-buggy-and-wont-let-me-select-colour/312771
how can I embed a panel showing the webpage of one of my addons?
when I use the URL http://192.168.1.5:8123/hassio/ingress/local_network_map it returns the whole HA menus/toolbar. How to directly embed the addon page?
I see HA actually uses a generated-token to embed them in the UI e.g. http://192.168.1.5:8123/api/hassio_ingress/QJu57U9E-aU_RdFwl8s2X-B7bbq7OEJRE0nARKXh7Qg/ but that wouldn't work with a lovelace iframe
nevermind, found the GH ticket
🧐 i suppose this is known, think I‘ve seen this in the beta already ?
Hi im using authelia for the single sign on, is there a way it uses authelia to check who logged in and then authenticate on that
Does anyone know of a nice looking frontend for a fire tablet? Lovelace just isnt doing it for me. I want something that looks like this.
That looks doable in Lovelace. Layout cards and custom button cards
Ok cool thanks
Does anyone know where I can find icons for Disney+ and Hulu that work with Home Assistant buttons?
I tried this but it didnt work
tap_action:
action: toggle
entity_picture: /local/pictures/huluicon.png
entity: switch.relay2```
Using a picture as an icon
icon: mdi:hulu
Then you'll need to use something other than button card, like picture card if you want an image
Ok thanks anyway
Where do i find http to configure trusted proxy
in configuration.yaml: https://www.home-assistant.io/integrations/http/
Hey guys, I'm trynna make a card that shows my ethermine stats and also some other crypto stuff if possible. I have the thermine plugin and it gives a sensor that has multiple attributes with the information. Now if I go to the gear icon I can see a few things showing. as well as a small graph for the active workers. It looks like this. I'd like to also if possible I'd like to reformat the numbers when putting them within a card.
welp I can't share the picture but it pulls multiple bits of information
The canon way is through a template sensor. https://www.home-assistant.io/integrations/template/
Was there any reaction to this? All of my "entities" cards look "distorted" like that. Or is it a new feature, not a bug? 😉
Do you have template-entity-row?
I have this: type: entities
entities:
- entity: binary_sensor.lumi_lumi_sensor_motion_aq2_occupancy
secondary_info: last-changed - entity: binary_sensor.lumi_lumi_sensor_motion_aq2_ias_zone
secondary_info: last-changed - entity: binary_sensor.sonoff_motion1_ias_zone
secondary_info: last-changed - entity: sensor.lumi_lumi_sensor_motion_aq2_illuminance
secondary_info: last-changed - entity: sensor.lumi_lumi_sensor_motion_aq2_power
secondary_info: last-changed
state_color: true
show_header_toggle: true
which now looks like this:
But do you have template-entity-row installed?
Because that's been known to cause that issue.
Oh yes, I do have it
Then I recommend you install "Important fix for Home Assistant 2021.06" https://github.com/thomasloven/lovelace-template-entity-row/releases/tag/1.1.2
Hello everybody!
I've multiple power sensors and want this type of card to display it : https://developers.google.com/chart/interactive/docs/gallery/barchart#stacked-bar-charts
But sadly, history-graph nor mini-graph-card or apexcharts seems to offer it. Does anyone has a solution? Thanks!
Looks like Apex should support it? https://apexcharts.com/javascript-chart-demos/bar-charts/stacked/
Hi. I just upgraded to 2021.6 and I love that I can now set my preferred time format (24H)
I quickly noticed that the calendar (both full page and card) does not honor my choice and wanted to open an issue for it on GitHub.
Can anyone tell me which tracker I should report it under? Is this a UI issue? Or is it an issue with the calendar component? Or is it an issue with the google calendar integration?
Thx
You're right, I don't seen it in the doc page of the HA module and haven't thought of browsing to the site directly
I've added mini-graph-card through HACS. How do I now add it to my lovelace dashboard?
they need to be added to your lovelace resources
usually a pop up show up telling you to reload
first thing to do with cards is always cache
Hey guys, so I'm trying to make a nice card to show information from ethermine. Someone did make a plugin and it creates a sensor called sensor.ethermineinfo_miner_address. This sensor has multiple attributes to it such as .unpaid .current_hasthrate etc. I'd like to have a card that displays each of these items as a line. however, I can not seem to get anything to work to do this.
Here is the plugin I'm using, https://github.com/ThomasPrior/EthermineInfo now it mentions something about a template sensor but I'm not sure exactly what they mean by that. Someone able to point me in the right direction it would be greatly appreciated
Didn't the template sensor I recommended yesterday work?
my apologies I was looking at that and trying to figure it out
it isn't shown in that ui, gotta put in yaml
Basically, you'd add a couple of sensors with e.g. state: "{{ state_attr("sensor.ethermineinfo_miner_address", "current_hashrate") }} etc, and put those in a card.
@tender bronze https://github.com/kalkih/mini-graph-card#updating
well yes and no. It shows up in the UI as a card. It just isn't UI configurable
Done that both times. Only 2nd time worked (no idea why)
ah I stand corrected, my bad
(no idea why)
Because cache fights you, that's why.
OH I have to create my own sensors?
Hi all,
I am trying to add a custom alarm panel into dashboard but I got this error:
"Custom element doesn't exist"
Any idea what should I do?
I am using from here
thomasloven if I try to put that into the development tools I get ```Result type: string
state: "None
This template listens for the following state changed events:
Entity: sensor.ethermineinfo_miner_address```
if I try state: {{ states.sensor.ethermineinfo_miner_address.attributes['stale_shares'] }} I get the following error UndefinedError: 'None' has no attribute 'attributes'
@signal plank Did you add the resource as described here? https://github.com/Dilbert66/esphome-vistaECP#custom-alarm-panel-card
Yes I did
And reload resources or restart ha?
yes I did.
Also, I rename the files (alarm-keypad-card.js to alarm-panel-card.js)
https://i.imgur.com/Q5ZIQby.png
Can someone tell me if there is a way to set the case of entity values without having to create my own template sensors to do this?
see image for example
did the top bar increase in height again with 2021.6 release?
things are no longer fitting nicely on a tablet
Ahh, I just uninstalled and reinstalled the integration and it seems this may be working now. I also think I had the wrong sensor name when I did some of the copy pasting which caused some issues. Now can I format these numbers?
frontend:
themes:
default:
header-height: 44px
No longer works?
like right now my current_hashrate comes back as 61621790.50666667 and I'd like to divide by a million so I get my gigahash rate and not just hash
then you just add to your current template what else you want it to do
e.g. ....address", "current_hashrate") |float /1000000}}
awwww yea thats what I'm talkin about
How about removing the extra places after decimal? I did Unpaid: {{ state_attr("sensor.ethermineinfo_ethereum_wallet", "unpaid") | float /1000000000000000000 | round(2) }} and its showing Unpaid: 0.009268025108188489
Order of operations.
You're rounding the 1000000000000000000 to two decimal places and then dividing.
so do I have to put some parenthesis somewhere so that it gives me an output of say 0.0092 ?
Yes, around the bits you want to round, so the rounding happens last.
AHHHH there we go. Now to just figure out how to put these lines into a template and put it in a card on my crypto dash and I'll be good to go LoL
I used to have a whole bunch of controls in my_hass:8123/config/server_control page. Now there is only the option to restart homeassistant server.
How do I just reload automations or groups etc..
i noticed I have to click configuration twice in order to even see mine
I can't seem to get the part I need 😦
make a template sensor
did you remove default_config: or something like that?
yea thats what I'm trynna figure out now.
Its there.
have you enabled advanced mode?
Thanks. That was it. I had it on and it used to work but I removed that user and added a new and it did not have advanced turned on.
Maybe you can also help me with my next issue. In some dropdown selections in the fronend I cannot select using the mouse I need to use the arrows on the keyboard or it wont work.
For example when editing a card in the UI and selecting an entity_id I can type the complete enitity_id or I can start and it will filter out but I cannot click on any of the entity_ids that are in the list I need to use the arrows.
How can I fix/debug this?
Does it happen in every browser? On the same browser on multiple devices?
I'm not sure. I am using chrome on linux mostly and that's where its happening.
If you don't know, find out. It's important to know whether it's something on your dashboard or just the browser you're using.
I'm working on it. 🙂 I need another browser.
I tried another browser and it does work.
Is chrome a supported browser?
With something like 65% of the market share, I'd hope so 😂
So I can't be the only one with this problem.
If another browser is okay, try it in incognito with no extensions running.
No-one said that. You're jumping to conclusions by assuming it's a problem with HA.
anyone know how to resize the height of the main top bar?
same happens with incognito without extensions.
Maybe it's something funny about Chrome on Linux then? I can't test that.
I imagine most Chrome users are on Windows or macOS.
I just tried a docker install of HA on my computer and it is having the same issue. Its a clean install so it shouldnt be a config issue. It can stll be something else on my pc causing it tho.
My normal HA is a core install on a different computer.
Keep trying to isolate it. If you can't get to the bottom of it and think it's actually a bug, you can report it on the GitHub page
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
OK. I'm going to borrow a windows computer soon and try it from there. Do you think it can actually be a bug?
Anything is possible.
Just try to narrow it down before reporting it. The devs get plenty of "it's broken, fix it" type reports with no useful information.
Yeah, thats why I came here. I was sure there would be something that I did to cause it or a known problem.
Is there a way to make an entity in an entities card visible conditionally? Not a conditional card an element in a card.
Natively, I don't think so. With custom cards, probably. Thomas on this server makes a bunch of great custom cards - this might do the trick: https://github.com/thomasloven/lovelace-auto-entities
Chrome on windows works.....
Yeah, if it's a problem with the browser, it feels like it's Chrome for Linux.
I can use a template filter in auto-entities card to display a specific entity based on an input_select?
I barely use my frontend. I rely on automations. I'll let someone else answer that 😄
Docs say yes
Rob says yes. I'll take it.
ok. Thanks guys 🙂
@winter hollow is the Swiper Card still active? Having an issue where it is prohibiting me from using a custom:light-popup-card correctly
hi, all of a sudden i just get "Retry" page when I try to access Home Assistant... I've tried clearing cookies and cache but to no avail 😦 Firefox Android
not sure where to start digging, any logs i can look at on the server side? running hassos
mkay, so i went for broke and cleared "history and site data" as well, and that fixed it... so i guess that means localdb? not sure why cached files and cookies werent enough though... annoyingly Firefox for Android doesn't have a per-site deletion like the desktop version, so it's nuking everyhing 😦
Lots of SPA's (single page applications) make use of a browser feature called service workers. Clearing the cache doesn't remove the installed service worker or its data - the nuclear option will remove that.
If you ever get stuck with that again but don't want to flush cookies, browsers should let you remove the service worker - you'd tell it to uninstall, then refresh the page and hopefully install a fresh copy automatically.
I know this is probably obvious, but i have a sonoff ifan03 which works great, but if the fan is running and i restart HA, the status is wrong, it always shows as off. Have I missed something?
The fan config is here https://pastebin.ubuntu.com/p/JP3jJ857jq/
Yeah it is maintained
Is this the way to use auto-entities template feature:
filter:
template: |
{% if is_state('input_select.rfid_scan_action', 'Track Search') %}
- input_text.rfid_track_search_text
{% elif is_state('input_select.rfid_scan_action', 'Album Search') %}
- input_text.rfid_album_search_text
{% elif is_state('input_select.rfid_scan_action', 'Artist Search') %}
- input_text.rfid_artist_search_text
{% endif %}
depending on what is selected in input_select it should show a different input_text
sounds like that could be it... i didn't see anything in the logs about fetching files even after clearing cache, only when nuking everything... anyway i'm gonna go complain to firefox devs about lack of site-specific nuking
Is this question in the correct place? #frontend-archived message
didn't we go over that before?
we went over the fact it wasnt working, and we got that sorted, but the state is reporting incorrectly. If i recall.
or did i miss something?
I thought it was working when we last discussed it, but my memory may be faulty
I see, your current issue is just when HA restarts?
the fan controls all work as expected, but if i restart HA it shows as off.
are you retaining the value on the MQTT broker?
you can confirm that
how do i do that?
MQTT Explorer
not sure it is being retained, i dont see a retain message.
Is that something i need to configure in the fan settings in ha?
it comes from the device
i'm using tasmota i thought i isseud power_retain. i'll check
i have issued PowerRetain 1 on this device previously, if that is correct.
this is "retain" for MQTT, not restoring the original power state when it loses power or something
that sounds like the latter
How can i post a picture?
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.
that looks like discovery info, not the actual status of the device
but I don't know anything about that device
in other words, that message doesn't contain the state you care about, as far as I can tell
possibly this one? Does't show retain. https://imgur.com/a/u1dB3wR
that looks more interesting, yes
this is the first paragraph of the docs:
In an ideal scenario, the MQTT device will have a state_topic to publish state changes. If these messages are published with a RETAIN flag, the MQTT fan will receive an instant state update after subscription and will start with the correct state. Otherwise, the initial state of the fan will be false / off.
so this... https://tasmota.github.io/docs/MQTT/ says
If MQTT is defined and PowerRetain is used the last state will be stored permanently in MQTT database.
doesn't seem to be
so maybe this has something to do with the fact that on isn't an exact state, but a speed. 1 low 2 med 3 high. FanSpeed is whowing in stat
yeah, that's what I was looking at too
I have no fans at all, so not much help as far as how they interface with HA
oh balls. Cheers anyway
there are a bunch of threads on the forum about that fan
and you'll get more of this sort of help in #integrations-archived
Thank you.
Does anyone have experience with auto-entities template filter?
Morning All, I'm creating a floorplan in yaml, rather than having all of the config in one floorplan.yaml file, I want to reference separate files for ares tabs, would that be achieved liethis:
title: 3D Floorplan
views:
- !include groundfloor.yaml
- !include firstfloor.yaml
I can't seem to find anything in the docs.
Maybe you need a path to your files: ```
views:
- !include config/groundfloor.yaml
- !include config/firstfloor.yaml
Thanks Tom, i did have them in the same folder, but moved them, the problem i have now is that According to an online yaml checker the yaml for the page is valid, but the UI isn't loading, So I know i've screwed up the indentation some how, just cannot figure it out!
my floorplan.yaml looks like this now:
custom_header:
compact_mode: true
editor_warnings: false
disable_sidebar: true
hide_header: true
kiosk_mode: true
title: 3D Floorplan
views:
- !include 3dfloorplan/groundfloor.yaml
# - !include firstfloor.yaml
# - !include controls.yaml
and my groundfloor.yaml looks like this. https://pastebin.ubuntu.com/p/qhvSxKmfw8/
custom_header is no longer a supported project. You should not be using it. https://community.home-assistant.io/t/custom-header/155399/1100
Thanks, I'll take a look at that.
getting rid of the custom_header doesn't make a difference. I'm sure it's an yaml indentation error. Chrome is throwing these errors:
Uncaught (in promise) TypeError: Cannot read property 'attributes' of undefined
at eval (eval at _evaluateTemplate (config-template-card.js:3401), <anonymous>:1:85)
at HTMLElement._evaluateTemplate (config-template-card.js:3401)
at config-template-card.js:3349
at Array.forEach (<anonymous>)
at HTMLElement._evaluateConfig (config-template-card.js:3338)
at config-template-card.js:3346
at Array.forEach (<anonymous>)
at HTMLElement._evaluateConfig (config-template-card.js:3338)
at HTMLElement._evaluateArray (config-template-card.js:3363)
at config-template-card.js:3343
I tried but got an error because the wanted chart type isn't supported
/// apexcharts-card version 1.9.0 /// value.chart_type is not a ChartCardChartType; value.chart_type is none of "line", "scatter", "pie", "donut", "radialBar"
type: 'custom:apexcharts-card'
chart_type: stackedBar
https://apexcharts.com/angular-chart-demos/bar-charts/stacked-bars-100/
I would have the stacked bars 100 but I can accommodate if I could only have the stacked bars one.. I can insert others graphs but I love this one for power consumptions
Hi you all. Got a problem when trying to do a restart from UI. I'm on latest ver 2021.6.1 Did not happen on earlier version. Get "Failed to call service homeassistant/restart. name 'CONF_SCAN' is not defined" Can't use the check configuration either
got it sorted. not sure how, but managed it.
how to remove the clickability of a card? make card unclickable ?
You can disable some elements by adding tap_action: none but not all. For that you will need a custom card like this: https://github.com/iantrich/restriction-card
Anybody know if there are issues with publishing MQTT events from a cover template? When I watch in dev tools, I see the call service commands from both the cover template and the switch, but the mqtt commands only get published when activating via the switch
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.
How do I disable the default ui-lovelace.yaml dash?
I have seperate dashboards and I want the ui-lovelace.yaml configured one gone.
I don't think you can make it "gone", but you can use it for whatever the first dashboard should be
or, again, if you just want to switch back to storage for the main config, you can just do that
can I get rid of it if it's in storage mode?
it won't be used if you select storage mode. All described here: https://www.home-assistant.io/lovelace/dashboards-and-views/
so yes, you can delete that file if you're not using it
I have read that page thru like five times before asking here xD
I don't care about the file, I just don't want a placeholder dashboard for no reason
are you using storage mode or yaml mode?
yaml mode entirely
that file only matters if your primary mode is yaml
Again, the file is not really the concern, the dashboard itself is.
so, why not use that for the first dashboard rather than trying to get rid of it in favor of some other dashboard file?
the icon on the sidebar?
in the end, each dashboard is just an icon on the sidebar whose content you defined in a YAML file
I'm going to have several dashboards and would like for them to share a folder, especially for importing cards, so I don't constantly have to switch context for relative file paths
It's messier and I don't like mess :D
ok, I don't think you can do what you want.
ui-lovelace.yaml in your /config directory will be the initial dashboard
All of the above, I can do, except for getting rid of the default HA dashboard
show_in_sidebar: false in ui-lovelace "solves" it
It's the entire concept of a non-optional default dashboard I don't like.
It would be much cleaner if I could set a default dashboard and not have this one spoonfed :D
Hiding the icon is just patchy
It's still the default dashboard on all devices that don't change it
I can see that. If there was no "default" and all dashboards were simply specified, it would be cleaner. especially considering that each dashboard is configured separately and can be YAML or storage
Yeah, that's the ideal scenario imho 😃 🙏
Invalid config for [lovelace]: Url path needs to contain a hyphen (-) for dictionary value
Is this to avoid url collisions?
yeah, I remember that come up when the feature came in
basically, to avoid somebody calling it "lovelace" and make the frontend inaccessible
Hello fellow HA enthusiasts!
I want to ask out there if there is anyone who has done a frontend for mobile. I'm pretty sure that someone has made the effort and I'm trying not to reinvent the proverbial wheel. Thanks!
there's Home Assistant Companion and then there's your HA UI in a browser app
@honest estuary Thanks for your suggestion. I use both. Specifically, I'm looking for anyone who has designed a Lovelace frontend that is geared towards mobile. The HA UI in a mobile browser app doesn't look nice. Generally, it does not meet with the SAF (spouse approval factor).
If you're after examples, the forums are probably a better place to find inspiration.
And you can use something like a state-switch card or a few others to change how things are displayed. I have a Mobile and Desktop user, and change some settings based on that
I just switched from the config UI for lovelace to the yaml and all of my custom components I installed with HACS aren't loading. Is there anything I need to do to load them? Do I manually have to add them as resources?
I think the FAQ for HACS is telling me I have to grab the yaml from the "Reinstall" option and put that into my lovelace yaml config
yep, that seems to be exactly it
Once you switch to yaml mode, you have to add resources in the yaml not in the UI
Thanks RobC, I'll try that card and I'll try the forums.
Could someone do me a favor and try going to Configuration -> People, and try changing the name of your primary administrator (likely the one attached to your account) and tell me if it lets you? I can change the name of the other two People, but trying to change my own gives a "Unknown error"
works fine for me. I am now Rob-foo
now I need to change my handle here
I hope this isn't legally binding
Thanks for the check! I get this error 😦 https://hastebin.com/ajijazivos.sql
what if you go to the Users tab there. Does it show that user as Active?
I wonder if it was an old user that wasn't properly updated with new fields at some point
Yeah, it is. And can't be turned off because this is the "Owner" user
Haha, well to close the loop: It's working in 2021.6. Should have tried that first 🙂
what is the best way to organize a frontend for multiple devices? is it best practice to create a new user account for each device style so each gets their own tailored lovelace tabs (ie; one each for mobile view, tablet view ,desktop view)?
i think this is the place to ask, if using trusted_users, do i have to add the entire network range to trusted_networks too?
Configuring integrations is definitely not a frontend topic.
Sorry, i wasnt aure if it was an integration as it was to do with logging in.
Use the card-mod styling with mediaquery
https://imgur.com/a/HXnpOjR
Guys, I'm trying to split part of a lovelace card yaml into a separate yaml file because it's getting too long.
But it doesn't seem to work.
Is it because I'm using UI mode? Does card yaml split only work in yaml/storage mode?
afaik yes
how can I include two sensor yaml files?
instead of putting everything into one big sensor.yaml?
include_dir_merge_list or include_dir_merge_named?
I think since sensor accepts list, you'd want to use include_dir_merge_list.
yeah that did it, thanks
hello lads :)
when did lovelace stop using ui_lovelace.yaml ?
i cant seem to get any custom cards working, whats the right directory to put the card.js files in?
humph! i'll answer my own question then. drop custom lovelace cards into /local/www/ , and in the Manage Resources > Add Resource section of the dashboard, use the url as /local/card.js
and lovelace never stopped using ui-lovelace.yaml, at least for YAML config
eating dinner 🙂
yeah im not sure when the UI editor came to be default, was that recent?
no

it's been a long time
Hello everyone, I would love to do a design like this: https://community-assets.home-assistant.io/original/3X/f/8/f8154458dfff5e8a19e782fcd8c7d895fd7b7de5.jpeg
to display the information of my mercedes, however I do not see how ... Someone could give me some clues (Frontend to use, cards, etc ...) Thanks in advance.
https://www.home-assistant.io/lovelace/logbook/ - anyway for it to only show a specific entry, for example I want to show just ''motion detected'' and none of the motion clear and other stuff - How to remove ''cleared (no motion detected)'' from logbook on motion sensors
I assume the answer might be excluding entries from the logbook itself instead of this card
Wouldn't it be a lot nice if card/badge dialogs would (also) show friendly names instead of just entity_id?
what does it matter if it's in logbook?
I like to have the logbook card on my lovelace
I only want to see motion detected in the list
A filter in logbook card would make more sense then?
Hi not use if this is the correct area to ask this question but is there a way inside a lovelace card (say a button card) where the entity name is a variable pointing somewhere where it can pickup the entity name. Reason why I am asking is I use the smartweather integration and the weather station ID needs to be changed ever so often (not sure why) and I have to go and change the entity ID in all the cards. want to change in one spot and have it picked up in all the cards tks
I'm having issues with my first custom Lovelace card which I installed through HACS. The custom card isn't found so I checked the console and figured that it is trying to load from /hacsfiles/lovelace-auto-entities/auto-entities.js, but URI gives a 404. I checked and can confirm that the file actually exists in config/www/community/lovelace-auto-entities/auto-entities.js. Any idea why the /hacsfiles path doesn't seem to be working?
that's the right place. /hacsfiles is mapped to config/www/community
so restart HA and clear your browser cache
The restart did the trick. Thanks!
I have to keep reminding myself: When in doubt, restart Home Assistant.
you have to restart HA after creating the config/www directory, so that was probably it
how secure is the frontend if i wanted to expose it to the internet (assuming the box it's running on is relatively secure) / what all precautions would I want to take to prevent it from being hacked?
Good password, 2FA, SSL
oh is 2FA an option? good to know
also if i create non-admin users, can I restrict them to certain views or is it easy for them to escape that?
Not with HACS, that only apply to the http integration (the /local) endpoint.
A restart however, requests all resources again when the client reconnects (same as clearing the cache). which is why "a restart works"
Good to know, thanks
Hi everyone, is it possible to have the same header toggle used in an entities card (that turns everything off in one button) on a glance card?? I can't seem to find a way to do it...
It's not exactly the same, but you could group the entities then place a button for that group in the header/footer: https://www.home-assistant.io/lovelace/header-footer/
If you don't mind add-ons then https://github.com/custom-cards/stack-in-card would let you do it.
Oooo that could work, thank you !
"add-on" -> "custom card"
so I'm getting increasingly annoyed by the HA caching. I use HACS and always click the reload option for card updates but it never seems to 'do' anything. When I go back to the lovelace view the old card is still used and I am in the habit of using the dev-tools+empty cache and hard reload+ 2 or 3 CTRL+F5 before the new card is 'live'. Is there anything I can do to stop having to do this all the time?
I also have users using my custom weather card who are having problems caused by this as well so it's not just me...
I wonder if there should be a service to clear out the frontend cache in the browser...
Any ideas why I’m getting this extra spacing? This is a 1 column grid card, and each row is a 5 column grid card. The actual buttons and the labeled “dividers” are all custom button cards. I see no differences in the configs between the ones that display correctly at the top, and the ones with the extra space. Also, the spaces do not appear on my phone, only in my laptop and my 24” wall display. https://imgur.com/gallery/rHnDc81
Here is the card config: https://pastebin.com/cxMStcZa
What I'd wish is for HACS to tag on ?<RANDOM> to the resource URL, and change that after every update...
Hello, let me try this burning question via this discord. Do you have an answer to the question: https://community.home-assistant.io/t/theme-remember-dark-mode-per-user/292831
In other words: how can I set the default theme to dark for all users and/or per user?
Find a theme that's only dark and choose that as the light theme with the frontend.set_stheme service.
You'll still get light maps, though.
I would like to keep the standard theme and only switch to dark always... is that possible?
Or do you happen to know which theme comes closest?
This should be the full diference between the light and dark theme, I believe: https://github.com/home-assistant/frontend/blob/dev/src/resources/styles.ts#L3-L34
Sorry I do not know how to interpret that as a solution for my question ☺️
I don't think there's an easy way to make dark the default...
You could create your own theme with those settings:
my-theme.yaml yaml "my-theme": "primary-background-color": "#111111" "card-background-color": "#1c1c1c" ...etc...
And then install and use that as usual.
Thus I need to crerate a yaml file and place somewhere with the first 2 lines you ave above and the yellow lines from the link?
Thomas, I am so long searching for an answer/solution for this "simple" question :-). I would love it to work...
I am a noob in this. I tried to create in configuration.yaml https://pastebin.com/vrfhRWXg and then selected the them in my user. No change. I also called the service Service set_theme with all settings and nothing happens...
Make sure the users theme is set to "Backend Selected". If that doesn't work, I'm not sure...
not sure what to select in the call service then... till now no difference
and if the user is selected backen selected, where do I selct the self made them to be the backend sected theme? In my case test?
Home Assistant Frontend: Set theme that does it but does not change the colour...
There are 2 issues with doing that;
- It's 1 extra file write PR update
- It will only work in storage mode
If you find both those acceptable, I can certainly implement something
I would be interested to know what reload means when HACS asks and what it does and why it doesn't solve the issue..
Automatic resource management from HACS doesn't work with storage yaml mode anyway, does it?
I thought it was supposed to otherwise why offer the button to do it?
And the extra file write is through two WS calls, right? HA should be able to handle that.
It requests a webpage reload without cache location.reload(true);, if you use https however the serviceworker has it's own caching rules
correct.
it should 🤷♂️
Ok, got it working with "another" theme. One last question... is the service frontend.set_theme persistent over restarts/reboots/etc.?
Thanks Ludeeus that explains it (using https)
Normally that would be enough. But at least the chrome service worker seems to have gotten more agressive about caching lately. It keeps biting me.
I looked into busting that in the past as well, but the implementation in chrome atleast changes too frequent and what works in chrome did not in FF and safari, and it started to feel like a hack so I gave up
It's a bloody pain... users of my card logged a bunch of issues all because of caching... and they swear blind its not that
it's always DNS cahce
Aaaand...... it should really not be needed, since the files are served with instructions to not cache them at all...
But for the past half year or so, chrome atleast ignores that part for pages that uses a serviceworker
Glad to hear someone else noticed. I've been thinking I was going crazy.
with adding ?something if you are running storage mode, I can actually implement cache again for that endpoint so it should be faster to load if it's not upgraded
And cheaper on bandwidth.
that too
My first home automation setup ran on a mobile broadband with strict upload limits, so I try to be very conscious about that sort of thing.. (see existance of that stupid lit-element trick)
Sounds like a plan as long as the user doesn't need to edit it..
it will "break" if the user changes it
How come?
Ah I see so you would store that value and check it..
You could parse it and update... but that's really not worth the trouble.
Hi, does anyone else have the problem that history graphs are not loading after the 2021.6.0 update?
Any yaml experts? ```yaml
sensor:
- platform: template
sensors:
ap3h_aqi:
value_template: ‘{{ state_attr(‘fan.xiaomi_air_purifier’, ‘aqi’ }}’
friendly_name: ‘Air quality index’
units_of_measurement: ‘AQI’
in my main configuration.yaml, getting the error ```
Error loading /config/configuration.yaml: while parsing a block mapping
in "/config/configuration.yaml", line 50, column 9
expected <block end>, but found '<scalar>'
in "/config/configuration.yaml", line 50, column 41
Those curly quotes aren't going to help you... plus you'll want to mix your quotes.
ooh right
HA is seeing this:
‘{{ state_attr(‘
And then anything after the closing quote is garbage.
' and then " inside
you're a legend, thanks. as a programmer in my day job, I'm ashamed I didn't catch that 😛
Can anyone point me at the source for the entities card. I want to change how switches are represented when 'assumed_state' is available / not available. Basically I want to make everything look the same without changing the nature of the switch.
Can anyone help me see what is wrong with my this card_mod entry within a picture elements state_icon card_mod: style: | :host { --icon-color: {{ 'green' if is_state('group.security_sensors', 'off') else 'red' }} . While I am not getting and error and in templates it shows that based on the state of the entity it should be green it; it remains the default color.
groups are still done via yaml, right? there's no "gui" way of doing that?
correct
twf I go to create the group and it already exists 🤦♀️
your past self predicted your future needs 👍
I looked for an existing solution for a while, because frankly, I don't want to make it myself if someone's already made it before. But I'm trying to find a lovelace card that would act as a dumb client-side JS timer with a plus/minus 1 min and a start/stop button. the only really viable solution I see so far is writing my own JS timer as a single webpage and putting it into a web card. Has anyone made this?
I ended up making https://triping.stream/timer/index.html based off https://github.com/flonology/KitchenTimer to fit with the Synthwave theme
trying to do a floorplan but using raytraced models. Harder than expected
cant get the colour overlays to work properly
only works in yaml mode...
can someone explain what badges are supposed to be used for practically with real world examples? i don't quite understand their use or practicality so i disabled them on all views.
how/when elements are used is up to personal taste
where can i find examples?
Example of personal taste? 🤔
yes, examples of use cases.
hello, is there a lovelace card type that will display an entities attribute rather than it's state?
If you want to see other people's dashboards, check the forums. There's an entire section for frontend.
thanks, but it wasn't seeming to work for me. at least, it wasn't supported by the visual editor
type: entities
entities:
- entity: sensor.redfin
name: House
secondary_info: last-updated
attribute: amount_formatted
doesn't seem to work
can scan_interval be set to specific time(s), for instance everyday at 01:00 pm?
I just linked you to the entity card, not entities. If you want it in the entities card, again, check the docs. https://www.home-assistant.io/lovelace/entities/#attribute
ah, sorry. i didn't realize there was a difference. thanks
the entity card is actually what i was looking for anyway. cheers
Hey team. I had to clear Chrome history, and it's asking me to login to Home assistant. The problem is none of my passwords of standard usernames are working.
is the user name usually an email address?
no
What a nightmare :/
if you can get to the console (monitor/keyboard), you can go to /mnt/data/supervisor/homeassistant/.storage and type grep username auth
or just go through the options at that link
assuming HA OS
Why is there no recover password option.. I feel like there must have been some sort of strange password convention that I had to use, and now don't know it.
I have it running on a Pi
then you can do what I suggested
Is there a way to tell HA that incoming sensor data units is C and not F and let it get converted?
try setting a unit_of_measurement: °C
I do that in my custom_component, and it gets automagically flipped/converted to unit_of_measurement: °F
ok. thanks.
Is it possible to have one UI controlled dashboard and another that is only YAML configured?
good plan. I did everything but that
I was already on the right page and skipped right over:
You can also add YAML dashboards when your main dashboard is UI configured
Yeah, I pointed you to the docs because it answers your question quite directly 🙂
indeed it does
hey all I have a buggy thing in the App on my iphone - where would someone ask about that on discord?
I swear - sometimes i feel like you guys make the channel when I ask 🙂
right
I have a view - and when I moved to it the view is clearly selected on my iphone - but it doesn't refresh the panel to the correct view
its not reproducible unfortunately
Channels and topics have been stable for quite a while
Unfortunately not much to do if you can’t repro it. If you can repro it in safari as well as the app, it’s probably a mobile issue for #frontend-archived
yeah
well its when I need to open the garage door and someone is standing there - that the page doesn't load properly 🙂
hours of trial and error can often save you 5min of reading docs lol
Amen
Lol
I have a quick question. I'm using the platform: command_line so that I can find out if my arr servers front ends are available. I have it showing Online vs Offline. What I'd like to have is a custom icon for that sensor that gets created. How do I do this? I am having trouble with what I've found online.
Now actually I'm curious if I can even get a little fancier. Can I have the icon change as well based off if the returned value is Online or Offline. Heres my current code block ``` - platform: command_line
name: 'Sonarr Online'
command: response=$(curl -LIk -m 3 http://sonarr:8989 -o /dev/null -w "%{http_code}\n" -s); test "$response" -ge 200 && echo "Online" || echo "Offline"
scan_interval: 90
value_template: '{{ value }}'
Would I do that within the value template?
You can’t do it there
If you want it to change based on state, you’ll need to use a card that supports templates
Ahh, ok so I also was reading this and currently I'm using default_config at the top, my guess is just switching it out but is that going to cause any other issues? Whats the flip of that?
or I'm sorry I just need to add that
Ok, yea that's what I thought.
I thought I read something it was homeassistant: or default_config only but I might of misread what I saw
nope
Anybody know how to add something to the sidebar that's not localhost and have it passed through the nabu casa proxy? I've setup Frigate and it worked ok, but the HA machine doesn't really have enough power so I moved frigate to a different machine. Everthing seems to work fine, but it would be nice to access the frigate UI remotely.
You can’t
So i added ```# Home Assistant Settings
homeassistant:
customize:
# Add an entry for each entity that you want to overwrite.
sensor.sonarr_online:
entity_picture: /images/sonarr.png
friendly_name: SonarrStatus
sensor.radarr_online:
entity_picture: /images/radarr.png
friendly_name: RadarrStatus
sensor.lidarr_online:
entitiy_picture: /images/lidarr.png
friendly_name: LidarrStatus
and I get ```Invalid config for [sensor.command_line]: [max] is an invalid option for [sensor.command_line]. Check: sensor.command_line->max. (See ?, line ?).```
Any idea what the limitation is?
hmmm, that seems like a weird limitation. I mean it seems like I should be able to start an SSH tunnel with a port forward locally. Especially of the addon is installed but not running on "localhost"
It just wasn’t designed that way
Set up a reverse proxy and SSL and you can do whatever you want
Or use a VPN, like WireGuard. There’s even an addon
yeah, i know I just prefer it to "just work" in the app without an extra thing I have to keep track of on the phone
i've run vpn on mobile before but it gets annoying when your cell service is spotty
i appreciate the info though
was hopping there was just a config file that could get localhost switched to xxx.xxx.xxx.xxx:
I just stopped using NC and I use a reverse proxy now
NC is a very specific tunnel, not general purpose
So what about custom destinations on the sidebar locally?
thanks!
Hey Rob, what about that error I showed when I tried to do the customize thing
You have ‘max’ in your command line sensor and that’s not an option?
It tells you what to look for
I dont have max though my sensor is setup via - platform: command_line name: 'Sonarr Online' command: response=$(curl -LIk -m 3 http://sonarr:8989 -o /dev/null -w "%{http_code}\n" -s); test "$response" -ge 200 && echo "Online" || echo "Offline" scan_interval: 90 value_template: '{{ value }}'
I did, says max is not a config but I dont have max set anywhere hence my confusion. I'll dig then.
just a wild guess but is that what the "-m 3" is?
yea,I was just thinking the same thing. Took it out and it works. Now I just wanna do the if offline change to a different icon but that MAY need to just wait
@wary yacht This is the place to ask
Ok 🙂 So: Is there any way to hide 3 dots menu (upper right corner) f.ex. by using card-mod? I tried to do that but without any success. EDIT: Solved. I used Kiosk-mode with my change in .js file. I also made pull request with this new option, so maybe @warm oak will merge it to new version.
Can we place tts within an entities card? I seem to be getting an error. I wanna combined a couple things into one card. I tried the following code
entities:
- entity: media_player.living_room_speaker
icon: mdi:google-home
- entity: input_select.radio_station
icon: mdi:speaker-wireless
- entity: script.radio_lr
icon: mdi:play
tts:
platform: google
view_layout:
column: 3
``` is another way I tried it but it didn't seem to matter.
I tried placing the tts block under the entity itself as well.
Hey guys,
I hope i am in the right channel for my question.
I insert four button-cards in the grid-card (2 columns) and for now i have got a little space at the left side and a larger space on the right side (margin?).
Do you have an suggestion for me, how I could "center" the four cards?
@vapid field Your message has been deleted as it contains a link or a domain name 'pasteboard_dot_co' that is on the blocked list because of: 'Virus detected!'.
Please re-post by removing/changing the domain name/link. Your original message has been DM'ed to you.
You will need to use card-mod to aply a css centre style to the card contents. https://github.com/thomasloven/lovelace-card-mod
I think this is a frontend question - is there any way to disable scene activation when editing? I'm still tweaking my scenes but I don't like that going into the edit screen full-on shuts down my devices..
Nope.
Unless you want to write them in YAML.
There's a feature request for this you can vote for here https://community.home-assistant.io/t/improve-scene-editor-allow-scene-edits-without-setting-devices-states/151053
If my thermostat is incrementing in 0.1 increments that means it thinks its in C not F? How do I fix that?
Oh that looks cool! I don't know the syntax well enough to confidently write them in YAML
I have set unit_system: imperial already from some time. in configuration.yaml
If you are running hassos, I will be adding a proxy addon for this purpose in the future.
I think someone tagged me and deleted their message. But am I right that I can't put a TTS option in an entities group?
Groups can be turned on and off, so TTS doesn’t seem possible there. A script that calls it could be
and yaml tts: platform: google
is for backend configuration of a tts service.
Oh, didn’t see what channel this was in 🙂
I suppose what you want is to have the input box for the TTS text to be visible in a card?
That's not possible right off, but you can make two rows with an input-text entity and a service call button, and then make a script to pass the value of the input on to your tts service.
ahhh. So right now I have a card that uses artwork: cover entity: media_player.living_room_speaker hide: power_state: false source: true volume: false icon: mdi:google-home tts: platform: google type: custom:mini-media-player and I get the line to send it. I was hoping to combine that with a card I made that has a drop down for an internet radio stream as an all in 1 speaker card.
Ok. Then that's a special function of the mini-media-player card specifically.
You could try a stack-in-card card to turn your mini-media-player card and an entities card with only the dropdown into one: https://github.com/custom-cards/stack-in-card
That could work.
Oohhhh thats a good idea. I also was doing that way to late last night and thats why I figured wait until the morning to do so lol.
I'll give that a go in a moment here.
@polar kelp that stacked card worked beautiful sir.
Is there a way to trace scripts like you can with automations? Am I missing something here?
No there isn't.
you can turn a script into an automation temporarily, I suppose, by calling teh script in the action
That will just show as one service call won't it?
maybe. so you'd need to extract the sequence and put it in the action
it is a curious limitation that should probably be "fixed" (by adding a feature)
Can you not use attributes in an entities card? With an Entity card I can but not entities but I want to show the attribute of an entity in the entities card. I like the layout of the entities card.
