#frontend-archived
1 messages · Page 9 of 1
Hello everyone, I have a question about the area cards https://www.home-assistant.io/dashboards/area. Is there a way to select a specific sensor that this card should use? I have a 3d printer in the room and I am retrieving the values through the octoprint. But now I am dealing with the issue that the card uses the printer's sensor instead of the normal room sensor i have installed.
Is there a way to use state on a chips card to change the color and icon based on its value
The Area cards take an average of all sensors for any numerical values (temperature). If you want more control, minimalistic-area-card be more up your alley: https://github.com/junalmeida/homeassistant-minimalistic-area-card
Thank you, that's a good solution 🙂
hey here, I'd like to follow this guide to install and get lovelace minimal running
but I'm already stuck trying to find auto-entities and button card HACS integrations
they are not displaying in my list
is there a specific repository to add before I can find them ?
Two things come to mind.
Make sure you're in the frontend section of hacs, not integrations.
And make sure you're using the searchbox that comes up after clicking "Explore and download". The first search box you see on the main page is for searching your currently downloaded and "new" respositories.
@signal bloom I gave up following at smart home vids, there is usually a bunch of stuff he assumes you have or skips over stuff to fast, he really need to have a list of stuff you need prior to watching and following. look for another vid if you can, there are some real good guys out there that go and explain better.
the main reason I gave up, is about half way through a vid, he said you need these for the next step, and that was another vid all together.
hm ok 😦
I installed minimalist, but end up with a bunch of missing cards I guess
it's actually even worse
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/ui_lovelace_minimalist/__init__.py", line 124, in async_setup_entry
return await async_initialize_integration(hass=hass, config_entry=config_entry)
File "/config/custom_components/ui_lovelace_minimalist/__init__.py", line 104, in async_initialize_integration
startup_result = await async_startup()
File "/config/custom_components/ui_lovelace_minimalist/__init__.py", line 90, in async_startup
await ulm.configure_community_cards()
File "/config/custom_components/ui_lovelace_minimalist/base.py", line 280, in configure_community_cards
content=await self.async_github_get_file(
File "/config/custom_components/ui_lovelace_minimalist/base.py", line 178, in async_github_get_file
return decode_content(response.data.content)
File "/config/custom_components/ui_lovelace_minimalist/utils/decode.py", line 7, in decode_content
return b64decode(bytearray(content, "utf-8")).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte`````
when I restart HA, minimalist is not even starting, I'd need a proper tutorial, text based is better, I agree
remove it and reinstall ?????
I try and stick with hacs and out of the box
then tweaks
I followed the guide one more time, checked the checkbox to download the extra dependencies, but looking at this screenshot I think minimalist is not downloading them
can anyone confirm if you can use a template on a chips card
icon_color: >
{% set state=states('select.mode') %}
{% if state=='Chips' %}
green
{% else %}
orange
{% endif %}
this works in templates, but not on the chips card, anyone have any ideas?
Does that property on the chips card allow templating?
-type: template fixed
had it at entity, looking at the wrong part of the code
lol
DOH!
Hi everyone, I am using an history-graph with a climate entity; is there a way to only show the current_temperature instead of the target temperature, current temperature and climate state ? Having 2 climate entities on the same graph makes it unreadable. Thanks for your help.
I used card apexcharts-card
there you can specify the entity you want+
type: custom:apexcharts-card
graph_span: 168h
header:
show: true
title: Temperature Last 7 days
show_states: true
colorize_states: true
series:
- entity: sensor.openweathermap_temperature
color: PowderBlue
stroke_width: 1
I am trying to avoid custom cards but thanks for this solution!
http://i.geekie.no/tew1yFh.gif any ideas why the Browser Mod popup dissapears on my computer?
works fine on tablet
hi.
I just hit an update on the HACS room-card and suddenly I don't see the icon colors I had before (if the device state is off there is a color, if he's on there is a diff icon color)
http://pastie.org/p/4V0r1KQr15lPoTzwl9BEvA
What am I missing here?
Thanks for help.
heya, i'm sure it's a dumb thing but how can i make this entity shown (battery level) on this widget ? https://imgur.com/a/HVPy4O6
Hello my friends, this card is supposed to show the state of a light entity if it's on or off.
Meanwhile I've been trying to fix it to show the state of multiple lights instead of just the entity one, so on the icon_color: I did some changes, that don't seem to work? What am I doing wrong here? 😦 https://dpaste.org/YO5PJ. Talking about the {% if states('light.candeeiro_quarto') == 'on' %}... part.
same issue: icon_color: |- {% if states('media_player.spotify_accountify') != 'fakestatus' %} green {% endif %}‘‘ dosen't work (should be green)
@wooden streamhttps://smarthomescene.com/guides/mushroom-cards-part-2-room-layout-and-card-combinations/ look here it might help
I'm extracting that bit from another room card I have, and it works, but I'm probably f- up some code in the middle of it lol.
It will result in yellow if one of the entities is on and in none when off.
I think you are missing an else when none condition is true
Me or Accountify ?
Both..
Now both your templates specify only a color when any condition is true
But you will also need to specify another color when none condition is true
icon_color: |- {% if states('media_player.spotify_accountify') != 'on' %} green {% else %} green {% endif %} }}
then this should work ? but still not :/
There are two random placed }} in your last line
i removed the 2 closing brackets at the end and the icon_color is still white
i think now i have the good formating tho, that's a good start
IT WAS THE LAST } lol
Oh nevermind, it's pulling the entity state and not the icon_color one
@viscid oyster I converted your message into a file since it's above 15 lines :+1:
it would be better with the full yaml code
I am not a mushroom guy, but I think you can only use templates in the template chip
pulls the state of light.candeeiro_quarto but if I do with light.bedside_lamps the new one doesn't pull the proper state like the one at the bottom.
I stole the code from the one at the bottom to the one at the top and can't seem to fix this <.<
@viscid oyster I converted your message into a file since it's above 15 lines :+1:
Still the same but i think that's more about mushroom chips ?
umm hello people i have a konnected panel Interface i wana know how to make a alarm panel to control it better instead of useing a switch to arm
Have you tried the template chip?
Managed to fix my issue, thank your for the help.
It was crashed code cus everything else was working fine.
basbruss is that you from the Minimalistic thread?
https://www.home-assistant.io/integrations/manual/
I think this is what you need?
And it sounds like you have a functional alarm, it just needs that and some automation glue to give it a panel in the UI.
Small silly question: what's the best way to go about maybe fixing a "card", i know that's what they are called here in lovelace / HA? (I'm going to get the terminology way wrong). I think I can download the troublesome card itself as a bundled js file and put it in my config/www directory, and from there I was thinking I could maybe tweak it / test changes. Should I look at some "how to make a card" tutorials first maybe? or a basics on how cards work / developer reference? Is there such a thing? (I found https://developers.home-assistant.io/docs/frontend/custom-ui/custom-card/ which seems pretty handy!), Sorry if this ended up in the wrong channel... I tried to premeditate!
Hi everyone, is there a way to show the current_temperature from a climate entity on an entity card? Currently, I can only get the state (heating/off) of the entity. There should be a way to get this value without having to manually create a template entity for every of my climate entities. Thanks.
Entity card has a selector called "attribute". If you set that to current_temperature, it should show the temperature?
Who can help me out? I'm trying to make my card from my car the same height as the other cards in the middle . ( see red line in the pictere) How to do this. I really can't figure it out.
Yay completed my first full card from localtuya entities all the way through to a remotely working Rohnson Airfryer wooot
and thanks to @split granite again for nudging me in the right direction.
On the entity card, yes but for almost every other card, I am not able to get it. I used to have a separate sensor "thermostat_current_temperature" updated from the same MQTT message that the climate entity reads but it is not getting updates since HA 2022.06...
hi there,
I want to add a button that turns on my boiler for 60 minutes, I got already set up in my home assistant.
However in my mobile dashboard I don't want to show all the buttons and make it easier to just press on the icon to make it work.
For some reason it's not making any call service, I can't detect what's wrong.
http://pastie.org/p/5JTdFBUnjV9w4CL0B0Mnsp
also the icon of the button is not showing up.
This is the full card of my switcher device (http://pastie.org/p/3dIx5AVVj7hyByM3MMQlT5) that works - I am just trying to take the 60 minutes button and put it inside my mobile card, but it's not calling the service when I press the button of the missing icon.
thanks for helping.
service: switcher_kis.turn_on_with_timer
that's not a real service
who tf allowed that service
if that service exists, make sure you're tapping on the correct area
I asked the same thing 🙂
BTW, it looks like it supports both data: and service_data::
hass.callService(
domain,
service,
actionConfig.data ?? actionConfig.service_data,
actionConfig.target
);
yea been that way for some time now
I wasn't sure if Mushroom card did. It's card-specific
anyways, the tap action looks good, so it's the card or the presser IMO
Problem Exists Between Chair And Button
ohh busy icon couple of hours for me, 63 added including 5 repaired ones, but most are car brands time for a break lol
the service is real yeah lol
and let's say I managed to get the service to work, why I can't see the icon of it?
I would like to change the position of two texts in a card. Can this be done with a card-mod or will I have to change the card js file ? I use atomic-revive calendar and I need to swap the position of the description text and the relative time text.
I'm sort of confused by what your yaml snippet is from. Is this supposed to be a button card? what is "entity_2:" ?
looks like that, each button is entity
entity_2 is the button with the no icon
entity_1 is the lightbulb
what card is this, some custom: thing?
Hey guys.. I've installed Mushroom from HACs and restarted a few times... but it doesn't show up as a card. I'm using the Docker image.. has anyone seen this before?
Did you clear your browser cache?
I did.
When I go into HACs I see a red message saying "You have 1 lovelace elements that are not loaded properly in Lovelace"
I can't see any other errors, and I assumed the above was because I'm not actually using a card yet?
There is a HACS FAQ for that
HACS ? as I don't recall this happening before. When I go try to add a card I notice it says "After the download completes, since you are not using lovelace in storage mode you need to manually add the resource with these settings" Before I would just download the card, refresh and it would be available. What changed in my setup?
Hi, I dont know what I'm doing wrong. I can not change the font size of my entity cards. I tried the normal ones and also the mushroom. No way.
At the end of my card I add:
style: |
ha-card {
font-size: {{states('input_number.var_fontsize')}}%;
}
how are you trying to do it?
ok
you probably need to surround that template in quotes
I also tried with : 120% and 35px
"normal" cards don't support stuff like that unless you have card_mod installed
I have install and on a glance card it runs like a charm
installed^
Its easier to show, than to explain 🙂 Here :
The entity cards also have the same mod code at the end, but the font does not change
card_mod:
style: |
ha-card {
font-size: {{states('input_number.var_fontsize')}}%;
}
.card-header {
font-size: {{states('input_number.var_titlefontsize')}}%;
}
what am I doing wrong ?
mushroom-template-cards also do not function
rest is fine
when I reopen the card config, ha adds a null after card mod. It says then :
card_mod: null
style: |
ha-card {
font-size: {{states('input_number.var_fontsize')}}%;
}
the null is added by ha itself
but only on entity and mushroom-template-cards
What is also not scaled up are the input box fonts. (180 and 200 in second picture)
I tried with : .mdc-text-field__input {
font-size: 200%;
}
for example, but no go
is there a way to work out the config of an auto generated card on the default catch all dashboard?
Is it possible to create a template link in a markdown card (for example) that links directly to the more-info?
I would like the underlined entity in the pic to the open more-info dialog directly, without having to go via Dev Tools > States and search for it
using a script, I need the language of the Home Assistant user, however this: let formattedDate = date.toLocaleDateString(navigator.language, options); is always in my computer settings, and not the profile language.
when I try this._hass.language or selected_language an 'undefined is not an object' error happens..
is there any documentation on how to retrieve that info from the HA config?
aware browser_mod.hass.selectedLanguage returns "en" in the inspector, but that isnt the correct format for the toLocaleDateString() which needs "en-US".
gents, what light sliding cards are you using ? I'd like to have nice cards with sliders, something that looks good 🙂
The mushroom or minimalist light cards
ok I was giving a try to custom:slider-button-card
and I'm surprised it do display blue as color by default (gradient)
I was expecting it to read the value of my lights colors, but in the end, my basement lights (cave) are not color bulbs
I've tried to force this by adding color: gold
but it's still blue
No color bulbs will display yellow/orange at least in the above mentioned cards, never used custom:slider-button-card
Here are instructions to change the default on state color https://github.com/mattieha/slider-button-card#styles
cool thanks !
hmmm use state color: true
and still it's blue
Trying mushroom now
but I cannot get it to showt he slider as in your screenshot
well yes
brightness control is enabled
🙂
hmmm, could it be because I am acting on a group ?
ok got it, my basement light group is a hroup of sonoff on/off switches, actually
therefore, no brightness management is possible
Hey, not sure what i'm doing wrong. I'm trying to get the attribute "is_heating" but am getting undefined
- operator: "template"
icon: "mdi:fire"
value: >
[[[
if (variables.entity_2.entity_id) {
return variables.entity_2.entity_id.attributes.is_heating == true
}
]]]
styles:
icon:
- color: "rgba(var(--color-red),1)"```
return states(variables.entity_2.entity_id).atrributes.is_heating == true
Does anyone know which mushroom card to use for a camera stream? If I use entity, I have to click it to get the stream.. but I'd like the live stream on the dashboard. It looks like they don't have picture entity, so perhaps it's not possible with a mushroom card.
I'm also struggling with my cameras, they use x256 as codec (EZVIZ cameras) and I cannot get them to simply play live on the dashboard
If anyone have a solution to allow me to see my IP cameras live, it would be great
I only get snapshots for now
If you just add by entity, does HA choose a suitable card for you? Mine work fine if I use picture entity card.. but I can't find the mushroom equivelant.
Hi, I want to visualise the location of my phone (Google Pixel 6 Pro with the homeassistant app installed and geolocation sensor activated) in a map card. But all I try results in a map without any datapoints. The entity is called sensor.pixel_6_pro_geocoded_location and it works with other cards but not with the map.
Here is a screenshot of the location attributes:
And this is what I wrote in the code editor for the map:
type: map
entities:
- sensor.pixel_6_pro_geocoded_location
dark_mode: false
hours_to_show: 24
But the map does not show anything.
I am using Home Assistant 2023.1.5, Frontend 20230110.0 - latest
I tried that, the problem with that is bamndwidthamd traffic, as it will stream the full image
when I was testing it was better to go with the button, this when set to auto will update like every 5-10 secs
then when you tap it will open
It would be awesome if you could have a very low refresh rate when there is no movement and full video if there is movement detected
From the docs: *Only entities that have latitude and longitude attributes will be displayed on the map. *Doesn't look like your sensor has that. Doesn't the mobile app create a device_tracker. type entity for you?
latitude and longitude are available in the "Location" attribute as a 2-tuple. I have made this entry unrecognizable in the screenshot.
The map must not understand that. Other device trackers have one latitude: attribute, and one longitude: attribute.
I just found the device_tracker entity but it does not show any data. Maybe I have to enable it in the app somehow. I'll try to find the setting for that.
I can not find a dedicated entry for it in the app.
what do you mean "does not show any data" exactly?
does it have a state? does it have attributes? is it disabled?
There is just not a single entry:
Check in developer tools -> states
This one?
yep. hmm not sure why that would be unknown. maybe check that the app has location permissions?
you can read this but I'm not sure if it will help: https://companion.home-assistant.io/docs/core/location/#android-location-sensors
Oh, I see. I did not enable the correct sensor. I only enabled "geocoded location" but not "Single Accurate Location" and "Background Location".
Thank you. The mystery is now solved.
Too bad all the other location data from the other sensor from the past weeks is useless now. But that's okay I guess.
Well by default it's all purged after 10 days anyway
My target is to never delete anything. I will take a look into the configuration.
And I also want to migrate to influxdb soon. I already use it for other time series data.
Have any browser mod users noticed since upgrading to 2023.1.5 that the size of browser_mod.popup has changed and is about 25% wider on size: normal?
how can I force a picture-entity image to refresh? I have a conditional card that only shows the picture entity when I have motion at my front door (Ring Camera). While the card loads almost instantly after motion, the image is still old. If I manually refresh the dashboard a second or two later, it has an updated snapshot. I have the picture-entity set to "camera_view: live", but it's still not updating. Am I missing something?
That's a combination of browser caching and how long it takes for the picture to be updated. Where does the picture come from?
The Ring camera (integrated with the Ring MQTT AddOn). I get the delay in updating, but the problem is I can't get the dashboard picture to update on its own. If I manually refresh it a couple seconds after the motion is registered, it works
Is it a picture or a video feed? And if it's a picture, what is generating the picture?
picture. The MQTT integration with the Ring camera updates a snapshot image
and I can get a URL to the image itself.. e.g. http://homeassistant:8123/api/camera_proxy/camera.front_door_snapshot?token=TOKEN_VALUE
Manually refreshing tells the browser to look for new data, otherwise it's probably just showing you the image that's in the browser cache (very likely if the entity card is showing say doorbell.png and the contents of doorbell.png are being updated)
I was thinking to update this URL to use: http://homeassistant:8123/api/camera_proxy/camera.front_door_snapshot?token=TOKEN_VALUE&a=LAST_MOTION_TIMESTAMP to force a new URL, but not sure how to reference that in a picture card if I go that route
right now I'm using a picture-entity card
Why not show the camera instead?
Example 3 shows what you want I think
The things you have to do when green
ok, let me try that!
Though that is the tap action. I don't show pictures from my camera on my dashboard
I just have a video stream
trying to use a conditional card to pop up a picture entity whenever there's motion on my small dashboard
otherwise the camera view is hidden
But as Thomas says, why not a camera feed?
doesn't seem to work right.. I think that's the way Ring doorbell cameras work
can't seem to tap into a live feed like I would for another typical security camera
Well you're using an MQTT integration.
I'm using Scrypted and it seems to work here
I think example 3 is the opposite. It will create a new snapshot file from the camera feed. Or am I wrong?
Yes, I think you're right Thomas. 2 hours of podcasting (including 30 minutes about HA), clearly frazzled my brain
I'll try Example 3 to see if it works (though I want to do it without needing a tap action)
thanks for the help!
Wait. The example does two things. The camera_view: live looks promising.
I have that set
...assuming it's a camera feed instead of a static url
doesn't seem to update though, which is odd
I suspect it's the MQTT integration you're using
It might be worth checking the forums to find out what else people are using
I know Scrypted seems to work fine for me
I have one.
Hi, is it possible to change the font size of the calendar panel ? Not the card, I know how to do this, I need the panel in the left menu to get bigger fonts. Can this be done ?
Does anyone have a link to documentation about the logic behind the arrows on cards in the dashboard? It's doing my head in.
Hello, do you know if there is a way to customize the front end of the energy dashboard ?
is there anyway of overlapping icons at all? I know its possible in picture elements card, but is it possible in custom button card
I’m trying to change the background colour of a card based on its state eg if the light is on then background green and if it’s off then red. I’ve tried the below code but it doesn’t work. I’m probably missing something simple.
type: custom:button-card
entity: light.hall
name: Home
styles:
- background-color:
- state: 'on'
color: green - state: 'off'
color: red
- state: 'on'
@lyric prairie I converted your message into a file since it's above 15 lines :+1:
still new to Mushroom, I have a minor issue activating a hue scene on a chip, need we list them twice? https://community.home-assistant.io/t/mushroom-cards-build-a-beautiful-dashboard-easily/388590/5027
Brilliant thanks for that basbruss it works perfectly - I’ve spent longer than I’d like to admit trying to get that work!
is it required to add a resource in the yaml file when installing for instance apexcharts-card? HACS itself doesn't have the integration so I added the file myself in /config/www and added the resource in the dashboard configuration, but the card will consistently fail to load with a Custom element doesn't exist: apexcharts-card. message.
Steps are as follows: I tried to install apexcharts through HACS: couldn't do it. Apexcharts doesn't appear in any of the repositories but when then manually trying to add it it complains it already exists.
Gave up on HACS and instead took the .js file itself and placed it in /config/www/apexcharts-card.js myself.
Went to the dashboard resource panel and added a new module of type Javascript and with the resource URI /local/apexcharts-card.js. Then restarted HA and refreshed my browser cache in the mean time.
When HA came back up I tried adding a card of type custom:apexcharts-card, which then complains about the custom element not existing
no amount of restarting HA or clearing caches fixes it, and even in a private browsing window it doesn't show up
I don't have an ui-lovelace.yaml file to edit, so I'm wondering if I actually need one
hey all. i have a lock entity on my dashboard. is it possible to change the button text from "lock" and "unlock" to something else?
Does anyone have a recommendation to make a radial button float? By float I mean that I would like it to stay in the bottom right of the page as a I scroll down the interface for different rooms. I've tried researching this but I don't think I'm using the correct term by saying float haha
if anyone knows of a way to add a button to a reed sensor please let me know, instead of it saying "open/closed" for status if the button could just be there that is what i am looking for since the icon has an open/closed garage door already indicating the current state
Hi
Im pretty new to Yaml and im trying to get the colour of the icons to change when its the day before garbage pick up. Any suggestions for a newbi?
square: false
columns: 1
type: grid
cards:
- type: custom:mushroom-entity-card
entity: sensor.skald
name: Skrald
fill_container: false
icon_type: icon - type: custom:mushroom-entity-card
entity: sensor.pap_og_plast
icon: mdi:recycle
fill_container: false
i see this thread online that is basically the same https://community.home-assistant.io/t/how-to-use-a-template-to-change-the-icon-colour-when-its-a-negative-or-positive-number/408920/6
it just uses a entity state vs a date like u are wanting
Anyone know of a card that's just a basic number input field? No name,state,icon or anything
anyone know what the issue is here?
you tried to use a template where it's not allowed
although it looks like it is allowed, so probably just the editor disliking it incorrectly:
icon template (optional)
Defines a template for the icon of the entity.
check you config in HA and don't rely on something else to tell you what's right or wrong
do i just try to install it?
- HAOS
ha core check - Container uses
dockercommands - Core requires you to activate the venv first
you do that to see if your config is correct and don't rely on an editor that thinks it knows what's correct
now it does this
ERROR Error while reading config: Invalid YAML syntax:
while scanning for the next token
found character '%' that cannot start any token
in "/config/esphome/garage-door.yaml", line 49, column 8:
{% if is_state("binary_sensor.no ... ```
button:
- platform: template
name: "North Door"
icon:
{% if is_state("binary_sensor.north_door_status", "off") %}
mdi:door-closed
{% else %}
mdi:door-open
{% endif %}
on_press:
- switch.turn_on: relay
- delay: 250ms
- switch.turn_off: relay```
im on day like 30 of trying to figure out how to change an icon in a button lol
yes
then you're in the wrong server
it has to do with the front end not esphome
I'm confused - you're in the #frontend-archived channel asking about a template button #integrations-archived , but you're trying to include it in an ESPHome configuration?
no, it doesn't
i thgought cards were frontend?
you're defining an icon, but it's not anything to do with the frontend dashboard config
that's not a card
it's a button
what do i need to edit where to just simply change the icon of a button on a card
note the "integrations:" https://www.home-assistant.io/integrations/template/
in "/config/esphome/garage-door.yaml", line 49, column 8:
{% if is_state("binary_sensor.no ...
what is that doing in an "esphome" directory?
it belongs under template: in configuration.yaml
ah
and it needs to be formatted as a list, as in the docs I just pointed to
that will apply to all buttons tho?
no?
you're defining a single button
it seems like you're mixing up a few things
I suggest reviewing the link above
actually, it seems like you're really talking about this: https://esphome.io/components/button/index.html
which means you're way off in the weeds
yes
there's no indication that it supports a template there
u see the icon there ```yaml
Example button configuration
button:
-
platform: ...
name: Livingroom Lazy Mood
id: my_buttonOptional variables:
icon: "mdi:emoticon-outline"
on_press:- logger.log: "Button pressed"```
i want that to change based on another entities state
im in that server they said the same thing sent me here
because they said it is custom template in HA
well, you're talking about the ESPHome config...
my esphome device works fine to my knowledge
and this doesn't say anything about supporting a template:
icon (Optional, icon): Manually set the icon to use for the button in the frontend.
you agree that what you posted is the ESPHome config, right?
and nothing to do with HA
I'm telling you that the icon: field does not support templates, based on the ESPHome docs
HA can't do anything about that
both servers are telling me to go to the other server
ok
so if u buy a smart bulb at walmart u cant change the icon for that smart bulb?
you can't use a template there, it's that simple
what does that have to do with ESPHome?
nothing which is why im asking what to edit lol
it has nothing to do with the device used i need to change the icon for the card based on an entities state
there's nothing to edit
you can't do what you're asking
there's no general answer to that, it's very important that you be specific about what you're trying to do
okay maybe i shouldn't ask this here since it's a minimalist thing but i have this tap_action on a card but when i press it i get the following error Failed to call service light/toggle. must contain at least one of entity_id, device_id, area_id
you have no indentation there
this card yes
the reed sensor says closed
when door opens it says open and the icon of the garage is open like the top one
instead of having 4 items on this card i basically just want to put the button press where it says open/closed
with indentation it doesn't work either
both don't work
ok. you cannot use a template in the ESPHome config as you were attempting to do. If you want to configure how a button appears and acts in HA, you can create a template button that references the one exposed by ESPHome
the link above should help
ok thats what i need to do
Maybe a template switch as it has two states?
i basically want the icon of "North Door" to reflect the status of "North Door Status"
But wow was this a rollercoaster to read up until here.
so when the door is open the icon changes to an open garage door
Template button assuming there's one button that toggles open/close.
yes
then I suspect that you did it wrong
the button is just this ```yaml
button:
- platform: template
name: "North Door"
on_press:- switch.turn_on: relay
- delay: 250ms
- switch.turn_off: relay```
switch:
- platform: gpio
pin: GPIO4
name: "North Garage Door Relay"
id: relay
restore_mode: ALWAYS_OFF
internal: true```
which triggers this
If you already have a template button then look at the docs for it.
I'm 99% sure they have an example with the icon changing.
that's all ESPHome stuff
The button template looked like HA to me.
nope
But a HA button template can press a button added to HA.
ok so i need to edit this in esphome or HA
Create a NEW button template in HA following the documentation
Put that on your dashboard.
And please label configs coming from ESPHome as such when posting them in the HA discord 🤪
so custom button card goes in configuration.yaml
figured it out
I see what you mean by the link my issue is how I set it to understand the switching dates %d-%b-%Y. So it needs to read the "next" date and act based on that
what is the name of the service to just press a button
ffs lol
i cant i just wtf is thsi
tap_action:
action: call-service
service: button.press
target:
entity_id: button.south_door
"must contain at least one of "entidy_id.."
change "target" to "data"
failed to call service still
tap_action:
action: call-service
service: button.press
data:
entity_id: button.south_door
name is correct
What is the YAML for your whole card?
@urban tangle I converted your message into a file since it's above 15 lines :+1:
now i have the card the way i want it but cant call the button lmao
This is mine:
show_name: true
show_icon: true
type: button
entity: button.washing_machine_power
tap_action:
action: call-service
service: button.press
data: {}
target:
entity_id: button.washing_machine_power
Why don't you just set the show as property for the binary sensor to door so you can skip the label template?
because after 4 hours my mind doesnt even work anymore
ive coded c++ for 8 years and never in my life have i ever even came close to this much of a struggle
i just cant comprehend why the official documentations example doesnt even work
is it really this complicated like im actually going insane
how do i look at the yaml for the original button maybe i can copy that
found it ya its the same spelling and everything
The problem is you're mixing and matching between multiple systems, that makes it more complicated.
You're reading the documentation for the integration and how it's used in the backend, while you're coding cards in the frontend
They are different
You did ask what the service was called, but I'm not sure why you're writing raw YAML to create a button card when you can do it all in the GUI
omg i got it working
@urban tangle I converted your message into a file since it's above 15 lines :+1:
woo
Anyone know if Input Number(helper) will get similar feature like a light on the new Tile card? Would be great to get a more touch friendly input method for Input number and the slider for lights on the tile card is spot on
@vale mortar I converted your message into a file since it's above 15 lines :+1:
I've got a very strange problem with an input_select + button card, controlling a few media_player entities. I have an input_select populated with internet radio URLs (currently only 2 entries), and buttons for each media_player, currently all living in a vertical-stack card.
The intended flow is that I select which station I want to listen to from the input_select, then click the button of the corresponding media_player I'd like to start playing that station.
While this does work, in order for it to start playing the station URL I have just selected, I have to push the media_player button twice. The first press starts the media_player with the previously selected URL, the second press begins playing the station I actually selected.
See above post for YAML
I thinkyou should take that tap_action and put it into a script instead, and then just call that script from the button.
Then you can skip the entire config-template-card and won't have any problems with what updates when.
Is it possible to set the accent colour to a specific hex/hsl value? I can only use these sliders from the native colour picker.
https://media.discordapp.net/attachments/562408603345092636/1065899210374909972/unknown.png
hey thomasloven, is there anyway have one custom button card containing 2 custom button cards within it? or place a picture elements card within a button card to keep aspect ration on two different screens?
Thanks, I'll look into creating a theme 👍
I am trying to make this but keep it within the 1/1 aspect ratio
np, I worked out a fix, grid card with picture elements card and 2 custom button cards in the picture elements card 😛
Hi, why media card for device does not show stream information, like radio station, or song name ? When I play same stream in VLC, I can see all information. I use this service with parameters
data:
media_content_id: "http://"
media_content_type: music
Do I have to configure it somewhere ?
just realized the core button card does not execute the button entity upon clicking? Believed it was explicitly designed to do so...```
- type: button
entity: button.screen_keuken_my_position
is that a bug?
@primal spindle I converted your message into a file since it's above 15 lines :+1:
I need some input, how would you solve the need for a bookmark list? I have so many hosted services on my server, i need a central point to link them all, so i can access them everywhere without looking up the port they are running on or sharing bookmarks over all devices. Is there a UI element that works well for that case? Maybe even with the option to automatically set an icon to the favicon of the page or something like that
My HA install is pretty vanilla currently as well, so i guess there are many things to figure out for me in general
You can also put any type of card within a custom:button-card with the help of custom_fields
@lyric prairie I converted your message into a file since it's above 15 lines :+1:
@primal spindle custom:button-card does not support Jinja2 templates, but you will need to use JavaScript instead for the volume_level input, also it is better to use the entity_id instead of the device_id
A javascript template to use will look like
volume_level: "[[[ return parseFloat(states('media_player.keuken_speaker').attributes.volume_level) - 0.01; ]]]"
Hi, I am trying to open a popup from a chip card that shows how many lights are on. I am using the browser mod. I am trying to use the glance card. Popupopens fine, but always empty. Same glance card in a normal view populates correctly.
Any ideas?
@livid oracle I converted your message into a file since it's above 15 lines :+1:
I integrated Zigbee2MQTT and scanned for devices. It found the Sengled light bulb. I renamed it but it is not showing up in HA settings, devices and services, devices. I started asking for help in the Zigbee2MQTT discord but they ran out of ideas. They told me to come here for help. I need help.
Hi, my button card is completely ignoring the color templates. No error, everything is simply grey. Example:
@calm plover I converted your message into a file since it's above 15 lines :+1:
This is what I have at the beginning of my file:
button_card_templates: !include_dir_merge_named "/config/custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"
hi, is it possible to create a new view in my dashboard and if a person clicks on that view button it will navigate him to another view (that in different dashboard)?
Have you set the minimalist theme correctly on your device?
The line card: is not support anymore in browser_mod V2. Should be content:.
https://github.com/thomasloven/hass-browser_mod#how-do-i-update-a-popup-from-the-browser-mod-15
Hello guys,
I've got a problem with the layout-card. The code for the layout itself looks like this:
grid-template-columns: 1fr 1fr 1fr 1fr
grid-template-areas: |
"person_x person_x person_y person_y"
"chip chip chip chip"
"title_devices title_devices title_devices title_devices"
"vacuum . . ."
...
The cards itself only have this:
view_layout:
grid-area: person_x
nothing else related to the layout-card.
Everything works fine until I resize under a specific width (especially not working in companion app). From then on column 1 and 2 resize slower than columns 3 and 4. Anyone knows why this could happen or how to prevent it?
Forget it. It's because of the 1fr thing...
grid-template-columns: 25% 25% 25% 25%
fixed it. The question remaining to me is, why didn't it work with the 1fr?
Could be because fr has to keep recalculating in comparison to each other while % is calculated once in comparison to your screen width.
☝️ pure guesswork
hi, is it possible to create a new view in my dashboard and if a person clicks on that view button it will navigate him to another view (that in different dashboard)?
@polar kelp At least it works now 🙂 Thanks for your great work!
Of course, you would need to set the tap_action's action to navigate. See https://www.home-assistant.io/dashboards/actions/#tap-action.
type: your-card-type
tap_action:
action: navigate
navigation_path: "your-dashboard-name/your-view-name"
...
but i don't want a card, I want as soon as person click on the view tab it will navigate him
Then you will need to fill that tab with all state-switch cards, that can identify users
If a person click on this icon (which is located in 'Wall Tablet' dashboard) that he will be redirected to a tab that already exist in 'Mobile' dashboard
- theme: Backend-selected
icon: mdi:robot-vacuum-variant
path: robot
tap action:
action: navigate
navigation_path: /dashboard-mobile/robot
badges: []
cards: []
It's not redirecting me when I click on the icon of the view
worked, thanks!
Tap actions work only on cards not on tabs
Wow thanks! Thank you for helping me further, just tried it. Doesn't give me an error, but it doesn't change my volume. Will have to do some more research. Have a good weekend
So it's impossible to do what I'm expecting it to do? worst case I will just copy the entire view into the new view
You can do two things:
- make a button with a navigate action within state switch, so the link can be different for each user
- create a view with only state switch cards and change the cards inside based on the user
Does anyone know how to pull playlist cover art from the spotify integration. I want a button card that plays a specific playlist. I can get it to play but I cant find any documentation on cover art.
HEY ALL, ios THEMES DOESNT SEEM TO SHOW BACK GROUND ON THE pc ANY IDEAS?
Sorry caps
hi everyone
hey
IS anyone using iOS Themes - Dark Mode and Light Mode having any issues with the background image not showing? or have any ideas why it would not show, installed via hacs.....
using the custom:button-card, is there a way to run two different service calls based on state? Problem is that the two service calls need different service data, specifically to either call the media_player.join call if a sonos speaker is ungrouped, or a media_player.unjoin call. The service_data: section varies based on the service call.
sometimes the simplest answers are the way to do it.. not sure why I didn't think of that. Thanks!
I am using mushroom light card to control an mqtt light, and when I set the slider to 100% the card sends a number 80 to my mqtt broker, why could this be happening
Controlling HA using my mobile is slow, too slow to my liking. The slowness being the time that it takes to set up the communication and the screen (after that it is fine).
Every time I want to switch on a light I take my mobile, press the HA icon, it starts, usually it says it needs to refresh the external url, it loads the initial screen, then there's another 'loading data' and screen rebuild and only then it is ready to accept the tap on the light button.
Is there a way to speed this up?
are you using duckdns setup? or local
Is there a way to list all file names in a folder in a drop-down?
I'm trying to make the camera as wide as the the above.. in proportion.. But struggling to fully understand how to position things. The person entities are a grid with two columns, and the camera is a grid with 1 column.
this looks so nice
Thanks. Getting there slowly.. I've been following https://www.youtube.com/watch?v=A0fMt8IRKoI&t=506s
Assuming you replied to me... I'm using local setup.
Take a look at the YouTube vid.. great explanations!
Just click the "+" there to the right of "Home", and it will add multiple panels. If you give each panel an icon I think it will show them.
thanks
I somehow saw another video of his but from the beginning it didn't match how my HASS worked
I had the same, took some working out to get over the differences in versions.. but you'll get there.
You didn't go with mushroom ?
I tried it, I didn't like it so much.
I also tried out Dwains Dashboard too.
But I like the style of the minimilist UI stuff.. and there are a lot of custom cards
true it's the best imo
i was hesitating between minimalist and this one : https://github.com/matt8707/hass-config
oh ok thanks mate !
That looks nice! I like it.
Will bookmark it 🙂
So it doesn't get lost.. is anyone able to point me in the direction of resizing the camera card? I tried changing the px values of the custom_card.. but no bueno! It's fixed in a size comparible to one column of the above grid
Can you show the code on how the grid is setup?
@cold stirrup I converted your message into a file since it's above 15 lines :+1:
Sure, I pasted everything... sorry if it's too much lol
The indentation of the last grid card looks off
Oh, should it be a grid within a grid?
No, with this indentation it's exactly a grid within the grid of the person cards
Ah yes, true.. but.. if I indent it in.. the camera moves along to the right..
This size is great, I just want it below the people
That's just the basic masonry lay-out of HA
You can fix that by adding all grid cards into the same vertical stack card
Hmm, that's what I tried.. I'll look closer
Oh wow.. that's done it 🙂
Thank a lot!! I will look closely to see what you did differently.. but gonna be late for a hair cut so gotta run. Thanks a lot for the help though 🙂
No problem at all 😉
@compact hamlet I converted your message into a file since it's above 15 lines :+1:
could that easily be done with one script, template'ed some how, or do I need one unique script per media player?
If you call a script with yaml service: script.my_script data: variable: value media_player: media_player.tv you can use {{variable}} and {{media_player}} in templates in your script.
Hi 🙂
Can you customize the deafult box that pop up when you long press a light? I really want it to bring up my phillips hue scenes. All the scenes are entities and I can see then when I look at the specifc light
Look up "browser_mod".
I hope I'm in the right channel. I just noticed the plex integration creates a new media player for every time you watch something on the plex webpage in incognito mode. After you close it it is never deleted. i currently have over 50 Browser plex media player, that don't have any connection to anything. Is there a way to delete them automatically or do I need to delete them every time i watch something on plex via Browser?
That' an #integrations-archived issue. Turn off discovering new entities, or stop watching Plex in incognito mode 😉
The part at 15:20 I didn't get
I did everything correctly with the yaml files but the dashboard is empty
i feel like I am not creating the home path correctly on the website
square: false
columns: 1
type: grid
cards:
- type: custom:mushroom-entity-card
entity: sensor.skald
name: Skrald
fill_container: false
icon_type: icon
icon_color: |-
{% if state.sensor.skald.days_until < 2 %}
red
{% else %}
blue
{% endif %}
Any ideas why the colors wont work :(?
I don't use that card, but this will never work:
{% if state.sensor.skald.days_until < 2 %}
is days_until an attribute?
I'm not following
what are you trying to do?
the card isn't the problem, your template is
I see 🙂 so im trying to get the color of the icon to changed the day before garbage is collected.
So based on the given date that is set it needs to change
Attribute Description
next_date The date of next collection
so trying to use this attribute
icon_color: |-
{% if state.sensor.skald.next_date %}
red
{% else %}
blue
{% endif %}
right, that's still wrong
see that link I posted
you're also not testing that for anything 🤷
I'm just piecing things together from random posts and code, but you want it to be red if the next_date attribute is within 2 days from now?
1 day before the pick up date 🙂
it gets its date from a helper that just have the dates
my guess:
{{ iif(state_attr('state.sensor', 'next_date')|as_datetime - now() < timedelta(days=2), 'red', 'blue') }}
but please do read the link I posted
For sure I will read it. Good to have something to fall back on next time. So I tweaked your code abit, and it seems to accept it. gonna try and see if I can test it with a new helper
But thanks alot RobC kudos to you for helping a newcommer 🙂
test the template in
-> Templates and make sure it's returning what you expect
not sure how to do that. Ill give google a go
yea, it doesnt change 😦 It might be abit out of my reach for now.
square: false
columns: 1
type: grid
cards:
- type: custom:mushroom-entity-card
entity: sensor.test
name: Skrald
fill_container: false
icon_type: icon
icon_color: >-
{ if(state_attr('state.sensor', 'next_date')|as_datetime - now() < timedelta(days=2), 'red', 'blue') }}
that isn't what I gave you 🙂
go back and look again
and please, use the dev tools like I suggested
you're going to have a bad day if you don't follow normal debugging procedures
It wont eat your code as it is. Let me read up on debugging procedures, before I waist more of your time
alright
I had a typo, and had to add something to make it work for me:
{{ iif(state_attr('sensor.landscape', 'next_date').isoformat()|as_datetime - now() < timedelta(days=2), 'red', 'blue') }}
that works fine for me
I wish I was experiencing the same success 😄
have you done this yet? #frontend-archived message
yea its returning this
square: false
columns: 1
type: grid
cards:
- type: custom:mushroom-entity-card
entity: sensor.test
name: Skrald
fill_container: false
icon_type: icon
icon_color:red
it is. based on the test entity i have set
excellent
but the icon isnt changing 😄
well, you at least need a space after :
and I think you need to use a mushroom template card or something to use templates, but 🤷
does anybody know how to get rid of the play/scrub bar at the bottom of the live feed of the frigate card?
I'm looking for card like room-card ( https://github.com/marcokreeft87/room-card/wiki/Configuration#actions ) but ideally it would have one action on click (ie. turn light on off) and on long click it would open "dialog window"/modal or whatever it is called, or just "bubble" from the icon, that would show more settings (for the light example color temp. brightness; for ie. hvac it could be setting ... well I guess in case of hvac it would open more settings on regular click)
Is there some like that?
why would my custom-button card icon color not change when using color: "[[[ return 'green';]]]"? (trying remove the coding element from this to troubleshoot). If I replace with green, obviously it works just fine. I have working code to change up the call_service value, but color doesn't seem to want to stick
Hello guys, I'm currently playing with auto-entities to automatically add entities to my dashboard when I add them (I'm moving in the next to years so this will come in handy)
Is there any way to pass more variables from the filled entities? I see there is a "magic value" this.entity_id but I need something like friendly_name or other attributes from the auto-filled entities.
Hey, is it possible for me to add an iframe using the docker version how the OS version adds them for the addons?
Just need to know where to look to be able to add something like this if at all possible, thanks!
@vapid field I converted your message into a file since it's above 15 lines :+1:
Hey guys, I was trying to use MinimalistUI and I am finding difficulty
I setup the yaml files but somehow the dashboard is empty and i don't know what I have missed
this is the path in my yaml file : path: "home"
I created a dashboard with that path but it still is not showing anything
this is my yaml file
but when I go to the Minimalist T dashboard I don't have any views at all and it's empty
of course the Home file is filled up :
Sambanas
@fading otter I converted your message into a file since it's above 15 lines :+1:
Thank you! I’ll try that.
Hi, I have a problem with mushroom cards
But only with my lenovo smart display, on computer iOS and other android devices it works well even outside of my home on new devices (not a cache problem)
Any ideas ?
Here is my config for my dashboard :
thing is, it was working on this device before, do i know that it's not a limitation of this device somehow but something that changed in the config i guess
but for me everything look alright
on hacks: mini-graph-card (only card working on the lenovo hub) + mushroom integration, below UI Lovelace Minimalist Settings:
its been days and i don't have a clue about whats wrong lmao
You are missing the hypen before include
Name a better duo coders having issues and a single missing character
for real
i saw tutorials online but i can't see the hyphen
Hi, why media card for device does not show stream information, like radio station, or song name ? When I play same stream in VLC, I can see all information. I use this service with parameters
data:
media_content_id: "http://"
media_content_type: music
Do I have to configure it somewhere ?
@cold stirrup I converted your message into a file since it's above 15 lines :+1:
Oh sorry about that.. too many lines. 😦
In case people don't have time to download the text file.. I'm trying to change the background color for a binary sensor card to change based on the state... I think I'm most of the way there with ``` styles:
card:
- background-color: >-
[[[
if (states[variables.camera.state] == "open") {
return 'rgba(var(--color-background-red), 0.2)';
else
return 'var(--ha-card-background, var(--card-background-color, white))';
}
]]]
But perhaps I'm putting the styles part in the wrong place? Because now the card does not show up.
what does variables.camera.state resolve to?
columns: 1
square: false
cards:
- type: 'custom:button-card'
template: card_binary_sensor
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: false
camera: cover.smart_garage_door_2203188494090036103248e1e98c0b2c_garage
entity: cover.smart_garage_door_2203188494090036103248e1e98c0b2c_garage
you can't just add ".state" to that to get the state of that entity
Oh 😂
this whole part is weird:
states[variables.camera.state] == "open"
If I check the state of that entity though in states.. I see open or closed.
you want states[variables.camera].state == "open"
Oh I see, you're right.. that would make more sense.
Still failing though.
Now I'm seeing an error.
you have an opening { and then way later the closing }
line 17, column 9 could not find expected ':' in line 18, column 11
it's broken syntax
Ah yes, the brackets maybe not needed
you either need to put each on a single line, or fix the matching {}
I thought this may be correct, but I'm still getting an error - background-color: >- [[[ if (states[variables.camera].state == "open") { return 'rgba(var(--color-background-red), 0.2)'; } else { return 'var(--ha-card-background, var(--card-background-color, white))'; } ]]]
you also need to fix your indentation
example from mine:
styles:
icon:
- color: >
[[[
if (entity.state === variables.normal) return "green";
else return "red";
]]]
Ah nice. I tabbed it in and now the error has gone.
Awesome!! That works great! Thanks for the help there.
It's really helpful to have the card red if the garage door is open!
I thought I'd add an 'OR' for "opening" to have it turn red immediately...
I was assuming OR would be || ?
if (states[variables.camera].state == "open") || (states[variables.camera].state == "opening") {
Ah cool. Thanks
remove the ) ( from the middle
Nice, working now. Thanks again.
Took some inspiration from your example. Turns out I didn't need to add the variable at all. I can just use entity.state
Is there a way to display an entity with auto-entities based on the state of a different entity?
Hi everyone,
does anyone know a similar looking alternative for the banner-card (https://github.com/nervetattoo/banner-card)
Since the project is dead and the switch entity does not work anymore.
Thanks in advance.
hi, any idea on how to customize open/closed icon for an entity ?
i'm using mqtt integration, i have "icon" in the configuration but nothing for open/close difference
I think the device class may control that? Otherwise if you're talking about doing this on a dashboard, it depends on what card you're using. Some for instance let you use templates to determine what icon is displayed
can we customize our own class ?
I don't think so. I think there are specific icons tied to different device classes
i've searched in https://www.home-assistant.io/integrations/binary_sensor/ but didn't find anything
Ah yeah, that is a perfect illustration of how it works
Either the integration would need to allow you to set the icon via template or the card you're using to display it would need to
set the icon via template ? mmm i'll search this
ah, but i need something like icon_template
ok
Here's an example of it at the integration level:
https://www.home-assistant.io/integrations/template/#icon_template
Which it sounds like you may have found
yeah but i need a icon_template in the configuration file
I am a complete newb to HA. I am running a docker with HA and it doesn't seem to be updating properly. It will not update past 2022.12.8
which is not the case: https://www.home-assistant.io/integrations/binary_sensor.mqtt/
i'll do a feature request
Yeah unfortunately not all of them support it
i understand 🙂
You'll want to ask in #installation-archived i think -- this channel is for issues with the UI specifically
Hey HA community, I'm trying to recreate the functionality of the LIFX app where when you press on the power button on a light, it brings up a timer to select how long you want to fade out for. I have the helper created with the minimum and maximum values, but beyond that I'm not sure how to create this. Has someone else done something like this? The closest thing I can find is https://community.home-assistant.io/t/light-fader-by-transition-time/99600/35 but I'm not quite sure I can follow how this works, and it also doesn't seem to take advantage of the native fade in or out function. Basically, I'm just wanting to call up the slider, take the value from the slider and pass it into the transition part of the YAML file
Hi all. I'm trying to create a wildcard button that takes the user to the appropriate page for them. The names of the bedrooms are set up as /lovelace/users-room, and I was wondering how that might be possible. I'm struggling at the moment to insert the username into the address of the page to navigate to. Does anyone have any ideas as to how I could achieve this? Many thanks
This is what I have at the moment:
Please do ignore the hold and double-tap actions for now
If you don't need any literal ' characters in the output (which I think not? I don't think Lovelace allows that in dashboard names) then you probably want "/lovelace/{{user}}s-room". That's assuming that field allows templates, which I didn't check, just the template syntax
Though I'm also not sure exactly where user comes from here
I assumed because user worked here it would also there, although that doesn't appear to be the case. Unfortunately "/lovelace/{{user}}s-room" doesn't work.
@tidal dirge Thanks for the help. I wonder if there's a better way for me to approach this?
Hm, perhaps you could set up a conditional card? I'm not sure if the logged in user is available there, looking at that now
(I didn't find anything. Perhaps someone else will have a good idea though)
Ah well thanks for looking
anyone around using Kios-mode And subviews, and also noticing the subviews actualy still showing the menu items even though setting:```
mobile_settings:
hide_menubutton: true
hide_overflow: true
ignore_entity_settings: true
it's a bit of a pain, since with card-mod-theme I've set a template text there, but the subviews do not respect the mobile exclusion for it, and the template is too long... see https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176/1271?u=mariusthvdb
{% if is_state('person.x', 'home') %} sensor.kicthen_atc_2_temperature ..
Hi,
how can i show an entity status in a if statement ? instead of showing pure text
Any idea why this isn't working on custom button card
type: custom:button-card
entity: input_select.test_optie
tap_action:
action: call-service
service: input_select.select_next
data: {}
target:
entity_id: input_select.test_optie
double_tap_action:
action: call-service
service: input_select.select_previous
data: {}
target:
entity_id: input_select.test_optie
Cannot service input_select/select_previous niet aanroepen. must contain at least one of entity_id, device_id, area_id.
But does work when using button card in love lace?
Is there a way to limit access to certain things on the dashboard for other users? For example I don't want person B to control person A's light through the dashboard
i dont understand?
That's because custom:button-card uses service_data for that. Replace target with service_data and it works.
i see
does that work on the mobile app?
It does for me
Is anyone using UI minimalist's light popup? I added ulm_card_light_enable_popup to the light card, but can't get the popup to show in any way
- type: "custom:button-card"
template: card_light
entity: light.living_room_ceiling_light
variables:
ulm_card_light_enable_slider: true
ulm_card_light_enable_popup: true
Have you installed browser modV2 ?
I think so?
It doesn't show up under Developer Tools -> Services so might have messed something up
Ah, I had to enable the integration 😅
Now it works, thanks @lyric prairie!
this might be a weird question but I couldn't find exact resources to find an answer. Is it possible to have a dashboard main page like this : I want the buttons on each room to trigger a short video (basically a transition animation from overhead view to individual room) and after that another dashboard page (room specific with more details). If the answer is yes could someone point me towards the right documentation or examples? thanks in advance!
I am having trouble configuring the minimalist ui adaptive dashboard right side popup. I can see the cards fine, but on tap it toggles the device instead of triggering the popup. Also when is the adaptive tap action required? my popup.yaml (https://pastebin.com/WMN1teWP) my main.yaml (https://pastebin.com/ciHMkRch)
I finally updated HA core and OS tonight, and now these gray borders appear everywhere. Any idea how I can remove?
Figured it out!
The popup is by default triggered with a double tap, also check if you use the correct version of state switch.
I also noticed that you have put the entity of the second light in popup.yaml in the variables, instead of like light 1
I am using v 1.9.3 of state machine. Ill double tap it to see what it does
Where can i find that buttons for your lightning?
If I want to start a new custom card, is the boilerplate card still the best place to get started?
How can I get a sensor to wrap the text that it will display on multiple lines?
Hey Guys,
does anybody of you know if it is possible to change the sting shown in a Person badge at the top of the Dashboard?
It ccurrently says "Home", but im using HJomeassistant to automate some things in my small bussines. So i'd like it to say something like "Present".
https://www.home-assistant.io/integrations/zone#home-zone
As it says, customizing the home zone in the UI is not supported, but you can make some changes in the YAML.
That said, for what you want I would create a simple #templates-archived sensor, or use something like the Mushroom Chips with auto-entities to just show the people who are "present"
https://github.com/thomasloven/lovelace-auto-entities
https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/chips.md
Uhh, those tips look amazing!
Template sensors would be great, as they don't require installation of libraries, but Mushroom looks amazing! I think ill try that!
Thank you very much! @blazing wren
Install HACS, you will definitely appreciate it 😉
I have it in my personal Instance but not in the Business. As by now i've only ever installed 2 HACS Packages, i thought i might omit it there. But now as i like to try Mushroom i'l definitely get it 😄
Or maybe try it at home first 🤔
Hi guys, i've starte using custom button card. It's really nice, but i can't figure out why stiles are not applied to a button that is not from a switch, buta a template sensor. The sensor retturn the washer status in a text format, and the button ignores all styles. If i switch the entity from the sensor to a switch, the button renders with all stiles applied.
I've asked if there was a way to control which user has access to certain cards, but I only got to know how to make different cards per user, but I'm lazy (xD) and I don't want to redo it every time I'm adding something new. Is there a way to define users who can interact with it? Like just a list without duplicating cards for each user?
Hey 👋 Why doesn't Adaptive Dashboard work for me?
Hi,
Comment dois-je m'y prendre pour avoir des colonnes dans mon Dashboard? Je n'arrive pas avoir un résultat correcte.
Voilà ce que j'ai (backrground white) et ce que je voudrai avoir (background dark) :
This is an English speaking server 🙂
I'd use the horizontal stack card, and then within it, maybe it is possible to use the vertical stack card to get something that looks like the dark background screenshot you shared.
I suspect this is using https://github.com/thomasloven/lovelace-layout-card
Ohhhhh Sorry ! 😂
thanks @blazing wren it was exactly what I needed !
Oh, that must be it. I always think about card layouts that can work on my phone and on my tablet, so I don't suggest fixed size options like this.
All good, I'm glad we found the answer!
It's still mobile friendly, those columns would just end up stacked
is there any way to have notifications show in a card? im using nspanel pro and it will not display notifications via the OS
an empty Entity Filter Card (or a Conditional Card whose conditions aren't met) still takes up just a teeny tiny amount of space, even when show_empty is set to false. where would the right place be to open an issue for this?
Hello, is it possible to modify the opacity of a background-image ?
its in a template of button-card so modifying opacity alone set everything, button include but I would love to modify only the background-image
i'm trying to add a custom background to my dashboard i added the
background: center / cover no-repeat url("/local/wallpaper.jpg") fixed
in the raw editor It does not work but when i use the full url to the wallpaper it does work
the wallpaper is locally stored in the media folder.
Probably because you have not version 1.9.3 of state-switch installed
Did you end up finding a flexbox layout card?
If I want to be more in control of the way Lovelace looks (and in particular show more buttons on a screen with less white space) but I don't really fancy fiddling with yaml directly, is there a plugin or similar for me?
I'm having some trouble getting a card to become the correct size.
The card
I need the card to fit the map.. but, I can't seem to get it to play ball
Anyone got any ideas? 🙂
How can I get a sensor to wrap the text that it will display on multiple lines?
I have tried this, but it seems to have no effect - Any help will be appreciated...```
style: |
.entities .entity:
$: |
.name {
text-overflow: unset !important;
white-space: unset !important;
}
Thx! but that is a bit over my head 😳 Do you perhaps have an example to assist me in figuring it out. My template look like this: ```
state: "{{ state_attr('sensor.babybuddy_previous_change_01', 'notes') }}"
I am using template-entity-row. Here is the full entry:```
- type: custom:template-entity-row
icon: mdi:clock-outline
name: Notes
state: "{{ state_attr('sensor.babybuddy_previous_change_01', 'notes') }}"
Thank you! Let me try it...
@cold stirrup Thank you so much! It worked perfectly - Appreciate the help... 🙏
Not 100% sure what all of it means, but I will try and make sense of it using google...
I turned "take control of dashboard" on awhile back. Where was the button to turn it off?
I am trying to make a two separate columns with differente cards, but the second column goes under the first one, I tried using layout card but I wasnt able to make it work, any help with it?
Use a Horizontal Stack Card
with horizontal stack card both columns fill a single column, so it looks really stretched
I wanted to have each one on a single column
oh idk
No worries, thanks 😄
howdy all.
I have a picture entity card for my cameras around my house and i was wondering if there's a way to blow up the image when i click on it?
right now it just shows a standard size for all of them and it's not really all that much larger
Go to Settings->Dashboards . Create a new dashboard, it will be an auto-managed dashboard (like before you 'took control') You can delete your current dashboard if you don't want it anymore.
I've got a camera entity that shows up on my dashboard, but it seems to only show a still image and not a live feed. I tried making another dashboard, editing it, and setting the "Camera View" setting to "live", but it still seems to be a static image. Anything else I should try?
nm, I was able to figure out the problem
Can people share there person card? That u use with battery from phone and watch?
Version 1.9.5 is installed. If it had not been installed, probably, there would have been no animation at all
Those are just custom Button cards using vertical/horizontal stack. Using the iOS dark blue alternative theme.
See the documentation, that will recommend you to downgrade 1.9.3
@zealous jungle I converted your message into a file since it's above 15 lines :+1:
How do i add a custom entity icon?
gents, can I force a mushroom light card to display brightness control ?
show_brightness_control ?
I have several grouped switches that obviously DONT have brightness control capability, so even with brightness control on for these groups, the slider is not showing up.
and its not nice to look at on my dashboard
I'd rather see them all wit the slider, just for aesthetics. Now there are larger and ticker cards...
K thx
Hey guys - any idea why my state icons are set to --paper-item-icon-color rather than something attached to state? I've read some posts but its hard to find the info I need around everyone blowing up over change. I've added the state_color: true at the root level of an entities card.
@zealous jungle You can't with that template, as it evaluates the entity on multiple occasions. Or you need to change everything in the template to make it work
Is there a way to mark certain devices to not be able to be turned off on the default overview dashboard without building a custom dashboard? As an example, when I turn off the Office, I'd prefer all my 3D printer stuff to stay on. All of those switches are from a TP-Link Kasa power strip.
I personally created a separate area for my 3D printer
Same with the wardrobe in my bedroom, etc. Any unique "sub" areas.
frankly it's best to just bite the bullet and "take control"
it's not as scary as it sounds
Create a new dashboard, and do it on that 😉
Yeah. I figured that was the answer 😦
You don't have to start from an empty page
The separate area as I suggested is a workaround
I know. I've been using Home Assistant for awhile, so I'm quite comfortable with that. This was a new home assistant install after the memory card on my last one died and this is how I learned that I really need to backup to my NAS.
Thanks
Are there general strategies for displaying multiple icons at the same time where one icon would typically be?
Sorry, I know that's a broad/vague question, but not sure what's out there. I like to be as terse as possible on my dashboards. For instance, to display charging status of my mouse I'd use a batter icon and a mouse icon.
is there a way on a gauge card to make the min/max value the result of an entity? i.e. I am trying to make a gauge with either the max or the severities fluxuate based on the octoprint target temps
If your temps are fluctuating on your tool head you need to run a pid tune, check wiring, or replace thermistor fyi
mine arent, just building certain automations related to tool temp and a nice gauge is good to have for heatup and shutdown but temps change based on material. trying to make a nice dashboard for the printer
i can always use some generic temps but was just wondering if there was a way to take it from the entity octoprint sends over
i guess i could make a card for each material then conditional them on the temp sent over from octoprint 🙂 always many ways to do something it seems
No, the default frontend cards generally don't support templates.
thanks, that helps me be sure i wasnt doing it wrong 🙂 you can learn even from your mistakes
Is there any way to simplify the development of a dashboard?
I have the following dashboard code:
@gentle quartz I converted your message into a file since it's above 15 lines :+1:
The two thermostats are basically the same thing but just with different entitiy IDs. Same layout, same buttons, everything
it feels like I should be able to write that once, and then somehow be able to adapt it by passing it an entity ID
You could use yaml anchors
Anyone know if I can disable the exploration in the history-explorer card (HACS)? I just want to use it as a better history graph card and want to reclaim the screen real estate from the date and entity options. I can't seem to find the disable option in the docs.
@tender pine I converted your message into a file since it's above 15 lines :+1:
Any advice?
I have a derivative sensor that tracks a temperature change over time, but it displays the temperature as just a number over time—without indication that it’s degree Fahrenheit. Is there any way to get it to respect the unit of measure of the original sensor?
I think I used to be able to assign a device class via customizations but that seems to no longer be an option.
The docs appear to make clear what the units will be: https://www.home-assistant.io/integrations/derivative/
The source sensor has a device class of temperature but seems to be ignoring that. I must be missing something.
Maybe give it a unit_of_measurement
I've been using a button with some templates in it for the name, so it changes depending on state, can you achieve this through the mushroom cards?
Example:
name: |
[[[
if (states['binary_sensor.home_assistant_versions_update_available'].state === 'off') return "Current";
else return "Updates";
]]]
use the mushroom-template card and use jinja templates```
- type: custom:mushroom-template-card
primary: >
{{state_attr(entity,'friendly_name')}}
secondary: >
{{states(entity)|title}}
icon: >
mdi:{{iif(is_state(entity,'on'),'coffee','coffee-off')}}
entity: switch.espresso_keuken
check the thread, I posted that 16 minutes before you 😉
Hi all, I have something that I want to do and don't know how.
#energy-archived #dashboard #statistics
For electricity (or energy) consumption, there's this nice dashboard out of the box where you can compare a period of consumption with the previous period (e.g. this week vs. last week).
Looks like this:
I moved all my mqtt devices to areas and now my dashboard gives:
TypeError: e[0] is undefined
Does anyone have a good template for for ecobee thermostats using the simple thermostat lovelace card?
hey everyone. I am working on setting up my Konnected alarm with my MA and I am having trouble getting the card to display the number pad for the code. Here is my YAML code
alarm_control_panel:
- platform: manual
name: Home Alarm
code: "00000"
arming_time: 30
delay_time: 30
trigger_time: 180
What about the yaml for your card?
type: alarm-panel
states:
- arm_home
- arm_away
entity: alarm_control_panel.home_alarm
someone can help me to find this feature in code?
please dont cross post questions to multiple channels.
And if you need to find it in the code, you need #devs_frontend-archived. But free tip: Try the translation strings 😉
Hi, I'm trying to use the temperature controls with an mushroom card, but it doesn't show me the slider when I enable the feature. I'm using WLED as integration with SK6812. It works with light groups that contain Phillips Hue strips, but the set color temperature does not account the white channel, only color.
Good evening,
just a quick one: Is there a way to customize the login page and if so, could you point me in the right direction?
Not really, no.
That's sad. Well, maybe one day...
are you talking about rebranding to package and sell it?
hi, help or i will be cold for the night 🤣
so my target temperature is 24, thermometer at 20.3
heater not heating on generic thermosat
Doesn’t sound like a frontend issue
i think i've found the reason, but i am not sure
heater: select.livingroom_heater_cable_outlet_mode
i use this entity for heater control instead of the switch entity
with those different states available
is it compatible with the generic thermostat or is a binary switch the only way to do it ?
Template fan might suit you better
Is that the tile card or the custom one?
i only want to use it as a switch between 'off' and comfort actually
i don't mind having those modes
mushroom stock card
Then a template switch would work better probably
okay so it should look like that if i got it correctly
so there's 1 entity for the On and another one for the Off State
Yes, but do you have two entities for switch bedroom comfort on and off?
but i remembered that switches only have 1 entity from which you can turn on or off
your device doesn't look correct in the template
What does your entity look like right now?
test your templates in dev tools
as posted here
the target entity id should be related to the heater entity, i thought it was a name for the switch
hence why i was confused
target:
entity_id: bedroom_heater_device_mode state: "comfort"
i guess something around those lines
you don't have an entity type
bedroom_heater_cable_outlet_mode has 6 possible states
how can i call the right one then
you're typing in your entity name instead of id, I believe
I wish the dev tools didn't hide the entity id once you select one
in states
scroll down below and use the filter
it should be like climate.bedroom_heater_cable_outlet_mode
are you sure it has an entity id ?
Stop
it should be written under the attributes sections right
runs
Why are you using a select at all? The thermostat entity has comfort and off already.
okay so for the generic_thermostat a switch isn't mendatory
it can deal with entities having multiple options like comfort etc ...
i am not really sure about that taht's the thing
What the generic thermostat does is it takes a switch (e.g. one connected to an electric heater) and a temperature sensor, and makes it so that if the sensor registers a lower temp than the set one the heater turns on and vice versa.
Does that apply to your use case?
yes i have a temperature sensor which is now working with the generic_thermostat
but i have trouble setting up the heater on/off
as it's not a switch but multiple modes
Then heater: should be the switch entity, e.g. switch.my_electric_heater
that's what we where doing but:
How is it multiple modes?
What is the hardware you have?
well i think i should mention that frist
in france we have what we call the "pilot cable"
tldr cable that sends a signal to control your electric individual heater
using a pilot wire allows you to control the state
but:
you have 5 heating modes
and off
If you want to use that as a generic thermostat, I guess this is the entity you should use as heater: https://www.zigbee2mqtt.io/devices/064882.html#switch
= 6 states possible
Otherwise it is not a generic thermostat and you should abandon that track.
yep, we are on the right track. your yaml does not specify the entity type. go to template in dev tools and you'll find the templating you are trying to use does not work
it is because i want the comfort mode to be the on has controlling the on state through a switch template
yup that's the thing
and about the state as you said
i can't use it because it requires pilot wire to be off
But i need to control the heater using the pilot wire, else you can damage it's internal electronics
so i want bedroom_heater_cable_outlet_mode -> "comfort" to be a switch in order to add it to the generic_thermostat
Ok, here is what it sounds like to me.
I would expect that if I had an outlet that I could set to a "comfort" mode it would somehow measure the temperature and turn on and off the heater automatically to keep a comfortable temperature when that mode was active.
i see but how can i get the full one as it dosen't apprear on the dev tools
Which is exactly what the generic thermostat does if that is set to "comfort" mode by measuring the temperature and turning on and off the heater to maintain a comfortable temperature.
you showed me a screenshot of a full id. select.livingroom_heater_cable_outlet_mode
it's turning off the heating not the electronics, that's why i use the pilot wire
But what you're trying to do is have the Generic Thermostat turn on and off the comfort mode of the outlet such that you get two controllers actively sabotaging each other?
but since it has 6 modes how can i use the comfort one for the switch
not of the outlet but on the heater module
by checking if the mode is on comfort or not off
Take a screenshot of the device page for us and share it via Imgur
The device from Z2M that is
But if you already have a switch for comfort, why are you creating a template switch?
that is still not a full entity id 😐 I'm going to let the green people take over. 🙂
bedroom_heater_cable_outlet_mode is not an entity id
It's part of an entity id, but it is not an entity id on its own
It's just lonely text
First of all: The first response you got was correct: <#frontend-archived message>
Second of all: This sounds like the wrong solution to the actual problem.
Third of all: something like yaml turn_on: service: select.select_option target: entity_id: select.living_room_heater_cable_outlet_mode data: option: comfort should get you started
The select. part of the entity_id is vital - as people keep telling you.
No
is_state will not work
Look at what Thomas and I both said
And the service is wrong, you need to look at the example Thomas provided more closely
comfort mode != dumb relay turning on and off the whole heater
Exactly. And that's why it's probably a bad idea to use that in tandem with Generic Thermostat.
You can't drive to a ice cream parlour and ask them to fill up your car with gas
i see but does it still make sense if i only need one mode ?
and set up the temperature with the card
actually that's all i want to do: setting up the temperature myself and not having modes if that make sense
You can't just go into the middle of town and wait for someone to bring you ice cream.
Without the proper entity ID and the correct service calls, this is exactly what you're trying to do
It will ignore the temperature. The Generic Thermostat will turn on the Comfort mode based on one set of rules, and then the outlet will controll the heater based on an entirely different set of rules - but only while the Generic Thermostat allows it.
Then I think you will have to do it in another way. E.g. by controlling the actual output of the outlet.
turn on/off the outlet you mean
That would make the most sense to me.
i would love to, but heaters having pilot wire needs to be turned on and off using the pilot wire only that's the problem
i could go the dumb way but i read in multiple place across the internet on trustable website that this would damage the hardware control
Then you need to go to #hardware-archived and find something that actually works with your setup
id i didn't had hardware control with idiot internal thermostat on the heater itself then it would be possible to control the outlet in a binary mode
pilot wire in french specific don't ask me why we're doing things diffrently
Say it's like this: You want the temperature to be 23 °C, so that's what you turn your theromstat in Home Assistant to. That means when the temperature drops to 22 °C it will turn on Comfort mode.
But what if the outlets Comfort mode is set to 21 °C? Then NOTHING will happen. It will keep the heater off.
basically i will always put the comfort to 25
that's what i planned
so i will have an hardware limit of 25 degree no matter what
Then things might work if you start using entity ids instead of entity names.
it's dumb i know, but this pilot wire is making things weird
An entity id is <type>.<name> always with a .. And in yaml you pretty much ALWAYS want ids
Let's play spot the difference:
bathroom
light.bathroom
Which one of those is the entity id?
entity id number 2 !
Bingo.
You're getting really close now at least. We should be able to get this.
Your value template needs to use something like entity id 2
It is using the first type right now.
Which is wrong, and not an ID at all
And you need to call the right service.
Also, I just assumed the entity ids in my examples. You should double check those.
You can find them in Settings->Devices->MQTT and then find you outlet entity device
dev tools is your friend, use all of the tabs 🙂
That too.
Dev tools will hide the domain part of the entity ID from you when you click on one
before you blast that template into yaml, test it out in dev tools
I prefer going via the integrations page(s) myself
The right service depends on the <type> part of the entity, by the way. Zigbee2mqtt is pretty up to date so it should be select.select_option, but that's not a given.
Unless somehow you're running the old #add-ons-archived Z2M which stopped being updated a very long time ago 🤪
i am there
running the new one on zigbee dongle E everything new !
E with Z2M? Interesting choice
well, it works (for now)
I never even heard of that one?
seems stable enough for me yet
Zigbee to MQTT bridge, get rid of your proprietary Zigbee bridges
It's only got experimental support so far
based on the same chip as the ha dongle
Oh. Sonoff?
I've seen a few users of that. Should work pretty well, I think.
yup
I also think conbee II is decent with Z2M. Conbee I is not in my personal experience.
Aaaaanyway
Did you find your outlet device there?
i had random disconnect but i think it's fixed after a full new pairing
I found a smart plug that crashed Z2M on joining with the EZSP-based SkyConnect, but other than that it was fine
Same plug works with the Sonoff-P variant
... Settings->Devices->MQTT in Home Assistant...
Yes. Click the icon with the three dots and lines to the left of the select box.
Then the Settings tab
There you'll have the actual entity_id you neeed.
"select.bedroom_heater_cable_outlet_mode"