#frontend-archived
1 messages · Page 202 of 1
Thx. Wanted try to avoid one more custom integration, but what to do, life's go on :). Will try this later, my working hours started now, thank you very much.
Hi Y'all! Is this the right channel for a reverse proxy question? I can also post it in #ios_and_mac-archived since I have a problem loading the frontend in the app. I don't think it is ios related, but reverse proxy. The point is as follows: on laptop HA loads fine with local url AND with duckdns url. So the reverse proxy is setup fine and xforwardfor and trusted proxies must be correct, right? In the ios app, the local url loads fine but the duckdns url doesn't load after login... I suspect it is because of strict content security police rules I have: Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'self';" always;
But it has to at least be something that is different with the app than with the browser frontend. Any ideas?
I tested it with leaving out content security policy headers and now the app works. So what should I allow to have it work properly? It is important for security to set strict CSP rules, so I can't just leave it like this.
The http integration is a topic for #integrations-archived. But since you've already solved it, you can leave it alone now. Don't worry about CSP, since your HA server isn't exactly going to be a big target for hackers 😉
well, that's not how I like to approach security :-p
🤷♂️
Security is about risk vs effort. There's no risk, so you should spend no effort on it.
If you have HTTPS and you don't go advertising your domain to potential attackers, you're good.
It doesn't have to be iron clad but getting a good score on ssllabs and securityheaders.com is default practice. Content-Security-Policy is part of that. Plus with so many people using HA from behind a reverse proxy it makes sense that we as a community know the right policy for it. Once it works I'd be happy to contribute a page for the HA docs
anyone else seeing 'RangeError: currency is not a well-formed currency code' in Inspector? could that be caused by €/kWh instead of EUR/kWh
probably.... while above error was in Safari, Chrome says: Invalid currency code : â¬/kWh at new NumberFormat
There’s a link in
-> General that explains the values
yes, it says EUR, but EUR/kWh looks really ugly in the frontend as unit on an entity. Ive just asked if we are allowed to PR that to €/kWh in #devs_energy-archived .which does work in energy: panel so no issue there
but wait, having changed those to the prescribed EUR/kWh and EUR/m³ the errors still persist....
That error is because you have a sensor with device class monetary, but not a ISO 4217 UOM https://developers.home-assistant.io/docs/core/entity/sensor#available-device-classes
seems a bug?
EUR/kWh should not have device class monetary
ok now you officially lost me 😉 .... the entities used for the tariffs, should be using the EUR/kWh unit, and no device_class?
ok error gone, thanks. as you are using the ISO 4217, I guess my request for PR'ing to the € sign is not acceptable? (would be a nice touch though if we could use/see the currency sign/symbol instead of the code in the frontend)
Quick suggestion for you guys. Instead of just saying "turned on by supervisor" in the logs, it would be nice if it said the name of the automation such as "Turned on by automation-motion lights"
It does tell you when it knows: https://i.imgur.com/ETaAwBV.png
It does, frontend will show the sign if you use the ISO and device class monetary
Ha yes, but not on the tariff sensors because of the above requirements..btw, just to be sure: I am not talking about the icon , but about the sign in the unit
is browsermod supposed to work with instances of the Mobile companion app? I created a test button to make a popup, and for some reason it works on the Android app on my phone! ...but it doesn't do anything on my FireHD tablet :/. It DOES work in a browser (Fully Kiosk), but I'd really rather use the app. Does anybody know if there's a trick to making this work?
Did I enable a sensor on my phone that lets this work or something?
Ah nevermind - in case anyone else is wondering, clearing the data and cache on the android app fixes this. Yay! Mobile App works just like a browser now 🙂
@stone plaza just curious about your use case for this? browser mod seems super useful but above my head for what it can do 😅
browser mod is just the only plugin that seems to be able to trigger a popup remotely
@hallow mango I'm gonna use it to build a doorbell system 🤓
basically popping up the doorbell cam on a dedicated tablet when it rings
how can i get an !include in my lovelace.yaml ?
thanks
Hi, I don't know if I'm posting in the right thread or not but I'd like to follow cover events but they do not appear in the list of available event of dev tools/events.
Actually, my covers behave wiredly if I use them from node_red while they work just fine from the cover card
i'm wondering if the cover card uses cover.open_cover or cover.open_cover_tilt for instance
Those are not events
that still doesn't let us use secrets does it?
Oh
Those are services, and the event is call_service
Okay, thanks
I don’t think so
But this event does not appear in the list of available events of the event listener
The events down the side are the ones with active listeners. There are many unlisted events.
Yes, they are #integrations-archived
Thank you very much. Have a nice evening guys.
Hi there, hope this is the right place. I have noticed that since a recent update when i sue the Picture Entity and try to use Aspect Ration, it is cropping the image instead of constraining it like it used to, any thoughts or fixes?
Anyone know anything about this? https://github.com/home-assistant/frontend/issues/9954
@hazy shard have you tried using initial_view: list?
That was it, thank you so so much!
yep, and fwiw I can replicate
using listWeek makes it start yesterday (Sunday), but using list makes it start today
you know... I think someone else was asking about this
oh it was you lmao
figured it out by looking here: https://github.com/home-assistant/frontend/pull/7541
but it looks like the UI editor for that card says "List" but still fills in listWeek
does anyone else have any issues with the thermostat buttons taking two presses to do anything? i have an ecobee and if i hit the heat/cool/off buttons on the thermostat card, i have to hit them a second time to get them to take...if i click the three dots and change the mode / temp that way, they stick on the first try
it's more that the display doesn't update....if i watch the ecobee app, i can see the mode / temp change on the first press...but the HA display doesn't update
Wait. The polling interval for the status update is probably 10 sec.
i have tried that. i'm waiting way longer than 10 sec
right now i'm on probably 90 sec or so and it still hasn't changed
it did finally update after about 4 or 5 minutes
Sounds more like an issue with the ecobee integration than the thermostat card. #integrations-archived
i had posted there but nobody answered...i'll try there again
Be patient. Wait until someone who knows about that integration is around.
Fixed it! Found out that 1. the app uses the safari engine so issue can be reproduced in mac os safari browser 2. the content-security-policy is checked more strict on mac browsers and requires to allow the websocket url in the connect-src. As logged in this issue: https://github.com/home-assistant/iOS/issues/106
ALL web-based apps on iOS uses the safari engine. Including "browsers" like chrome and opera, because Apple...
yeah makes complete sense, just didn't think about it. Was looking for ways to debug, because of course an app lacks detailed logging. But being able to finally reproduce with mac os safari browser was great 👍
After that it was a 2 minute fix 🙂
Good. In the few cases the behavior differs, btw, you can attach the macOS Safari console and debugger to your phones Safari if you connect it via USB.
wow, great tip thanks!
It has the added benefit of making you feel like some kind of Hollywood Hacker.
Hahaha, it does doesn't it. Btw, I could write up something on a quite secure nginx reverse proxy config. (A+ on SSL Labs, A on security headers.com) to add to HA docs if that would be nice?
That sounds like the sort of thing that would go in the Community Guides https://community.home-assistant.io/c/community-guides/51
Interesting to see quite some docs there which didn't turn up with searches on duckduckgo or google
thanks for the tips and big thanks for your custom lovelace cards too! Love em!
hi guys, every 2-3 days i find my lovelace UI is unreachable .... both from dns and from local ip address ... am running home assistant os on rpi 4
when i use a ping test to my local ip i do get some response... ssh is also not working
any assistance on how can i debug it more?
i tried to restart my pi4 physically and looking in home-assistant.log but no luck yet
seem to remember an earlier discussion on action for the Markdown card, but still not allowed? https://www.home-assistant.io/lovelace/markdown/
would love to navigate from my z-wave markdown overview to the devices page for the z-wave integration.. speaking of which, is it correct the navigation_path for that is in this form: https://mydomain/config/devices/dashboard?historyBack=1&config_entry=62213aa5a398677a26e1a3354a861183 ....
So it has nothing to do with frontend then. See your installation channel for more help with figuring out why the entire thing is inaccessible.
sure, thanks for your reply
Is there any trick in making the statistics card work with MQTT sensors?
It tells you in the docs: https://www.home-assistant.io/lovelace/statistics-graph/
The tl;dr is that it needs the relevant state_class.
Thanks. Might be an idea to put it in the card documentation tho, instead of two levels linked into developer documentation.
You're welcome to submit changes to the docs if you have suggestions for improvements.
Hi I've just asked about this in templates but i now have a sensor which has an image url as the state https://hastebin.com/upolalajuz.kotlin so how do i get to see an image in the front end that's loaded from that url? I thought this might be better asked in frontend
I made the MQTT sensors work by adding a homeassistant: subsection with a state_class: 'measurement' entry per known device entry in zigbee2mqtt's devices.yaml.
Just powered up my charger for my EV is there any prebuilt tracker that can pull in local gas prices and convert my electric vs gas mpg and display a ticker of how much I have saved not using gas? Like if it costs me .048 per mile ev vs .10 on gas right now with gas being $3 but have it dynamic based on now gas prices. I want to track my ROI by going electric. I don't really want to build all the templates and such if someone already has one made.
got whats-up-docker setup in mqtt, how do i display sensor attributes in lovelace again ?
Is it possible to make a picture-entity show the picture with saturation 0.0 without using state_filter? As the state can be so many different value. I want it saturationed 0 all the time.
@hazy shard I made a PR to fix the editor for calendar card and updated the docs to reflect list instead of listWeek 😉
i like the new statistics graph, but it doesn't let me aggregate data over multiple days. I'm looking for "ok, over 1 week, what was the average luminosity of the dining room throughout the day?"
is there something like that?
Sure, Grafana.
do i need to use influx to get the kind of data i want?
i'm currently using the MariaDB addon
#analytics-archived can answer that.
does someone in here have this lovelace up and running ?
https://community.home-assistant.io/t/floorplan-ui-with-color-synced-lights/169417
Many people have variations of that kinda stuff. What's your question?
i dont get the floorplan displayed and the "all devices" menu is missing, but thats the smaller problem
So...
- what did you do?
- what are you seeing?
- what's in the logs/console?
If you don't provide information, no-one can help you fix it.
sorry mono , you're right. as soon as i click on the control room/floorplan menu its blank . the other menus are working.
console says something about the config-template-card and the button entity-row.
Keep sharing. Where's your config?
Give as much information as needed. If it's not important, people can ignore it. If you withhold it, they have to keep asking you for more.
this is my lovelace file
its more or less a copy from luke
i just changed all the entities
just to get a starting point, and then i would adjust the needed stuff
and this is the config.yaml part for lovelace
https://www.hastebin.com/zoqecahaco.yaml
button-entity-row error
https://ibb.co/VD67053
no idea ? or did i miss something ?
@trail frigate People (and other sentient or vaguely intelligent beings) aren't waiting here for your questions, ready to leap upon them the moment they appear. Have a little patience. Keep in mind that repeatedly posting to get attention is against the rules (flooding) and can get you muted or banned.
i have patience 🙂 here is a full screenshot of the blank page and my console
https://ibb.co/ThFqSLk
OMG i found the error. i had light.schreibtisch and light.schreibtisch_lampe in the same definition , now its working , whoop whoop
somehow i can't !include the button_card_templates.yaml
i did this for now
title: RiotMode
button_card_templates: !include button_card_templates.yaml
views:```
how would i install a loveface ui? (https://community.home-assistant.io/t/a-different-take-on-designing-a-lovelace-ui/162594/174)
you need to copy the whole github stuff (or most of them) and edit it with your entities etc. ( i would make a backup / clone ) before you start
Where can i find all the different animations for Icons ? or is it just rotating ?
Is your Lovelace config set up in YAML mode? It doesn’t look like it
Should the statistics graph card be able to chart negative values? Just to try it out, I'm charting the sun's elevation but the card seems to discard any negative data points, resulting in this: https://i.imgur.com/lIMT1d9.png
The underlying sensor's history does indeed have the proper negative values.
I'm guessing yes it should be able to.
Freezer temperature would be a good example where it would be required.
is there any better way of achieving this? it loads a weather symbol from the value for sensor.symbol. https://hastebin.com/lurecejiwo.less
yeah it is.
lovelace:
mode: yaml
dashboards:
lovelace-desktop:
mode: yaml
filename: ui-lovelace.yaml
title: Desktop
icon: mdi:monitor
show_in_sidebar: true
and this is my config:
button_card_templates: !include button_card_templates.yaml
title: RiotMode
views:
but i still get errors on the page https://ibb.co/5Mj8GDd
Hi all, i know it's not possible to use an !include as a root option in the configuration.yaml, but i was wondering how you managed merging configurations
check this out
Maybe my question is in the wrong channel, it's not really a Lovelace question. I'm wondering if there was something like the following: instead of using vacuum: !include vacuum.yaml
I want to use the following:
!include vacuum.yaml
And then change the vacuum.yaml with the root node vacuum
I want my configuration.yaml as empty as can be, just including other files
Oh, have I got the thing for you...
As you say, this has nothing at all to do with the #frontend-archived, but https://www.home-assistant.io/docs/configuration/packages/
Your configuration.yaml could be ```yaml
homeassistant:
packages: !include_dir_named packages
default_config:```
Hi all! I am trying to use a lovelace picture card as a button, to turn on an input_boolean, through a "call service". On tap, I get an error: failed to call service input booelan expected str. any ideas?
type: picture
tap_action:
action: call-service
service: input_boolean.turn_on
service_data:
entity: input_boolean.receiver_napster
target: {}
hold_action:
action: none
image: /local/napster_lgo.jpg
error message: Failed to call service input_boolean/turn_on. Extra keys not allowed @ data['entity']
try:
service_data: entity_id:
Three backticks for multi-line code snippets.
i want to have a picture-glance card in a lovelace page, but somehow its not working
- title: Doorbird
icon: 'mdi:lock'
panel: true
badges: []
cards:
- elements:
- type: picture-glance
title: Haustür
entities:
- entity: switch.doorbird_haustur_ir
- entity: switch.doorbird_haustur_relay_1
camera_image: camera.doorbird_haustur_live
camera_view: live
remove -elements: and un-indent everything below to the correct level
assuming there isn't more to your config that you're not showing...
there is a lot more, jusst wanted to focus on that part
( its the lovelace from luke )
the custom weather card is working here, but i want to change it to a glance card
https://www.hastebin.com/yuhufudeko.yaml
don't know if this belongs to frontend, but is it normal that the energy tab is not calculating the cost, even though I specified the electricity price?
The rest is commented out so it doesn't matter. Ian is still right
oh, down there. Thanks
okay, i try it again. i want the glance card in and the weather-card out (commented out for you)
https://www.hastebin.com/yuyofegeno.yaml
remove -elements: and un-indent everything below to the correct level
you're trying to put a card in a picture-elements
that won't work without some hackery if that is indeed what you want
Oh. It was aaaaaaall the way down there...
I had a sneaking suspicion 🙂
un-indent = remove the "-" right ? sorry i'm a beginner and not native english 🙂
do you want this glance card inside your picture-elements card?
or do you just want it on the page?
i just want the glance card on the right side instead of the weather card, and later i want to add 2 other glance cards ( last ring / last motion )
try changing it to custom:hui-picture-glance-card
no luck 😦
What exactly does "not working" mean?
Then picture-glance is lazy loaded. You'll need to use this: https://github.com/thomasloven/lovelace-hui-element
i.e. you're trying to do something that is not supported and therefore will have to use workarounds that will potentially break later on
okay i think it has something todo with lazy loading, yes. some strange things happening here ^^
on the left is my result after a page refresh. but when i click on "geräte/devices" (homekit-cards) and click on my camera to make it bigger and get back to "haustür/frontdoor" i see it as i want it, (right side on the screenshot)
https://ibb.co/Dt5Py3j
after i click on my camera here , the glance card works in "haustür"
https://ibb.co/7ngfyNt
thanks guys, that helped
I have a question and not sure if this is the right channel...but if I wanted query the source_list of a media player how would I do that with the websocket api or is that a rest api thing? I'm trying to programmatically select sources by having different buttons for them on my custom front end
Why would you need REST or WS to get something HA already knows?
because I'm not using HA
I'm using my own front end
written with openFrameworks
interfacing with HA through REST api and Websockets
You should've led with that.
'I'm trying to programmatically select sources by having different buttons for them on my custom front end'
Most people would consider their Lovelace frontends 'custom'. But to answer your question... you can possibly get that information from the registry but it's not a topic for this channel. #general-archived is probably best.
The code's public if you want to see how. I would guess websockets.
yeah I've been searching on the github but haven't found the spot
'states.media_player.entity_id.attributes.source_list'
so is in the states
Sure... which can be retrieved via REST or WS... take this to #general-archived please.
why is making a complex interface require you to be a programmer
I mean I want to make a view that has three cards
and then below it I want another three cards on the same row to span all three
like fixed height - like a legit grid
but this nesting bullshit is killing me
Just do a grid card in a panel view. e.g.
title: Home Assistant
views:
- icon: hass:home-assistant
id: home
title: Home
panel: true
cards:
- type: grid
cards:
- type: thermostat
entity: climate.upstairs
- type: thermostat
entity: climate.upstairs
etc
if only there was an easy way to make a single dashboard look good on both mobile and desktop (or portrait/landscape)
It's pretty easy to do a grid just fill it with buttons so you get the layout you want and then you start replacing the buttons with the panels you made with your intended content and less is more only have what needs to be on a page and use nav buttons ... it's probably a cluttered page if you have to scroll the content
Hi. I'm trying to create a history graph of device network traffic. I already have the history graph for this but want to flip the download to use negative values such that the download graph line is below the X axis. Is there a way to template this in the card or do I have to create a template sensor like download_negative?
Yes its too much shit 🙂
It's... easy.
There are lots of examples that other people have shared if you want a template to copy from.
Sure. Here, the forums, Google.
But you've been given a solution to your immediate question already. Grid card makes it simple to achieve what you want.
teag
yeah can you merge columns?
in one row?
the problem with grids besides what I just asked is that you have make card on card on cards. Its complex - unnecessarily
Except it's not unnecessary. How else do you define nested layouts?
it shouldn't require recoding
Try drawing a wireframe of your intended layout without having boxes inside other boxes.
i understand and agree in theory it makes sense
working with that layout - is complex
Sure...
you can't easily extract cards without reformating txt
its ok
we don't have to agree
perhaps its just easier for you
Of course you can. Use YAML anchors.
Fortunately, Google knows everything, you just have to ask it.
In YAML mode, sure. Just don't complain that you have to edit text 😉
Well, yes... either settle for Lovelace-generated stuff or go full YAML.
Both have their advantages.
I don't know what I use now - probably lovelace generated
theres not a good set of demo sites btw
like a gallery of them
here, forums and reddit isn't great
i promise 😉
that's true ^ googling around for Lovelace examples/inspiration usually gets a few of the same posts, which are either a few pictures with no explanation or an entire HA config, which looks nice, but is very difficult to adapt to your own
@tame shale if you don't wanna edit yaml, you probably shouldn't use HA 😅
this guy puts together a grid dashboard pretty simply: https://youtu.be/5y6rhwr5Y8c
everyone loves this video
where is Zack
is he on here?
unfortunately people dont' live in homes with 3 rooms with one light switch in each
🙄
the idea of the video is to give you a basis to build upon, not a complete solution
@tame shale don't really know what you're looking for here lol
the problem is that it beautiful - its like a staged home. Looks nice, isn't practical
thats the problem with youtube and instagram
rainbows and fairytales
Works great for my home. You just have to do some thinking and planning.
with this example, how do you make a card span multiple columns?
i don't see anything in the doc: https://www.home-assistant.io/lovelace/grid/
ah nested grids
@tame shale you want something like this? https://imgur.com/6F1tNCO
right - in that example on the youtube he clearly combined cells if we talk like we are in excel 🙂
but then nesting just adds to the super level of complexity.
its not like its hard its just daunting and when you want to change something its like holy crap get out my miners cap and light and we can dig in 🙂
I am looking for a really good interface for my house - obviously
You could give his drag/drop layout a try; not sure what state of usability it is in currently https://github.com/zsarnett/Custom-Grid-View
he nested them if you watch
right i figured he did
not combined like excel
@mild veldt I didn't realize that was a thing 🤔 hasn't been touched in 9 months though almost lol
this is a vertical-stack with two cards: one grid of three cards, and an entity card
you actually wouldn't even need the grid there, because they're all in a row, you could just use a horizontal-stack. nice thing about the grid is it makes them square, if that's the look you want
I don't really use the "grid card in panel mode" approach because it doesn't scale well from desktop to mobile
That doesn't mean it doesn't work. That being said, I know Zack has taken on a lot more responsibility at his day job and doesn't have as much time to devote to HA
agreed
I'd seen his video on the drag and drop but I didn't realize it was a card he made
Hi there, hope this is the right place. I have noticed that since a recent update when i sue the Picture Entity and try to use Aspect Ration, it is cropping the image instead of constraining it like it used to, any thoughts or fixes?
Hi, is there any one here that can help with the Picture Entity?
Can anyone see what i'm doing wrong here? My sensor just keeps the deviceID instead of changing the name to chrome...
I think if anyone knew they'd have answered you @tropic yew
devices:
f4b98f26-a979xxxx:
name: chrome```
@sly pulsar https://github.com/thomasloven/hass-browser_mod
@hallow mango maybe someone could test square image and set the ration to 16:9 to see if it it is doing the same thing? I dont know how to put it to the developers as a bug
there's a bit about changing deviceid
@tropic yew I do have the same thing
I noticed it the other day
Thanks. I did exactly what the guide/doc says but it's just not changing?
Hope anyone can see whats wrong in my config. 🙂
well your config looks right
I think the device id doesn't change to chrome
that's just an alias
testing another name. 🙂
what's not working? why do you need to change the device id?
@hallow mango found someone with he same problem
https://github.com/home-assistant/frontend/issues/9986
Thanks for pointing me in the right direction, I can now wait for it to be fixed instead of pulling my hair out thinking it was just me
Because i have different ID's for different devices and it's hard to remember which device have which ID.
Changed to another name but it still shows sensor.xxxxx_xxxxx instead of sensor.chrome etc...
so change the entity id
Will that work you think?
yeah
Testing...
Entity is changed indeed but now i still need to use the device_id to get it working in my lovelace, but maybe that's normal behaviour...
can you filter by entity type in auto-entities?
media_player. ?
domain:
- domain: 'media_player'
title: Unavailable Entities
type: entities
filter:
include:
- state: unavailable
exclude:
- name: Power*
- name: '* Echo*'
- name: '* Fire*'
- name: '* Timer*'
- name: '* shuffle*'
- name: '* repeat*'
- domain: 'media_player'
show_empty: false
type: custom:auto-entities```
filter:
template: A jinja2 template evaluating to a list of entries to include
Use a filter.
Templates are more powerful than just giving globs.
yeah you can include where entity id is media_player.*
you can't use the "chrome" alias you set?
Yep that’s true. Also tried my name but same problem. The entity just keeps the ID, so sensor.xxxxx_xxxxx
you change the entity id to whatever you want
then use "chrome" in lovelace
my hacs is acting up atm, let me do an example though
hold
What? 🤔
Don't claim something doesn't work. If you don't know how to make something work, ask (in this case, over in #templates-archived )
Please use a code share site to share code or logs, for example:
- https://www.codepile.net/ (select YAML as the language)
- https://paste.debian.net/ (select YAML as the language)
- https://hastebin.com/ (sometimes may not allow you to save)
Please don't use Pastebin, since it can randomly add spaces to the main view.
i added browser mod in hacs, restarted, added the browser_mod: line in my config, restarted, then looked for the entities (in order to find my device id), and then added the alias lines to my config before restarting once more
the entity ids didn't change by themselves, but the device name did
and actually, changing the device name (with the little pencil) will automatically offer to change the entities to match
after that, i can call services using either the alias or the device id
this is actually pretty damn neat 😅
Ok going to try it out, thanks allot for the testing! 🙂
- template: {{ expand(states) | rejectattr('domain', 'eq','media_player') | map(attribute="entity_id") | list }}
thats all I gots
Because you're doing it wrong.
yes
Look at the docs. There's an example.
i know 🙂
card:
type: entities
filter:
template: |
{% for light in states.light %}
{% if light.state == "on" %}
{{ light.entity_id}},
{% endif %}
{% endfor %}```
.share the whole config for that card.
Please use a code share site to share code or logs, for example:
- https://www.codepile.net/ (select YAML as the language)
- https://paste.debian.net/ (select YAML as the language)
- https://hastebin.com/ (sometimes may not allow you to save)
Please don't use Pastebin, since it can randomly add spaces to the main view.
@tame shale posted a code wall, it is moved here --> https://hastebin.com/webuzexobu
ohg god
@tame shale 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://www.codepile.net/ (pick YAML for the language) or https://paste.debian.net/ (pick YAML for the language).
@tame shale posted a code wall, it is moved here --> https://hastebin.com/heyuqupabe
FFS...
Don't repeatedly spam. Once is enough.
And you still aren't following the example.
template: <your template here>```
The example you pasted doesn't work. It just doesn't fail YAML validation.
I see
It's valid YAML... but it's not what the card understands.
Hi guys ! I'm kind of getting crazy with home assistant. Quick sum up : I've got a tech background, I have been trying HA for a few months but it keep "dying" after a few days and last words are : "Unable to connect to Home Assistant.". It get me crazy because I love it, setup was a piece of cake, and I've been able to add my NAS, my TV, my Nest things, my 50 shellys, and many other. I've set up mariaDB, Graphana, Samba Backup, a reverse proxy on my NAS to reach it from outside, SSL, double auth... At first I build it as a virtual machine on my Synology. But when it die, I'm stuck outside of it : no samba/ssh or anything. So I bought a NUC, thinking that at least, I would be able to plugin a screen and a keyboard to investigate it. I get it back online with a backup and it runs for several days... but now I'm stuck outside again with a nice "Unable to connect to Home Assistant.". Any help would be gladly appreciated to understand how such a thing can happen. I'm still able to access the command line with a good old keyboard and screen.
(sorry for the wrong spelling, english isn't my first language, I'm trying my best 🙂 )
Unable to connect to Home Assistant
How are you trying to connect? Locally? From the internet? HTTP or HTTPS?
HTTPS, with the local ip address or the outside url
And when it stops, the IP address doesn't work?
From the link you just shared privately, it looks like the problem could be with your reverse proxy. What happens when you try the internal IP?
ERR_CONNECTION_TIMED_OUT
So the local IP address doesn't work
It's interesting because I get different result through the outside url and the internal IP address
Timed out is weird...
Which is confusing because I would think that I would be bypassing the reverse proxy with internal IP
.share the http section of your configuration.yaml
Please use a code share site to share code or logs, for example:
- https://www.codepile.net/ (select YAML as the language)
- https://paste.debian.net/ (select YAML as the language)
- https://hastebin.com/ (sometimes may not allow you to save)
Please don't use Pastebin, since it can randomly add spaces to the main view.
How can I reach it through command line ? I tried basic linux commands (cd, ls, less, cat...) but it doesn't work
I have the "ha >" prompt
Wait, I just realised that I have it in samba backup
You could check the logs to see if you were IP banned. The rest looks okay.
We should probably move to #integrations-archived too, this channel is for the UI.
I wasn't sure where to go, let's move to #integrations-archived
how can i make the "homekit-card" more or less responsive ? or that button-cards get smaller or i don't know, i need a good idea 🙂
left = how it should be / right = on a small device, problem.
https://ibb.co/GRSGwL9
More responsive how? How would you prefer they look?
it would be great, if i can use the same layout on an iphone (landscape mode) , but just smaller, or i don't know, need a good idea here
The problem with making things smaller is that you can't just scale everything. If you made everything 50% of the size, the text would also be tiny.
Desktop and mobile often have very different designs for the same site, simply because of the way they're used.
yeah, but better tiny, than not useable or so
A lot of people end up with a mobile dash and a desktop dash.
yeah, i think i will go the same route
There are probably lots of good examples on the forums.
don't know if correct here, sorry for that.
i created a popup-folder in config/myfolder/popups
i pressed every button to reload config, but the popup is not updating?
I am in of some help. Keep in mind I am a rookie at this but I have an error that keeps showing in the log file and I do not know how to correct. I have googled it and they said to you have to change/update the file. The problem is I do not know what file I need to update. Here is the error can someone help this rookie
Logger: homeassistant.components.mqtt.light.schema_basic
Source: helpers/config_validation.py:761
Integration: MQTT (documentation, issues)
First occurred: 8:22:17 PM (2 occurrences)
Last logged: 8:22:17 PM
The 'value_template' option is deprecated, please replace it with 'state_value_template'
presumably the one with value_template in an MQTT definition
Where do I find the MQTT definition?
this sounds like a stupid question... but is there a disadvantage of editing Lovelace via the "raw configuration editor" vs strict yaml mode?
it's a worse editor than what you could use externally and still doesn't support things like !include
can i have only a single dashboard defined in yaml mode?
No
Good morning - not sure if this is the right channel: I can't cast to a Nest Hub. Casting the same lovelace view to a Chromecast (attached to my TV) works. But a service call to cast to the Hub completes without errors yet the Hub stays on the current slideshow. Casting audio works. Any ideas?
I have a question about icon size, is this the right channel?
i think yes
Thank you
this one was helpfull: elements:
- entity: lock.back_door
style:
left: 23%
top: 30%
transform: 'scale(3,3)'
type: state-icon
but still the card is big, icon is small
is there a way to make the card smaller too?
i want a popup folder, where i put my popups in 🙂 but when i do so, and save the popup, i don't get them refreshed in my dash. i need a complete restart of HA. how do i set this up to get "easier/faster" feedback, like with the lovelace.yaml, where i only need to save and hit refresh in the browser.
Is there a way to access a dashboard with a direct URL, without the left panel and if possible to bypass the auth.
sure. why don't you look just in the browser url ?
if in gui mode: http://<yourip>:8123/<your_dash_name>/<yourname>
if in yaml mode: http://>yourip>:8123/lovelace/<yourname>
hide left panel = kiosk mode
auth = ??
I have found that I could autolog a user with trusted network. So only have to find a way to remove the left pane
Yes Kiosk mode.
isn't kiosk mode per user, per device?
maybe I'm wrong, idr where to turn that on lol
Where do you find Kiosk mode option ?
Hi, having an issue. I got a battery powered sensor, over mqtt, so it's only sending a state every 30 minutes or so. But in the dashboard, it appears as "unavailable", just want it to show the latest state, as i got 'last updated' as secondary info. How to achieve this?
Anyone knows why this is not working with browser_mod? It seems that it have something do to with the different entities, all other cards i use browser_mod with a single entity works fine. https://hastebin.com/wumoginuza.yaml
What do you think it should do, and what is it doing?
'not working' doesn't help anyone help you.
Well I want to pop up my lights card, so I added it ass a fire-dom-event but the pop-up is not working.
What does 'not working' mean?
If I press my normal card the lights card is just not pop-up instead nothing happens with the tap_action.
how do i go about getting the sensors found on this lovelace panel? specifically the netgear and hass RPi online / offline status https://demo.home-assistant.io/#/lovelace/info
For everything in HA, you need an integration first that can retrieve the data. Once you have that, it's usually simple to put things in a dashboard. #integrations-archived first though.
any idea what integration would give me that data? the demo doesn't really show that
#integrations-archived can help.
Hi there,
Is there a alternative to display big text instead of Big-number card ???
Dear all, I ran into an issue where an ESPHome based gas sensor threw a 3000m3 gas reading at my Energy dashboard and messed it up completely. I have since reset the sensors but the energy dashboard still shows the crazy value for the gas consumed.
Does anyone have an idea how to tackle it? The sensor is a utility_meter sensor
#energy-archived might know.
A front end item in GitHub just closed by a bot but is not fixed. Can I re-open it?
Should I move there?
Yes
Ok
Can anyone tell me how the arranging of the cards work in HA? I'm always fighting with the order as by clicking the arrow the card jumps to all places. Really can't figure it out.
It's a long vertical list, and Lovelace will decide where to break it up into a new column depending on your current screen size.
anyway to decide myself where it should be situated?
There are a few options. The grid card allows you to nest a bunch of stuff inside it in... a grid. You can also do combinations of vertical/horizontal stack cards for a similar effect.
For both methods, you'll likely want to set your dashboard to panel mode - it'll only present one card, but you're going to be nesting everything within that card anyway.
Really basic example... this is a single card in panel mode, with others inside it: https://i.imgur.com/eoT8iwz.png
I've done that just to have a tidy grid for mobile views.
Ok, going to look into it. Thanks mono.
I'd highly recommend browsing through the Lovelace section of the forums for ideas. If you see something you like, people usually share their code for the dashboards.
You can't just copy/paste it in one go, since you'll have different entities... but it'll give you an idea how they achieve certain looks.
Hi @polar kelp, are you aware that a label template inside a custom: button-card stops working with browser_mod. Just tested it multiple times and it works fine for the normal card but as soon i add this card to a browser_mod popup it's no longer working. The label just stays the same no matter the light is on/off. Do i need to open een issue on github or are you already aware that this issue exacists. Thx in advance
You sure it's not your invalid YAML? 🤔
service_data:
card:
entity: light.all_lights
type: vertical-stack```
That's not a valid option for a vertical stack.
And there's no need to ping the authors of cards and integrations here. If you think there's an issue, raise it on GitHub.
I already fixed that issue, i was using the browser_mod wrong i guess. It was working for some cards but not for others, now it works for all cards i'm using browser_mod.
The problem is with the label now, see this card. https://hastebin.com/koyowuxomo.yaml
yeah that template is bunk
Sadly enough i can't upload a screenshot to show the two cards... 🙂
Why not?
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.
You've been here long enough to know how it works.
label: >-
{% if is_state('light.wandlamp', 'on') %}
Aan
{% elif is_state('light.wandlamp', 'unavailable') %}
Niet beschikbaar
{% elif is_state('light.wandlamp', 'off') %}
Uit
{% endif %}
I think that's right
Honestly i thought sharing images was not "forum approved" so that's why i was avoiding it, and yes i sure know how it works and i'm trying to do my best to follow the rules. 😉
Going to try, thanks! It's just strange it stops working soon as i add the card as a popup with browser_mod, for the normal custom: button-card it works fine.
See here: https://imgur.com/a/9j1v95t
Seems not to work, just shows the raw text as the label.
The frontend uses JS, his templates were fine.
ah fair enough
wait I'm looking at this
you want a tap to just popup a card that looks just like the one you tapped on?
I think that's their minimum working example. The real thing would bring up far more.
Yeah it's just for testing, actually want to popup my lights tab as a card. It's just strange only the Label part stops working...
@sly pulsar When using Discord's 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.
You have to change this every time (thank the Discord devs for that).
anyone able to help me figure out why i cant get two images to load into a picture elements lovelace card? https://imgur.com/a/iDjsS2k
Check the “hosting files” section
Is there a way to disable at the card level, the popup display of entity history data? Want history for the sensor to be recorded, but some users just aren't interested in that information and find having to close the popup they didnt want and accidently openned a negative experience. It is particularly easy to accidently access this history information when using the swipe-card and just navigating between cards.
I think only if there's a tap_action that you can set to none
Thanks RobC, but if the entity is say a light switch wont the control action be disabled as well?
that has no tap_action at all
anyway, this is probably not useful information for your use case
I don't think there's a general way to prevent the "more info" dialog from appearing
I have been looking everywhere and I think your are right. Quite surprised though, because I would have thought this would be a common requirement/desire to keep the user interaction minimalistic.
I wonder if you could use this and somehow tell it to do nothing: https://github.com/thomasloven/hass-browser_mod#replacing-more-info-dialogs
Thomas might need to speak to that, or you could experiment
Thanks! That is an awesome lead, I just didn't know where to start. I'll look through the code and see how this is implemented. You made my morning.
i accidentally took control of managing my default overview dashboard, and now items aren't added or removed automatically anymore. is there any way to revert this?
I think if you go into the raw configuration editor from the 3-dot menu, delete all the YAML, and save
hi, in lovelace-ui i'm applying a theme to specific cards. I'm tryng to make this theme change from light theme to dark theme (based on light/dark theme global selection) using the new theme configuration: name_of_theme/modes/light(or dark). The problem is that in this way the theme applied to a specific card don't recognize the dark section of the theme and always use only the light section of the same theme.
i'm doing somenthing wrong or Home Assistant at the moment is not able to change between light/dark section of themes applied to a card? thanks for the help
@modern vector posted a code wall, it is moved here --> https://hastebin.com/varanagini
I have a HA Leader and few HA Follower, they are all connected together with ZeroTier.
I wan to add iFrame in the Leader one to show dashboard of the Follower one.
The issue is : the HTTP call to display the iFrame aren't done by the HA Leader, but by the client browser. Since I will not instal Zerotier on everyones device how will access HA, i'm looking for a solution.
Anyone?
I'm trying to make a tablet view using the new sidebar layout. But when I load it the size loads fine and then quickly jumps to looks stupidly small, any tips for creating a tablet layout or how to fix this? https://imgur.com/a/oJyGtNI
Which one do you mean?
Vertical text, is it possible? I already have cardmod added.
Already reopened by my reply in the comments on GitHub, tnx.
Is it possible to hide cards on a mobile device but show on a desktop/tablet.
maybe with the browser mod and state switch cards.
Hi all. After the latest update I cant access the File edit, Log Viewer, and Terminal from the lefthand side menu in the frontend. All other menu options work fine
Anyone experienced the same issue?
Using Chrome and getting these messages in the dev console:
NS_ERROR_NOT_INITIALIZED entrypoint.74ae643f.js:38051
GEThttps://homeassistant.local:8123/api/hassio_ingress/vLGiUw_fhUM ...
[HTTP/1.1 401 Unauthorized 0ms]
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.
Sorry, not Chrome, Firefox
Chrome works fine
Error messages seem to indicate that it's either a character encoding issue or something going wrong during the authorization (which is strange since all other pages load fine)
Does there exist a card like the conditional card that would let me show a card based on an attribute? IE: I only want to show a media_player if the source = spotify
Not a built-in card, no. A simple workaround would be to create a template sensor that exposes that attribute as a state.
Even thomasloven's state-switch card appears to need states: https://github.com/thomasloven/lovelace-state-switch
Ah, I take that back... it supports templates for deciding which card to display: https://github.com/thomasloven/lovelace-state-switch#template
Note: Jinja2 templating is not cheap. Avoid it for simple things that can be solved with just an entity.
I would like the Lovelace map card to enable specification of both tap_action and hold_action ; can anyone point me at the code wherein I would find the source?
I'm not sure that's going to be possible... holding is for dragging.
But the repo is here if you want to look: https://github.com/home-assistant/frontend
You're simply amazing. I didn't event think of the template sensor. 🤦
Check out that custom card too. It's powerful.
I'm waiting for the release notes that say ThomasLoven has joined Nabu Casa
I'm sure he'd make an awesome addition to the team. Who knows if that's something he wants right now.
Thanks for the pointer; I am reviewing the code now; FWIW, it looks like a different approach to drawing than other cards; as for hold_action I understood that it included a long-press; that's how I have experienced it with the picture_elements card.
Yes, hold_action triggers on a long press... but how do you differentiate between a 'press and drag' and a 'long press'?
any way of grabbing the last three logbook entries
can you link to an automation's traces?
Has anyone else experienced the HA energy tab not showing up in the side bar? I want to use the new energy management dashboard but can’t find it. I’m running the latest version 9.5. Any suggestions?
Hi everybody,
I'm trying to get a History Graph card set up, but it's wanting to a graph for each entity instead of on graph for both.
I've already checked the unit_of_measurement attribute for both entities and made sure they matched. If anyone has any ideas, that'd be great!
The graph in question: https://imgur.com/2R62qS6
They don't (or at some point, didn't) have the same unit of measurement. You can see that the second graph doesn't have degrees Fahrenheit as its unit.
When did you set them up, and have you made any changes to them in the past?
Despite my energy sensor in kwh carries a value its not shown in the energy screen with values. How come?
@fast scroll Make sure you have default_config in the configuration file
Hi all - if you're working with lovelace in the UI is it possible to use !includes? Looking through the forum it seems that this is only possible if you work in 'yaml' mode rather than through the UI. When I try to save my 'raw config' from within the UI with a yaml include pointing to another file (custom button templates) it throws an error saying it doesnt recognise !include. Is this just expected behaviour?
I know you can use resources - but that only seems to be for css or js?
You have the answer already. Advanced YAML syntax is only available in YAML mode.
I was setting the graphs up yesterday when I sent the message. The Average Temperature sensors were configured an hour or so earlier, and the real temperature sensor has been running for several weeks.
I did notice the lack of units in the 2nd graph, but can't quite figure out how to resolve that after confirming that the unit of measurement was identical for both sensors.
color: white
top: 93%
left: 50%
type: state-icon
state:
- value: 'home'
color: orange
entity: device_tracker.troy_phone_wifi```
im trying to change the color of this wifi symbol on a lovelace card when im considered to be home, but its not changing. any suggestions?
i can link a picture of what it looks like if anyone wants to see
also, changing the color parameter at the top doesn't do anything either. its white no matter what i do
The energy onboarding drop down for gas says (Gas Usage m³) I think this text is wrong and should say m³ and ft³. Is that a front end issue or is this text populated from the backend somehow? I want to open an issue in the right place.
Hey everyone, I’m trying to change a light’s icon depending on its state. I’ve tried using templates but it doesn’t seem to be working. Is there a simple solution to this? I’m essentially trying to create this https://imgur.com/a/lvvLXSX
this might not be exactly what you're looking for, but this allows for per-state styling, so you can add different icons per each state https://github.com/jcwillox/lovelace-paper-buttons-row#using-state-icons-state-text-and-actions
not sure if that was for him or me, but that didn't do anything
Both of you, I guess. That’s how you do what’s in the image
i cant get the color of the wifi symbol to change when its state is 'home'
or just in general, its white no matter what i do
do i need to make a template with separate conditions for home and away, and use that instead of the device tracker itself?
Guess it might be more applicable here, has anyone ran into this issue?
#automations-archived message
Been trying to do it with this custom card for ages but still no luck aha
Is the energy panel for individual devices working? I added 2 devices both shows nothing
yeah i have no idea still how to fix my issue either
device trackers do not have a state color
state colors are meant to denote attention
or on
there is a work around though, put it in a group
you can find all things that cause state color changes here: https://github.com/home-assistant/frontend/blob/dev/src/common/style/icon_color_css.ts
Hey peoples… any way to limit a particular user to viewing just one specific dashboard and nothing else? alternatively, any way of bringing up a card (or entire dashboard) embedded into another webpage entirely? I want to give a family member access to just one specific device, and I'm wondering whether I can do that with HA…?
I know this idea has been rattling around for a while… Wondering if there's been any progress on that front.
"..family member access to just one specific device", with device you mean (a) allow them to control only one HA device/entity? or (b) access HA from a specific device?
If (a): Kind of, you can limit access to dashboards/views, but as far as I know, you can't prohibit access to the sidebar (without using kiosk mode, but if your user is handy, they'll change the URL and then the sidebar shows anyway).
- Create a user for that purpose
- Limit the visibility on all view except the one you want them to see
- Done
Additionally, if on Android, you can configure WallPanel (https://github.com/thanksmister/wallpanel-android) for them.
Then you can set a URL (using kiosk mode https://github.com/maykar/kiosk-mode) in the app, logon and password protect the app. It is very possible to work around, but it'll keep your 4-year old from turning off the entire home.
Was (a)… It's actually a 24yo (but close!), whom I really don't want to use my HA setup to peer into my everything. Was just really hoping I could make a mini-dashboard with a couple fixed cards only. Guess that's a no on exporting card/dashboard to another webpage, also… Oh wells.
Yeah, there's imperfect frontend solutions, but really it needs a backend solution to be able to share devices with others
im having trouble getting it into a group
- platform: group
name: Troy Wifi
entities:
- device_tracker.troy_phone_wifi```
there is no group platform for device_tracker. you'll want to use the group integration instead
not sure how to use that because it requires me to type group: twice
?
i already have group: !include group.yaml in my config
So add it into your group.yaml...
The group integration allows multiple groups to be defined. It'd be kinda stupid to only allow one group in HA.
troy_wifi:
name: Troy Wifi
entities:
- device_tracker.troy_phone_wifi```
this comes back with an error
nvm i removed the group
redundant
right, cause you included it from the main already
did that
didnt know i still needed to have the troy_wifi part indented
If you're new to this, I'd suggest spending some time learning how the different data structures are used in YAML:
when i tried adding it into the group.yaml before, i had it start without any indenting and it gave me an error
thank you
It can be a little confusing at first if you're not used to what it represents, and it's not forgiving if you get the syntax wrong.
Once you know the basics, everything else gets simpler.
Sure
uhhhh now im getting a yellow symbol with 3 dots in the middle of it lol
I have no idea what you mean. Share an image
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.
Not sure what the name of the icon is but I think that's normal for a group of device trackers.
You can customise entities if you want to change it https://www.home-assistant.io/docs/configuration/customizing-devices/
i attempted to customize, it told me my yaml file didnt include a "include customize.yaml" line, so i went to add it, and now when i check configuration its saying "Component error: customize - Integration 'customize' not found."
even though i do have a customize.yaml file
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
customize: !include customize.yaml```
i assume im just supposed to type it the same way as the others
i got it, apparently it wasnt supposed to go under that same group. man this stuff is confusing
icon: hass:wifi
color: #ffffff```
this is what i have, it changed the symbol but not the color
yeah you can't change color like that
so is there a way to change the color of the icon?
im basically attempting to recreate some of whats going on in this picutre https://i.imgur.com/UUKzmHp.png
probably with card_mod
so why did i just go through all of that to add the device to a group
@limber bough their theme uses yellow as the "accent color"
or whatever
everything thats yellow is "on"
so with the device tracker, its either "home" or "away". so if i leave the house, it should go back to being white?
mine is currently on my accent color
uhh, not exactly
my device trackers aren't "on" when they're home, "off" when they're away
actually my device tracker group is
just not the trackers themselves
well i now have a group, so how would i go about making the on/off home/away connection?
ok i turned my wifi off and it updated and now its white, so i guess my group automatically knows
I linked the file earlier which dictates why that works, you'll see that "group" with a state of "home" is active
how can i make the state/value in a different color then the name/text ? can't find the correct css
e.g. iPhone (left, should be grey) Home (right, should be white)
https://ibb.co/Mf8XY1w
aha thank you
https://cdn.discordapp.com/attachments/761230504582185020/887111911500578887/unknown.png i'm getting this error and the history wont load.. i'm not fussed if i lose my history but how can i get it up and running again?
try deleting home-assistant_v2.db
your history will get lost if you do that ^
and I'd probably down the server, delete that, and then restart
Thanks will give that a shot
hello I am trying to get a background to load in my HA lovelace dashboard. I am running HA on ubuntu / docker. My configuration.yaml and themes.yaml are setup as follows:
In configuration.yaml:
frontend:
javascript_version: latest
themes: !include themes.yaml
In themes.yaml:
title: Home
views:
background: center / cover no-repeat url("/local/dashboard_background.jpg") fixed
My background is in:
config/www
The actual directory on my machine is /home/my_user_name/homeassistant/config/www
Any ideas what I am doing wrong? The background won’t show up
Hey guys, i've been trying to set up a dashboard recently. It took me a while but i ended up with something i like, the problem is that it feels super slow to load
i've tried it on a 4 Year old Imac (super slow to load and react), a top of the spec pc (5900x , 2080 ti), but even if it's better, it is still slugish
Is it a know problem, or am i doing somethign wrong?
Btw, the rest of the Home assitant app is extremly responsive, no issue with that, only with this dashboard
Hi there, I cant find answer to my question. I use apexcharts-card by RomRider to show a graph over some temperatures. But have a wierd greyed vertical line that shows up some time and sometime multiple lines. Anyone know what it is? https://snipboard.io/6GVLrI.jpg
It seems to be missing data points on the pink graph
Hey there,
i hope i am in the right channel for my question 😉
This is my configuraiton.yaml:
https://pastebin.com/3w6cmAKg
For sadness i get an error message Invalid config for [lovelace]: [resources] is an invalid option for [lovelace]. Check: lovelace->lovelace->dashboards->lovelace-yaml->resources.
Could you guys give me a hint, where my error is?
@distant lagoon Thanks, I totally missed that. 🙂
@vapid field Whats inside lovelace/resources/resources.yaml ?
resources is not a per-dashboard setting. It should go directly under lovelace.
Thank you! Looks like it was that easy 😉
hmmm. now i get a warning Lovelace is running in storage mode. Define resources via user interface and the menu entryies on the left side are all gone ...
could i ignore the warning?
Press the 3 dots, and edit UI, then the 3 dots again and edit resources.
have you restarted HA ?
get in Dev.Tool > Services > Refresh Theme
is not shell_command available in the UI while making scripts ?
If you have setup a shell script entity it will be available to run as a service call.
I see, thnx for quick reply Thomas!
But I might going about this the wrong way. I've got one of them rpi 3+ so it only got wifi; I want to turn it off using cmd (ssh). Do I use script or make an automation out of it, because there is no on argument really, that is handeled by another entity. Suppose there is no way in the ui to create a custom switch?
Only binary input, but that's not quite the same thing.
then I send cmd to power off; I want there to be 30sec delay before it powers of the socket it's attached too. Cause I dont want a toggle. I dont really want a toggle, it's for 3d-printer and it's lots of stuff I want to turn off when it shutdowns. I did solve it like this: created binary sensor with ping to monitor the device, created a custom switch, with the quirk of it becoming a toggle (despite only one cmd). Made an automation that when binary sensor when off, it waits 1min and then turns off the socket.
I am so dumb, I forgot where the resources section is in lovelace UI. Where did it go?
Config > Lovelace > Resources
Suggestion of best temp/humidity-card? 🙂 Thinking of vertical-stack
There is no 'best'. But you could look at what other people have done and copy from their configs.
Great answers as usual, thnx!
can share my configs in a bit, but I have two temp/humidity sensors, so I use two of those cards in a stack: one for both temps, one for both humidities
very configurable
Works fine for a custom:button-card. I checked the state with Chrome dev tools from the custom:auto-entities card and it seems correct.
i'm trying to modify the love lace main header/navigation bar to be larger. is there a way to do that with themes that i'm missing?
thnx but finished it about 30mins ago 🙂
haha fair enough
i created a layout card but the map card isn't working there. "unknown type: map" i also tried custom:hui-map without success
share your card yaml
indented too far
it's trying to use it as an entity in the entities card
instead of a card in the layout card
hey folks, i've been troubleshooting this for a while, but I must miss something. many times when navigating to myurl.com/lovelace, my default dashboard (YAML) won't show up in the sidebar. navigating to /lovelace/overview shows the correct dashboard. any pointers?
I experimented allot with browser_mod and indeed some cards just don’t work which works fine as standalone or in another simpler card. If there are to many types defined it seems to read the output wrong.
you can select the default dashboard in the profile menu
maybe that helps
all set to default
i mean that you select your preffered lovelace
i can do that, but still I want the default dashboard to show up in the sidebar. for the default one (in YAML mode) there's no option to hide it even
If you set another dashboard as default it will automatically hide the default Lovelace.
my overview/standard lovelace isn't in the sidebar as well, because i made a custom lovelace and now it uses this instead. check settings > lovelace dashboards. just create a new lovelace which is controlled by HA
ah I didn't know that it would actually hide the default. that's a top tip thank you
auto-entities card:
how can i exclude more than 1 type/sensor ?
https://www.hastebin.com/xuxidajabi.yaml
put another - ...: entry under exclude
can't get sorting to sort
https://www.hastebin.com/eqekonudig.yaml
remove it from the filter
and remove the method: state
since you're trying to sort them not by their state, but by an attribute
no luck 😦
hmm, worked for me
I just copied your snippet into a card and made those changes
showed any entities I have with battery_level as an attribute, sorted in descending order
looks like this for me (don't mind the 2 columns)
https://ibb.co/KwR9SyG
could you share the code ?
Hi all , I'm struggling to figure out how to call up the main stream when I click on the sub stream of my cameras in the dashboard. Is it a service ?
like i said, remove the sorting from the filter, and remove method: state
thanks, but somehow it doesn't work for me
https://ibb.co/0KwDf4v
using same code i just sent?
yeah just copied your code
hmm
the picture is the result
that's odd
you'll need camera entities of the main stream
obv clicking the sub stream is going to bring up the sub stream
@trail frigate actually i think it's not really working for me either
i can't reverse them
strange
aha
Yub I have all my sub feeds working well and my main feeds are available entities but I don't want to use them as the live view on the dashboard so I want to set the "tap" action in the card to open the main stream just can't figure out how to do that
@trail frigate use this as your sort block:
sort:
method: attribute
attribute: battery_level
reverse: true
numeric: true
need to sort them by attribute (duh if we thought about it)
i like this card: https://github.com/maxwroc/battery-state-card
i usually have the < flipped the other way though (to exclude batteries over 25%)
and it is show_empty: false, so it only shows me batteries which are low, when they're low
ahh nice, thanks!
just a different alternative 😉
how can i get rid of these, don't get it
https://ibb.co/vsw5Fsq
get rid of which?
ok i got rid of the state and icon ones, but those from the mobile app are still here
the two "Batterie (2)"
they are coming from the mobile app
well you could exclude them by entity id
i tried this ```
- name: entity_id
value: '*- Batterie (2)' ```
ahh now
its battery_state_2
thanks for the great help dr.!
👍
here's one i'm trying to figure out: https://www.hastebin.com/uvixizapef.yaml
this produces the following card: https://i.imgur.com/WbURimq.png
i'm trying to figure out how to add a tap_action that will open traces for that automation
yeah thats something on the list as well
so that card works ^
i'm trying to add this to the entity options: passed via my filter:
tap_action:
action: navigate
navigation_path: /config/automation/trace/{{ this.entity_id.split('.')[-1] }}
but the url i get ends up looking like: http://192.168.1.226:8123/config/automation/trace/%7B%7B%20automation.sunrise_2.split('.')[-1]%20%7D%7D
which is obviously not right lol
it's filling this.entity_id correctly, but not evaluating the template as i was hoping it would
so i took to custom:card-templater:
type: custom:card-templater
card:
... # <-- the rest of my card, indented
and then changed the following:
...
tap_action:
action: navigate
navigation_path_template: /config/automation/trace/{{ this.entity_id.split('.')[-1] }}
...
but since there is no navigation_path: field, it just fills my url as: http://192.168.1.226:8123/config/automation/trace/-
which again, not as expected
man, if i could i would help
well, that's ok
i really think changing it to navigation_path_template: should do it
as per the card-templater docs:
The card option will accept any card configration. Any option in the original card which takes a string value can be templated by changing the option name to be option_name_template. For example, name will become name_template. Here is an example:
i was also able to get http://192.168.1.226:8123/config/automation/trace/Error! by adding
entities:
- this.entity_id
to the card-templater bits 😅
anyone else know how i can template the navigation path of a tap action?
Hello, I am going to build Home-assistant frontend in windows, using Ubuntu but having error, could you guide me?
@dark dirge Thanks, I did that but I cannot see configuration.yaml file
while installing WSL I am getting this.
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install
That’s not an HA issue
Get that straightened out, follow all the instructions at the link I provided and then further questions to #devs_frontend-archived
Or the forum
how can i make this work ?
https://www.hastebin.com/qizonepewi.less
simple input_text which should TTS on a specific alexa
You need to call a script using the right syntax
hmm okay thanks rob
https://github.com/kalkih/mini-media-player can show tts on the card for a media player entity
tbf idk if it'll work nicely with the Alexa media stuff
never used it with my echo, only my googles
Howdy folks
Lovelace question here. I am having issues with a lovelace resource loading on my other devices except for my desktop chrome browser...
The "custom:state-switch" loads fine on my desktop, but the home assistant app or mobile browsers (Safari or Google Chrome) on my tablets keeps complaining that the element doesn't exist!
automations:
title: "Automations"
url: "http://192.168.188.49:8123/config/automation/dashboard"
icon: mdi:robot
require_admin: true
with panel i-frame i get the sidebars as well , any way to display automations without the sidebars , tabs ?
https://imgur.com/4ho0fik HA inception 😛
This works fine to make a custom:button-card transparant but it not seems to work for a custom:auto-entities card?
card:
- background-color: rgba(0, 0, 0, 0.0)```
That's way too little information to tell anything about what you're doing. And auto-entities doesn't have a background.
I've done and I can see interface
but I didn't do with virtual box or vmware
but I cannot see config folder and configuration.yml file
could you help me? I wanna change title and logo
I've found that configuration file
but after changed that and restart home assistant I am getting this error
PermissionError: [Errno 13] Permission denied: '/home/general/.homeassistant/configuration.yaml'
what card do i use to select from a input_select dropdown?
okay nice, that works too, thanks for the tip!
but not really the solution i wanted 🙂
Use an automation.
What am I doing wrong here? I’m just trying to change the icon of my lamp but this is throwing errors
@cinder python posted a code wall, it is moved here --> https://hastebin.com/ufuwiqatut
@cinder python 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://www.codepile.net/ (pick YAML for the language) or https://paste.debian.net/ (pick YAML for the language).
@cinder python Please don't say I have an error or describe an error. Share the whole actual error message so we can help you.
Hmm okay
#automations-archived can. This is for Lovelace.
kk , sry
is there any good tutorial to understand card_mod ?
This is about the best I've seen https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/1396
thanks thomas
anyone around now that maybe missed this yesterday?
is there a way we can have the new 'number' entity show up as a slider instead of the box? - entity: number.hall_default_volume_7 name: Siren volume
you mean like this: tap_action: action: navigate navigation_path: > [[[ return variables.view == variables.path ? '/ui-settings/force_switches' : '/ui-settings/developer'; ]]]
uhh, not sure if that is what i mean
mind you, thats on a custom:button-card
i started up here ^
maybe more like this then: include: - group: group.github_repos_in_use options: &github_options tap_action: action: more-info hold_action: | { 'action': 'url', "url_path": "{{state_attr(config.entity,'latest_release_url')}}" }
on an auto-entities card
ohh i can try that
no, i don't think that's it either
tap_action: |
{
"action": "navigate",
"navigation_path": "/config/automation/trace/{{ this.entity_id.split('.')[-1] }}"
}
just does nothing on tap
what does inspector say?
btw do you get the %20 's inserted there? there is a service to get those out, but I forget where it is 😉 urlify or something. I am sure the good people here know what I mean
right click in your browser (preferably Chrome for this )and see what the frontend does in the Console
yeah they're put there when it parses i guess
not sure what i'm looking for honestly
just nothing happens when i tap
btw, why the [-1]? you need the object_id of the automation which is split('.')[1]
and then replace any %20 with _ so replace('%20','_') and capitalize the first character 😉
well look what it ends me up with
dk why this formats so odd now
it doesn't parse the template at all
did you change to config.entity ?
^
it just doesn't parse the rest of the template
where does config.entity come from?
ok well same deal
hmm, its been a long time... I only use this.entity_id in my multiple-entity-row cards. In auto-entities and template-entity-row I always use config.entity... (hope none of that has changed lately)
changing to config.entity fills the entity_id correctly, but the template doesn't get parsed
actually no
not sure why it worked once
but this.entity_id is what i need here
that definitely fills the entity id correctly
using secondary: > {{config.entity.split('.')[1]}} on my entities show the correct object_id here, so if its not retrurning what you seek, it must be another part of your template being incorrect
my template isn't ever parsed 🤦♀️
{{this.entity_id.split('.')[1]}} returns nothing......
for me that returns %7B%7B%20automation.add_to_shopping_list.split('.')[-1]%20%7D%7D
lol
the template is just used as a string, symbols and all
oh i didn't change the -1 -> 1
I remember seeing something like that before the template-entity-row was updated.... are you using that, and did you update to the latest?
but doesn't make a difference
i'm not using template-entity-row
i didn't know that was a thing lol
according to the docs, config or this don't exist.
meaning, you have to hardcode the template with the entity_id
there's a whole section letting you know what variables exist in the namespace and config or this are not listed.
and custom:auto-entities fills this.entity_id
like i said, that fills correctly
but the template isn't evaluated
^
put your whole path in the template
so using this as the template: {{ '/config/automation/trace/' + this.entity_id.split('.')[1] }}
gives me http://192.168.1.226:8123/lovelace-testing/%7B%7B%20'/config/automation/trace/'%20+%20automation.sunrise_2.split('.')[1]%20%7D%7D
i used > to fold it to next row
yeah, exactly
^
i followed up just after that one
i've been over all this stuff already
sounds like the card just won't do it
right, but that means the error is in the template card
what happens if you hard code a view?, does it navigate at all?
hold_action:
action: navigate
navigation_path: "https://mydomain/lovelace/home"
does work here
yeah, those work fine
looks like this has been hashed over before though, with no real solution i can see
fwiw it DOES navigate, just with the template, the url is wrong because the template isn't parsed
as said, maybe you can configure it with template-entity-row, which had the same issue before, and now navigates fine
template-entity-row appears to not really act the same as a normal entity row though as well
for example, using secondary_info: last-triggered
displays something like 1 hour ago in a normal row
whereas using secondary: "{{ state_attr(config.entity, 'last_triggered') }}"
returns a timestamp, which is kind of annoying
and icons don't get state coloring the way a normal entity row does
because you shouldn't be templating it...
you should still have secondary_info: last-triggered
Hey, I've made a seperate yaml dashboard for HA floorplan, I'm trying to reference the resource in config.yaml (https://www.codepile.net/pile/a5G2o180) but the config checker is saying that it is invalid, could anyone let me know what i'm doing wrong please?
doesn't work with template-entity-row
i tried that
just nothing goes in the secondary info
and if i use secondary: last-triggered, i get the string "last-triggered" lol
until that time, have it point to https://yourdomain/config/automation/dashboard 🙂
yeah...
if there was a link to traces on the more info, that would be fine too
but there isn't lol
and file a FR at the auto-entities repo ...
whelp, then you're sol
and thats a nice FR too
your spaces look wrong under resources
I've matched the example spacing on the HA page now, the error log seems to point to the fact that 'resources' is not a valid option for 'lovelace' Let me try again...
lol seems that way
No I still get the same message, i've matched the spacing exactly to the HA page: https://www.codepile.net/pile/a5G2o180
btw, Ive just tested it with T-e-r, and see the same issue we had before with url/url_path, (the template is evaluated alright, but with all additional characters) so maybe there's still something to be fixed in the card on that matter too. Id seriously suggest to add that to the repo's for auto-entities and template-entity-row, because it would be a very useful addition
I've put it in the config for the referenced dashboard, it seems to have passed checker, just running a restart now...
i did get the template to work with template-entity-row, and open the right page
just other things about that row that i didn't like
really, which url did you use? Id love to give it a try
umm lemme fix it
i rolled it back
this technically works: https://www.hastebin.com/ufohubitoq.yaml
i may just use that with some changes to my idea of what the card should look like
yes, that works. thast is to say, it creates a correct template an url path. however, it doesnt reach the correct endpoint... when selecting an automation via the UI, I see the capitalized first character and the %20 replacing the underscore.... how odd is that, never realized the UI does that
that might even be considered a bug?
it targets config's the friendly_name. use this and it's perfect```
hold_action: |
{
"action": "navigate",
"navigation_path": "/config/automation/trace/{{ state_attr(config.entity,'friendly_name') }}"
}
now we got that fixed: back to the 'number' in the frontend, how to set that to a slider..
looks to me like it should be using the entity id without leading domain
and works for me now
mmm, that seems unlikely, do you really see the automation loaded, or simply the 'no traces'
it really loads the trace page for automations which have traces
works in chrome and mobile app (android)
how odd, cant make that happen with config.entity alone, I was triggered to enter the friendly_name, because when hovering the automations icon on the right side of the automation dashboard, the statusbar shows the url it uses. In my config, that is not the entity_id, but the friendly_name..
hmm that's interesting
I just went to the trace page and looked at the URL there
had entity id
maybe you dont have names set for the automations?
yeah, I do
o well, how peculiar. if you need a last-triggered substitute:``` toggle: true
secondary: >
{% if state_attr(config.entity,'last_triggered') %}
{{relative_time(state_attr(config.entity,'last_triggered'))}} ago
{% else %} Never triggered
{% endif %}
drinfernoo:
filter:
template: A jinja2 template evaluating to a list of entries to include
It's quite clear that the template goes under template:. What you shared before looks nothing like that.
{{ states.automation
| rejectattr('attributes.last_triggered', 'eq', none)
| selectattr('attributes.last_triggered', '<', now()-timedelta(minutes=5))
| map(attribute='entity_id')
| list }}
hang on
type: custom:auto-entities
card:
type: entities
title: Recent Automations
show_header_toggle: false
state_color: true
filter:
template: >-
{{ states.automation
| rejectattr('attributes.last_triggered', 'eq', none)
| selectattr('attributes.last_triggered', '<', now()-timedelta(minutes=5))
| map(attribute='entity_id')
| list }}
but i want to have this block as well: https://www.hastebin.com/kejasajiqe.lua
which works fine if i'm using a normal include: filter
but not with template
Gotcha. No idea 😄
right lol
no biggie i suppose
was just hoping to get this the way i wanted
without pinging loven
Yeah, don't ping people...
I haven't looked at the code, but have you tried doing something like this?
template: <your template>
include:
- options:
secondary_info: last-changed```
It seems to allow missing fields in the include, else this example would break:
include: [{}]
That's a list of a single object with no keys.
Options doesn't work with template
Speak of the devil.
Sounds like a FR
lol see i didn't ping him
His spidey sense kicked in.
The trick is to have the template return complete entity setups instead of just a list of ids.
right, that's what i thought