#frontend-archived
1 messages · Page 7 of 1
hi all, i have a device with a termostat that is 3 degrees off, id like to subtract 3 from the value before it's shown in the picture element card, yaml snippet as in now - entity: sensor.brandvarnare_vind_air_temperature style: left: 19% top: 39% type: state-label
how is that done?
{{ states('sensor.brandvarnare_vind_air_temperature')| something something -3 }}````
?
I’ve configured generic thermostats presets and using a scheduler and automations to switch presets. However it always seem to display the target temperature and not the preset one, any idea if expected ?
Here I’d expect to see 18 under the real temperature. Otherwise it’s misleading
state: >-
{{ states('sensor.brandvarnare_vind_air_temperature') | float -3 }}
If the difference depends on the temperature, i.e. -2 when 28 or -1 when 18 then you can use the 'compensation' integration
I would like to have my proxmox cpu temp, this is not a standard sensor. Ive googled it and the simplest solution ive found is:
http://pastie.org/p/21ZW2ViMgOSGVn9aAXyo4t
Here the guys SSH's the info. But I dont understand how to make it work. Anyone any idea that can point me in the right direction?
Hi there
I have a quick Q
I've got some entities that are coming in to HA over MQTT. They've been automatically discovered
On the default "Overview" dashboard, they all seem to show up except for one. Any idea why that might be?
The entity does exist in HA, it's just not auto-populating in the default dashboard for some reason
You put that piece of code in your configuration.yaml and reboot...then it will show up as a sensor with that name "temperature_cpu_nuc". I assume the command is correct of course (I have no lcue if it is)
sensor:
- platform: command_line
name: temperature_cpu_nuc
command: 'ssh -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -q root@10.10.40.6 cat /sys/class/thermal/thermal_zone3/temp'
value_template: "{{ value | int / 1000 }}"
unit_of_measurement: "°C"
if you already have a section 'sensor:' defined then put it in the same section
its that easy? lol. lemme try. thanks
well... assuming the command is correct of course
I would try that out first
before restarting and fining out you have just errors and restarting and...
e.g. for me on an Intel nuc it is much simpler...
@-nuc:~$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +43.0°C (high = +90.0°C, crit = +90.0°C)
Core 1: +43.0°C (high = +90.0°C, crit = +90.0°C)
Core 2: +37.0°C (high = +90.0°C, crit = +90.0°C)
Core 3: +38.0°C (high = +90.0°C, crit = +90.0°C)
acpitz-acpi-0
Adapter: ACPI interface
temp1: +47.0°C (crit = +115.0°C)
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1: +56.0°C
yeah that was the command line for a nuc
nope doesnt work lol, i checked the directory and ip
what HA do you run?
updated to last one yday
HAOS/docker?
ok, I donot know what happens when you run tis via command_line
do you have any errors?
yeah, but not fatal
can you simulate this command in the same VM instance?
i already removed it, want me redo it for the error?
from docker I can run inside the container so I can check if all works
WDYM? the cat command in my proxmox?
sometimes it lacks the right software
the whole command yes
in other words, I have no clue how this would work from withon a VM
I only know docker and plain OS
so there you go...if it does not work from within the VM then the sensor also has no result
yup now it returns the value
lemme retry in HA 😄 XD
it boots
but no sensor
i think my hyphens are wrong?
and doesnt it need an 'unique id '?
I have one without quotes which works fine but the documentation shows double quotes
wierd. where dont u have the quotes? nowhere?
and you can invent a unique_id which will allow you to delete it
example:
- platform: command_line
name: shopping_list
command: python3 /config/custom_components/custom_sensor/shopping_list_open_items.py
but doc examples uses double or single quotes.
hmmm i understand
I suggest to search a bit on the forum for this, it may be that executing it from HA adds some additional stuff...I would not know as no VM experience.
allright, man thanks for the help 🙂
I can see it is HAOS that you are running on VM so please also note the comment in the doc about that
and I found this
but maybe you found that too
hmm no, found another not working one 😄
thanks 😄
nope
lol
[platform] is an invalid option for [template]
ok
so this means... i cant have platform under template?
sheesh XD
now what haha
im very close i think lmao
It is either under sensor: or binary_sensor: ...also here the documentation is not clear....
I did give you my example above 🙂
anyhow.... is it working now?
that is MOST important
this also gives : unknown
even when i do run ssh command from HA or Proxmox it returns a value
ffs im so close i can smell it ;D
Thank you!
It seems to work when going from the away preset to another but not between other presets
How to get rid of yellow icons on own defined sensors?
anyone any ideas? I ran out 😄
Not sure if correct server but could someone help me with this code on my custom button card?
[[[
if (states['person.g3_3'].state == 'home')
return
if (states['person.g3_3'].state == "Mother's")
return
else
return `
</ha-icon>${states['sensor.person_geocoded_location'].state}`
]]]```
is there a way to do like a an if error then blank?
set the command_line integration to debug in the logger of configuration.yaml... this may give you more data to play with
Can someone help with bar card. Style commands are not working at all
All other commands are working fine.
Opened an issue here https://github.com/home-assistant/frontend/issues/14690
that, i didnt understand ;D
@copper isle I converted your message into a file since it's above 15 lines :+1:
In configyaml, make sure you have a section with logger and more important, debug on cl
logger:
default: warning
logs:
homeassistant.components.command_line: debug
and then restart
the log should show a lot more details on the command_line activity
it is not just errors
this will show a lot
should
e.g. for rest integration it will show the whole data coming in
ok restarting now
in the settings > system > logs...click on the button load full logs
fingers crossed if it shows things
yeah
Command failed (with return code 255)
ok seems the error is there
I remember something that when you go from HA OS command-line you had to do something else to get it to work but I am not sure what....check other CLI in the forum
yeah u had to copy the keys and stuff
Hi guys. I have a input_text helper that is not showing its configured Last Changed
When adding it to the dashboard using the Entities Card I get the option to select Secondary Information. For other helpers this works fine, but not for input_text ones... What can I do please?
Buonasera creando una nuova plancia mi da questo errore "TypeError: Cannot read properties of undefined (reading 'toUpperCase')" da cosa può dipendere?
Hi, not sure I understand correctly, but try to change "toUpperCase" to "upper()". An example I am using; "{{ states('switch.christmas_lights_dumb').upper() }}"
Non sto facendo nulla ho sto semplicemente creando una nuova plancia e mi da questo errore
English, please
I think hes desperate 😄
I'd like to use some custom cards from UI-Lovelace-Minimalist but... I also want to retain some normal UI-editing. Is this an easy task or high difficulty?
Basically, I have a normal lovelace dashboard already going. I want to add this card/template to that: https://github.com/UI-Lovelace-Minimalist/UI/tree/main/custom_cards/custom_card_input_number
I'll want to add others if possible, but I need to understand how to go about that.
Good evening, creating a new dashboard gives me this error "TypeError: Cannot read properties of undefined (reading 'toUpperCase')" what could it depend on?
Please post the exact steps that gives this error. I just tried creating a new dashboard (settings -> Dashboards -> Add Dashboard), which worked as expected. Is this also what you tried?
Yes, I did the same step as you, but I get this error
I am just guessing now, but could it have to do with language settings? What if you change into english (if not already) and try again, will that work?
I was fiddling with https://github.com/thomasloven/lovelace-auto-entities and noticed, that at some point recently, my "On" color changed from the default yellow, to a bright blue color. "Off" color remains a dark blue. My other cards are still yellow/blue. Any ideas what I might have broken?
could it have to do with this perhaps? #beta message
2022.12 changed some amber to bright blue I noticed
for my motion sensor it changed to bright blue, I applied a custom theme to switch it back
custom:
rgb-state-binary-sensor-color: var(--rgb-amber-color)
I think the whole (or most of) the list is here https://github.com/home-assistant/frontend/blob/master/src/resources/ha-style.ts
my heater is still blue/yellow, but motion sensor was dark blue/light blue
if I don't have a lovelace-ui.yaml do I just create one? does it have to have anything in particular?
what would lead you to want one?
"To utilize the backgrounds that come with the themes, add this to your lovelace-ui.yaml:"
my thought is... perhaps this info is outdated though...
no, it's just intended for people managing their lovelace dashboard in YAML. Which you presumably are not
I am not currently, however, I would like to play around with themes... can that be done without using yaml?
no
is it an all or nothing kind of thing?
yaml all the way, or UI all the way?
or... instead of adding to the yaml... would I add it via the raw config?
That line will work if added to the raw config.
Like this (please excuse the picture of code):
Why is this not working?
Hey all 🙂 - I hope that my queston does not exist yet - but I cant find anything on Google and in the Forums... I have a really strange error that perhaps only in the Code Editor. I want to edit a card but I can't see the error, it will only show a quarter of it in the left bottom... I'm not really sure why this is caused but I already cleared my cache and used another Brwoser (Chrome and Firefox each the newest version) - Following there are 2 pictures, the first one with a part of my test Code, there is all fine, the error is properly shown in the preview field but in the second image the error field is moved out to the bottom left... Is this a common problem? - and I'm not able to find the answer? or is this an unknown bug? - The error message appears normal until I have a "wrong defined" element on the picture elements card
Thank you a lot for your help 🙂
Why is this not working to change the color icon depending on state?
Did you install custom-ui? (If not, check my Bio)
@cosmic harness I converted your message into a file since it's above 15 lines :+1:
Can't use templating from the frontend like that. I suggest you make a script that does what you want and trigger that from the button.
Also, it's just data nowadays. Not data_template.
Is it a way to eliminate the vertical stack on this one? I try to use grid instead of horizontal as the large to the right line up.
thx, can i pass a variable to that script, otherwise i need three scripts (min, max, normal)
Sure. Anything you put in data will be sent to the script as a variable.
thx.
Not really. You could use a 1 column grid instead, though.
Yes i did but despite the lock is Locked it’s red
Locked or locked (check dev tools/state, which btw should also show the template in the attributes column)
just to be sure, check the config/info and see if custom-ui is correctly installed
State is “locked” and it shows in the bottom of the about screen that it’s loaded
The red icon seems to be defaulted from the device class in 2022.12
no, custom-ui overrides all others
So my customize file might not be loaded?
is it new? did you change anything? did it work before?
It’s new, but reloaded. There is a file in include folder called customize.yaml
Together with my other include files
can you see the template in the attributes column? Of not, it is not injected, and maybe your file is not included correctly
Hmm how would that split work with one column unless i use horizontal and vertical?
There is a logic there but it’s not the latest. Where is that coming from?
can you post a screenshot? btw, please post your yaml with the include and folder config. for testing purposes, you can copy that bit of yaml inside your configuration.yaml directly
well, if this currently shows a red icon, at least that is working as expected 😉
I mean only replacing the vertical stack with a one column grid. You'd still need the two column grid also.
did you, after changing the template, also change the state? it changes on state change
But the attribute part would anyway be correct?
not sure what you're asking now. I thought you said the template is supposed to be reversed. If all is correctly loaded, it will change upon changing the state of the lock.
if not, you need to find out why.....
New to minimalist lovelace ui. Can you really not customize these cards much or are all the parameters just not documented on this page? Example: https://ui-lovelace-minimalist.github.io/UI/usage/cards/card_generic/
I just want to change the color of the icon. I've gotta be missing something.
Or template the name/state? I can do it in mushroom cards... gotta be possible here too
hi, does anyone know what icon the 'Overview' dashboard uses?
its the icon with 4 different sized rectangles
I'm trying to get History explorer card to use long term statistics.
But despite using a example code from https://github.com/alexarch21/history-explorer-card#long-term-statistics
..and trying with multiple sensors I cannot get it to work.
Ofc. statistics card from HA shows indeed that there are LTS for those entities.
Can someone help me on this? Or at least confirm that this feature is working as intended with current HA version?
I can even see card fetching data using WS but it doesn't render anything past where standard state history ends..
can anyone help me with this problem? Error loading the view strategy:
TypeError: Cannot read properties of undefined (reading 'toUpperCase')
it shows up when I create a new dashboard
Hello everyone,
my brain seems to have a slow Sunday.
Anybody know why this is not working?
type: custom:auto-entities
sort:
method: friendly_name
filter:
include:
- entity_id: climate.eq3_*
card:
type: thermostat
youd probably be best to post this in the community thread, as its a dedicated HE card issue. Alex is very active there.
define 'not working' ?
Dashboard just shows a red bar with no error message.
try 'name'
~~friendly_name is not listed in the docs ~~https://github.com/thomasloven/lovelace-auto-entities#sorting-entities
It is not listed but strangely it always seemd to work.
I used exactly the same code again and now I get
Specify an entity from within the climate domain
entities:
- entity: climate.eq3_climate_dining_room
- entity: climate.eq3_climate_guest_toilet
- entity: climate.eq3_climate_kitchen
- entity: climate.eq3_climate_living_room
- entity: climate.eq3_climate_master_bathroom
- entity: climate.eq3_climate_master_bedroom
- entity: climate.eq3_climate_office
- entity: climate.eq3_climate_walk_in
type: thermostat
Now I am confused
Which is double weird.
a) those are the entities in the climate domain.
b) I get the same error when I filter by domain: climate
type: custom:auto-entities
sort:
method: name
filter:
include:
- domain: climate
card:
type: thermostat
this would work:
- type: custom:auto-entities
card:
type: entities
filter:
include:
- domain: climate
options:
type: custom:hui-element
card_type: thermostat
sort:
method: name
I changed the order, but also you need to add the hui-element to the card type, otherwise you can not add those climate cards to an entities card
I actually don't have hui-element right now. But of course I can install it. But do you know why the thermostat needs to be wrapped in an entities card?
Would this also work in a simple vertical-stack-card?
Each stack card being a thermostat card
Hi, my twinkly light has an attribute with effect list. How can I add it to lovelace UI?
Because it’s auto-entities ….
nope, because vertical-stack expects cards, and not entities
you can use a type: attribute in an entities card. It will show you the option, but it wont show a drop down selector see https://www.home-assistant.io/dashboards/entities/#attribute
Hi I found an bit of annoying behavior of the graphs in the history tab on mobile. Where can I address this? (Functionality it’s working it’s just where the information shows up)
sorry for late response, but I've been using the layout card with the grid layout and have been able to use CSS grid for everything https://github.com/thomasloven/lovelace-layout-card
personally I've been using template areas
grid-template-columns: 50% 50%
grid-template-rows: auto
grid-template-areas: |
"sidebar main"
"sidebar main"
and then you add this to the card
view_layout:
grid-area: sidebar
grid-column: 1
grid-row: 2
I went a little crazy and put grids in grids
What is the benefit of doing this vs vertical and hortizontal way?
I actually used a custom mod card for a layout card so I could add a background to it
I wouldn't necessarily say there's too much benefit if you are just stacking them
I ended up running into some limitations with vertical stack so I ended up switching
limitations being: I can't change how it will look on mobile
so with the grid, this changes format i'll show
that changes to this when it gets small enough
The issue right now is that I have a HUGE card with 20 stacks inside them. I didnt know if I should do that or make one card pr entity and let mobile line it up
I start to loose control
I see ya
luckily the cards property can be copy/pasted pretty easily, but setting up this AGAIN in a layout card instead would be a lot of work
I know I had to do it for mine and it took quite a while for each card
but if you wanted more control over how it looks on mobile, grid is 100% worth
https://paste.helpch.at/ihevahedub.yml
this is the part of the yaml that deals with changing the grid layout depending on width
Its a new way of thinking for sure
yep, looking at your large vertical stack does remind me of the hours I spent lol
Maybe if you just switch the main stack to a grid you could keep the other stacks the same and grouped up
So you have horizontal stacks inside the grid, then you could easily change the layout
wish ya luck if you choose to embark on it 😂
Well this looks like the default method of HA, so its hard to figure out alternative methods. Its not before I started so scroll though the forums the grids came up
For sure, just beware there are grid cards and then there is the layout card (lets you apply an entire layout inside a card) that has the grid-layout option
If you use a grid card your columns will be the same for the whole thing vs nearly no limits with css grid (I don't know any css other than what I've been googling for this)
default grid card could do very nicely for your Living room information though for sure
I'm still having issues with this.... Anybody have any ideas?
@gloomy iris I made a mistake earlier. edited that post. just to let you know
I was thinking that maybe auto-entities would supply the entities and thermostat could be the card per stack.
But you are right, it does not work that way.
But your hui-elements approach worked. It does not make the thermostats full size but it works 🙂
Anyone else ever got stuck in a CLI boot loop and resolved it? lmao
Can the screen wallpaper be changed based on time?
Trying to evaluate a state number but cant get it to work.
icon_color: >
if (state > 0) return 'yellow';
return 'green';
{% if is_state('light.livingroom', 'on') %}
orange
{% endif %}
They are listed in the entities card so yes, you should add a bit of card_mod to style that. It’s only a matter of box-shadow and margins. ( hint: on the entities card, not the auto-entities …)
Where? This is a custom-Ui JavaScript template and not supported without that custom resource
hmm is there a way to install qemu guest agent?
In having a state as a number. I count the number of lights. But when checking if state >0 it’s not triggered.
you can't just put a template there
I have the custom_ui installed
Is it view type that is single row, and not masonry? Would be easier for mobile dashboard I think?
you are really not providing enough info to be able to help you. like the other issue, was that solved now? #frontend-archived message If not, please answer my question
there
btw, depending on the data you feed the template, it might well be the case it isnt a number, but a string. in which case you need to quote the number in the template
btw, and this was a complete surprise to me, (having used custom-ui since forever way back in 2016 I think), I learned we can even use this, on entities that allow setting attributes: in the config: attributes: icon_color: > {{'var(--alert-color)' if this.state|int(default=0) > 0 else 'var(--primary-color)'}} Ofc, we still need custom-ui installed for that (Core HA doesn't know the icon_color attribute). But it allows us to create a template in Jinja, and not need the Javascript version set in customize:
I haven't documented this yet in the Custom-ui repo (so consider this an official scoop 😉 ), will do so tomorrow. Also, I am not yet sure which impact this has on the system (JS frontend is evaluated in the browser, Jinja backend on the server).
see: https://pastebin.com/Z8r1pAQ0 for a complete example template sensor
Thanks! I will check it! Btw trying the quote since it might be string. Did not help.
Thank You.
I did some research and this appears to be a issue introduced coz of 2022.12 ws api changes.
(But just a quick yes/no reply from other person running this card would probably have saved me quite a bit of time so I'm a bit salty🥲 )
Alex is indeed very active thou 👍
has anyone else noticed that in december releases, their areas are sorted differently on the overview dashboard?
specifically, mine are no longer sorted alphabetically, which is very strange
(and makes it very difficult to figure out where things are)
I have way to many devices now to depend on that automatically generated mess of dashboard.
But it does bother me that sorting is not locale aware.
So e.g. "Łazienka" (Bathroom) will usually land on the end of the list instead of going after "Korytarz" (Hallway).
I have a crazy number of devices too, but have been curating it (e.g. hiding entities, etc.) so that it's mostly functional for me when I'm trying to do something I don't do frequently
(e.g. I have some switches that I can toggle on/off to power cycle a device that might be misbehaving)
I do hide devices based on not wanting them to be part of area targeted service calls.
which reminds me of the bug were all my deCONZ integration devices gets randomly cleared "hidden" flag. I should have reported that.
Hey, is there any way to color code a logbook card? For instance, in my logbook below, I want to have the whole line RED when the Garage-Door contact became unknown, and Yellow when the Garage-Door contact was opened.
I also want to color code the Garage AC1 and AC2 to be blue when it is on cool and red when it is on heat.
is anyone using the Show Upcoming Media card that integrates with Radarr/Sonarr/etc?
i have installed the card through HACS and i have installed the sonarr and radarr pieces... when i go to add the sensor in my configuration.yaml, i am getting this error when checking config:
Platform error sensor.sonarr_upcoming_media - Integration 'sonarr_upcoming_media' not found.
What exactly did you add?
added the files in step 1, installed upcoming media card, added the sensor to configuration.yaml but when i check config i get that error
Did you restart HA before you added that?
Well, it says it can't find it
did that after i added the .py files, the js file,e tc
So you should review the HA log
Are you messing with the files in .storage?
You said:
a stray character got added to the .json file
I want to change the content of some cards, depending on whether I'm logged in "local" or "remote". (I.e. whether I'm connected via Nabu Casa or not)
Can someone give me a pointer to get me started?
(I get how to do an IF statement, and do things with it like change the color of a card. I don't know how to detect whether I'm local or remote.)
Does anyone know how to increase the height of the cards on the integration screen? Those are more usable on mobile devices than desktop devices right now :/
I'm talking about the /config/integrations url. The first screenshot is from the desktop, the second from a mobile device, the latter is much more usable
@limpid tusk I converted your message into a file since it's above 15 lines :+1:
I am really looking forward to changing up my frontend cards with these new options in 2022.11.2 with all the pretty toggles that can be on them now when I get the chance to review
You could check the device's ~~BSSID or ~~SSID I bet
hmm now I have a switch that calls a script that tells a service elsewhere to disable scheduling and restart... but there's like a 1 minute turn around... is there a way I can update the button in lovelace with a spinner or something that shows the action has been started but not finished?
Not sure if you fixed this yet but you need to restart before adding the sensor to the config.yaml
there was an issue with 1 of my included files, uploaded them again and all good
@earnest mauve do you have a radarr card also? I can't get the radar card to work
check HA logs, that's how i found mine... saw when HA started it was having trouble with the manifest.json file, so got rid of that and put a fresh copy and was working
i dont have the radarr card but i can set it up when i get home and check
@earnest mauve yeah I got the sonarr one working but the radarr and emby ones are not, I'm not even sure the radarr on is still functioning, if you get it working please ping me
sure thing, will take a look in an hour or so
hi, is it possible to change the length of history shown for an entity? i have 7 temp sensors and 2 of them are showing history since first turned on. others are showing 24 hours
the answer to this was to use a history graph card
@sudden apex
The preferred way to configure an input number is via the user interface at Settings -> Devices & Services -> Helpers. Click the add button and then choose the Number option.
This is via the HA Companion app? You could track whether your person is home or if your device is connected to your wifi. If no, then you must be remotely accessing right?
so with 2022.12.4, now binary sensors have the off and on color as amber
After updating to 2022.12 the entity names are no longer shown in history graphs.
How do I get them back?
Was already fixed in 2022.12.1, so I would assume you are not running the latest one?
Ah , no i didn't update because i don't use any of the components that got fixes
I'll update to .4
Hey there! Quick question. In the last few updates over the last month or so something changed with my dashboard. It use to sort my Groups first (by order I have them configured in groups.yaml), but now it looks like my devices are all sorted alphabetically, first by devices, then by groups.yaml. Is there a settings somewhere to put groups first? I know I can "take control" of dashboard and create my own dashboard, but for the default dashboard, I personally liked the groups first, then all the devices after it... Just wasn't sure if there is a new setting or something that toggles this since it changed?
In 2022.12.4 (released today) there is a fix for the sorting of the auto generated dashboard. That might fix your issue. Although TBH, I don't know if/how groups are handled. I am only aware of areas and devices.
Any workaround for https://github.com/home-assistant/frontend/issues/14734 ?
It did fix the sorting, but it now is sorting groups at the end instead of the beginning. 2022.12.4 fixed an issue that caused the devices to just be everywhere (no sorting that I could tell anyways)... So now they are sorted alphabetically, but groups are at the end. Was wanting them at the beginning.
@winter hollow Was that done on purpose, do you know?
I have been searching the forums and the like to wrap my head around the whole colour change debacle which broke many a UI. I managed to fix most of the issues, but I can seem to figure out how to change the icon color the custom:fold-entity-row. The behaviour also seems to be inconsistent, as some of them are using the default blue/grey colour, but some decided that the new orange is the way to go. Below is an example of one which decided to adopt the orange colour, and I would like to restore it to the blue/gray. Any direction/assistance will be appreciated.```
- type: custom:fold-entity-row
head:
type: custom:template-entity-row
name: 'Sleep Sounds'
icon: mdi:account-music-outline
tap_action:
action: fire-dom-event
fold_row: true
open: false
padding: 0
group_config:
secondary_info: last-changed
items:
- << bunch of scripts using a custom:button-card" >>
hello I made a grid card with 6 buttons to set my heating. Each button calls a different scene. The only issue is that it does not highlight which scene is currently set. Is there a way to make it so that it highlights the button that is currently active (or just highlight which of the 6 buttons was the last to be pressed)?
When I added it via Helpers, it didn't give me the choice between Slider or Box 😦 Is there something I'm missing maybe? Also, thanks for moving me to the proper thread 🙂
Thank you!
A scene does not have an "active" state that could be used to highlight a button. I imagine that it might be possible with some templating and card-mod magic by comparing which scene has the newest trigger timestamp and based on that color in your buttons.
But a scene in itself just recalls a certain saved state and cannot judge if it is still "active" a second alter, since some other action/automation might have changed something so it technically no longer matches the saved scene state.
So it sounds like trying to achieve this with scenes is a bad idea. Should I go with scripts or is anything else recommended?
I use a template binary sensor to detect when the entity states match those in a scene. But it is cumbersome to remember to update the template whenever you tweak the scene. So in the end I just store the desired states in the template sensor attributes, and avoid scenes altogether.
hmmm is there maybe a way I could disable an automation whenever I enable another one? I wonder if this could do the trick
Sure. Use service automation.turn_off in the action section.
I did that but I think my issue is to set the proper trigger. I can't figure that part out. I want Automation A to be disabled by my clicking on enabling Automation B. How can I do that?
State trigger when automation b becomes on. Automations are also entities.
If you now go and turn automation b off and on, do you see the "triggered" bar at the top of this trigger?
yes
Then the trigger works. But the actions don't run?
this is my action. I tested it with a time trigger. And the time trigger did turn off that automation
Ok. So the action works too. Check the traces.
erm this is a bit above me... I found the traces button though.
https://my.home-assistant.io/redirect/helpers/ dlect the input_number you want to change and in the middle of the box that shows up you'll see an option for display mode.
running node-red in docker... how do I add node-red to sidebar of home-assistant?
I am trying this:
- name: nodered
sidebar_title: "Node-Red"
sidebar_icon: mdi:sitemap
url_path: http://192.168.12.135:1880/
embed_iframe: true
require_admin: true
in the panel_custom part of configuration.yaml
I need some help displaying a entity on the dashboard
ok, ask
So I have a smarter coffee machine, and would like to display and alter the number of cups using a slider instead of a drop-down menu
ok
ok, what is the type of the dropdown?
you can create a helper that is numeric, and map between the numeric and the dropdown
Ah, that's the purpose of a helper
display the numeric helper, and convert in the background
Where do I find helpers?
integration page 4th item at the top
Ah thank you
use an automation that triggers on numeric changing, to map changes in one to the other
Superstar
@earnest mauve any luck with radarr
Hey all 🙂 I've got a dropdown helper that I use to select an entity to be used in automation. Any way I can change things to make it it appear with a friendly name in Lovelace but still have the entity id for it's value?
Here is what I see. I don't see a Display Mode option 😦
when you create it:
Am I broken??
maybe you need to have advanced mode enabled in your profile?
oooh probably! I didn't know that's a thing
that enables/disabled a seemingly random array of things
I am the creator/admin. Would have thought that was set already
yeah, well. that's been discussed
Nailed it
Thanks so much! And you as well @glacial ledge
Hi there. I'd like to know if what I am experiencing is common or if I have somehow messed up.
Yesterday I migrated DB of pretty much fresh install (been running for only 5 days) to MariaDB. My install is a KVM on ubuntu server.
Well, I was playing with sensors and managed to confuse one to a point it was spitting out junk data. I said to my self, no problem, I'm just gonna go to DB and delete the junk readings.
Well I did exactly that. Than I clicked on entity in HA and it showed blank space, where the bad readings were.
Then I went to dashboard and to my surprise the charts were still showing the deleted DB data. This persists even if i restart HA from dev. tools menu.
I was trying to find answers on forum and google but I'm still finding how to delete data from database but nothing about the charts.
Yeah, seems sometimes random. Do you know if somewhere there is already an existing list, we might try to update?
No idea, unfortunately. It's more of a discovery process 🙂. I sure wish that the "Owner != Advanced" discussion could be revisited as well
What I noticed after migration was, that the previous database was showing up on the charts for next 12-18 hours before it was gone for good.
The weird thing was that during this time, it was sometimes shown and sometimes not.
Anyone know how to remove huge margin/padding between my 2 bulbs in this Mushroom Grid?
Its off
Wait wtf
it WAS lmao it enabled itself
thx..
Well I just found out that apparently the data is somehow still existing, but only in history section
I'm trying to add a background color to my entire group/grid card but I think im doing something wrong?
Can someone help me with https://github.com/custom-cards/flex-table-card? I'm trying to create a table that lists all sensors from all android devices with the homeassistant app installed. But since the "entities" are the actual sensors and not the devices that have the sensors in them i'm only getting a table with one column being the full sensor name and the other one being it's "state". https://i.imgur.com/Agl80xz.png
type: custom:flex-table-card
entities:
include: .*android.*
exclude: null
columns:
- name: Name
data: name
- name: State
data: state
Anyone here who knows how to change the background of mushroom chips? Normaly this whould work
card_mod: style: | ha-card { --ha-card-background: rgba(0,0,0,0.5); color: white; }
But adding this won't change anything for the chips background
thats the same thing im trying to do right now lmao
(Apologies if there's a better channel for this.)
I can't delete entities of items that I no longer have -- can anyone show me what I'm missing? Even when I go to the details page the DELETE is greyed out.
tick the box next to it
then at the top right there should be "remove selected" in red
Repost, still stuck... I have been searching the forums and the like to wrap my head around the whole colour change debacle which broke many a UI. I managed to fix most of the issues, but I can seem to figure out how to change the icon color the custom:fold-entity-row. The behaviour also seems to be inconsistent, as some of them are using the default blue/grey colour, but some decided that the new orange is the way to go. Below is an example of one which decided to adopt the orange colour, and I would like to restore it to the blue/gray. Any direction/assistance will be appreciated.```
- type: custom:fold-entity-row
head:
type: custom:template-entity-row
name: 'Sleep Sounds'
icon: mdi:account-music-outline
tap_action:
action: fire-dom-event
fold_row: true
open: false
padding: 0
group_config:
secondary_info: last-changed
items:
- << bunch of scripts using a custom:button-card" >>
What's the best method for navigating to a specific dashboard based on specific entity state changes?
^
Right ... tried that but they're still there. But if gives me a new error message, which has helped me resolve this. (Have to remove the integration first.)
Ctrl + R to force chrome to refresh cache
Using Button-Card from HACS, is there a way to move the icon to the left side to make it a horizontal item instead of vertical? https://i.imgur.com/781fitk.png
This still got me stumped: #frontend-archived message
Is there a way i can get the calendar weeks to start on monday, and not sunday?
Like in the energy view, the new calendar, and a lot of other places
Isn't that this in your profile?
no, keep getting this error:
Error adding entities for domain sensor with platform radarr_upcoming_media
Ah. I was looking in the global settings. Thanks
Interesting, I can get the sensor working but it won't show anything when I try to load the card
ill keep playing with it and see if i can get it working
@earnest mauve is your sensor even showing up?
nope
Well I got the sensor to work just nothing else
do you have upcoming movies added? maybe try enabling theater option
Theater option? Where?
Kinda weird looking
using icon_state
https://i.imgur.com/3vNv9DK.png and if I remove my "size" variable it gets too big
Anyone else having issues with the "statistics graph" card? It shows the past 3 months of time even when I set in to only show 1 day in the config... It does however only show the one day of data, but the graph is still 3 months wide...
What's your custom:button-card yaml for that card?
@untold trail I converted your message into a file since it's above 15 lines :+1:
That's the name displaying in the card. So use icon_name
changed it to icon_name and set size back to 32px
Is there a way to center text in a card?
I guess I shouldve specified..
the card_mod only works inside of a card
it wont apply to the parent card/wrapper
could prob modify the theme css
Can you nest cards? I want to put a grid inside of a vertical stack
Is it possible to have a button do two actions on tap? It's used in a subview as a "submit" button, and I also want to back out to the previous page when it's tapped.
How do I rename my YAML dashboards?
Hi there, I have a question: On my dashboard I have entities which take from NodeRed the measurement of the power consumption on my phase 1 - 3. Now on phase2 and phase3 I immediately see statistics when clicking on it:
This is not the case for phase1, and I can't figure out why. Ideas?
It states no statistics found...the question is why?
When I go on "show more" I see them...
@vapid fieldgo to developer tools > statistics
find that entity
does it show a fix issue button
this happened to me when the data had 2 different units
Awesome! Thanks
Might have happened during migration from Rapsi to VM, or initial setup went wrong or so. Thanks a bunch
Can I have a entity hard that lets say dynamicly has all pir sensors - based on maybe device class? Or all battery driven devices etc
maybe this is for you https://www.home-assistant.io/dashboards/entity-filter/
After the update to 2022.12 I do not have titles on statistics-graph. I thought it might be some glitch while manually editing yaml through UI, as it sometimes removes those titles, but no. The names for entities are still there, but those do not show on the graph. Any ideas? Btw. "średnia" is just "mean" in Polish 😉
Well it filters on selected entities .. not just a dynamic box 🙂 so you still need to add all entities 😦
How do I get my dashboard to fill up the screen width in 3 columns?
Is it a way to add {{ state('entity.something') }} after Charging in the IF statement. If I do that the whole code is just shown as text
You could just make a template sensor for charging the car which outputs the text you want with an attribute for the colour.
Anyone here who knows how to change the background of mushroom chips? Normaly this whould work
card_mod: style: | ha-card { --ha-card-background: rgba(0,0,0,0.5); color: white; }
But adding this won't change anything for the chips background
How do i change the icon colors? since the 2022.12 update they became yellow and blue and w.e and now since the last update more became yellow -.-
Try setting the dashboard to panel mode. It will fill the whole width but you can only have one card on the dashboard (which would probably be one of the horizontal/vertical stack or grid cards to allow you to nest more cards).
and then the page refreshes... for any little packetloss or connection blip..
how do i stop it from auto refresh.
just like leave it alone i dont need home assistant refreshing the page for no reason...
Using some mushroom cards, how would I go about getting these more in alignment .. any tips in right direction appreciated. I have been using a variation of horizontal stacks and vertical stacks
Lol great let me give this a whirl
Well better lol I would like main floor more center tho haha
Is there any easy/plug and play way to organize and beautify my Overview dashboard and not play around with .yaml files? With the cards
themes maybe?
Any reference? I was playing with Hacs frontend but its still yaml files
Hey, I have a question regards sensor view. If I haved picked a temp sensor in the past, it shows me a little graph which I also could change in time range to show me the data. If I now picked the temp sensor, it show only the actual temperature without a graph. Is there something changed in die views or is something damaged in my config?
Hi. Does anyone know how to pull an entry from the logbook to show in my mushroom card? This entity "gate motor" doesn't have any attribute to leverage, however, I can see when the entity was triggered in the logbook. Just can't figure out how to actually access it.
Also when I create a mini card with my temperatures from the last week, it shows only the actual temp.
I have an vertical stack running, but i would Like to Show this füll stack only when states "state" of the first Sensor (Sensor.plex_state) is not "unknown"
Is that possible? And how?
Entitie-filter-card ist not the solution
Thanks
I'm trying to get Mushroom with HACS running, but I get an error of mime type of "text/html" when it tries to load the mushroom.js file. Any ideas on how to fix this? Google didn't help 🙂
Thank you for the tip!
im trying to use the entity card to display when a timer ends. it shows the information but the font size is just way too big. ive been trying to figure out how to reduce it but i dont actually find any suggestions on the great google that seems to work. am i on the right path here?
style: |
.value {
font-size: 10px;
}
im a newbie btw
Are there performance or other downsides to only using a single dashboard? I'd like to make use of the decluttering card, but it only works per dashboard
Visibility can be controlled per-view so I don't think that would be a problem
Seems like one drawback is that there isn't a way to set a default dashboard view for a user
There is a toggle switch to not have them render as squares.
i figured out why home assistant does autorefresh whe you lose connection or view page after long sleep...
its cause of ingress... they havent figured out how to refresh or create new ingress session after long sleep or idle. So they refresh the page as a hack to emulate you clicking the link on the side bar to start the ingress session..
the connection issue is just an unintended side effect of this hack
Once more:
My dashboard/overview w.e looks like a fckin rainbow, how to go back to one color? It used to be accent-color: #color
How do I troubleshoot a resource not loading?
I am getting T https://xxxxxxxx.duckdns.org:8123/local/custom/custom_style.css?v=1 net::ERR_ABORTED 404 (Not Found)
Erm, so I just did a "Show code editor" without realising I wasn't editing just one part of the card and lost a LOT of work. Is there any way to get that back or to roll back somehow?
Backup, restore?
Can you use animations with card mod? I don't see why not, but it doesn't seem mentioned anywhere in the docs or do I see anyone using it anywhere
@jaunty sierra I converted your message into a file since it's above 15 lines :+1:
Grid makes all cards the same height. Try adding square: false
wow, tx a lot its solved
Is it a more mobile friendly way to close popups? Up in the left corner is as too far for rapid usage. Something like swiping back to close
@white marten I use auto_close: true option on popups that I just need to view and don't need any tap interaction. You could always add a button to tap with a service call to close he popup instead of using the 'X' at top left. 🤔 ...
https://i.imgur.com/Dru9p3N.png Why does the dashboard barely allow any length? it just starts putting stuff in different columns.
Theres no reason why it cant just let me create a taller dashboard.
Can you use the auto-entities card to display some card based off of another cards state?
I know there's the conditional card, but it's more limiting
Maybe state-switch is what I want
Anyone use the threedy frontend integration?
@untold trail https://github.com/thomasloven/lovelace-layout-card
I tried that, the setting isnt actually under settings like they said it was
I've had a hard time finding something that couldn't be displayed the way I needed using that and a bit of trial and error. Pretty much use it on every view🤔
Where is the Layout Options box?
Oh, I use yaml for all my stuff. Not familiar with the GUI options, 😞 sorry
So you just put everything in the layout card?
like may a layout card per column and shove stuff in?
Yep, some examples here. May be useful https://github.com/Dino-Tech/Home-Assistant-Main
https://i.imgur.com/xz3yCJf.png I want to keep this look, I just want the ability to have taller columns
Just noticed all my zigbee shit is unavailable apparently..
actually here is layout https://github.com/Dino-Tech/Home-Assistant-Main/blob/master/ui-lovelace.yaml#L1970-L1975
columns, width, by pixels or percentages...they can be as long as you wish and column sizes can be tweaked to your desire
Hi, I changed my UI from glance based cards the the new Tile based cards. On glance I could use a local picture as an icon which I cant seem to manage with Tile (I'm trying to change the icon of a scene imported from Tuya), any ideas how to work around this?
How would I make 3 columns?
If I make 3 layout cards, they all go vertical into 1 column
looking at css code does anyone know of a way to make drop shadow follow the colour of a bulb?
The drop shadow of what?
- box-shadow: 0px 0px 10px 3px var(--button-card-light-color) will give the card a glow that follows the light color, but is there a way to use the var for drop shadow
- box-shadow: 0px 0px 10px 5px var(--button-card-light-color) this works for a glow around the card, but wondering if there was a way to apply it to a drop shadow around the icon?
https://ui-lovelace-minimalist.github.io/UI/usage/cards/card_person/#usage
Why it says undefined instead home or not_home?
Is this the right topic?
Have you set the entity outside the variables as is shown the example config?
Trying to customize the icon of my "light counter" sensor. Is the problem that the counter is not seen as numeric?
states are always strings
So how to validate a string number like above?
just try it, or put quotes around the 0
Hi everyone, hoping i can get some help cleaning up my dashboard. right now i have a couple of devices that are showing all their devices as "Sensors" or "binary sensors". normally would look for the main entity or to each one and move them to the pertaining area, but these items are showing as having no "unique ID". is there any way to move them to other zones?
or try the Experimental.....https://github.com/Mariusthvdb/custom-ui/blob/master/EXAMPLES.md#however-experimental-recently-discovered
Tried it all, nothing works 😦
It works great with string states
Yeah well, I keep saying it: your install of custom-ui has an issue and you’re not providing the info we need to be able to help
Maybe open a post in the community and post your yaml there
Is way easier than here
Feel free to tag me
Its just when want to compare a string as number its not working
Then quote . There are many examples in the documentation
Light still white
Did you reload customizations
yes and even changed the state
As said , you have another issue .open a post in community and some of the yaml.
Including screenshot of the correct install
does it need to be surrounded in [[[ ]]]?
I just remember doing some javascript the other day and it was surrounded in that
just taking guesses tho, idrk
Is it possible to view with the hands (type: gauge) for consumption in real time? I have already connected a shelly3EM
What do you mean by "with the hands"? It's updated when the sensor updates.
with the lancet.
I managed to put the instantaneous consumption but I would like to put it in kWh and not in A. I am attaching the photo
Ok, a template sensor then
what? i dont understand
https://www.home-assistant.io/integrations/template/#sensor I believe you need to use a template to do the math to get to the unit you want and then specify that unit.
or if it is exposed as an attribute, you can use that
There should be a line with templates: right above the icon_color:
anyone who can help me out with making an animated icon - spinning fan. I dont know what i am doing wrong. It works just for maybe 1 second then it stops. The setup is as follows: rm4 pro + dumb fan.
just use the spin: true ?
in the state, use it like: - value: 'on' id: state-on spin: true
the id is used in a button_card_template, so it can merge with possible other state stylings
or with a full template like: spin: state: - value: 'on' id: state-on spin: true so you use the template like: template: spin
"Button-card template 'spin' is missing!" is what i get.
needs to be under button_card_templates:
Hi everyone, hoping i can get some help cleaning up my dashboard. right now i have a couple of devices that are showing all their devices as "Sensors" or "binary sensors". normally would look for the main entity or to each one and move them to the pertaining area, but these items are showing as having no "unique ID". is there any way to move them to other zones?
I'm surprised https://github.com/home-assistant/frontend/issues/14703 isn't getting more attention. The frontend issue is breaking utility_meter fairly badly...
What integration produced those entities? If those are configured in yaml, you can add in a unique_id in the yaml and then they will be editable in the UI, including to assign areas.
Can anyone recommend a few simple examples of custom panels? Want to write something fairly simple but not really sure where to start aside from the example given in the docs.
Took a quick glance
nice work
is it possible to make use of template in a theme.yaml file?
I started using grid on the elements itself, but I still struggle with the main layout to be very unattractive. What is the best way to layout this in one row? It doesnt seem like things line up properly in full screen regardless (line up fine in mobile).
theyre mostly sensors i added to my configurations.yaml file
@white marten very flexible
https://github.com/thomasloven/lovelace-layout-card
Yes, but you need card_mod for that
Hello, I was trying to implement an update to my pictures element display to incorporate some security cameras. Looking at the HA Picture Elements help page, I found something that provides help on security cameras. However, I want the icon on the Picture Elements display to be a static icon (like the light icon), and instead what I get is an image captured from security camera footage itself (because it uses camera_image: camera.xxx)
Is there anyone who can point me to only showing a camera icon?
Hi! Unsure where to post this question so i'll keep it here for now. I'm using mushroom cards on frontend to control a group of lights in my living room. I've now added a LED strip that I want to add to that group. It's working, but i'd prefer if that LED strip always stays at 100% brightness as it's rather dim. Is there a way to retain the same mushroom card, but have the LED strip ignore the brightness changes made to it? FWIW, it's a Tuya WiFi strip
Then just add unique_id: xxx to the yaml configuration. https://www.home-assistant.io/integrations/template/#unique_id
Anyone else having issues with automation tracing on lovelace "Error rendering graph. Please download trace and share with the developers."? Tracing do not anything at all.
Hey guys, i'm trying to change the color of a mushroom chip according to a numeric value, is this possible? The chip shows the difference between trv setting temp and actual room temp..
The Icon should be green for a diff less than 0,7 else red..
Hi all, after trying to google, community forum searching and doing some other searching I cannot find the cause of some ongoing, repeating and annoying messages in my logs. I could really use some help to get the root cause of this. Thanks!
In a grid is it possible to make sure the one in the middle there goes to the top and not centers? It automatically align to the middle
Can i pay someone to help me set up my dashboards with nice room overviews and everything
When writing my own custom panel. Is it possible to use HaPanelIframe as the parent class?
@glossy spire I converted your message into a file since it's above 15 lines :+1:
Have a question as to how the system reads the entities state.
My understanding is that it goes to the next if it fails. I can get the >10 and === 0 to function, its the 10>4 range that I cant get to trigger. Not sure if it should be an elif maybe or that the two are both greater than instead of the middle being <>.
the problem is that states are strings
comparing a string against a number that you turn into a string isn't the right approach
you need to turn the state into a number and then compare with a number
- color: |
[[[
if (parseFloat(entity.state) > 10) return 'lime';
if (parseFloat(entity.state) > 4) return 'yellow';
if (parseFloat(entity.state) === 0) return 'black';
else return 'red';
]]]
that makes sense.
But you haven't built a continuum. Did you want "red" from 1-4?
nvm 1-4 doesn't matter
4-10 is the timer running still
thats the only time iit goes under 10
just an alert that the timer hasn't stopped but the cycle has
yea I understand that part just found the operators for doing that and wasn't sure if I can denote a range or not
ill do some tinkering I appreciate that
you can in Python, but I'm not a JS guy
I don't know either so lol. I can understand mostly as what things like this are trying to do but the syntax and in this case numbers vs strings
Hey Rob, I was wondering if you could help with my previous request:
I was trying to implement an update to my pictures element display to incorporate some security cameras. Looking at the HA Picture Elements help page, I found something that provides help on security cameras. However, I want the icon on the Picture Elements display to be a static icon (like the light icon), and instead what I get is an image captured from security camera footage itself (because it uses camera_image: camera.xxx)
Is there anyone who can point me to only showing a camera icon?
if (parseFloat(entity.state > 10) return 'lime';
if (parseFloat(entity.state > 4) return 'yellow';
if (parseFloat(entity.state == 0) return 'black';
else return 'red';
]]]```
wont produce anything and no error what did I miss lol
yea the code operators list it as only 2. I had that originally tho was just testing to see if it fixed it
just doing a comparison with the previous entry
no worries appreciate the help still im sure its something like that lol
you also put the parens in the wrong place
go look at mine again
I suggest breaking it down and seeing what it does
yea I see that
I should do a course for java and python one of these days. I think it would be beneficial. I am attempting to work towards my CCNA
Ok, I worked it out eventually, able to insert my own image
Can you help me set the icon_color based on the entity value in the following sample?
type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.obergeschoss_hobbyraum_trv_auto_temperature_delta
icon: mdi:delta
icon_color:
Hi! For a room, I have the measured temperature, and the setpoints for heating and cooling (writeable) in HA. How would I create a thermostat card from that?
#templates-archived recommended creating a generic thermostat with a dummy entity as heater. After that it should show up in the dashboard.
I suggested maybe try an MQTT thermostat, I think that could be appropriate.
Is it possible to filter entities in the DevTools/States tab to show only those ending in a string, e.g. energy, kind of *energy$
Is anyone else having an issue with the backgrounds for their themes?
I have a couple themes that I’ve installed via HACS that have built-in backgrounds (https://github.com/orickcorreia/caule-themes-pack-1 and https://github.com/basnijholt/lovelace-ios-themes, for example) and I noticed today that the backgrounds aren’t displaying. Instead, I’m just getting a plain white background.
Is it just me?
Not sure whether to ask this in here or #devs_frontend-archived , but will start here to I don't get roasted 🔥 I have created a custom card, which contains an SVG (and nothing else), which is a square (viewBox is 100x100). The resulting ha-card always has height 6 pixels more than its width (and that of the SVG inside), and there's an extra "gap" at the bottom (only). The SVG inside is a square (equal height and width), as it's supposed to be. It's a cosmetic issue, but it's bugging me. Where is this 6-pixel high extra bit at the bottom of the card coming from? Simple code for illustration of the problem at https://pastebin.com/yZUcY8kH
Hello!
There is any solution to add a sensors value as secondary info under a switch?
I want to add under last entity "Mosogatógép" what is a dishwasher the remaining time what I have in a sensor. I tried with thomasloven/lovelace-template-entity-row but as soon I add it the switch changes the switch button to text "on/off" and I cannot switch anymore with a click.
As you can see the Switch button is disappeared.
Solution would be secondary-entity-row if it would work correctly.
I dont know what is Object Promise.
name: Mosogatógép
icon: mdi:dishwasher
type: custom:secondaryinfo-entity-row
secondary_info: [[ sensor.mosogatogep_remaining_program_time.state ]]
state_color: true```
that card uses pretty weird syntax, but my guess is that you need to surround the template in quotes
As shown in the docs. Otherwise, it looks like a malformed list to the YAML parser
Omg, looks like I forgot to add it, Thanks so much for the hint. that was it.
Use toggle: true ?
We're usually nice in #devs_frontend-archived.
SVG is an inline element by default, which means it is handled like a piece of text. So that part below is for the decenders - like you have on j, g, y etc - the stuff that sticks below the baseline.
Add a this.content.style.display = "block"; and that should fix it.
Awesome - that does seem to be it. Thanks very much!
how do you pass arguments of http://127.0.0.1/lovelace/tab?argument=value to a webpage card in it ?
url: "https://myperfectpage.link/?argument={{ sensor.yourwish }}" eg as cardurl
this will never work
webpage card does not support template like {{ }}
everytime i get close to a solution it always escapes me because of home assistant limitations
You'd probably need some sort of javascript templating card.
Like this maybe: https://github.com/iantrich/config-template-card
Hello,
Can you please help me a bit with the syntax, I want to use secondary info to showing value of "sensor.mosogatogep_remaining_program_time.state" what is already working, but when the device is powered off remaning time showing Unavailable, in that case I want to show simple text "Not Started Yet".
name: Mosogatógép
icon: mdi:dishwasher
type: custom:secondaryinfo-entity-row
secondary_info: '[[ sensor.mosogatogep_remaining_program_time.state ]]'
state_color: true```
secondary_info: '[[ if(switch.mosogatogep_power.state is on, "state of sensor", "Not Started Yet") ]]'
Something like this but the "is on" part is bad and not changing.
something along the lines of .... secondary_info: > {% if states('switch.mosogatogep_power') == 'on' %} {{ states('sensor.mosogatogep_remaining_program_time') }} {% else %} Not Started Yet {% endif %}
Exactly, Thank you very much, not just solved it but I understand the syntax now!
BTW, it appears you can do it this way too (I got curious - not quite a jinja guru!): secondary_info: "{{ states('sensor.easyweatherpro_v5_1_0_wind_direction') if states('input_boolean.test_input') == 'on' else 'wut' }}"
uhm, replace the entity IDs with yours, of course 😉
could you also pass this into the syntax if not a problem?
value_template: '{{ (as_timestamp(states("sensor.mosogatogep_remaining_program_time")) - as_timestamp(now())) | timestamp_custom("%M") }}'
so the remaining time will be shown as minute not as a timestamp.
If that works, you should be able to put it in place of {{ states('sensor.mosogatogep_remaining_program_time') }}
ah you are right.
Hi, I've been trying for days to integrate all the correct sensors of a 3EM shelly into my energy dashboard. First of all, I saw that shelly's ammeter clamps don't calculate the energy produced by the solar panels, probably because the voltage is different (?).
I tried to integrate this, but without success because nothing traces me ( https://community.home-assistant.io/t/shelly-3em-3-phase-net-metering-templates-for-import-export-and-consumption/390237 )
Has anyone had this kind of problem before? How can I solve this problem?
has anyone figured out how to get https://github.com/iantrich/config-template-card to read url params ?
${(new URLSearchParams(window.location.search)).get("argument")}?
I'm getting this since 2022.12.7 when I try and look at the Overview. It's fine in 2022.12.6
Please raise an issue in the frontend repo. Sounds like an unwanted side effect of https://github.com/home-assistant/frontend/pull/14767
Hi, got a link to the repo please?
Hi! When viewing "All devices" Dashboard i get: Error loading the view strategy:
TypeError: e[0] is undefined or TypeError: Cannot read properties of undefined (reading 'toUpperCase'). How do I go about to figure what might be causing this? I have looked in the log files but don't see anything that looks related.
Oh... looks like I'm not the only one...
Yeah, similar issue.
@spark spear I converted your message into a file since it's above 15 lines :+1:
i am trying to display the time remaining of a running dishwasher.
if you check back about 5-6 message I did the same.
cool thanks saw it now. What do i have to enter for it to display the time at the % section ?
{% if states('switch.mosogatogep_power') == 'on' %}
{{ (as_timestamp(states("sensor.mosogatogep_remaining_program_time")) - as_timestamp(now())) | timestamp_custom("%M") }}
{% else %}
Not Started Yet
{% endif %}
``` looks like this for me.
Does anyone have any guides handy on putting multiple information in a card. Similar to this
I'm having all kinds of issues with the state-switch card. Primarily it will show the correct cards when I'm inside the card editor, but once the dashboard actually loads it doesn't show anything. Is this a common issue? It seems really glitchy
Sometimes if I make a change to the card then it will show up on the dashboard, but then if I refresh the page it goes away
But inside the editor dialog it always shows correctly
So i made some progress and using the stack in card. How do I get rid of the boarder
There's a post on the forum about removing the border after the release that introduced them (2 releases ago?)
Using card-mod
Some info in there
Hi Everyone. I'm trying to add my garage temperature with a template to my Lovelace because it's a pretty consistent 5ºC off. I was able to put it in with other climate entities but is there a way to make it look the same as the humidity? (Ignore the "not available", that sensor's batteries died and I haven't bothered to replace them yet)
You should paste the YAML for that here
`type: entities
title: Climate
entities:
- entity: sensor.lumi_lumi_weather_humidity
name: Ensuite Humidity - entity: sensor.lumi_lumi_weather_pressure
name: Ensuite Pressure - entity: sensor.lumi_lumi_weather_temperature
name: Ensuite Temperature - type: custom:hui-markdown-card
content: >-
Garage Temperature {{ states('sensor.garage_temperature') | float +
states('input_number.garage_temp_offset') | float }} ºC - entity: sensor.garage_humidity`
I think that's short enough to not use the website.
You can use 3 backticks btw to make a block of code
You probably want to make a template sensor instead of doing the conversation in the UI
So that template that you have there, make an actual entity for that and you'll want to set the proper settings on it
Then you can set the proper device class on that sensor so it displays properly:
https://www.home-assistant.io/integrations/sensor/
Here's an example of a sensor I have for an attribute of another sensor. You can see how I set properties on it which will tell HA how to properly handle it
- name: Thermostat target temperature
device_class: temperature
unit_of_measurement: "°F"
state: >
{{ state_attr('climate.thermostat', 'temperature') }}
Is it me or the new state colours for binary entities are very hard to differentiate from the default primary color? Here’s my example with two entities to OFF and one ON, it’s hard to see which one is at ON :
Perhaps i’m missing a new setting? 🫤
Thanks, I'll give it a shot. That's just created under Sensors in config.yaml right?
That's a good callout and maybe worth opening a ticket.
Yeah if you're not familiar with creating template sensors in your config, that's another discussion and probably for another room like #templates-archived or #integrations-archived. There are a few different ways to create sensors with templates
Alright, I wanted to be sure I’m not crazy! Will do! 😅
I probably would have noticed too, but I hide most entities on my dashboard that aren't active
You also may be able to fix that with your theme or just on the card directly. I haven't messed around with themes though so I can't help there
Got it, thanks!
...just need to change the name
They should probably change the "off" colors to be gray instead of blue now that they have different colors for different entities
I have a weird issue with rgb-state-alarm-armed-color. When i set it to red, it turns white 😦
It should be yellow with the last version. May be you have to update ?
I’ll update and come back to you.
Hey, how are you all doing. Im a new user to home assistant. After the nescecary strugles and effort, i managed to get my server running including a mqtt server and everything is connected via duckdns and secured with let's encrypt. I was so happy! Now i'm in the configuration of the dashboards and adding some lights. I think i understand everything, it just gives me an error when i try to add custom MQTT-lights that i dont understand. Actually its not HA that gives me an error, but it is the Studio Code Server App - where i edit the confuguration.yalm file - that warns me some things might not work. And in the frontend it also does not work the way i expect.
Can someone tell me if i just missed a big step somewhere?
does it pass the config check?
yes, it does
what VSCode thinks doesn't really matter, and may be outdated
focus on what doesn't actually work
okee i was contemplating this.
In the frontend, i do not get to see a colorwheel when i add a lightcard with this name. That i would expect.
ok. I have no colored lights and can't offer suggestions on that. Regarding the VSCode extension, I suggest seeing if you have an update waiting. Frenck recently updated the schemas and such
Thank you. Ill check to see if there is an update.
im on the latest. But thanks anyway.
to give some closure, it does seem to work, despite the warmings. But i get it to work with an custom light card, not with the default one.
Hi All, my Synology Router (synology mr2200ac) reports its rec'd/send stats in KiB/sec. Is there any way to re-calculate that in the dashboad to be Mbit/sec?
Indeed the last version fixed it! Yay! Thanks!
Hi everyone, I'm trying to switch a device FROM a light TO a switch, any hot tips on if there's an easy way to do that without config.yaml?
@ornate spade how did it go? Did you find how to do it? I am in the same spot
Hi, is it possible to ping an external site to check it's uptime? Or is there a better way? The documentation only seems to cover ping on the same network
you can use UptimeRobot (for an even more in depth monitoring) and integrate it's component in Hassio
https://www.home-assistant.io/integrations/uptimerobot/
good morning , I'm trying to simplify my lovelace config and use the value of an input_select as entity for the custom:mini-media-player card but it doesn't seem to appreciate it.. any idea
my forum post remained unanswered >> https://community.home-assistant.io/t/use-input-select-value-as-entity-in-mini-media-player-card/500336
Not sure if you can template that (meaning that the entity could be changed in the fly), but anyway... you have a spurious . here: entity: {{ states.('input_select.sonos_master') }}
I did not.. I decided to finish building everything out before I worry about the more minor cosmetics
I like uptime kuma better.
answered in the community post
How can I fix locale inconsistency in HA? I have one card showing "," as decimal separation, the other "." ?
I live in Germany, but use English as language for all my devices.
"," is a standard decimal separator in Germany. But if I have frontend in English some cards do ignore it.
This is likely a feature that each custom card has to implement. I suggest opening an issue on the card's GitHub repository.
Hi. I'm trying to configure a card: https://paste.debian.net/plain/1264870 it works in templates however I get error when doing it inside the card.
Pretty sure mushroom cards don’t support templates outside the template card provided by them
OK good point. Let me try in a built in card.
oh I can't actually do that. Nevermind. It's nice to be told no to waste time. Thank you.
is it possible to add custom css/js to lovelace dashboards?
thanks
I'm trying to fix an issue with my dashboard and a select entity. it's been non-functional for a while but I'm finally digging into it.
At some point in the past I was able to create an entity card with "select.foo" as the entity and it would give me a dropdown of available options, which I would click, and it would apply my selection.
Now, after the dropdown, I get the following message:
"Failed to call service select/select_option. must contain at least one of entity_id, device_id, area_id."
This occurs regardless of which select entity I use.
I don't recall seeing this in a breaking change, but I assume it was there. What do I need to do here?
Picture is not showing up un the dashboard.
I can view the picture in media but it doesn't show up in the dashboard.
Code:
type: picture
tap_action:
action: none
hold_action:
action: none
image: local/test.jpg
Can someone help me?
Need a / in front of that path
is there any kind of card/control that you can have one slider to set brightness on like 3 or 4 lights at once?
Use a light group?
how do i make a light group? yea thats exactly what i want
Do anyone perhaps have, or can point me to an working example of the cast entity row (https://www.home-assistant.io/dashboards/entities/#cast)
aaaah found it - helpers
thanks
one more stupiud question- is there a way to make a dashboard have cards that are hidden for certain users? right now i have a dash for my phone and one for my wifes phone and they are 80% the same, she just doesnt have the stuff for my office in.
but now i have to maintain those same cards that are the same on both
its a whoe lot of copy and pasting whenever i add or change naything
Hi, did I just dream that script fields were visible from the UI or they disappeared in 2022.12?
Even if I take the full configuration example from https://www.home-assistant.io/integrations/script/#full-configuration, I can't input those fields from the UI when running the script
How to make a local checkout of ha-core use a local checkout of ha-frontend? I want to test a recent fix that's not in a frontend release yet?
Hmm can't get it to work. Most of the icons working, but not of the text, assuming some translation problem.
Feeling really frustrated with card-mod tonight. This isn't changing the size of the icon:
type: glance
card_mod:
style: |
ha-svg-icon {
transform: scale(2.5) !important;
}
entities:
- binary_sensor.front_door_contact
What am I doing wrong here? If I save this and go into dev tools and find that element and apply that same css style it works exactly how I want. I constantly run into things like this with card-mod and I feel like I'm missing something. What gives?
I think it has something to do with the shadow root
Christ these dom navigation instructions are not worded well: https://github.com/thomasloven/lovelace-card-mod#dom-navigation
Is there a way to poll a rest service so the front end updates properly
You could call the homeassistant.update_entity service
But I'm not sure exactly what you mean
Ah, good call
I'm using entity-list cards to show the temp/humidity in each room. I'd like to add some color coding on each card to show if the values are in expected levels. Can anyone suggest a simple way to do this?
Hey Folks,
I am trying to show a mushroom card only if a entity is available or not... I found the conditions card but that only let's me check if the state is 'on' or 'off' so that won't work...
~ CLOSED ~
I also got this card personalized to myself and my wife. Found it somewhere in a forum, unfortunately I can't find the original post. But if you want the code, hit me up
I haven't found anything on the site yet and was wondering if the new entity history color scheme is fixed. I much prefer the red/green over the new grey/yellow(?) isn't working out for me. Grey has always been unavailable (still is it seems) and is confusing w/ the Off state.
Why am i not able to add this sensor to the Individual devices in the energy dashboard? mqtt: sensor: - name: "IVT Supp energy heating" state_topic: "fxcf5c49fdsfd772/HP/5C52" unit_of_measurement: "kWh" icon: mdi:flash
ignore the malformed yaml (bad paste)
the entity works just fine in other dashboards
anyone with this problem? Some icons don't show in the card, but if I click on the entity I see the icon... only hidden in the card. Some time after they show again, but only to disappear without apparent reason. This icons are from a custom pack https://github.com/elax46/custom-brand-icons
Hi everyone, is there a way to adjust webpage card's aspect_ratio to span full height of a browser?
If you choose Panel(1 card) as new Dashboard Page and add a webcard with 100% it will look like this
Yeah, but I hope to achieve the same with a sidebar view
can someone help me out a bit ? i installed a theme in HACS , i restarted... but the file doesn't seem to be anywhere , also i seem to have same issue with updating other HACS integrations
i get this message
Download was not completed [timeout() got an unexpected keyword argument 'loop']
Still getting these endless warnings about bluetooth even with latest core and OS. Been ongoing for months. Is this the right thread to post this in?
Idk why but my hass won’t show the background on the internal url anymore… does anybody know why that would all of a sudden do that out of the blue? I’ve tried reinstalling the theme and all kinds of stuff it only shows when I’m connected to the external url and it literally just started doing it today out of the blue.
I have an area card on my dashboard that use to show my doorbell or an image created by that doorbell, I swapped out the doorbell for a newer one but now there is no image. Is there any way to fix it? the new one is in the correct area and the old one I deleted just to be sure.
fixed it by removing the area and re adding everything again
Could really use some help please here
Hi all, after trying to google, community forum searching and doing some other searching I cannot find the cause of some ongoing, repeating and annoying messages in my logs. I could really use some help to get the root cause of this. Thanks!
Is this a sensor or statistics? Might it be that uour recorder only keeps 20days of (history) data?
🙂
you can add a total_increasing sensor
that one just puts data in statistics on a rolling basis without setting it to 0
Hey guys. Can anybody tell me why the following code doesn't make the icon color match the lightbulb color? The code was shortened at the end, but shouldn't have anything to do with the problem. I just left off the tap_action.```
type: custom:mushroom-template-card
entity: light.office_light
primary: Office Light
layout: vertical
icon: mdi:lightbulb-outline
icon_color: "{{ states.light.office_light.attributes.rgb_color }}"
Or why this doesn't work either
type: custom:mushroom-template-card
entity: light.office_light
primary: Office Light
layout: vertical
icon: mdi:lightbulb-outline
icon_color: {{ state_attr('light.office_light', 'rgb_color' }}
second one is missing closing bracket ) i think?
Yeah, that one is, but I don't think that the original code does. I'll check
Hello, I've been building my entire UI in lovelace, and it's pretty much finished.
Meanwhile, I've been trying to now import it all (creating pages and so on, in the ui-lovelace-minimalist but I can't seem to make the pages work with the code I'm copying in the UI and shows as "Unknown Type Vertical Stack".
https://paste.debian.net/1265038/
What am I doing wrong? I'm pretty sure it's the way I'm doing the spacement.
The times I manage to make it work (and can't even get there at this point lol), it doesn't do the vertical stack aligning it all.
If it somehow helps cus there's a change I've "ruined" that trying to fix the YAML, this the one that works on /lovelace https://paste.debian.net/1265039/
So all I want is to import code that's built that way, into new pages, via VSC in the new minimalist.
This isn't working either. ```
type: custom:mushroom-template-card
entity: light.office_light
layout: vertical
primary: Office
icon: mdi:lightbulb-outline
icon_color: {{ state_attr('light.office_light', 'rgb_color') }}
tap_action:
action: toggle
did you test the template in dev tools?
{{ state_attr('light.office_light', 'rgb_color') }}```
Yes I tested it in developer tools and it returns the rgb color
Hello. There is any solution to that to simple users can also read secondary_infos? or custom hacs secondary_infos?
1st picture: non-admin
2nd picture: admin
Hey guys! I have been trying to use SWAKES dashboard, and can't figure out why the font that showing up in my dashboard doesn't match his font; also I can't figure out how to remove the background behind the title of the card itself like in the picture:
The first picture it's SWAKES dashboard, the second is mine.
Can someone help me with this_
@sick crown mine?
I'm having difficulty using a "select" entity in a dashboard card - I get the error "Failed to call service select/select_option. must contain at least one of entity_id, device_id, area_id." every time I use it
Gonna give this a try, thank you!
For some reason I cant get the hold action to work on my button card, tap action works fine but hold is just not reacting, any ideas
here is what i have
entity: light.black_lamp
icon: mdi:countertop-outline
tap_action:
action: toggle
hold_action:
action: more-info```
Can you pastebin your card yaml? Make sure you have an entity_id in the service_data.
okay, that's the thing - I can't find an example that shows doing that.
I'll happily show you what I've got but I can't find a good example of what I want - does that make sense? (pastebin incoming)
the things I see referencing "service_data" are all for "input_select" entities, not "select" entities
Oh my mistake, I thought you were trying to do a button . If you just want a select dropdown in an entities card, I wouldn't think you need anything special. I would think what you had would work.
note: this was working until a few months back. and I've been going around it by using a node-red automation that's a bit more explicit about things.
and yeah, I'd have thought so too LOL - it used to.
What you have works for me, so I'm stumped.
I have a question about icons: I have downloaded from material design icons a specific icon (PNG 24 x 24), changed it and saved it to my local config/www folder
Now I try using it but it doesn't show it. Is this the correct way?
icon: /local/window-shutter-partially.png
Okay but is it possible to have your own modified icon showed?
Find the mdi id, and assuming that HA has the version that includes it, it should work
I don't think so
okay
weird, because I have tried it with a number of different types of cards and a number of different select entites and they all fail the same way
in reference to my post above, the hold action works when I use the HA app on my phone just not on my PC, strange thing is other buttons work with hold action on the PC
Hello!
Should Entity ID's contain the device name? On my integration I have a number of sensors and they're are getting Entity ID's like: sensor.temperature, sensor_temperature_2, etc...
Not necessarily. They can be named however you want
If you change the name of the device, it will offer to rename the entities for you
yes, I know the user can rename them. I was just wondering, when the integration is added if I should have more descriptive entity ID's
It's completely up to the integration
There are some guidelines, but things vary wildly.
hi all, im having trouble adding a sensor that reports power usage to the energy dashboard and statistics card. the data is served over MQTT, i have not added a unique id to the sensor in my configuration.yaml file. Is that why it cant be added?
state_topic: "fcXX7772/HP/5C53"
unit_of_measurement: "kWh"
icon: mdi:flash```
i have no problem viewing the data in say an entities card.
you need state_class and device_class for the sensor. Probably device_class: "energy" and usually state_class: "total_increasing" (https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics has more details on the state classes)
thank you very much!
ill put in a good word with santa
Hey guys! I have been trying to use SWAKES dashboard, and can't figure out why the font that showing up in my dashboard doesn't match his font; also I can't figure out how to remove the background behind the title of the card itself like in the picture:
The first picture it's SWAKES dashboard, the second is mine.
Never occurred to me, so, is an entity card supposed to not show an entity_picture (in this case a template sensor ) ? See https://community.home-assistant.io/t/moon-platform-with-moon-phases-pictures/86646/88?u=mariusthvdb
So I'm using swiss-army-knife card. Installed via the hybrid and manual methods. Updated my configuration and ui-lovelace etc to get it running. It generally loads in, and I can build cards with the custom card, but they break anytime there is a restart.
Actually, everything, even the included tutorial and exampl dashboards break throwing a template error. If I never create my own card, I can restart without issue
Hey everybody, I'm trying to figure out how to create a button/light style toggle for all the lights in a room. Any suggestions on how to do that?
@thorny echo
https://www.home-assistant.io/integrations/group , then just use whatever card you wish to display it in
Sorry I should have been clearer - my goal is to adjust the color/brightness of all the lights in a group at the same time. The group toggle works well for basic on/off stuff
You can still use a group
OK, do I need to add anything to the YAML of the card?
Nope, just make sure to use the right entity name for the group.
That gets me the toggle functionality - what about adjusting brightness/colors of all the lights at once?
That looks more like it. Thanks Rosemary!
Have fun!
Yup, not everything is listed in their "catalogue", but a lot of integrations, cards, themes add HACS support to make it easy to install them
Hello, anyone knows what I am doing wrong?
I expected to see the forecast for the next 18 hours in 4-hour splits. What's that?
Is the variable '{{ user }}' available in the dashboard to use in a tap action?
Only if the card you're using says it is
I'm trying to use the variable inside of a mushroom template card under tap action. It doesn't seem to work.
As in the output is '{{ user}}' rather than the result
@shadow vessel I converted your message into a file since it's above 15 lines :+1:
I'm trying this but it doesn't pass the user variable.
https://dpaste.org/UPaxA
Hi all, happy Christmas!
I have a little problem with my thermostat card
anyone know why is showing these values ?
while in SmartLife app showing the correct temp values
im very new to all this.. any help will be much appreciated
hello , do anyone know how to fix this weird up and down values from a temperature sensor , so the line is more smooth?
If I look at the graph, it seems as if your sensor rounds at whole grades, maybe try to see if you can 'repair' the sensor ?
i.e. from the fist peak, it could have been 19.4 (roudning to 19) an dthen 19.5 resulting in the peak to 20 then 19.3 again (or so) hence back to 19
propably yes..thats whats happening. i get the reading from AC , when its 'turned off' it still connects to wifi and reports the room temperature.
but even the gree intergration , show integer numbers.
@karmic tendon maybe its hardware limitations? and reports wrong values ?
do you have any idea how to solve this?
The fill_raw: last can be the issue,
nah i tried without it . its the same or worst graphs because i have some missing readings from time to time
From the screenshot it seems to be a local named AC, do you have any details ? I have no clue what gree is/does
often you can set the temp sensor to include decimals
Another option is to try and 'fake' in the graph by adding an average covering a period just a bit larger than the peak, e.g. 3 mins
my AC is 'Inventor' brand( model : Nemesis Pro ), made by 'Gree'. Gree Integrations come from stock in HA.
i get the readings from this entity.
then i made a new 'sensor' and read these values , in order to use them in a card on dashboard.
integration does not seem to show unrounded grades...a bit odd though. Your last graph still shows full grades, regardless of the .5 steps.
Option1: report an issue wiht the gree integration on temperature accuracy
I would do this anyhow
then.
Option2: if it is only the graph, then add group_by on avg with a period of (say) 2 mins and see if that helps, if the peaks come and go in <1 min you can go to 1 min period...try...
not100% sure as I cannot simulate this as I donot have the data
out now... good luck
thanks!! i ll try option 2.. i ll report an issue also
have a great day, thanks again
Any way of adding tile cards to entities card?
Hello everyone. Is it possible to have a tap and double tap assigned to the same button? I ask because when I have both assigned only the single tap happens twice (turn on and then off in sequence fast).
Is it possible to use an attribut (media player source) as condition for a conditional card?
Seems not directly. Would need to make a template sensor to expose it as a state
Thank you!
@old fox haven't tried it yet, but
https://github.com/thomasloven/lovelace-hui-element is the only option that may work 🤔
Thanks
Hi all, after trying to google, community forum searching and doing some other searching I cannot find the cause of some ongoing, repeating and annoying messages in my logs. I could really use some help to get the root cause of this. Thanks!
Your internal IP address is not sensitive information, and the name of the dashboard/view shouldn't be either.
Random screenshot from latest slider-entity-row release:
I saw a number of commits on this and an update fly by! Yay!!
Anyone know of a component that would let the user to toggle a switch at desired time, but only once? I found this (https://community.home-assistant.io/t/scheduler-card-custom-component/217458), but it's on daily schedule instead of single activation
What are you trying to do?
Basically an ui component that lets the user to schedule heating for specific time during the night when they're asleep and electricity is cheap
but non-recurring
Have a UI button to run a script which only works in the cheap hours?
Won't work, my dad wants to choose the heating period manually himself
there may be a fancy automation in the future, but he needs to be able to manually determine the time period
Well he can press the button any time. But you'll just have the script stop if it's expensive.
Yeah, but that's not what he wants
i can achieve it with like two time selectors and a switch helper, but there are almost 20 different switches to control and i kind of don't want to manually configure each and every single one
so i was hoping for a pre-made component
Create a group?
I think i figured it out: this component has an option to turn itself off after running once
hi all, can someone give me a hand with my thermostat please?
Hello everyone, I'm not sure whether you guys also help with 3rd party front-ends, but I've been trying to install Mushroom, I've reinstalled it, reloaded my browser, cleared my cache, restarted my HASS, but I can't seem to figure out what's wrong.
Is there some kind of arbitrary fix I can try? I've searched on google and such but can't find anything relevant
For some reason the cards just won't show up when I try to edit the dashboard and add a card.
- How do I make the border-radius around the logo on top to be a circle? Its border-radius: 50% at the moment.
- How do I make the border-radius look normal on the cards below with 3/1 ratio. It's on 10% now but the corners are weird
Thermostat card values
hello. I looking to add the dual-guage card from hacs. I downloaded it via hacs, then added the resource to the config/lovelace/resources. Rebooted the server and refreshed the browser. However Im still getting the "not card type configured" I verified the dual...js file is in the www/community/dualguagecard folder. {resolved} indentation error
Hey, Does anyone is using "custom_card_apexcharts" from minimalist UI ? I have an issue when trying to use it (was working before) : hui-error-card TypeError: n.setConfig is not a function. Sorry if I am in the wrong channel, have just arrived into the discord
Looks like I have the same issue, did you find a solution @latent smelt
Nope, never got any response
@latent smelt https://community.home-assistant.io/t/dwains-dashboard-1-click-install-dashboard-for-desktop-tablet-and-mobile-v3-1-0/168593/1562 this can help you ?
???
When writing a custom panel is there a way to do something when a value in the hass object has updated?
What you want is called a "setter". A function that runs when a property is changed.
Is that something I can really do on the hass object (or sub objects) though? Seems a bit hacky rather than subscribing to a value change.
Not at all. It's fully documented: https://developers.home-assistant.io/docs/frontend/custom-ui/creating-custom-panels/#api-reference
A completely new hass object is pushed to the panel by Home Assistant on every change.
Ah
Hey that worked! Thanks so much.
Hi all, not sure what channel is right for this question. I have a custom:button_card that I am trying to add a volume % circle too. (using hass-config button cards as the template.
The button is to turn on and off a pair of speakers. But I want the volume to be representative of the Chromecast Audio that is attached to them.
I have a variable but I can't get it to show the volume and I'm have issues with the syntax.
I have this:
variables:
circle_input: '{{ state_attr("media_player.family_room_stereo", "volume_level") }}'
but is only returns '{{ state_attr("media_player.family_room_stereo", "volume_level") }}' as text.
You're trying to use Jinja templates when that card supports JavaScript
There are many examples of templates for that card in the docs
that makes sense, thank you,
I have an input select populated with internal names (snakecase) that I'd like to display (have the user select from) a modified set (transformed to sentence case). I haven't found a good way of doing that, short of templating my transformed names and putting in some sort of automation logic to update the underlying input select. Am I missing an easier way of doing this?
What is the reason for the input select being snake case?
I would make them sentence/title case and then whenever it changes update an input_text with the snake case version and use that for my automations, assuming the snake case was important.
No particularly strong reason. A carry over from having variables I use in other environments being computer friendly (no spaces, etc.). It's possible the names may get edited over time, leaving the true underlying values static for automations, etc.
You could always do something via MQTT instead. But an input select is a list rather than a dictionary of keys and values.
Sounds like the most straightforward way is to use the human readable versions everywhere. 🙂 Thanks!
New auto-entities release 🎉 . It's been a while.
How do I get rid of default dashboards created by installing things? For example, Minimalist Created 2 dashboards and Mushrooms created 1 dashboard
is it possible for rgb light cards to average the color of the child cards ? (for example if i have a blue and a yellow light to average to green)
i think i've seen this behaviour somewhere but i forgot how it was done 😄
i'm talking about the icon color in the dashboard
Yellow and blue wouldn't make green, you'd get a greyish color
ok but how do i get the effect ?
now it just propagates the last color change up the groups tree
if i change one bulb to red all parents get changed to red and it's not very nice to look at in the dashboard 😦
not sure if this should go into hardware or front end, so we'll see who answers first.
that being said.
anyone have a recommendation for a lightweight linux distro to turn a raspberry pi into an HA kiosk?
i have a pi zero and a touchscreen that i wanna tape the pi behind but the pi obviously lacks a lot of power and i feel raspbian may be too heavy
anyone have a recommendation for an alarm panel card? Whatever update they did to the existing one is reckless and pure insanity. Gray for disarmed? Green for armed? Come on.........
I'm trying to get a train timetable set up on a card to fill up most of a screen. There is a card designed for it but it doesn't scale well. I can use an entity card to display 1 upcoming train but it won't show additional times. The attribute displaying the additional times lists a bunch in a row with some brackets. How would I be able to extract this attribute info?
Markdown card could extract all the attributes and format them into a nice text box just the way you want it. I did a similar thing with my dvr schedule which was just a big attribute glob.
Yaml example: https://hastebin.com/raw/iqemuhimow
Rendered: https://imgur.com/a/P38PHKN
can anyone give me some insight as to why the hold action isnt working on my card?
entity: light.kitchen_overhead
tap action:
action: toggle
hold action:
action: more-info
state:
- value: 'off'
color: rgba(0,0,0,0.3)
icon: mdi:track-light
style: |
ha-card {
background: rgba(0,0,0,0.3)```
hold action: should be hold_action: ? (same for tap)
ill try it
same with "tap action"
it's just wrong
weird, not sure why tap action without the _ is working
note everywhere it says "tap_action" in the docs: https://github.com/custom-cards/button-card
now things are getting weird, when i try the button on my phone it works as designed but when i try it on the desktop it isnt responding correctly
now when i tap i get more-info and it wont toggle but only on desktop
I did, its very strange, it is working on mobile but not on the PC