@mild veldt - I'm working on it 🙂 Can I use a template for the service to call on action?
service: "{% if is_state('states.timer.piano_practice.state', 'paused') %} timer.start {% else %} timer.pause {% endif %}" gives me an error - no templating allowed here, it seems. And I can't use service_template for this field as far as I can see.
#frontend-archived
1 messages · Page 158 of 1
I can call a script that has the template and calls the right service, but I was hoping to do it without yet another entity...
Sweet. service: '[[[ if (entity.state == "paused") return "timer.start"; else return "timer.pause" ]]]'
@mild veldt thx
i got the animation to work, but now my "transform" to make the icon larger doesn't work
nm...got it
well...sorta...the icon "wobbles" on my portable devices...looks perfect on the desktop
can I use value_template on any sensor or does the sensor has to specifically allow that value? Trying to change the time output of one of my sensors
I am trying to use this theme:
But when I try to execute step 5 I get an error
Expected a value of type `undefined` for `style` but received `"ha-card {\n background-color: var(--primary-background-color);\n border-radius: 15px;\n margin: 10px;\n box-shadow: \n {% if is_state('sun.sun', 'above_horizon') %}\n -8px -8px 8px 0 rgba(255,255,255,.5),8px 8px 8px 0 rgba(0,0,0,.03);\n {% else %}\n -8px -8px 8px 0 rgba(50, 50, 50,.5),8px 8px 8px 0 rgba(0,0,0,.15);\n {% endif %} \n } \n"`.
But only when I'm using certain cards
Is there a way to change the tap action depending on the state of the entity. My use case is that if my vacuum is currently operating, I would like to make it return to the base with a tap and when it is not operating, it should start to clean on a tap.
@spice mauve If the card you're using supports templates for the tap action, yes.
which one would that be for example?
There are many. It matters more which one you're using...
The button-card custom card, for example, accepts templates for all of its action fields: https://github.com/custom-cards/button-card#action
If you're using a build-in Lovelace card, you may be more limited.
ok, cool, thanks for the information!
@spice mauve - scroll up several posts and see a JS template I just worked out for a very similar thing (timer pause/start).
[homeassistant.util.yaml.loader] could not determine a constructor for the tag '!secrets'
I get the error when i use "api_key: !secrets openweathermap_api_key"
Got the problem. its secret not secrets
Hi, I have a bit of an odd problem with the new calendar panel. I can see all my todoist calendars listed and my google calendars. Except there are no entries. If I comment out the todoist integration the google calendars appear. I do have some errors in the log about todoist, but it does work as I can see all the todoist projects listed in states in the developer panel... has anyone else reported anything like this? I made a comment on the update announcement on the forum but no one has mentioned anything. 
how did you get new calender panel ?
bug in frontend in latest 0.110.1 when moving card try to move it to the end of the page two times and then in says config invalid or something.. raw config editor is blank.. until u remove the card that u moved u cant edit it trought raw config to get it fixed.. card is lost....
happen to me in two times allready
So report it as a bug 🙂
This isn't the place to report bugs - that'd be over at the GitHub repo
too much off a hastle couse just got my lovelace fixed after that.. so dont want to break it again to get exact logs and stuff.. ill wait for it to be fixed...
I also love the mentality of coming to a community to take something but not being willing to give back... 🤷♂️
@split granite I push the "+" button to add MQTT and now it ask me what is my Broker ...I don't know what I need to do...
You put in the IP of your broker...
yes but I never install anthing so I think I should install something on my raspberryPI to have a Broker up and run, isn't it?
Why are you setting up MQTT?
Though, this is more a topic for #integrations-archived
I don't know really, I need to see my ONVIF cameras
and I red that I shuold use MQTT
No
For that you should read https://www.home-assistant.io/integrations/onvif/
See #cameras-archived for further help with setting up the camera
so I have many Foscam Cameras and some ONVIF, do you know how to intergate them in hassio and how to see them all in the lovelace UI?
ok thx
@sullen gate You get help with integrating things in #integrations-archived , then you come back here to figure out the UI stuff.
#cameras-archived also works in this case, since it's more specific 😄
ok, I got it, tnx
hi, can someone verify if that is realy a bug -
I have two history graph cards with two sensor signals, for one i set 24h timespan for the other only 1h - after reloading the length of the graphs is always the same
Do you mean the width of the graph on the screen, or the time they show?
the time span
Since updating to 110, I am having a lot of trouble. Particularly with broken websockets and thousands of unhandled exceptions. Here's one example when I try to load the frontend https://www.screencast.com/t/ThPbJx8ekeQ. Other symptoms are: mdi:iconname causes an exception in ha-icon.ts - taking 25-35 seconds for the GET to /session and more https://www.screencast.com/t/3lb3aOHQ9O.
I tried wiping and restoring back to an earlier snapshot (a week ago) but now I cant even get close. I did tail the log in the VM's console, there are some problems with internal connections for ingress and discovery https://www.screencast.com/t/Gb8oleQp3
Hi, anyone about who knows about LG tv's and issues with media_player settings?
hi, is there a way to replicate a header_toggle on to of a glance card ? i managed to hide the title and create an entity for it, but it obviously don't look like a header_toggle ...
@graceful ether I find VerticalStack is good for something like that were the initial card doesnt have everything I want
Thank's @zenith crescent , that what i used to add my entity on top of the glance card, but the entity 'name' isn't all bold and stuff like a header_toggle :(
@graceful ether card-mod could help with that
With the new possiblity with multiple lovelace UI's I want to look into using a locelace panel instead of a appdaemon dashboard. But how do I get a lovelace panel to show without the borders, do I have to use custom header for that? And what do others do, set up a specific user for it?
Hi
I installed a theme
i edited the yaml to perfect it
but i would like to do a last thing
@graceful ether card-mod could help with that
@mild veldt that's a big one, but i'll look into it.
I kinda avoid it for now because of how deep it can go
It would be possible to change the color of lights icons when the lights are off ?
It wouldn't exist easier way with the yaml file of the theme ?It wouldn't exist easier way with the yaml file of the theme ?
In fact, i would like to avoid to display a white icon when a light is off
In dark grey instead of white would be better
Well you specifically said lights, you can't specify that in your theme
In fact, the property "paper-item-icon-color: grey" in the yaml file was at the root of this problem
i commented it
and it's ok now
Can I ask a question about HACS here? I have upgraded to version 1 and now my plugins do not work anymore. The path in the browser is https://<homeassistant>/community_plugin/<plugin-name>/<javascript-file>.js but the folder on the system is /config/www/community/<plugin-name>/<javascript-file>.js and is not found. Do the plugins need to be updated? This applies e.g. for mini-graph-card.
https://github.com/hacs/integration/releases/tag/1.0.0 lists the breaking changes
does that mean that the plugins have to be adjusted or can this be done with configuration of hacs or stuff?
/community_plugin has been deprecated for quite a while now
Just updating your resources should fix it
which resources would that be?
The lovelace resources 😉
-> Lovelace -> Resources if you're using the UI
https://www.home-assistant.io/lovelace/dashboards-and-views/#resources if you're using YAML mode
ah, right, now I remember, I was looking for that in HACS and behind the three dots in the frontend but did not find it, thanks for the hint!
That's because HACS is a tool for installing other things
Things you can install manually too
Is there a text-only card? I want to make kind of a title block over a 2x2 set of cards.
Markdown card?
https://www.home-assistant.io/lovelace/ only lists stock cards 😉
any one know how i can fix this gap at the bottom? https://imgur.com/a/xQ45ULV i can post my lovelace file
Was working on Xbox Edge Browser but post 110 many icons and badge sensors not working.. but does in Win10 Edge Browser.
Technically can click on where icons were and it does function... strange how some show and others don't.
Was very convenient on large screen. **Update seems corrected now... noticed that there was at least a 3 sec. delay of these icons on working systems...as well.. not sure faster changes (icons) .. come without slower trade offs.
Well you specifically said lights, you can't specify that in your theme
@mild veldt ...yet...
Hello Community, is it possible to create a card that shows only turned on devices?
Yes
There's at least two cards in https://www.home-assistant.io/lovelace/ with names that should give hints about being relevant 😉
The Entity Filter card allows you to define a list of entities that you want to track only when in a certain state. Very useful for showing lights that you forgot to turn off or show a list of people only when they’re at home.
"The use of other attributes than device state attributes is deprecated and will be removed in a future release. Invalid attributes are ['brightness_pct']. Read the logs for further details: https://www.home-assistant.io/integrations/scene/"
is this only relevant for scene, or for scripts as well? (couldn't find anything about it on the linked page)
If it applied to scripts, it would also be in the script docs 😉
Thank you Tinkerer :) Do I have to set all the entities that should show there? because a wildcard light light.* doesn't work :/
it doesn't seem to be mentioned in the scene docs either?
There's an auto-entities custom card that may help there @twilit remnant
but, anyhow, as long as that weirdness only applies to scenes, not scripts, I guess I am fine
thanks
is there a front-end in HACS that lets you stack multiple buttons in the same row? I've changed the size to be much smaller than normal because I'd like to have like 3 buttons in a row to consolidate space
There's already a built in horizontal (and vertical) stack card
but do those cards handle buttons?
They handle cards
I'm sorry if the questions are dumb, I'm playing around with my lovelace setup for the first time
so do I start with using that horizontal stack card and then add the buttons I want to it?
Yes
Add the cards - they're all cards 😉
Is it possible to make a gauge card out of an attribute to an entity?
so no then
Purely within the UI - no. But you can create a second sensor, which has a value/state of the attribute, and put that sensor into the gauge
There is a custom component that allows you to do it all in the UI
Yeah - I intended to do a template sensor but wasn't sure if specifying an attribute directly in the UI was possible.
ooh - interesting, which one is that?
ah 👍
oh that creates the template sensors.
I guess I was thinking more this
while I'm here I might aswell ask.
I use https://github.com/thomasloven/hass-lovelace_gen for my lovelace ui.
Is there way to use this with the 'new' dashboards feature?
My frontend no longer shows the custom header after the newest update
And I dont know how to fix it, I cant access iut
0.110.1
Have you updated all your components and cleared your cache?
How's that program called for making those nice floor plans. With that semi 3d top view.
hi, i'm trying out a new button layout, but i canot make sence of this:
Small text to display - First button
- content: >
# There are {% if is_state('sensor.lights_on', '0') %}
currently no {% else %} {{states('sensor.lights_on')}} {%
endif %} lights on
style: |
ha-card {
--paper-card-background-color: 'rgba(11, 11, 11, 0.00)';
box-shadow: 2px 2px rgba(0,0,0,0.0);
}
How do i get the lights to count how many is on? Do i have to list all of them somehow?
any one know how i can fix this gap at the bottom? https://imgur.com/a/xQ45ULV i can post my lovelace file
https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png this is the background for reference
background-image: "center / cover no-repeat fixed url('https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png')"
Hey - just wondering if it's possible to use a custom icon on a card? (Namely the custom:button-card) I have the icon I want to use in PNG,SVG or literally any format potentially needed.
It’s possible but you need to use a custom field and return an icon from it. My configuration has examples. FYI it’s painful because you have to style every aspect.
petro! my man, how do i make my background fill the whole screen?
I don’t have it memorized
But if you can find my config, it’s in my main Lovelace file
Petro31 on github
I’m on cell, lemme see if I can get it
i think you win for having the most complicated setup
background: center / cover no-repeat url("/local/images/background.jpg") fixed
background: center / cover no-repeat url("/local/images/background.jpg") fixed
doesnt work
background: "https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png"
title: My Awesome Home
views:
- title: Home
background: center / cover no-repeat url("https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png") fixed
https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png if you go here the image is quite large
Missing a “
but when its on my macbook air there's an odd gap and doesnt extend
Eh, it’s hashed Nm
background: center / cover no-repeat url("https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png") fixed
its there
it seems to work fine when i have my sidebar extended but not when its closed
and i just have the icons showing
Remove the %22 and replace with double quote
background: center / cover no-repeat url("https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png") fixed
yes still has an odd gap
it loads fine for a few seconds and then returns with a gap
Ctrl+f5?
It’s possible but you need to use a custom field and return an icon from it. My configuration has examples. FYI it’s painful because you have to style every aspect.
@tacit cave I'll have a look at your GitHub tomorrow and give it a crack. I assume an SVG is going to be best in this case.
Svg optimized
@tacit cave doesnt help 😦
super frustrating
guess ill put in an issue
on githubg
Sorry I can’t help then, on phone. I would google “stretch image background css maintain aspect ratio”
It’s not an issue tho. It’s css
That issue will be closed almost instantly
where would i put it if i have the background in lovelace?
Not sure what you mean.. you just need to figure out the css style that fits your needs
seems weird its only an issue when i collapse the side bar to icons only
Are you using custom header?
yes
It’s more likely that then anything else
i took out
custom_header:
background: repeat url('https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png')
and its still an issue
No you have to disable custom header to turn it off
Removing from your config doesn’t remove it
you mean remove it from resources?
No there’s a disable command that you send to your url
there is?
Yes, it’s probably covered in the docs
i added ?disable_ch at the end, though it filled the screen, if i scroll down the gap is still there
weird it wont just fill everything with the picture
seems to be an issue with the custom header
yeah
I just find it odd that only you are seeing it. What browser?
chrome/safari
i will keep googling, appreciate the guidance, it seems fine when it first loads for a few seconds, then it wont wokr
So chrome/safari takes the old school css approach. Include that in your searches
I’ve had to really mangle some css to make it look the same between safari and chrome
i was just testing it in safari but im normally just on chrome
works fine on mobile
hey guys I update to 0.110 and most of my frontend is missing
I remember seeing there was a change to the resource urls which I changed to /hacsfiles/but that didnt work
well guess im going back to 109 😦
You could, I guess. Did you do any debugging?
no
how would I go about that
okay actually I was hitting refresh not reload resources in the ui
so its all good now duh!!
I have a touch screen display that I run a home assistant client. I run it in full screen and have a button to launch a url to a new site. However I cant figure out a way to close that tab to go back to hass since it's in full screen. any suggestions?
if I could just have a gesture to close a tab it would be fine
edit: I found a solution that so far is working. smartUp Gestures a chrome extension allows for customization of gestures. I created a touch one for closing the tab.
hello; i am using lovelace-slider-entity-row and i just noticed that the name is being cut off.
https://imgur.com/PJRMQ8M
anyone using this as well or is there something else out there that will show a slider for a dimmer
a light card has a slider for a dimmer
thanks; will i be able to use that card in my existing stack of entities?
not all are lights, some are switches
Switches are on/off though
I don't think you can use them as a flat entity like the entities are. the light card is more like a button interface with a slider built in
yea i see that the light is like a button
and yes you can use smart switches on light cards
i was looking to keep them flat
you will probably have to find a custom card then. At least I don't know of a way to make the light entity flat
maybe when the dimming is on, then show the slider ona new row - is that possible
I've noticed that lovelace built in entities are pretty basic. Most of what you will end up using is custom cards other's have created
ok thanks; i will search HACS and see whats out there
I found a solution to my full screen tab issue. I added an edit to my above post for anyone interested
Hi, I have setup custum-ui in HA but i can't seem to see the ui appearing in my phone, although it appear when I'm accessing through the browser (chrome) in PC? any reason behind this?
All custom cards are no longer working since the included where moved to a seperate lovelace place. How to fix that?
If I basically wanted a blank, semi-transparent <div> in a picture-elements card, easiest way to just use a 1x1px image element and then style to suit?
Yep
Any thoughts about some kind of calendar buffering and updating after a specific timeframe? Why? My work CALDAV is soo slooow and that way one would at least have sort of recent entries all the time.
My thought is that buffering/caching would be something done by the #integrations-archived , not the #frontend-archived .
Good question. Calendar is frontend, at least the listing I guess. But I am open for corrections ^^
The thing that displays your calendar entries will be frontend. What gets your calendar entries?
@tough quiver posted a code wall, it is moved here --> https://paste.ubuntu.com/p/NSmCs7sPd4/
MY attempts with:
state:
- value: 'off'
styles:
card:
- color: 'var(--paper-item-icon-color)'
- value: 'on'
styles:
card:
- color: 'var(--paper-item-icon-active-color)'``` did not work unfortunately.
@tacit cave I know you mentioned something about this - i've dug through your hass repo and couldn't find how you did it.
agh, bot stole my first message.
~codewall @tough quiver
@tough quiver Rule #6: Please do not post codewalls (longer than 15 lines) - use sites such as https://hasteb.in/, https://paste.ubuntu.com/, or others.
Please take the time now to review all of the rules and references in #rules.
Command '~codewall' was invoked by: Tinkerer
its fine, its chucked it into a paste for me anyway
🤦
It's not "fine" - you're supposed to do that yourself 😉
The bot is there for when folks forget, to avoid those on mobile or with lower resolution screens having nothing but walls of text
@tough quiver my toggle button inside Lovelace/templates/buttons has an example
👍 ill give it a read.
Does anybody know how to scale icons in a custom iconset? Had to change it to the new way to do it and since then my icons are cut off.
I tried setting another viewbox but that didn't change anything
I don't think that's supported in the new method yet, but you can approximate the old method.
https://github.com/thomasloven/hass-fontawesome/blob/master/js/fab.js#L7-L30 Here. It's backwards compatible too
Anybody using NWS and the weather forecast card running into issues where name of the day doesn't show up on the forecast?
Weather card doesn't know which day it is? Sounds like it's been in lockdown too long.
Hello, I want to use the state of a sensor in markdown card. How would I do that? I used to do that with [[sensor.camereload]] when using the vanilla lovelace.yaml approach, but I can't seem to get it working with the integrated lovelace stuff...
You can put templates in there, that should still work...
{{ states('sensor.camereload') }}
Thank you Tinkerer. That worked indeed.
@molten sonnet https://github.com/home-assistant/frontend/issues/5829
hey guys i am using an entity filter with a markdown card and i have it so when a light switch is on, it tells me which lights are on. Which works.. Issues is when i turn on the light, the filter does not update on its own - i have to press f5 to refresh the page for it to show
is there something that can help to make it auto refresh with a that state turns on
Have the Hue icons been changed/removed in the last release? I had a custom component for my Hue dimmer/tap that showed their icons. Had to replace it with the newer CCs and now can't find the icons anywhere. I tried Custom Icon loader, but it hasn't been updated to use the new API method and I'm having trouble figuring out how to use it.
thanks @elder pendant i have something like this
type: markdown
title: Summary
content: |
{% if is_state('sensor.lightson', '0') %}
{% else %}
***
**The Following Lights Are On:**
{%- for l in config.entities %}
* {{ state_attr(l.entity, 'friendly_name') }}
{%- endfor %}
{% endif %}
my sensor.lightson is like this
- platform: template
sensors:
lightson:
friendly_name: "Number Of Lights On"
entity_id: switch.porch_lights, switch.foyer_light
okay, so add the entity_id of each switch you want to track
where would i add that entity_id? not sure where in the markdown
did you read the link that I posted?
i just added it here
card:
type: markdown
title: Summary
entity_id: switch.holiday_switch
content: |
but i still need to hit f5
You're only tracking one switch?
i have a bunch, but for testing; i just added the 1
and it doesn't update when you toggle that switch?
it used it but with all these updates - now it does not change unless i hit f5
when its on or off
With that configuration it will only render the template if switch.holiday_switch changes state. If the template does not update then it seems you've found a bug
interesting; yes as i recall in the past it would update right away without hitting F5
What is the state of sensor.lightson?
@icy patrol posted a code wall, it is moved here --> https://paste.ubuntu.com/p/Mxhp6nwFZR/
sorry for the long paste
i use that to tell me the count of lights on
and then in the markdown i use that to say if more than 0 then display
and if 0 - dont display anything in the markdown
~rule6 @icy patrol
@icy patrol Rule #6: Spam will not be tolerated, including but not limited to: self-promotion, flooding, codewalls (longer than 15 lines) and unapproved bots.
Please take the time now to review all of the rules and references in #rules.
Command '~rule6' was invoked by: Tinkerer
Okay, but that wasn't what I asked. Is the sensor properly updating state?
yes the sensor is updating right away - if i turn on a light the number changes without hitting F5
okay, so why not put that sensor in the entity_id config?
even if i had entity_id: with the switch names manually, it was still not updating
What version of HA?
Home Assistant 0.110.2
How to do custom fonts: https://gist.github.com/thomasloven/97c2a441abff7e735b77bc4aff5f7c5e
When I make a template in a markdown card it updates on whatever entity I put in entity_id: in 0.110.2
I'm not sure where config.entities is coming from in your template
i have this on top of the markdown as well
type: entity-filter
entities:
- switch.holiday_switch
state_filter:
- 'on'
but with more; this is just an example
🤦 why are you omitting so much of this card config and then asking why it doesn't work? If I can't see the config then I can't help
sorry man; i just scrolled up and saw that i had that (been a while since it set this up)
i just did this
and seems to be updating live now
Hi all, i've got HASSIO setup on a raspi3B+ and running for some months. All happy and all, got it mostly on desktop to configure things and also on my phone (P20) to enable things. I also got some HACS plugins for Lovelace (like button-card and slider-entity).
Now i wanted to use my old Nexus 7 as a wall-mount so I can use it to turn on lights in the house. Got a problem where it wont load-in these HACS intergrations "custom element doesn't exists: button-card.".
I think that is weird, cause im logged-in as the same user as my desktop and phone... Do i need to include the Nexus 7 somewhere? Can't remember that i had to do something special for my P20 phone?
The HACS .js files are also in the lovelace recources file.
resources:
- type: module
url: /community_plugin/custom-header/custom-header.js - type: module
url: /community_plugin/mini-graph-card/mini-graph-card-bundle.js - url: /local/auto-entities.js
type: module - url: /hacsfiles/button-card/button-card.js
type: module - url: /local/slider-entity-row.js
type: module
Just getting started trying out HA after spending some time on OH. I would like to create a card with three buttons across the top that call a service controlling garage doors and three buttons across second row that show the door state via the controllers entity. Can someone point me to documentation or an example of how to group these together in the UI or the syntax for the yaml if I need to create this via a file editor?
I have 3 services in one horizontal card now and the sensors in another. Also wondering if there is a way to hide the inidividual cards I stacked to mae the horizontal card to call the services.
@kindred hull look at the HACS module Button-Card: https://github.com/custom-cards/button-card
If you haven't installed HACS yet: https://community.home-assistant.io/t/custom-component-hacs/121727
@worthy cosmos I have looked at that. Is HACS something that might later be a part of HA or woud it be more likely replaced when HA add more to standard functionality -- or it that just asking you to guess
I have no idea, but it looks like HACS is officialy supported by HA and it works great. The community is huge and there are plugins for everything.
Everything you find in HACS is not tested by Home Assistant, that includes HACS itself.
The HACS and Home Assistant teams do not support anything you find here.
supported in like "it does work great"
Not like >its made by HA and they support it
my bad
@worthy cosmos @dark dirge THanks - I think the sponge is full for today. Sounds like next best thing. I'll give it a try when the sponge isn't quite as full.
Oke guys, found the problem. It looked like the default WebView of LineageOS couldn't handle the load-in of the HACS plugins. I changed it in "Developer options > WebView implementation > (It was AOSP WebView, I changed it to Chrome Stable). Now it's working all fine!
Hi All, sorry to ask a very n00b question but i can't find the guy that was originally working on it.. had there been any progress on adding the state_color: true as a visual editor option?
@winged parrot Thanks for the link. I didn't realize there was a bug for that already.
anyone using the custom:home-feed-card using content_template: '{{display_name}} is {{state}}' just shows "is"
with MQTT devices friendly_name isnt listed. Does this need to be done using customize ?
anyone else having trouble with the mini media player displaying in lovelace?
no, but I am still struggling with getting the artwork to show on it
when used in combination with auto entities card
@swift marten make sure it’s updated
Hello - I absolutly know what my password is for HA, but it refuses to change, or accept my password at login. Is there an easy way to change my password without "knowing" the old one? Running env on raspberry pi.
card:
type: entities
type: 'custom:auto-entities'
filter:
include:
- entity_id: media_player.plex_*
options:
group: true
type: 'custom:mini-media-player'
state: playing
``` ^ this works really well to show all of the currently active Plex sessions without showing a whole bunch of idle/unavailable accounts, but I can't seem to get it to show anything but a blank background regardless of what attributes I specify for `artwork`
I'm updated to the newest HA and the newest mini-player from HACS that upgraded to today
@swift marten is it included in the lovelace resources?
configuration -> lovelace dashboards -> resources
I'm not sure where to look for that- in my files on the pi or in the UI?
sorry, pinged the wrong person
ah hold on let me check
or just go to /config/lovelace/resources
old hacs used to have a button or prompt you to automatically add it there; I think newhacs does it automatically without asking
but I'm not 100% sure
in the resources area it says this:
/community_plugin/mini-media-player/mini-media-player-bundle.js
Is that where yours is? 🙂
That needs to be /hacsfiles/ now
mine is in /hacsfiles/mini-media-player (/config/www/community)
let me edit it and see
will I need to restart now to see or will it fix itself if that was the issue?
Changing resources requires calling the reload_resources service now or restarting
Oh. That's new then, sorry.
GAH
that was it
thanks guys...been driving me insane all weekend
does every resource have to be switched to hacsfiles now?
No, that’s just where HACS puts them.
ah
If you have non-HACS plugins you can leave them alone
okay great
Hey All, does anyone know what other cards (other than custom button and custom swipe card) on top of picture element cards?
im trying to place a weather card and a mini graph card it just gives me errors
@pastel rain anything can be put on the picture-elements card, but some core cards need to be pre-loaded and if using a core card you need to use the hui-<card name>-card trick
ahhh that is what I was missing. thanks!
I see the message about clearing your cache to fix the giant HACS logo problem. Is there a solution if I'm seeing it in the iOS app as well?
There’s a ‘clear front end cache’ option at the bottom of the app settings
And you can pull down from the top of the screen to reload
Oof, it's been a good year at least since my last major upgrade. Time to fix everything that's broken.
Are there any integrations/plugins that allow you to modify appearance of the "show more info" card when you click on an entity in lovelace?
browser_mod
Thank you!
hi. is there a way to prevent of shortening the text within a conditional card? i'ld like to display around 3 lines of text - its cut to one line...
Hi all, good day
Are there ans custom button card specialists around here? I'm new to it and kind of overwhelmed by it's multi functionality. Here the gathered requirements:
lovelace horizontal stack
- button card 1: showing night or day (entity sun.sun; states above_horizon, below_horizon) and elevation rising or sinking (entity sun.sun; atribute rising, value true or false) with an arrow up or down in top right corner. Total of 4 diffferend card states.
- button card 2: showing timestamp for next event sun setting or next rising, depending on what comes next (if above horizon setting, else rising), icons mdi:weather-sunset-up and mdi:weather-sunset-down (entity sun.sun; atributes next_rising or next_setting; frontend timestamp localized with timestamp_custom("%a, %d.%m. — %H:%M:%S")
Anyone else interested in this or wanting to contribute a bit?
ahh, forgott the icons for night or day @@
night: https://cdn.jsdelivr.net/gh/bramkragten/weather-card@1.4.3/dist/icons/night.svg
day: https://cdn.jsdelivr.net/gh/bramkragten/weather-card@1.4.3/dist/icons/day.svg
I don't think that's supported in the new method yet, but you can approximate the old method.
@polar kelp Does that mean that my icons need to have the correct size in order to be scaled correctly?
I've kind of lost track at the moment. Can't really tell.
My cards are looking strange when clicking on them on mobile.
https://i.imgur.com/jzsc0yi.jpg
Is this a known issue or something on my end?
Running latest stable: 0.110.2
Hi All, I'm having issues with one device on my network (An old iPad im trying to repurpose as a terminal for a room in the house). Both using the App and Safari yields the same errors, hence moving this issue in here.
Essentially I appear to be having a connection error. I can register the device, log in, view lovelace (Inc a live feed of a camera and media players). However trying to turn entiities/devices on and off does nothing. The switch isnt greyed out either, its as if i am switching things off and on but the devices do not work. I also cannot see a lot of the integrations and addons in my rhs panel. Sometimes they appear, sometimes not. Even when they do, I cannot load any pages up other than Lovelace most of the time. Even supervisor!
Ive also tried Chrome for iPad, to be sure.
Also, its working fine on a Macbook Pro, Windows 10 PC, iPhone 11 Pro, and latest gen iPad. It appears to just be the 1 device I actually want to be able to use to control homeassistant from that is faulty. Of course!
What generation is the iPad?
4th!
Assuming it's fully up to date with iOS 10?
10.3.3
Yep, Ive tried a factory reset, renaming the iPad to ensure no clashes there, static IP given
Try to create a new account that is specific for that device
I had a weird issue with my kindle where i tried to login with my admin credentials
and it just wouldn't take -- kept on hanging
I created a specific account/login for it
Okay, tried that. Still the same issue.
So it "halfway" loads
Yeah, I can view lovelace, even the live stream. Switches appear functional, but arent. I can sometimes see all my adons, sometimes cant, if I try to load anything I get errors about connections.
I bet you it's an addon
Also on first login, I get "unable to connect" hit retry, login and it then logs in
If i go into configuration, for example, I can see options. But trying to enter any of the options results in an endlessly spinning wheel or "error while loading page..."
Supervisor also doesnt load
10.3.3 is relatively old but should still support some browser components
indeed, I was hoping i could make use of it anyway.
It honestly might be a limitation there
its odd because it allows me to install the latest app, and app has the same issue
ah i see i see
for the hell of it, try opera or firefox?
its strange how it'll load lovelace and allow me to interact with it all no problem, just results in nothing.
I'll try firefox, may as well
i'm not a dev, but i work for a mobile app company, so i know enough that most of these apps share services from the OS
😦
Ah piss!
This might be an idea -- but maybe make a dashboard that's compatible w/ Ios 10.3.3 use all barebones cards
I wonder if any of the third party tile apps. work.
or use tileboard
yeah
i was gonna suggest that
Homekit might work?
homebridge***
does homebridge essentially allow all my cheap shit to work with home app?
Bingo
I use it so my wife can use her home app to control her stuff
And I have it connected to home assistant so I can control what entities she can control or not
She'll never control the thermostat on my watch
let's just hope that the home app actually works on 10.3.3
hahahah nice one, its on here so ill give it a go after lunch. Thanks dude!
yep good luck !
Hey guys!
Is there a way to Use an attribute value as variable in a Picture Element configuration code?
Basically, I am trying to use the brightness of a light as the opacity percentage of a state_image. In order to accurately reflect the brightness in a room in a 3d plan.
This is what I think it should look like. Although with a valid variable. https://i.imgur.com/uloExUt.png
I also tried using "{{ state_attr('light.livingroom_lights', 'brightness') }}"
is there a way to prevent of shortening the text within a conditional card? i'ld like to display around 3 lines of text - its cut to one line...
Update: Homekit is a workaround for all those whoarent too attached to lovelace running older iOS devices. Thankyou @leaden yarrow
Glad I could be of some help!
I'm using a custom mediaplayer card (https://github.com/kalkih/mini-media-player). But the volume, next, previous and play/pauze buttons just disappeared. http://werra11.eu/i/26-05-2020_14:14:07.png. They are supposted to be on that white line. Does someone know why they're gone?
I'm using a custom mediaplayer card (https://github.com/kalkih/mini-media-player). But the volume, next, previous and play/pauze buttons just disappeared. http://werra11.eu/i/26-05-2020_14:14:07.png. They are supposted to be on that white line. Does someone know why they're gone?
@winter blade They are also gone for me. I haven't found a solution yet
Guess something changed with the latest HA release. I've tried updating the card, didn't work
Little question, is it possible to hide the icon of an entity in a entities card ? I tried "show-icon: false", "icon: none", "icon: '' " but no result
I'm using a custom mediaplayer card (https://github.com/kalkih/mini-media-player). But the volume, next, previous and play/pauze buttons just disappeared. http://werra11.eu/i/26-05-2020_14:14:07.png. They are supposted to be on that white line. Does someone know why they're gone?
@winter blade, @crystal moat You'll need to update the card and clear your browser's cache. v0.110.0 of HA introduced changes to how icons are used.
Is there a way to have a horizontal stack card span more than one column?
Turn on panel mode?
Just be aware that panel mode means you'll have to nest all your cards, since it'll only display the first one.
Panel mode + layout card or just do vertical/horizontal stacks
@karmic tiger Thank you, it worked!
Is it possible to change the display name of the "default" theme and the "backend-selected"?
is there a way to prevent of shortening the text within a conditional card? i'ld like to display around 3 lines of text - its cut to one line... 3rd attemp to get any reaction to my question.
Those aren't just display names, they are keys. You'd have to make a custom JS plugin to change it to have different display names
@vapid field what card are you using to display text? Markdown?
hi Villhellm. its a condition card
if condition is matched it displays a sensor. the sensor is a text.
i do have a screenshot. but donno where to put it...
You could use a markdown card to split the sensor value into multiple lines
i dont wanna split the text, i wanna displayed them in full, without shortening. the override with a markdowncard may work.
why im asking: in earlier versions of HA it worked without any hassle. since <i forgot> its shortened.
0.97 or such. cant remember.
i am looking for a trick, something like masking it with special characters, or such. isnt there any trick?
i tried all i know, none worked
ok, it works as markdown. tnx @elder pendant !!
mode: yaml
custom_header:
header_text: 'Custom Header'
resources:
- url: /hacsfiles/custom-header/custom-header.js
type: module```
I'm trying to set up the custom header module, but I get this error: `Invalid config for [lovelace]: [custom_header] is an invalid option for [lovelace]. Check: lovelace->lovelace->custom_header. (See /config/configuration.yaml, line 20).`
HACS successfully installed the custom-header.js to /www/community/custom-header and based on their documentation the custom_header config goes under lovelace
Custom Header config goes in ui-lovelace.yaml. Not in configuration.yaml
"Configure UI" and then "Raw Config Editor" or in the file ui-lovelace.yaml
Though the example yaml shows the resources block still, so I can see how you were confused
at the same level as resources: and views:
I was confused by this line
Resources used to be defined in ui-lovelace.yaml. This is a relatively new change
I submitted a PR to update the Custom Header docs
My buttons in Lovelace stay selected after clicking them
That shaddow there didnt hang out in the past
Once i click outside of the window it disappears
@candid lintel what browser, what version of HA, and what is your card config?
Latest version of HA
this is from a Vertical Stack Card Configuration but it's on every card in my UI
Latest is not a version
ha sorry
Little question, is it possible to hide the icon of an entity in a entities card ? I tried "show-icon: false", "icon: none", "icon: '' " but no result
@edgy canopy So it means it's not possible ?
Huh look at that..Home Assistant Core 0.110.3 You are currently running version 0.110.2
guess I'll do the update
So not latest 😉
@edgy canopy icon: none works for me
in fact icon: followed by anything that's not a valid icon shows blank
Yeah but the space is empty, no solution for removing the space ? Because the text of the state need more space (see https://imgur.com/a/aFwvdcF )
Then there is no default way to do that. You'd have to use a custom row type or a different card altogether
Okay, I will try to use custom button card. But I want the last-changed time. In entities the time is relative and in my language ("there is 1 day ago...") but in button card I've "2020-05-26T15:39:01.044010+00:00", is there a function like "as_timestamp(states.sensor.mysensor.last_changed)" to do the same job as last-changed phrase in entities ?
You can use a markdown card with a template to display anything you want
Great idea but no function to convert a timestamp into the best unit according to the value ?
Updated, and on the lastest version of HA! I still see the shadow when I click on a button, even on a fresh view https://imgur.com/9xTTFhl
What browser?
i tried Chrome and Microsoft edge
I am trying out the Lovelace layout-card. I quite simply want columns that I can add cards to, three columns that theoretically can become as tall as they want, stacked side-by-side. Can someone please let me know the concept I need to adapt?
Sounds like you want a combination of vertical stack and horizontal stack cards
in the example i just posted i have 2 rows of 4 cards
So, a horizontal-stack card that surrounds multiple vertical-stack cards?
yea pretty much
Let me try that! Thanks!
Not sure you got the time right there....
Here is my current lovelace config: https://paste.ubuntu.com/p/2Xyx3mnbwB/
But the columns are compressed horizontally.... They only share the width of one column (if that makes sense)
You need to set the view to panel mode
Has anyone managed to add a datefield or datapicker on the frontend on lovelace and pass those values into a mysql procedure or query?
So, the current config + panel mode?
Perfect thanks Magnus in this moment just found https://www.home-assistant.io/integrations/input_datetime/. Well looks like I'll be busy tonight!
Hehe... Best of luck!
Another related question... Are there any fillers available? Now that I have three vertical stack side-by-side I´d like to bump cards in one column dow so that it matches the card in the column besides it...
Not sure that made any sense.... 😕
You mean you want some vertical padding between cards?
You could try markdown
Alternatively, there are custom cards that can help with layouts. E.g. https://github.com/thomasloven/lovelace-layout-card#vertical-layout
Not something I've done yet, so I don't know what the best answer is. My dash is a mess 😄
The layout-card is the reason I´m here in the first place...
@elder pendant I´ll give it a try!
Might want to try vertical stack in card as well if you want a seamless look
Is that anything else than vertical-stack?
It turns it all into one seamless card, so you don't actually see the separation between cards
Hey, is there a way to remove the calendar from the side panel?
Yeah, don't have any calendar integrations.
It appears by default when you have at least one and currently can't be hidden.
man...
Alternatively you can use this plugin https://github.com/Villhellm/custom-sidebar
(shameless plug)
lol ok I'll look T THAT
That's neat, Villhellm
@elder pendant will I need to include add ons I've selected to show in sidebar on my sidebar-order.yaml file?
Don't include anything you don't want to manipulate
ok great
Lovelace question! Can you use only one sensor on a entity that has 4 sensors on a history graph?
You can see on the posted link that there are 4 sensor temperatures for a single entity. I want only one of them to show. The HA documentation on this lovelace card doesn't seem to have any information about how to fix this.
That's a climate entity, not a sensor. Check Developer Tools > States to see if there is a sensor there with the value you're looking for
Doesn't look like there is a specific sensor. The value of "current temp" is an attribute of the climate entity.
You can make a template sensor for an attribute
Ah. Interesting idea. I'll try that. Thanks!
@elder pendant Taking your advice from earlier. I made a template sesnor and set it to the entity attribute. But now i'm getting unit issues, even tho in the config I should have it the exact same. Look at these images to see the issue, and the developer state checker to compare units: https://imgur.com/a/D6MjFXP
I’ve added new Shellies (with MQTT) manually to the config via the file editor and when restarting via Configuration…server controls…restart does not seem to do anything. I have to manually unpulg my pi3 for the devices to be recognised in the states. Am I doing something wrong? I think the restart has stopped working?
Which files is safe to remove from .storage folder which is equal to fresh install with no entities? Config files outside is another thing I will handle.
The thing is after upgrade to the latest build strange things happens with frontend addons, missing icons in left menu and so on. And searching for other methods to try before reinststall the whole system.
Tried restore backup, but when I perform upgrade the strange thing appears again
Awesome - can pull a mysql stored procedure (with 2 date parameters) in grafana. Then I should in theory be able to place this in an iframe or appropriate object on lovelace.
Nuke everything in your config folder @warm plover
i'm trying to change the icon (more specifically the device_class) of my door sensor so it shows a door instead of a checkmark. I've been able to include my customize.yaml which changes the sensor to opening but it still shows a checkmark in the interface
Open/close the door
thought of that 😉 still shows a checkmark
yes, reloaded, even restarted all together, the device_class was set to opener.
let me try door
lol.. thank you very much.. that was it.
is there an explanation of the classes? I'm assuming the device describes certain possibilities but how would I have known that it had to be door?
See the link 😉
@elder pendant I'm stuggling to get your sidebar plugin to work. I downloaded the custom-sidebar.js file to my /config/www/ folder. My sidebar-order.yaml file just looks like this:
order:
- item: calendar
hide: true
and I have this in my configuration.yaml
frontend:
extra_module_url:
- /local/custom-sidebar.js
themes: !include_dir_merge_named themes
but calendar is still on my sidebar. Am I missing something?
Hello! I'm installing https://github.com/ofekashery/vertical-stack-in-card through hacs.
The guys says that I should the resource in ui-lovelace.yml, but settings lovelace mode to yaml is a bit to advanced for me right now.
Are there any possibility that I can add the resource in the configuration.yml? or directly in the card I'm going to create+
Anyone here can tell me if its possible to add an "or" condition to a "Conditional Card"?
@versed forge posted a code wall, it is moved here --> https://paste.ubuntu.com/p/q9s7xTSRg2/
@versed forge posted a code wall, it is moved here --> https://paste.ubuntu.com/p/vtW7XfHSXM/
I see... 😄
@versed forge Rule #6: Please do not post codewalls (longer than 15 lines) - use sites such as https://hasteb.in/, https://paste.ubuntu.com/, or others.
Please take the time now to review all of the rules and references in #rules.
Command '~codewall' was invoked by: Tinkerer
~codewall @versed forge
@split granite Yeah realized it 🙂
A little late... but hopefully you'll remember in the future 😉
I will
Nevermind...i found the solution just add
conditions:
- entity: media_player.kuche
state_not: paused
- entity: media_player.kuche
state_not: idle```
and it works 😄
@split granite could you give me some advice for my problem 🙂 ?
Sorry
Not so bad when thanking folks, but when demanding help....
Because that's how it comes across
Pretty sure HACS handles things for you, but 🤷
You're totally right. My apologies
No worries, it seems harmless from your side
Getting the 10th ping this hour... is frustrating on this side 😉
I think HACS adds things automatically if you're in UI mode
You can check by enabling Advanced mode in your user profile and looking in
-> Lovelace -> Resources
I thought to as well, but it doesn't add things automaticly in UI mode.
The resources that I installed doesn't appear there.
Let me spin up my test instance and test
Just used HACS to install a card, resources added automatically
Thats nice. Let me try again
I tried installing: Lovelace Xiaomi Vacuum Map Card
Reinstalling ok -> configure ha -> lovelace dashboards -> resources -> nothing
:S
Hmm strange. The log doesn't say much
If you're having problems with your updates to your configuration:
- Check the troubleshooting steps
- Check your log file - remembering you may need to set logger to
infoordebug - Explain what the problem you're having is - sharing configuration, errors, and logs
Command '~troubleshooting' was invoked by: Tinkerer
I'm using a Picture Elements Card with a floor plan image. What I want to do is to have a group toggle on/off by clicking a button on the floor plan. Here is what I have in my card configuration:
title: Loft
tap-action: call-service
service: homeassistant.toggle
entity_id: group.loft
style:
left: 44%
top: 28%
background: white```
When I click on the button nothing seems to happen. I've also tried doing the same thing by calling a script that toggles the group entities. But I get an error saying it can't find the script, but from the UI I can run the script and it works. How do I toggle my group (that contains 3 switch entities)?
@unreal urchin posted a code wall, it is moved here --> https://paste.ubuntu.com/p/zQdpKW6Bsf/
Any idea what's wrong with this:
type: glance
entities:
- entity: light.tv_plafond
tap_action:
action: toggle
oops sorry, didn't know how to make paste it like everyone does
@vapid field are you getting an error?
Is there a way to get at entity state attributes in entities cards or markdown cards' templates?
@tight scarab {{state_attr('climate.thermostat', 'current_temperature')}}
@tardy niche that's not how you use actions.
Actually, that doesn't even use actions.
you need to define service_data and put entity_id in there
@past falcon sidebar-order.yaml is in your /config/www directory as well? And did you restart HA after adding the extra module?
@mild veldt Thanks! That got me going the right direction. Here is what I ended up with and it's now working...
title: Loft
tap-action: call-service
service: homeassistant.toggle
service_data:
entity_id: group.loft
style:
background: white
left: 44%
top: 28% ```
you can remove tap-action
@mild veldt done. 🙂
I got further now 🙂
When I try to add a custom card/ manual write yml and paste inn the code.
The card configuration says "
Cannot read property 'setConfig' of undefined"
and on the right side it says "No card type found"
The type I´m using is - type: 'custom:vertical-stack-in-card'
I´ve installed that type through hacs and it´s in the resource.
It was just a warning sorry @mild veldt , thanks. I got confused but it works
thanks, iantrich 🙂
I made a template sesnor and set it to the entity attribute. But now i'm getting unit issues, even tho in the config I should have it the exact same. Look at these images to see the issue, and the developer state checker to compare units: https://imgur.com/a/D6MjFXP
Looking for advice?
service_data:
entity_id: fan.dyson_pure_cool_link
oscillating: "{{ not state_attr('fan.dyson_pure_cool_link', 'oscillating') }}"
``` hmm @mild veldt am I able to do something like this? It doesn't like the syntax. Basically need to toggle something that doesn't have a built in toggle.
@tight scarab you cannot use templates in Lovelace unless specifically supported by the individual card
Ahh ok, got it. So for instance, markdown cards support it, but buttons maybe not.
You could use my config-template-card
That allows for JavaScript templates where ever you want
Sorry to be an annoyance, any one have any idea with my issue above? I can't seem to figure it out. 😦
I don't see the issue @raven ember ? Looks like it's in degrees F?
ahh
For some reason, my template sensor is in "F" and the rest are in "oF"
did you define it as in degrees F ?
like I have one:
- platform: mqtt
state_topic: "Relay/sensors/temperature"
name: "Downstairs Relay Temperature"
unit_of_measurement: "°C"
That's weird that it's defined as °F but shows as just F
exactly
Did you ever have it defined as just F?
I can try real quick
No I mean did you have it set to F before setting it to °F
I believe i did the first time.
Then you have values in your database with just F which is causing them to appear as F in history
You need to purge your DB of every entry related to this entity
Best way to go about doing this?
alternatively you can just wait until your next purge cycle
Are you using the sqlite db still?
Not sure. I just installed it the typical way no a Raspberry Pi 4. so idk?
You should see a home-assistant.db (or some such) file in your config folder
Thanks!
@past falcon sidebar-order.yaml is in your
/config/wwwdirectory as well? And did you restart HA after adding the extra module?
@elder pendant doh had to clear cache
@mild veldt using your card now, but in the JS templating, how might I get at entity attributes? I can get the (in my case) states['fan.dyson_pure_cool_link'].state (on) but am trying to dig into the state attributes (oscillating = true)
How easy would it be to send a push notification to my phone with a photo of a camera on my network, and a button to turn on an entity whenever a door is opened?
I looked into the notification thing on the wiki but it doesnt say much I can understand
That would be actionable notifications and more likely a quicker response in #android-archived or #ios_and_mac-archived
@tight scarab there's an example at the bottom of the ReadMe
Oh ok thanks
When the frontend becomes inaccessible, what should I look for in the logs? I'm running HA in a VM, and HA is up and running and logging stuff in real time - but, after a restart, I cannot access via IP or URL (DuckDNS ).
I'm sorry I didn't see that Ian, I was only looking at the variables section at the top of that example.
Failed to call service fan/oscillate. invalid boolean value ${states['fan.dyson_pure_cool_link'].attributes.oscillating == 'false' ? 'true' : 'false' } for dictionary value @ data['oscillating'] still seems to be unhappy though. I'll keep mucking with it, at least feels like I'm on the right track with the JS templating. 🙂
Have you tried losing the single quotes around the boolean values?
Same message. But good to know if they are treated as constants and not literals
@tight scarab how are you using this?
Please use https://paste.ubuntu.com/ or https://www.hastebin.com/ to share code or logs.
Command '.share' was invoked by: iantrich
in a custom:button-card inside of a custom:config-template-card inside of a custom:vertical-stack-in-card 🙂
So the problem is it wants a yaml true/false but the config-template-card returns a string
can I cast it somehow
I guess I could do that. This is a floor tower fan that has some extra settings like "oscillating" or "night mode" where the LED display goes dim and it'd just be nice to have a single toggle button for each of those rather than separate buttons to turn the mode on or off
There are any number of ways around it, I suppose I could even create an input_boolean and have it trigger a script or automation when it gets toggled
overkill? maybe
You're essentially trying to put a script in Lovelace as is. I think a single script should be able to handle all states
getting a bunch of this on the upcoming-media-card, but i browse to any of these directly in another tab they load fine. any ideas?
sorry if this is more of an #integrations-archived thing
durrrr, ublock did it
hey I have a fresh install on Debian and I see the fronted version is 20191204.1 (0.103.6) and a fresh installation on a rpi has a newer frontend 20200519.0 (0.110.0)
Can I install the newer versions on debian as well?
Not sure which install you're using? If you have add-ons, or see references to either Hass.io or Supervisor, then you're using #330944238910963714. If you're running natively in Docker or in a venv then you have the #672217570283094017 install method
Command '~which' was invoked by: Tinkerer
☝️ See the relevant channel for your install method
any reason to why my lovelace ui would create 3 columns but leave the middle one empty? https://take.ms/I0xiK
can I disable the 'logbook' and 'history' tabs on the left for some users?
Anyone encountering this https://github.com/keatontaylor/alexa-actions/wiki/AdvancedFeatures? I can get the event_person_id earlier but now I am unable to get it, any way to troubleshoot this
I have some covers that have position and tilt attributes. I have an entities card that lists them all and gives the standard up/stop/down buttons for covers. I then added to each entity listed a: secondary_info: tilt-position This works but after a reboot it won't show any of the secondary infos unless that attribute is changed. The line is totally blank. Once I change the tilt, I'll get "Tilt position: 64" displayed. Is this something related to KNX sensors or an issue with Lovelace or my config?
Ok odd one here. I have a lovelace card with the url path to grafana for a graph. If I use my duckdns as the domain in the url it will work on my phone (local wifi), but get a 401 error on my pc browser for the same graph. If I swap it by putting 192.168.1.26:8123 in the url as the domain for the graph it will show on my pc browser but get the 401 error on the phone app then. Its one or the other. Am I missing something? Thanks
Clear the cache on both browsers and see which one works (if any).
cheers Bigfork. Cleared the cache but did not work - But then I opened the portal on the pc browser using the duckdns domain - logged in and then it worked. Then opened another firefox browser and logged into the account using the IP and port address and appears to have synced everything up now.
I'm 2-for-2 today solving peoples problems with the wrong advice 🤣 I need to write an advice column for the local paper.
Or Politics!!! 😄
In theory your step should have worked first time Bigfork 👍
But in the world of IT not everything works as planned
can I disable the 'logbook' and 'history' tabs on the left for some users?
@lime glacier I'd also like to know this. I want access to them, but I don't need them in the tab
Yeah, it doesn't look it as far as I can tell. I just want it for admin users
Does anyone know of a custom card that is similar in appearance to the homekit app and how entities appear on there?
Similar to HomeHabit app. I use that on my phone for its simplicity
Hi all
I have a MQTT sensor for PIR motion detect
with two statuses
"Spento" and "Movimento"
how can I colour the state-icon
on the floor map
with two different colours, depending on the status?
Make sure it's a binary_sensor
That's my definition
''' - platform: mqtt
state_topic: "homeassistant/pir1/status"
name: "Pir Veranda"
unit_of_measurement: ""
value_template: '{{ value | round(0) }}''''
How shall I change it?
You didn't answer the question 😉
You didn't make a question 😉
but a statement
it's a sensor... normal one
not binary_sensor
I think what he's saying is you should probably add a binary_sensor
if you want to know if there is movement or not
Or you could do things the long way and create an automation or script to push an icon/color change
Can I define a binary sensor as mqtt?
if statuses are "Spento" and "Movimento"
?
Yes
https://www.home-assistant.io/integrations/binary_sensor.mqtt/ just define payload_on and payload_off
sounds like you'd probably need to define a sensore_binario instead
also why are you calling round(0) in the template if the value is a string?
that was an error
thanks @elder pendant I will give it a try
@tight scarab nice joke... really!
I'm still laughing...
😞
There are a million more dad jokes where that came from. If you keep trying to perform numeric operations against string values, you'll have a real battle on your hands.
round(1): fight!
Hello guys, do you know on which parameters the frontend enable the open and close buttons for a cover? One of the user of my component (Somfy) see them disabled. Its covers have supported features set to 11.
Is there any custom card for input select? I'd like to customize how many options are displayed at once, so the dropdown doesn't get too big. If there isn't, are there any other custom cards that give me a nice UI to select numbers (from 17 to 26 for example)?
Not that I've ever seen
Input number with a 17 as min and 26 as max
I still have the issue of not having the ability of choosing how many numbers i want to display at once
It sounds like you want something that lets you generate the HTML yourself on the fly. That way, you could add the size attribute to the <select> element. Unless there's a card that lets you specify that attribute... which seems less likely.
This might let you do it but it's more involved. https://github.com/custom-cards/button-card#javascript-templates
I updated to current today and noticed this strange HACS background. Does anyone know how I can get rid of it?
https://i.imgur.com/Y3rD4BG.png
Thanks @karmic tiger
@scenic current update HACS, refresh cache.
@karmic tiger Thanks.. Is that some sort of notification system? Like it only shows up if there's an update?
No, it's a bug.
🙂
So that cleared up the image I showed but now the HACS sidebar icon/link is gone. It does appear/disappear quickly. Do you tell me what the url is for that page so I can try to get to it manually?
/hacs
Yeah, something went wrong. I'm getting a 404 when I go there.
Is there a way to add items to an entity card, using a wildcard? For example I name my kasa switches kasa1-kasaX, can I add them all to a card without explicitly listing 1-X on the card?
Maybe https://www.home-assistant.io/lovelace/entity-filter/ using attribute: friendly_name and operator with a regex?
Although... you'd have to feed in a list to begin with, so maybe not what you're looking for 😦
This might be closer, Ezrem: https://github.com/thomasloven/lovelace-auto-entities
Specifically this section: https://github.com/thomasloven/lovelace-auto-entities#wildcards
Yeah I think that might fit the bill, thanks!
I've added this:
weather-icon-sunny: mdi:white-balance-sunny
To my active theme to remove the yellow circle when it's sunny. But for some reason there is just no icon right now, does someone know why?
anyone got this working? https://github.com/TheLastProject/lovelace-media-art-background
looks cool, but it ain't workin for me.
I'm making a floor plan in the picture element. I get how to resize an icon with --mdc-icon-size, how do I resize a badge? I'm trying to put the tempreture of my bedroom in that room.
@tardy sinew posted a code wall, it is moved here --> https://paste.ubuntu.com/p/h3x9TjZ2tZ/
So, the icons work, just not the badges I jusy dont know how to make a badge smaller. Really i just need a better reference. A lot of stuff was old I saw and didnt even reference the newish picture elements.
@tardy sinew have you tried using transform?
- type: state-badge
entity: weather.local_hourly
style:
left: 10%
top: 10%
transform: scale(.5,.5)
That works for me
Hi all
I have a floorplan map
In this, I have the images of my surveillance cameras
e.g.
entity: camera.veranda
style:
border: 2px solid red
border-radius: 10%
left: 75%
top: 75%
width: 10%
type: image
As you can see from the image, when the camera_image is refreshing... or if there's a connection issue, the image appears to be blank
and bigger
is there a way to prevent this?
How can I do back ticks?
Usually the one next to 1️⃣
@dapper grotto To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks. Here's an example:
```
code here
```
Watch the animated gif here: https://bit.ly/2GbfRJE
DO NOT repeat posts. Please edit previously posted message, here is how -> https://bit.ly/2qOOf1G
Command '~format' was invoked by: Tinkerer
Not on my keyboard 🙂
Then copy and paste 😉
#botspam for testing...
@leaden yarrow is there a place in this article that explains how to fix my issue?
Did you see the last post in the discussion?
let me check
It's talking about streaming and how to setup the camera
But I don't use the camera element
So I can't say how well it works or if it does
I apologize, I might have misread what you wrote
i'm re-reading your question, it might be -- because the user in this issue is looking to get a constant stream in their camera, yours keeps breaking during the refresh
there might be something there
I'll re-check
It's different ones...
he wants live image in the floormap
I tested live image, and it's slowing down everything (with 12 cameras)
so I have still image that refresh every whatever seconds
gotcha
but during this refresh... I got the blank image
and it's annoying... cause it's bigger, ugly and covers the rest of the map
I use Chrome
With Edge, I cannot even load the custom components... I see a lot of red boxes with error messages
Have you tried just using the image on a card of it's own to isolate the problem?
So to see if it renders the same blank image without being involved in the picture elements master floor plan card
If it does the same thing, then you have an issue with the entity, if it doesn't then we know for sure it's the card
I have another card
with camera_image and picture-glance
and it works perfectly
Maybe the problem is type: image
but I cannot use picture-glance on a floorplan map
Right, it might be that, there might be some addons/plugins for picture elmenets that you may be able to utilize
I hope so 😦
@dapper grotto I'm guessing your back tick issue is that you are using an Italian keyboard: https://superuser.com/questions/667622/italian-keyboard-entering-the-tilde-and-backtick-characters-without-cha You'll need to map it, copy/paste as you did just now or use Alt codes (Alt-96).
When changing pictures in lovelace you need to clear browser data each time. It's a pain in the ass but it won't show any updated images otherwise.
I keep telling myself I need to add a shortcut button for clearing browser cache each time I'm debugging Lovelace. Then I forget when I get it working 😉
@hexed furnace how shall I do it?
the camera image is updating automatically
the blank image appears only between the two updates
from old image to new image
sometimes I get a plain horizontal red line...
the border becomes a line without the image
I was thinking more about images. Let me try a live image myself in a picture-elements card and see what it does.
It seems to be the card. I can get it working in picture-entity but not picture-elements.
From the docs it seems like it should work.
Is your camera configured as a stream: in config.yaml?
- platform: generic
name: Veranda2
authentication: digest
I'm not getting to to work. Can't figure out if it's a stream setting or a camera setting.
So it can be a bug?
It could be but HA issues for me are usually between my chair and the keyboard.
🙂
Is it possible to have a view on mobile devices and another one on desktops?
You can pick a default dashboard per device.
Or you could use custom:state-switch to swap out the contents of your view depending on e.g. screen width.
@polar kelp How do I define a device? I mean, I want a default dashboard on all users use a phone (me and my kids), and another when I use Chrome on my computer. Where do I setup this?
Under Configuration -> Lovelace dashboards, you can select a dashboard and click "Set as default on this device".
Ah thanks. I then have to rebuild my gui to not use yaml 😛
Nah. You get yaml dashboards in that list too.
@polar kelp Ah, thats true tho. Thanks.
@polar kelp @copper mural you can set the default in your profile as well
Anyone got tips on customising the icons for cover entities? I have cover.my_curtains defined as curtains... but it uses open/closed blinds as its icon and has up and down arrows for open and close... which are not ideal.. I'd like to replace the buttons with something like <> and >< (arrows not less/more-than), and preferably better icons for the main icon (though can't see anything suitable on mdi)
@mild veldt I'll see that now. Awesome!
is the following not do-able? trying to only show media player entities on a page if they aren't idle or off https://pastebin.com/3cVLQhCY getting error that must specifty entity from media_player domain
nvm i see a conditional will do what i want
is there a way to make a popup when clicking on an entity?
With the browser mod custom integration, yes
although even doing a conditional of not equal to off still getting them showing
nvm didn't realize they show in editing mode haha
no hacs support for browser mod yet? nevermind looking in the wrongplace
Hey guys so I just visited a home with Savant tablets on the walls, and I really liked the layout of the tablet, and how thin it was. Is there any way to get something like that for home assistant? Both the thin tablet and the user interface
Well, "thin tablet" is just a case of finding one - or using a recessed mount
The UI... Lovelace is fairly customisable, particularly if you use Floorplan. There's also a stack of other frontends you can use
In the end it's all html and js
What about music? Can I load a playlist of songs into home assistant and when I click a button the list comes up, so I can select what I want?
Home assistant isn't really meant to be a media server
What if I connected a media server to it?
I think there are some integrations for it
Oh ok I’ll check those out thanks
Hey. quick question, i have a shutter via mqtt, and in entities I can see "up", "down", "stop" and the "position" (a slider), how can i get the slider in the dashboard. if i add the entities there i only get up down and stop. https://ibb.co/kSwWwHg
thanks will check it
@leaden yarrow that was it thanks! Is there a good guide for stuff like this? The documentation about it is helpful but it doesnt tell you whats valid for which objects.
Is it me or did Dev Tools used to open up to States instead of the Info tab? I think there was an option somewhere to not have it open Info, but I can't find it.
the default did change but there was never an option to my knowledge
you could use a custom plugin to change the href for that link
hi guys. New to HA... which is the best way to display if my heater is or on off in HA dashboard? I can send mqtt data from nodered, which is already connected, i just don't know for example if i need to create a binary sensor, or a boolean or what else, and how to set it via mqtt or direct call via nodered ha nodes, and finally have it display for example a lamp turning on or off... nothing complicated but i can't imagine the correct path to do this
Creating an entity is the way
Binary sensor, or make it bi-directional with a switch
Binary sensor, or make it bi-directional with a switch
@split granite hi, a generic switch, an mqtt one, or template? me and @swift forge are just digging into this from 2 days...
Up to you really, I'd suggest an MQTT switch seems the simplest
Heck, you could use an input_boolean defined in HA that AppDaemon can interact with
and so to have it in frontend, just add a corresponding card... let's try... @swift forge up to you for now! 😄
Hello everybody ! Someone know what component the web interface of HA requires ? (Javascript, flash player...) ?
I've an Android tablet, stuck in Android 4.0 (no update and no custom rom), HomeAssistant app is not availaible, so I would use my browser, but Opera mini didn't find the server (WTF) and Firefox show "Home Assistant" as title page and a blue rectangle but no authentication
It's javascript, just newer fancier javascript
This is a pretty important part: https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements
Anybody here used "config-template-card" for advance things? (Like nesting a variable in a statement ${} )
@edgy canopy is it 4.0 or.. 4.x?
You can go to something like apkmirror.com and download an older version of Chrome that supports your Android version.
I hate Chrome for the privacy but if there's no other solution...
You can also check compatibility of apps like HomeHabit or other front-end replacements for HA
Even Aptoide can't be installed on this device
Or you could just go buy a cheap Fire tablet or something for better compatibility 🙂
But yeah, that's your best option if you want to stick with this one. I have an ancient Samsung Galaxy Tab 10.1 that I got for free from Google I/O in like... 2011, when Honeycomb was about to launch. It makes me sad, but using it is more trouble than it's worth at this point, even for simple things.
Yeah, or try a "portage" of Lineage on this Archos antiquity
Samsung tablets, especially big models like yours, can be flashed with recent custom roms
ehhhhhhhhhhhhhhhhh
I got a Galaxy Tab 2, the battery drops into security mode and the digitizer broke so I put it in trash but I would use it if it was possible
I have a 7.x rom flashed to it and it barely works, honestly.
Anyway, my mother is using a Galaxy S5 from 2014, also Android 4 at the start but now Android 10 with Havoc or Lineage
Yeah, the hardware can be not enought
right
Play Store crashed when installing Chrome, it's a sign! 😆
(Play Store crash when installing any app)
Yeah you're going to have a tough time getting Google Play Services running smoothly on it I'm sure
This tablet never know anything about any app from google except Play Store, I think the play services will never be installed on it
Yeah, a little bit better! https://imgur.com/a/hKkC5TY
Now we're "initializing the void, pretty cool! 😅
"Chrome 50.0.2661.89 works Can also be added to desktop" in HA doc is the first or latest supported version ?
The “Release” column contains the release number which was tested. This doesn’t mean that older or newer releases are not work.
Wow nice English there as well
Wow nice English there as well
@elder pendant Sorry but I'm french, I try...
No I meant in the docs, not you!
"newer releases are not work" this part in particular
Now I feel bad 😞
Ohh okay, yeah It's not perfect but fully understandable
I'm sorry for the misunderstanding. I would never judge someone's English like that. The docs are to be held to a higher standard though
No problem, don't worry! 😅
I always just assume English is not anyone's first language here
Then I will delete the message
Exactly the same here
Thanks!
Maybe tomorrow this old brick will have Android 4.1 instead of 4.0
The sysadmins are maybe playing minecraft on nginx servers 
Is it possible to hide an entire lovelace custom card depending on the state of an entity? Specifically if its off or on.
@polar kelp Any idea what the no row configured error means? https://imgur.com/a/dus4oif
I've tested this conditional card on its own and it's completely fine, but the second I indent it to be part of an entities card, it gives me this no row configured error
had do this as a vertical stack. Thanks tho!
anyone explain what I'm missing. trying to get a local image to show. if i use the full url it works but the local path does not.
IE 'still_image_url: https://duck.duckdns.org:8123/local/img/basement.jpg'
vs 'still_image_url: /local/img/basement.jpg'
Use the full local URL
like https://ha.local/local/basment.jpg so there is no way to just call the local path it has to be a url?
it works with either the local or DDNS url. just most of the scripts or examples I see use the /local/img.jpg
the docs should say if it can be anything other than a URL
yeah all doc state the /config/www = /local and all examples show it being called as /local/img.jpg that why I'm confused. I had to create the www folder and have restarted services 12X times testing. just not sure why it seems to work for other and not me. I also made sure the file was in all lowercase as I saw that could be an issue. IDK. thanks
Can you share one of those examples? I'm guessing it doesn't literally mean you can use just /local/whatever, I think it's just saying what www/ actually is in the URL
only thing I can thing is this and most are image: as this is a camera it's calling still_image_url: and it's requiring a url . image: isn't valid (tried it and received an error)
https://www.home-assistant.io/lovelace/picture-entity/ see 1st example at end of page. but again that's image: so maybe that's my issue. I'm trying to use a picture where are snapshot url is supposed to be
That's also a different card
yeah it's the same for a picture-glance https://www.home-assistant.io/lovelace/picture-glance/ it must be something to do with the fact that it's a camera. I'll have to dig in more. thanks
hi all, im a noob with ha and am on my first installation on a rpi3b! everything has been going great so far, but i just have a quick lovelace question that i am hoping isnt too complicated. I have already enabled advanced config, but I have not dived into editing the configuration.yaml yet. My question is there anyway to change the color and size of the blue title bar at the very top?
@opal furnace yes. You would use a theme
ive looked around and there appears to be an addon that i can install through hacs to do what i want, but i think thats pushing my abilities a bit.
Yes, custom header to make it smaller
ahh would those require editing the config.yaml?
oh cool ill start googling!
thanks
oh yeah Custom Header is an addon which can be installed through HACS
this is what i saw before
i guess ill give it a shot!
is it all-YAML-all-the-time or all-UI-all-the-time when it comes to Lovelace?
I can't have some UI-managed dashboards, and some driven from YAML files?
Yes you can
Only thing is if you have any yaml then all resources are maintained in configuration.yaml
Kind of feels like UI mode is great for spitballing and trying things out quickly and using the preview but that once things settle down it would be far preferable to keep this all in SCM
It wouldn't be so bad I guess if I could optionally disable the preview window. Having only half my code window width makes it difficult for the larger nested cards.
You can use the raw config editor if you don't want a preview
Or use Chrome dev tools to delete the preview div while editing 🙂
I mean, I guess...?