#frontend-archived

1 messages · Page 41 of 1

tall monolith
#

i wouldn't count on a pre-beta implementation to be usable if you're not at the level of writing your own code

#

some of what they're doing in that dashboard is doable, but I don't think there's any current way to replace the sidebar

hushed agate
#

Does ha have a way to cycle between different sub views after a couple of seconds of no interaction?

#

I kinda see an automation incrementing some helper to switch conditional cards but that is horrible

old relic
icy plaza
#

I have this code:

show_icon: true
type: button
tap_action:
  action: url
  url_path: app://com.samsung.android.oneconnect
hold_action:
  action: none
name: Samsung
icon: mdi:home-automation
theme: Mushroom Square
icon_height: 50px```
I wanted it to open not the main page in the app, but a specific device, e.g. a dishwasher - how to do this?
tired quail
old relic
#

not apples-to-apples as this one was going to be for a larger tablet, but here it is

carmine briar
#

i was looking away and touched something on my phone screen to get this... never seen it before. what did i do, and what program is showing me my devices?

hushed agate
vast crane
#

I think maybe holding the power button has one way to access it, mine has a link from the pulldown bar

carmine briar
#

is it possible it's Samsung's own smart things automation program that i had removed all permissions from, killed, and then uninstalled completely and currently does not show up in my apps list or on the special Samsung apps list on my phone?

swift ore
valid wigeon
#

Hi guys, first attempt at making a pretty frontend theme for home, when using a Grid Card and say you use a 2 column setup is there a way to stretch a particular card within the layout.....for example here the historical graph

swift ore
valid wigeon
#

Oh ok thats a concept to learn, thanks @swift ore

swift ore
#

Not getting any luck on a search, is there a good way to order entities on a card based on their value? I kind of want a single list that shows my highest energy consumers in real time, preferably presented in an interesting way for a dashboard like a bar - but ultimately be able to see what is sucking power at a given moment, highest to lowest - animated to re-order without refresh

valid wigeon
#

Got it working. I thank you

sullen quail
#

True but then it would be a pointless change... Again the goal isn't to have backwards compatibility (that would be provided for a short while to not end up with users giving crap to theme devs), but to clean up the list.

carmine briar
# swift ore android vanilla has a built in thing on the lock screen which opens a control pa...

The samsung version is called SmartThings, i had uninstalled it, i have home assistant and use that, no point in having multiple apps do redundant work on my phone and just occupy cpu and batter. Also no point in advertizing my home contents to even more apps and their makers, i use home assistant because it keeps my private stuff mine only. I do understand that some other apps promiss that i can make my private stuff even safer by handing all my the keys over to some cloud company to keep safe for me, and their well trusted thousands of employees can dedicate their time to keeping it private, and every one of their of their millions of well trusted non-hacker users will never ever look at my private stuff, but i think private means not even those first thousand will see it, in fact, i like think i can trust myself more than i can trust others, even if i havent paid some third party to hold the keys for a certificate to prove to myself that i can trust myself.

carmine briar
sullen quail
sullen quail
vast crane
#

Apps can declare a list of "this is the list of things I can control" to the OS, and the OS coallates them into this menu. I don't think it's anything nefarious. I assume the HA companion app is publishing this list to the OS.

sullen quail
#

It actually made me consider trying to write the sync-back feature for the SmartThings integration

#

And yes as karwosts says, the HA app publishes some basic endpoints to the OS, and the OS displays it. It's not like a first or third party app, it's a part of Android. Other apps do NOT have access to your devices and can't control them (though your phone manufacturer might have injected analytics code that reports the list of devices to them).

carmine briar
#

Thanks, i get it now. It does, however, make me wonder why of the 137 devices i have in my home, with about 1000 control entities, it chose only 7 of these to show on that device control screen. Is there some why to control which devices are shown there from HA?

stoic cedar
# sullen quail True but then it would be a pointless change... Again the goal isn't to have ba...

I disagree on it being pointless. You would be giving theme authors a proper way to hide things that they are already trying to make sure people do not use with big disclaimers. And it will probably lead to your list being cleaned up. Theme authors that are aware of it, will probably use it. Those that aren't, you can request the change to be made. And for unmaintained themes, you can just add it yourself.

And while your point may not have been to be backwards compatible, the point of my suggestion very much was to be backwards compatible. I suspect that a PR that gives theme authors a way not to clutter things is far more likely to be accepted than a PR that breaks all existing themes in order to force theme authors not to clutter things.

golden mistBOT
#

@gritty aspen I converted your message into a file since it's above 15 lines :+1:

tall monolith
#

nothing vanilla that I'm aware of

muted widget
#

Hi!
i need some help with lovelace:

i want to configure it but as soon as i start the configuration hass will stop its service and i need to restart my portainer container

stoic cedar
#

What's in the logs?

tribal galleon
#

@gritty aspen I don't think you can put the position settings for the location custom_field in that spot. I'm pretty sure it has to go in yaml styles: custom_fields: location:
Search this channel for posts by me and you should find some examples that I've used. (I'm mobile atm and searching is kinda difficult.)

pastel grove
#

Anyone here set up a ' sankey-chart'. I have some questions.

old relic
#

I have a custom grid layout setup with 2 columns 30% for a sidebar, 70% for the content. I want to a) give the entire body a background image b) make the grid cells full height of the viewport and c) give the sidebar a background color. Any suggestions on where I can start reading/looking?

quasi zinc
#

You know what I want now? For the lovely new sortable/filterable data tables in the admin UI to be available in a dashboard.

vestal atlas
#

are there any "official" themes for home assistant or are they all through hacs manually adding them to a themes folder?

elder badger
#

Good evening. Maybe you can push me in the right direction. I finally managed to set up my IR transmitter for the AC and added a card...

#

Maybe you can help me out with a more "elegant" solution.

#

Currently, it's just a bunch of stacks combined and each button calls "remote.send_command" to ...well... send the according command via IR.
Is there an option to integrate that, say, into a normal thermostat card?

#

Thing is: That AC uses a "FullSet" remote. All combinations of temps and modes multiply to 1088 codes.

#

...and I can't possibly add a discrete button for each.

tribal galleon
#

@elder badger I don't know about integrating it into the thermostat card, but I don't see why it wouldn't be possible to use a slider to set the value and then a button to send the appropriate call-service. What are you using as the tap_action for the buttons in the screenshot (or would have to use if you haven't made them all)?
(You could probably style something to look like a thermostat card in the end with some third-party card.)

elder badger
#

I didn't see that as an option. Let me check if I can find it...

tribal galleon
#

@elder badger To create a helper: Settings > Devices & Services > Helpers tab > Create Helper button > Number (Display mode set to slider with appropriate name, icon, min/max, step and unit of measure.)

elder badger
#

Thanks! That helps a lot! There are some videos on how to combine the different helpers. Guess, I'll be busy tomorrow. Gotta teach HA the remaining 1071 codes...

tribal galleon
#

@elder badger It might be easier to try to figure out how to decode them instead of trying to hard-code everything. I'm sure there's probably some formula it uses to determine the code that it sends. If you can figure that out, everything else should be easy to do.

elder badger
#

I'll see what I can do.

radiant holly
#

Is there a way to make all disabled entities hide by default rather than going into the filters consistently?

spark raft
#

I am planning a new smart home setup and would like to have a tablet in various rooms of the house that have in-room controls using a hass dashbard and fully kiosk browser.

When someone presses the doorbell button I want the tablets to switch to the view of the camera with the following options:

  • Enable intercom to talk to the person at the door through the tablet (button press on tablet to toggle mic on/off)
  • Button to dismiss the camera and return to previous dashboard (ie. in kitchen my wife may be following a recipe on the tablet and needs to just go back to it while someone else answers the door)

Is this possible?

zealous heart
#

Hello, I'm trying to create a floorplan, I have all my SVG files available in HAOS but I can't load them (404), even though I'm using the correct path and all the tutorials do exactly the same thing. Have you ever had this problem? I've searched the internet and can't find any good solution, and the problem is known. One possibility would be to access them not locally but via a URL... This is exactly the problem: https://community.home-assistant.io/t/adding-a-floorplan-as-picture-element-did-not-work/212504

tribal galleon
zealous heart
#

it's been created automatically after the floorplan installation

#

I ll restart just to be sure

#

thx the restart solved my issue

tribal galleon
# spark raft I am planning a new smart home setup and would like to have a tablet in various ...

You'll want to take a look at browser_mod. You'll register each of the tablets with an ID (so it knows which tablet is which). Then, you'll set up an automation for when the doorbell button is pressed, Browser Mod can either navigate to a different view or show a pop-up (each showing the camera). (The pop-up can be configured to auto-close or you can configure the view to change back after a certain amount of time, in addition, to having a button.)
Using the tablet as the intercom may be a bit tricky. I'm not sure of the specifics on how to do it but it should be able to be done with Browser Mod and, I'm assuming, an automation. The thing is, Browser Mod may have issues accessing the mic (or webcam) of the tablet. It's a security thing of the tablet's OS that it tries to overcome.

tribal galleon
#

Any idea why this is not working?
label: "[[[ return helpers.relativeTime(entity.last_changed) ]]]"
@sly pulsar It worked for me. (I didn't even know relativeTime was a thing. I always used a very complicated JavaScript to accomplish this... smh)

type: custom:button-card
entity: light.living_room_lights
show_icon: false
show_label: true
label: "[[[ return helpers.relativeTime(entity.last_changed) ]]]"
vale vine
#

hey guys is there a way to have a better Media tab?
i find very difficult to navigate through folders, music/pictures/videos on the defualt media tab
is there a way to change it?

old relic
#

is there any way to give a grid itself a background image and one of its cell's a background color?

#

or rather.. i want the background image to be on the body essentially and then a background color on the grid's left cell/column

wide panther
#

Is there an option I'm not seeing somewhere that would allow a graph (statistics-graph, but could also apply to history-graph) to automatically scale the units of the entities in the graph? Or even an option we can set right in the graph, it doesn't even have to be automatic - like a JIT unit conversion just for the graph?
Specific use case here is an SNMP sensor with unit=B, and allowing the graphs to scale to MB/GB/TB automatically based on the size of the values 🤔 I know I can change the unit of the entity, but that affects the whole history of the data, so I would have to truncate the history after making the change (otherwise it would have historical values with the original B value but represented as MB units, which is wrong). And I was hoping to avoid making a new template sensor just for the conversion - mainly because I don't think duplicating data is an ideal workaround

turbid violet
#

since groups are in HA now, will it be possible to group esphome devices in esphome integration page?

#

e.g offline/online, ardunio/idf etc etc

crystal sand
#

Hello. How can I make a timer card for my air conditioner? I want to configure the time and the fan speed. Then it should run for the configured time. But if I turn the ac manually of the automation should also be turned off. Also I want to display the remaining time of the timer. How is that possible?

tacit cave
tribal galleon
# crystal sand Hello. How can I make a timer card for my air conditioner? I want to configure t...

I have something similar configured for auto turn on/off lights. You'll need some helper entities: timer, two input_numbers and maybe an input_boolean. When you configure the automation, set it to reference the input_numbers and start the timer and turn on the AC. A timer finished event for the turn off.
For displaying the remaining time, the Entities card can show real-time remaining. The timer-bar-card can also be useful.
Search this channel for posts by me and the word timer to find an example or two.

turbid violet
tacit cave
#

You label it

turbid violet
#

I mean devices should be grouped by their api status... If it goes offline it will be automatically added to offline group

sleek nimbus
#

I am configuring a new light and attempting to get the popup to work. ```

  • type: grid
    columns: 2
    square: false
    cards:
    • type: "custom:button-card"
      template: card_light
      entity: light.dining_room
      variables:
      ulm_card_light_enable_popup: true
      ulm_card_light_enable_collapse: true
      ulm_card_light_enable_slider: true
      ulm_card_light_force_background_color: false
when `ulm_card_light_enable_popup: true` is set, nothing happens when the light is held. If I comment out that line, the generic HA popup will show up.
tacit cave
#

you can use the filters on the side of the page to sort by status btw

tacit cave
tacit cave
#

I don't see anything in there defining the tap action based on that variable

sleek nimbus
tacit cave
#

what documentation

tacit cave
#

this is random cards cobbled together

pseudo bough
#

when I add resources:
-type: module
url: /hacsfiles/lovelace-roomba-vacuum-card/roomba-vacuum-card.js
to my dashboard yaml, it says "Unknown type encountered: Module"

#

am I doing something wrong?

frosty panther
#

heya guys.

i have seen that the meteocard support burze.dzis.net. When i try to use it HA tells me "The integration used does not fit entities:"

#
Error: The integration used does not fit entities: binary_sensor.burze_dzis_net_ostrzezenie_burza, binary_sensor.burze_dzis_net_ostrzezenie_mroz, binary_sensor.burze_dzis_net_ostrzezenie_opad, binary_sensor.burze_dzis_net_ostrzezenie_upal, binary_sensor.burze_dzis_net_ostrzezenie_wiatr.
name: Meteoalarm
type: custom:meteoalarm-card
entities:
  - entity: binary_sensor.burze_dzis_net_ostrzezenie_burza
  - entity: binary_sensor.burze_dzis_net_ostrzezenie_mroz
  - entity: binary_sensor.burze_dzis_net_ostrzezenie_opad
  - entity: binary_sensor.burze_dzis_net_ostrzezenie_upal
  - entity: binary_sensor.burze_dzis_net_ostrzezenie_wiatr
integration: burze_dzis_net
disable_swiper: false
override_headline: false
hide_when_no_warning: false
scaling_mode: headline_and_scale
#

i dont understand why?

vital burrow
frosty panther
#

so there is no fix upcomming?

vital burrow
#

Doesn't seem so. The PR has not been merged since mid 2023

frosty panther
vital burrow
#

You will find many Polish friends, if you fix that card for them shksD

frosty panther
#

i try to

vital burrow
frosty panther
#

YOOO i found how to fix it without changing code

#

@vital burrow

#

i post it later on github for ppl to use it

vital burrow
#

I'm not using that card. I have a dashboard dedicated to all my warnings

frosty panther
#

can i see it?

vital burrow
#

No warnings at moment

frosty panther
#

oh nice. whats that map?

vital burrow
#

That is the DWD weather warning map for north-western Germany.

frosty panther
vital burrow
#

Don't think it will. They don't provide weather warnings for AT

frosty panther
#

I have seen it. I will start to code an integration for our system:
ZAMG aka. Geoshpere and UWZ combined to one

vital burrow
#

If one of those provides the warning map as a picture (e.g. png) you can also include that as an image entity.

frosty panther
#

UWZ is doing that. Good idea

vital burrow
#

Those interactive maps are a bit of a problem

frosty panther
#

There is an PNG over the api

#

And the interactiv map is also not a problem at all. its to handl like a Vaccum map

tribal galleon
# sleek nimbus I think it's supposed to be a hold action. The documentation says: `To use popup...

Looking at the card_light template, it refers to a couple of other templates that need to be available. One is the icon_more_info_new and popup_light_btightness.
The dev was very meticulous when writing the code to ensure everything works. But, it also makes it very difficult to modify to fit your needs. I'd recommend going through the code and pulling out what is relevant to your use and designing your own card/template.

static grove
#

Is it possible to show a button card with status from a sensor?

dark dirge
#

if by "status" you mean "state", yes:

show_state boolean (optional, default: false)
Show state.

static grove
#

I want to show some history stats. How long my tv is on

#

In a small point of view

#

Where the triangle is now

dark dirge
#

use a markdown card

#

it doesn't sound like you want a button at all

#

you can display whatever you want in a markdown card

static grove
#

Ok. Now looking how to wright that thing 🤣

static grove
dark dirge
static grove
#

Think this is to big

dark dirge
#

Make the text smaller?

#

Use formatting

daring niche
#

Maybe i'm not understanding what youre trying to do with regards to the HA dashboard, but scrypted has a HA dashboard cards. https://ha-demo.scrypted.app/

spiral vale
#

Hello guys can I make this width dynamically adjust depending on the device?

tacit cave
#

You'd have to use calc

#

or set the width with important and 100% or something like that

copper sail
old relic
vestal pulsar
#

In dark theme dashboards is there way to better high-light buttons when you mouse-over?

fathom wagon
#

Hello fine people! I am looking to get some help on a return statement that produces undefined (obvious reasons) but would like to give it a value(?) of '' (null text) if it hasnt been defined. Example:
name: > [[[return `<${states['sensor.mysensor'].state}`]]]

#

is there a way to do a default value if the return statment is 'uknown' or 'undefined' ?

sleek nimbus
#

But is this JavaScript you are using? If so you can do pretty much whatever you want.

fathom wagon
#

I'm llooking up has_value() now

sleek nimbus
#

I would take advantage of button card templates

#

I’m pup trapped atm but can share an example/thought later when I get freed

fathom wagon
#

AHH -- I remember why I am using JS -- I need the text to marquee

sleek nimbus
#

That’s neat. But the template will still help examine state

fathom wagon
#

I think I found something that will work ... 'ironically' by the guy who probably could have strangled me (LOL) for another template I needed help with

golden mistBOT
#

@sleek nimbus I converted your message into a file since it's above 15 lines :+1:

sleek nimbus
compact pebble
#

I am working on making a custom theme. How can I select an element to figure out what property affects the color. Which selector changes the primary text color for a lovelace card?

maiden night
#

Hey, is it possible to set input numbers to box mode in ha's interface ? I can't seem to find the option on the latest version

vast crane
tribal galleon
#

@fathom wagon I was helping @gritty aspen with his custom:button-card the other day. He has a scrolling marquee that shows track info when music is playing. I think it might be what you're looking for. I posted it on another server. I'll see if I can get it copied over here (or I can send you an invite.)
I forget the syntax for Javascript dealing with null and unknown when it is not a string. I've done it with Jinja and pretty sure I can take a look later and figure it out. (I think I've used it in functions that I've written for Node-RED.)

#

Added variables to make the code easier to update. Made the scrolling marquee hidden if not playing. Condensed some of the simple IF/THEN statements to conditional operators. (I obviously don't have the images so I went with just a white background.)

@fathom wagon take a look at the media sections.

onyx ledge
#

Is there a simple way to create a card that just displays a link (or an image with a link attribute preferrably)?

fathom wagon
#

@tribal galleon wow thats a lot more involved than what I ended up with -- I was able to modify the jinja template instead, but that's pretty damn slick

hushed wasp
#

it is for my ac unit, or should i use another card? 😛

vast crane
#

Open the Features in the editor and add HVAC modes.

hushed wasp
#

i have but there is no on/off 😛

#

for mine atleast

vast crane
#

what modes does it have?

#

Usually it's like Heat / Cool / Off

hushed wasp
vast crane
#

I guess you'd have to take that up with the integration developer for your device

#

typically I would expect it to have an "off" mode, if such a thing was indeed possible

hushed wasp
#

i has its own on off switch so i guess thats why

vast crane
#

yeah that seems a bit non-standard for a climate

hushed wasp
#

okok i see 😛

hushed wasp
#

Installed a custom switchhub integration and then the power was in the climate entity! so problem solved 😛

shadow nymph
#

On my dashboard I have one view that's just one big manual card full of yaml with different cards.

One of them is a massive horizontal-stack

Is there a way for me to store that yaml elsewhere and then when I want to put it in a dashboard just have something like type: custom-stack, so that I don't need to load that yaml every time I go to edit my dashboard?

jagged cove
#

Hi All, what do i have wrong here? Background is not loading. The image file is in /config/www/

# HomeKit Theme: background: center / cover no-repeat fixed url('/local/apple-home-bg.jpg')

sleek nimbus
shadow nymph
sleek nimbus
# shadow nymph I don't think that works for dashboards and editing via the UI does it? Looks li...

🤷‍♂️ This is what my dashboard looks like:

---
button_card_templates: !include_dir_merge_named "../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"

title: "Minimalist"
#theme: "minimalist-desktop"
background: "var(--background-image)"
#views: !include_dir_merge_list "views/"
views:
  - !include views/home.yaml
  - !include views/dining_room.yaml
  - !include views/living_room.yaml
  - !include views/house.yaml
shadow nymph
#

What file is that? Are you editing it from config/ or the HA UI?

sleek nimbus
#

Config.

shadow nymph
#

I think that's my problem then. None of my dashboard stuff shows up in config/ at least not that I can find.

sleek nimbus
#

If you have a UI configured dashboard, these are instructions to convert it to a YAML dashboard.

shadow nymph
#

I'll give that a look. Thanks!

lyric prairie
#

GUI build dashboards do not have the option to include files

fiery ledge
#

also, I now notice the mobile_app battery entities are not automatically updated, and reauire a reload of the view. which is odd, as the button card is supposed to update on all entities it uses?

lyric prairie
#

And even the unit

#
return helpers.localize(states['sensor.thuis_' + variables.id + '_distance'],undefined,0, true)
fiery ledge
#

ok right, that was buried somehwere deep.... remember when adding that functionality we had chatted about that with the author, and yet...

#

can confirm this to work as desired custom_fields: afstand: > [[[ var afstand = 'sensor.thuis_' + variables.id + '_distance'; return helpers.localize(states[afstand],undefined,0); ]]]

#

the inclusion of the unit, and the translation are the 2 main reasons I use the localize. it has been a major step forward for the button-card, thanks Bas

lyric prairie
#

Yeah the button-card docs are sometimes not as clear if you don't know the mechanics under the hood because some needed examples are left out or buried away

feral hinge
#

what now?

vague blaze
# feral hinge what now?

Is this a rPi? VM? mini PC? Basically, if you can get to a console, you should be able to get to the logs from there.

vague blaze
#

Connect a monitor and keyboard to it and see if you can get to the console.

feral hinge
#

uh yea

#

thats not possible

#

i dont have mini hdmi

shadow nymph
sleek nimbus
sleek nimbus
lyric prairie
#

Have you installed browser-mod?

shadow nymph
#

If I have a custom card installed via HACS, can I still load if in configuration.yaml?

lyric prairie
shadow nymph
#

I'm not, I'm trying to move from storage mode -> yaml mode

lyric prairie
#

You can still be in storage mode while having yaml mode dashboards

shadow nymph
#

That would mean my Overview dashboard could still be storage, but the others could be yaml, right?

lyric prairie
#

Yup

sleek nimbus
# lyric prairie Have you installed browser-mod?

Thank you. I had downloaded browser-mod, just like all of the other required resources, but did not realize it was different in that it had to be installed unlike all of the other required resources.

lyric prairie
#

Yes, browser mod is an integration not a custom card though 😉

sleek nimbus
lyric prairie
#

helpers.localize() is a button card specific method, so i dont think so

#

But I could be since you are using minimalist you don't have a new enough version of button-card

#

Or did you download all resources manually?

sleek nimbus
#

All resources were downloaded manually

lyric prairie
#

Okay, so what errors do you get? where is it not working?

sleek nimbus
#

When I use it, the whole card disappears.

#
      entity_4:
        entity_id: "input_boolean.sleep_mode"
        icon: "mdi:sofa"
        #name: "fdasfds"
        name: >
          [[[
            return (helpers.localize(states['sensor.eve_room_temperature']);
          ]]]
        color: "yellow"

#

was a test

lyric prairie
#

If you open the dev-console of the browser you can see the error

sleek nimbus
#

uncaught (in promise) TypeError: e.setConfig is not a function

lyric prairie
#

uhm the parentheses before helpers doesn't belong there I guess

sleek nimbus
#

That was a bad copy/paste on my part. But before I was getting a "helpers function does not exist". It went away now though

lyric prairie
#

Also it can give sometimes problems if you try to use a function or other variable reference in a variable

sleek nimbus
#

That was actually my next question. Can I use variables in variables? I read that the variable names must be alphabetic, but if I tried to do something like

asleep: "[[[ return states['input_boolean.sleep_mode'].state === 'on';)]]]"
entity_2:
        entity_id: "input_boolean.sleep_mode"
        state: "off"
        icon: >
          [[[
            return variables.asleep ? "mdi:white-balance-sunny" : "mdi:moon";
          ]]]
        name: "Day"
        color: "blue"

It wouldn't work

lyric prairie
#

It can, but it gives a lot of unexpected problems within minimalist due to the large levels of nesting templates and variables under the hood

sleek nimbus
#

ok so avoid if possible. I ultimatly found a better way of doing what I was trying to do, but I was just trying to minimize the number of repeated code for simple checks for cases where both the icon and name may change based on the same condition.

fiery ledge
#

somehow I've lost my way in the Frontend repo, trying to find the icon for device_classes.... currently though more specific, I need to find the possible states for the _battery_state entities made by the mobile_app. I want to replicare some styling in a button-card, and believed we had Full/Charging/Not charging, but am not sure

#

could anyone please help me out? where are the device_class icons, and where is battery_state

vast crane
fiery ledge
#

thanks, i fugured as much. but didnt the frontend set the icons for the states?

#

it was somewhere in src/common/entity .... like we have the /color/battery_color.ts. and battery_icon.

#

suppose it is since the move to battery translations, (where dit that go..?). device_class and all

vast crane
#

it must be from the mobile app, I still see icon: in the attributes

#

(if you're asking about iOS I don't know but assume it must be similar)

fiery ledge
#

ok let me try and find that. And what about the device_classes ? can you help me find those

vast crane
#

what device class

fiery ledge
#

I mean I did add several myself in the day, but now wouldnt know where to find those 😉

fiery ledge
# vast crane what device class

any really, those were in 1 file domain_icons.ts with state on/off, like the booleans/switches etc, and the binary_sensor_icon.ts.

vast crane
#

I think mobile_app is a bit of a weird one as a lot of the logic is in the companion app itself, not in the core integration

shadow nymph
#

If I have a directory structure of

config/
  dashboards/
    cards/
      custom_card.yaml
    views/
      home_view.yaml
  dashboard.yaml

Is there an easier way to reference custom_card.yaml in home_view.yaml than !include ../cards/custom_card.yaml?

fiery ledge
#

and yet I am almost 100% certain we had the battery_state sensor entity in the other repos. even a github search on the battery_state does not find it though

#

also, I now see this, which seems to indicate that even though at 100% it still shows Charging/Not charging, and no longer has the Full state.

sleek nimbus
# lyric prairie It can, but it gives a lot of unexpected problems within minimalist due to the l...

is there a way to reference the button entity inside of a helper function? The button card documentation says that the entity in the localize function needs to be an entity object and not a state, and that entity represents an entity object. The function breaks unless I specify the entity_id.

- type: "custom:button-card"
        template:
          - card_room
          - pink_icon_only
        name: Bedroom
        entity: sensor.eve_room_temperature
        #label: "[[[ return (parseFloat(entity.state).toFixed(1)) ]]]"
        #label: "[[[ return helpers.localize(entity]) ]]]"
        label: "[[[ return helpers.localize(states['sensor.eve_room_temperature']) ]]]"

The first label works, as a test to make sure I have access to the entity. The second breaks, as does variations using quotes and trying to use states[entity] and various other ways of attempint to reference the correct object. the last one works, but if I change the sensor it would break the label.

fiery ledge
#

@sleek nimbus try helpers.localize(entity)

sleek nimbus
#

I see the error

#

Trying it soon

fiery ledge
#

use this all over the place, so should work, not sure about the other manipulations on it though.

compact pebble
#

How do I show the pictures for my different areas in picture entity cards? Where are the area pictures stored?

stuck spire
#

Not sure if here or integrations is correct. I'm using the tile card for two different fans integrated via bond. One of them shows the fan speed controller as buttons, the other a slider. How can I show both as buttons?

#

the living room fan has 6 speed settings, office fan only 3.

onyx vector
#

Do you guys have any easy workaround to use old iPad mini with HA app? I am using HA on a windows machine with VM. I am not familiar with docker installation

onyx ledge
#

What isn't working? Your install method should be irrelevant to the mobile app integration

#

If the ipad mini is too old it might not be able to download the app though, but you can always navigate to the dashboard via safari

onyx vector
golden mistBOT
#

@golden mirage I converted your message into a file since it's above 15 lines :+1:

graceful blaze
#

Hello Guys, i have Roborock QRevo integrated to HA and i am using Simple Vacuum Card for controlling/displaying, however it is not showing brush/filter details. It is showing just Unavailable. I can see all details via Device - Roborock, so it is available for HA. Brush states are attributes.

rain junco
#

Howdy FE folks - oh wow I think it's the first time I take a look at this channel 🙂

#

I'm seeking some help with adding 'themes' in packages somehow.

The idea is to leverage this:

homeassistant:
  packages: !include_dir_merge_named packages/

and create my_theme-0.yaml, my-theme-1.yaml, my-theme-n.yaml in packages/themes, and those would have their light/dark mode kept together for a single one.

When I do this, i.e. packages/themes/test.yaml like:

  themes:
    test_theme_light:

I get a Package frontend setup failed. Component themes Integration 'themes' not found. error - now that's usually when it's completely upside down 😕

Would someone be so kind and point me in the right direction with this one pls?

lime pike
#

Hello. Anyone know if it is possible on a tile card to get the tap action set to the device page? So when a tap on a card I get directly redirected to the device the entity belongs to

arctic field
#

Bug or feature? I'm trying to move from mushroom cards to default Tile card. There is one weired. hold_action is not working over icon. So when I long tap the icon, icon_tap_action is taken instead of hold_action. And there is no icon_hold_action.

Is it bug or feature? I want to same behavior for tap and hold on both. Icon, and entity name.

lyric prairie
#

The documentation only mentions the tap_action for the icon, so I guess it’s not supported (yet)

arctic field
#

I don't need another behavior for long icon tap. But it's weird that long tap trigger tap action.

twilit obsidian
#

Hello all, does anyone know where to modify a theme, so when something is pressed and then i return to same page it doesnt have a different dim color.

arctic field
#

One more question, how can I change cover color from purple to blue in default theme?

arctic field
worthy tapir
#

I'm following along with a forum post on mushroom / card mod stuff and am trying to add a second badge to an icon. The post says you have to use background-image: for this as an mdi:icon won't work. My samba addon exposes config/ folder, so i created config/custom_icons/ and now i'm referencing that in my lovelace as background-image: url(:"/config/custom_icons/fan.svg") but it isn't working

#

do i have that path correct? Can lovelace connect to that folder path? or does it need to be in www/

vague blaze
worthy tapir
#

k thanks

worthy tapir
#

the code ha-card { background :rgba(var(--rgb-primary-text-color), 0.035); } works on its own, but when I try to combine it with the other card mod code i have it doesn't do anything

#

the interface reports no errors with my syntax

tacit cave
#
    .: |
      ha-card {
        background: rgba(var(--rgb-primary-text-color), 0.035);
      }
#

also, your other template is super verbose for little benefit

#
        card_mod:
          style:
            mushroom-shape-icon$: >
              {% set is_on = is_state("light.kitchen_island_lights", "on") or
                   is_state("light.dining_area_pot_lights_dimmer_2", "on") or
                   is_state("light.dining_table_dimmer", "on") %}
              .shape { border: 3px solid {{ iif(is_on, 'gold', 'grey') }} }
            .: |
              ha-card {
                background: rgba(var(--rgb-primary-text-color), 0.035);
              }
worthy tapir
#

thanks, what does the .: do?

tacit cave
#

it's saying "this spot"

#

mushroom-shape-icon$ -> go to mushroom, shape, icon, then first shadow thingy

#

. -> go to right here

#

: is just the indicator for yaml

worthy tapir
#

the .: should start at the same indent as mushroom-shape-icon

tacit cave
#

you can copy/paste what I wrote exactly 😉

worthy tapir
#

well the thing is I dont find I'm learning as much as I should be, so trying to understand a bit more and copy a bit less

tacit cave
#

yes, style is a dictionary, so every item inside it needs to be at the same indentation level

worthy tapir
#

also, that verbose part, its partly because it's helpful for reference and learning (by not much), but also I've started to find with HA that when devices go offline/unavailable a lot of things fail and aren't captured by that fact

#

it's more of an issue for automations than frontend, but when I write "do this if on, else do this", it does the else even if the device is unavailable

hearty minnow
#

Hello guys,
I got a strange result here hopefully somebody got a hint for me.

I trie to add a #matter-archived device via Thread (Sky Connect) with an old Android (OnePlus 3 / Anndroid 9 (OxygenOS 9.0.6). But when I navigate to the Settings -> Devices area, there is no device of my 93 devices showing up. Its just telling me "no data".

When I then tap on add device and chose "add matter device" from the list just nothing happens. I alreade restartet, synced the thread credentials an tried this multiple times....

Does anybody know why this happens? and mybe how to fix this? Or is it just a too old Android Version (I found somewhere on the homeassistant docs, that at least 8.1 is required)? The App Version is 2024-4

Thanks a lot.

stuck spire
#

Is there a way to wrap text on cards? spefically tile cards in the sections view.

north wadi
#

Can I redorder the floors? I have started creating them vwith the basement. and now the lowest floor is listed on the top. Looks weird.

vast crane
#

You can change the level #, but that may not make sense

north wadi
#

@vast crane You are right. The floors are indeed ordered by the level. In ascending order which is weird. Never heard of an elevator whre the buttons are ordered that way?

lyric prairie
#

The idea was that the ground floor for most homes the main floor is, and therefore is placed on top to see first IIRC from the livestream when floors were added

hushed agate
#

Is there a smaller version of the entity graph card?

#

I do like to have a graph but I also would enjoy having more than four per viewable page

vague blaze
#

Mini graph card maybe?

north wadi
vast crane
#

a) was rejected by designers. b) and c) are probably not gonna happen, but you can write a feature request if you feel strongly about it.

sleek nimbus
#

I'm utilizing some cards that collapse based on state. But some of my media players never go "off" they go "idle" (homepod). Is there an established method to exposing "idle" as being equal to "off", or any problems with that approach that I should be aware of?

glass valley
#

Are there any other automatically generating dashboards? I am currently using mushroom strategy, but I feel like with current version and tech much more could be achieved

fast glacier
#

the format (in JSON) of the websocket API lovelace/config call to get a dashboard layout appears to have changed between 2023.10.5 and 2024.3.1 for entities cards. In the 2023 I got a card with type=entities, and an entities key containing a list of entity names. In the 2024, the card has an entities key holding a list of objects with an entity key inside. Are these changes documented anywhere that I missed?

vast crane
# fast glacier the format (in JSON) of the websocket API lovelace/config call to get a dashboar...

What is the websocket call to "get a dashboard"? IIUC the only two options are to return a dashboard you have saved, or to get a dashboard that is defined by a strategy (which I don't think returns individual cards themselves as the frontend generates them).
But nevertheless both styles are valid for entities card, either a list of names or a list of objects (the latter is used to configure additional options).

tame oriole
#

Is there any way to have a button card where the button calls a Script, but the state being shown on the button is a binary_sensor?

like {{ states['binary_sensor.ping_windows_11_p600s_aaron'].state }}

#

or something like this

type: button
tap_action:
  action: toggle
  confirmation:
    text: Are you sure you want to turn on [Aaron's Computer]?
entity: script.switch_computer_aaron_turn_on
show_state: true
name: Aaron's Computer
icon: mdi:desktop-classic
state: |
  {{ states['binary_sensor.ping_windows_11_p600s_aaron'].state }}
vital burrow
#

Use the binary sensor as entity and use the script service for tap or hold action

#
type: button
tap_action:
  action: call-service
  service: script.switch_computer_aaron_turn_on
  target: {}
  confirmation:
    text: Are you sure you want to turn on [Aaron's Computer]?
entity: binary_sensor.ping_windows_11_p600s_aaron
show_state: true
name: Aaron's Computer
icon: mdi:desktop-classic
fast glacier
wraith tangle
#

hi, can someone help me configure **Lovelace RPi Monitor Card **? 🙂

i'm stuck here:

In your ui-lovelace.yaml (or resources.yaml, whichever you use for resources) add this:
- url: /hacsfiles/lovelace-rpi-monitor-card/rpi-monitor-card.js type: module

where is ui-lovelace.yaml ? 😐

kind hill
#

I have a lovelace minimalist dashboard, and wanted to add a drop down to select my vacuum mode (select.vacuum_mode). Is there a card for that already, or do I need to find another custom template?

minor rapids
#

I cant figure out why this isn’t working, the first condition works but the sun condition doesn’t. Trying to get cards to show for roughly an hour before/after the sun…

    conditions:
      - condition: or
        conditions:
          - condition: state
            entity: light.outside_group
            state: 'on'
          - condition: numeric_state
            entity: sun.sun
            attribute: elevation
            below: 4
    card:
      type: vertical-stack
      cards:```
golden mistBOT
#

@minor rapids To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

tribal galleon
tribal galleon
# minor rapids I cant figure out why this isn’t working, the first condition works but the sun ...

I may be wrong, but I don't think the Conditional card can reference attributes. Consider the custom:state-switch card. Here's the forum post for it, too. I think you'll need to use the template method to set it up. yaml type: custom:state-switch entity: template template: > {% if is_state('light.outside_group', 'on') and state_attr('sun.sun', 'elevation') < 4 %} show_vertical_stack {%endif%} states: show_vertical_stack: type: markdown content: Replace this Markdown with your vertical stack.

minor rapids
tribal galleon
minor rapids
tame oriole
vital burrow
#

The entity id doesn't change

vague blaze
tame oriole
#

is this not where you do that?

#

you can see where its called script.switch_computer_aaron_turn_on , but the service call for it in the button card only sees it by the old name of script.bot_computer_aaron_turn_on

#

bug?

vital burrow
#

Have you tried to reload the scripts in the dev tools?

tame oriole
#

will do that

#

hang.

#

doesnt work

#

i can reboot and see if that fixes it

vital burrow
#

Quick and dirty fix would be to duplicate the script to another name and to delete the old one.

tame oriole
#

oh i know that would fix it for sure lol.

#

it looks like all my scripts are being referenced here with their old names

#

its not picking up the new entity_id

#

does that happen for you as well?

vital burrow
#

Haven't tried it.

floral scroll
#

So it seems that enabling SSL on Home Assistant blocks/disables the existing 8123 http port. Is that right? Any way to open that back up again?

wet veldt
#

This has happened again - I have lost temperature controls on my AC (IR blaster). This is getting old.

golden mistBOT
#

@wet veldt I converted your message into a file since it's above 15 lines :+1:

wet veldt
minor rapids
craggy terrace
#

Hi, I would like to use an old WinTablet as a picture viewer (url to http slideshow on local server) but also display date/time and some states + messages from HA. (like the Alexa and Google thing)
Maybe with additional pages to view on click/alarm.

I found how to set the background image in a template, but is it possible to use a html page (picture slide show) instead?
I don't want to use static YAML to define a few pictures on the NAS which then getting used as background image.

Would like to use a ready to go picture archive/slide show software on local server and not reinvent the wheel myself (like repeated page refresh, one pager on server (php) grabbing a different picture each time)

Question: dynamic html5/js website as dashboard background possible? How? 🙂

Thank you!

tacit cave
#

in home assistant land, you'd make a camera entity

#

that feeds off an image file, then you replace the image

#

You'd need something custom to display a clock

stuck spire
#

The custom "Clock Weather Card" available in HACs is pretty nice for showing the time on a dashboard. Shows the weather by default too, but that can all be removed if you want.

craggy terrace
#

Nice, thank you.
I know how to set up the dashboard.
Will look into the cards, tho.

Challenge: dynamic background with service from another server.

Pictures are on the NAS, and I would like to use the picture archive software to create a few albums for each picture frame. Create a Dashboard for each frame and show the corresponding slide show.
With this setting I can use an dynamic album which adds new images which do match a specific scene (image recognition in archive software).

like:
Frame1 -> Album Last Vacation
Frame2 -> Album Wife/Gf/Partner
...

I know it is possible to mount the NAS
select the images for background, write them in a YAML and slide trough.
But then it is static and a pain to update (I know myself, that will never happen). 🙂

tacit cave
#

again, set up a the generic camera integration and point it to a file, then update the file at whatever frequency you want.

#

that's the only way to do this without going custom using HA

craggy terrace
#

@tacit cave thanks, will try that.
found how to use it as a card, any pointers how to use the generic camera as a dashboard background? 🙂

tacit cave
#

you'll need a custom card for that

#

something that supports a camera entity as the background image

#

or use picture elements card

craggy terrace
#

I see.
No dashboard background!
It will get messy then! 🙁

tacit cave
#

not sure how, picture elements with the bottom element being a camera is the same thing

craggy terrace
#

other way round would be using MM2 for the frame setting the dynamic background (URL) and get the HA Entities shown there too.

But that would require the Picture Archive Docker Container as well as an MM2 Docker Container for each picture frame serving the view and including the HA Entities in each one will be a mess too. 🙁

tacit cave
#

I really don't see what your hangup is

#

make the camera, the camera points at a file, any file. You can do whatever you want with that file. You then put the camera on a dashboard as a picture element, on a view with mode panel.

#

then just replace the file with whatever current image you want to show

craggy terrace
#

sorry I don't think I am getting that.
Will that picture element be full screen? aka background?
Can I place other Elements on top?

tacit cave
#

yes, please look at picture elements card

#

you're making assumptions without trying these things

static harness
#

Any way to control margins when using sections and viewing HA via a browser? It seems everything is centered by default, leaving me with a lot of whitespace on an ulrrawide monitor

rustic lynx
#

So i start my HA again any suggestion for dashboard? some good for the mobile app

jaunty pivot
#

Hello, I'd like to recreate my electric board in HA to show power consumption. I'd like to split every line in 6 slots to put 1 gauge in 1 slot and time to time 3 gauges in 2 slots. Do you think that something like this is possible ?

tribal galleon
ionic olive
#

where is the logbook? i cant find it anywhere?

dark dirge
#

In the sidebar

ionic olive
#

I dont see it

dark dirge
#

Did you remove default_config: ?

ionic olive
#

no

#

only added to it

dark dirge
#

You don't add to it

#

You could have hidden it

ionic olive
#

ok, how could i bring it back

dark dirge
#

Press and hold on the title

ionic olive
#

sorry so would that be home assistant or overview?

dark dirge
#

Home assistant

ionic olive
#

thanks!

#

will give that a go

#

it did not show up

#

everything you see just wiggles

#

if it makes a difference, i moved from Rpi to an Intel NUC a week ago and restored from backup

dark dirge
#

Doesn't matter

errant plover
#

Did you try scrolling to the bottom of the menu?

dark dirge
#

Maybe you just need to scroll

errant plover
#

Snap.

upbeat valve
#

What's the best way to change the background of a mushroom climate card based on current heating/cooling of a Nest thermostat? I tried but apparently it was just referencing the current mode (if it's set to cool or heat, but not actively running).

vast crane
#

the attribute hvac_action contains the active heating/cooling status (as opposed to the mode)

upbeat valve
#

Sweet, got it with this:

card_mod: style: | ha-card { background: {% if is_state_attr('climate.downstairs_thermostat', 'hvac_action', 'heating') %} #890002 {% endif %} ; background: {% if is_state_attr('climate.downstairs_thermostat', 'hvac_action', 'cooling') %} #002E89 {% endif %} ;

tacit cave
#

you're overwriting it

#

that's not going to work

#
    card_mod:
      style: |
        ha-card {
        background:
          {% set action = state_attr('climate.downstairs_thermostat', 'hvac_action') %}
          {% if action == 'heating' %}
            #890002
          {% elif action == 'cooling' %}
            #002E89
          {% else %}
            #FFFFFF
          {% endif %} ;
#

you might want to fill out the else

#

you can also use a map

upbeat valve
#

ah ok. I did test it with just Cooling and it changed to blue but didn't test the other actions yet. Thanks

#

If I don't do the else will it just go to the default color?

tacit cave
#
    card_mod:
      style: |
        ha-card {
        background:
          {% set action = state_attr('climate.downstairs_thermostat', 'hvac_action') %}
          {{ {'heating': '#890002', 'cooling': '#002E89'}.get(action, '#FFFFFF') }};
tacit cave
upbeat valve
#

OK cool. New to card_mod (and styling in general) so appreciated.

Follow up question... when I add the code in the visual editor, I can see it's working (can test the conditions and it changes), but then the additional code is just disappearing when I save.

#

I did use card_mod to remove some icons from entity rows in other cards in the grid, would that be why? Those don't disappear

vast crane
#

IIRC that's a known issue with card mod? I don't use so don't know for sure, but I've seen that reported that it's eating code on save

upbeat valve
#

Yeah I came across some github issues reporting the same

tacit cave
#

I don't use the UI so I'm not sure

upbeat valve
#

seems to stick if I edit the dashboard directly

forest juniper
#

how do i create these smaller cards on dashboard?

tacit cave
#

button card

forest juniper
# tacit cave button card

thanks but tbh i found the new experimental "Sections" view and that works fine for me. and its much easier for my limited/simple dashboard.

minor rapids
#

Has anyone been able to successfully hide the stop button on the mushroom cover card? I hid the icon and background with card mod but when I tried moving the open button over into the place of the stop it went behind and my tap action stopped working.

stuck spire
#

on the markdown card, I can't seem to use "# Heading 1 " is that not supported? figured out the issue. Indentation problem.

vital bronze
#

How do i add an device with "last triggered" shown on the dashboard?

golden mistBOT
#

@compact pebble I converted your message into a file since it's above 15 lines :+1:

warped torrent
#

I have a question as I scoured through google and bit confused on how styling works. I tried to adjust the configuration as I want to add "Dawn and Dusk" time only when i set it up it shows a full date and time. How do I remove date out?

vague blaze
warped torrent
jaunty pivot
#

hi. is there a way to force the size of tile in the frontend ?

warped torrent
#

Is it me is Mushroom Template Card not easily customizable for text alignment?

tribal galleon
#

Card mod Mushroom Template Card

hollow spruce
#

Given a door sensor that gives me open/closed states, is there a simple card that would allow me to show that state visually? Like the default button card lets me set a door icon and the icon can change its color based on the state which works fine. But could I also change the icon to an open door or closed door?

grim current
#

not sure about the channel - I'm wondering if there's any way I can make this click as shown in that screenshot "programmatically" to get the resulting history.csv file, for example in a python script using requests? Or any other way where I can submit entity, starttime, endtime and get all data including from long term history?
The rest API apparently is discontinued ( #devs_core-archived message ) and the /api/history endpoint is not returning long term history data 😦

vital bronze
#

How do i display hour and mins since device last triggered on my dashboard? Im currently using a tile card but it only displays hour

golden mirage
tacit cave
#

The snipit is missing

tribal galleon
# hollow spruce Given a door sensor that gives me open/closed states, is there a simple card tha...

I'm assuming you've already set the sensor to Show as Door which should handle open/closed icons. Once the stock cards start to outgrow what you want them to do, you have two options: card_mod and custom cards. Card_mod, generally, let's you modify cards to do more of what you want; it just may take a bit of work (if someone hasn't posted it already; Card modding a tile card's icon and icon color.) Personally, I prefer the custom:button-card. This is how my door sensors are shown. They're subdued when they're in their normal state but flash when opened/closed, as appropriate. The colored dot is the battery level indicator. It took about 50 lines of YAML to make, but the custom:button-card allows a configuration template which let's me call the template without having to repeat the code. Subsequently, each of the buttons is only 6 lines.

tacit cave
#

that should really be a flashing poop emoji

vital burrow
#

Alert condition brown

tribal galleon
#

I like the flashing red door icons. I can see it from across the room on the tablet.

tribal galleon
tribal galleon
#

@tacit cave @vital burrow Just for you guys:

slow sundial
#

hey guys. can anyone give some pointers to make a brush graph using the custom:apexcharts-card? I'm trying to get something like this:

#

I've been trying examples from the forum but the syntax must have changed because nothing works..

tacit cave
#

Post what you've tried

slow sundial
#

tried these

#

the apexcharts docs states that we have to use two charts, one for the brush and another for target

tacit cave
#

Thats a community post, can you post exactly the code you tried?

#

verbatim, what you wrote

golden mistBOT
#

@slow sundial I converted your message into a file since it's above 15 lines :+1:

slow sundial
#

also tried: `` type: custom:apexcharts-card
apex_config:
chart:
id: main-chart
brush:
enabled: true
target: main-chart
height: 30
xaxis:
type: datetime
series:

  • entity: sensor.sonoff_station_temperature
    type: line
    name: Temperature ``
#

a simple working example would be much appreciated

tacit cave
#

you aren't specifying the brush

#

e.g.

#
    show:
      # in_brush: set it to true and the serie will show up in the brush
      in_brush: true
      # add this also if you want your serie to only show up in the brush
      in_chart: false
#

which is included in the brush example in the docs

vast crane
upper dew
#

Does anybody know how to have an entity filter hide itself if it is empty?

upper dew
#

AWESOME

grim current
vast crane
#

I can't speak to why it is or isn't documented :\

#

But all future API development uses the websocket. It's what the frontend uses.

grim current
#

Yeah, I'll dig into that then. Will be a bit more effort but it's the proper way. I could of course read directly from the database for my private use, but that doesn't seem very clean to me.
Thanks!

grim current
#

Thanks! It seems it doesn't have a noob friendly list of possible actions like the REST API doc has.
But I'll figure it out 🙂
I'm just a python hobbyist messing around a bit.

tacit cave
#

the websocket api is agnostic to what language you use to perform the connection

#

The idea is that you know what you're doing with websockets. So if you plan to use websockets and python, look up a tutorial on how to use a websocket in python. Then once you know how, look at that API and it will make sense.

dark dirge
#

may not be exhaustive, but it's a start

grim current
#

Awesome! Another learning opportunity. Thanks for the hints!

tacit cave
#

I guess I don't understand your comment because it's well documented there

#

It's just not documented with python

#

its documenting what you do with a websocket in order to get the data you want

#

maybe this is a miss understanding on how websockets work, but the documentation covers everything it can do

vast crane
#

The actual API functions that exist are not documented.

#

that loosely tells you how to use the websocket, but it doesn't actually say what requests you can send

#

beyond a few limited examples

#

(you just have to read the code to figure that out)

tacit cave
#

what other commands are not listed?

dark dirge
#

lots and lots

tacit cave
#

Sounds like they'd just need to be added. I'm looking at the list and I can't see anything that I'd need outside that to make and use entities

vast crane
#

well the initial question was about fetching statistics, which is not there

dark dirge
#

anyone can create their own API

tacit cave
#

Yes but I'm talking about HA's actual websocket api

#

I'm asking questions, not trying to argue 😉

#

which it seems like yall think I'm arguing

dark dirge
#

I always viewed that page as a sampling/example of APIs that are available without an attempt to provide an exhaustive list, and with the caveat that they can change whenever

#

like it's not a goal to reproduce the REST API documentation for websockets

tacit cave
#

The page is very explicit (to me) on what information to send, and what it will do

dark dirge
#

key is "exhaustive" and "unchanging"

#

for those APIs at this moment, I'm sure it's fine

vast crane
#

Well looks like there's ~350ish valid commands you can send to WSAPI. That page maybe lists 10 of them. It's not a bad start for simple things, but there's a lot more.

lone umbra
#

is there any hacky way to be able to navigate to a templated-url in frontend? like googlemaps coords for gasstations etc

polar kelp
#

The markdown card accepts templates, and can have hyperlinks.

#

Wow. That's a word I haven't used in... a while

tame oriole
#

is there any way to add a sensor to this card under the state of the curtain? would be better than adding a vertical card which takes up more space

#

i wanted to add the battery % under the word open

grim current
dark dirge
#

Not at all, I just took it at face value. Learning new things is good!

tame oriole
warped torrent
#

@umbral harness you a fan of sonoff products thinking about replacing smartplugs with them

warped torrent
#

ermm

#

sorry

vague blaze
#

No worries 🙂 Want to keep the channels as clean aas we can.

warped torrent
#

I didn't even realize I was in the wrong channel. I'm trying to keep up with so many channels heh

golden mistBOT
#

@jaunty pivot I converted your message into a file since it's above 15 lines :+1:

mental crag
#

Hi guys, i'm making an entity filter card with a huge list of devices. Is there a way I can get the names from somewhere of all the entities so I won't have to add them 1 by 1 manually? I assume HA is storing them somewhere, no?

jaunty pivot
mental crag
jaunty pivot
#

in your entities list, you can try, entity_id: ^sensor.sun* to get all you sensor starting sun for example

lapis arch
#

Is there a way to make a button card show an on state from some other sensor?
I have a button and then a template that returns true from that button being pressed for 15 mins and it'd be nice to show that

tribal galleon
#

For my battery levels, I use a colored dot as a custom_field in the custom:button-card with a little bit of Javascript.

gaunt eagle
#

I am trying to set up a conditional card to show when only A is active or when only B is active but NOT show when A and B is both active at the same time. How do I set the logic on this? Thanks!

dark dirge
#

Use two conditional cards each with the combination you want repeating the card you want to show, or use a state_switch custom card with a template condition

gaunt eagle
dark dirge
#

I don't know what you mean by 'active', but you provide two conditions for each card and both need to be true to show the card

#

Use state: and state_not:

gaunt eagle
#

Active as in on state. So I want the card to show when only A is on, and to show when only B is on. But not show when A & B is on at the same time

#

Okay so for card 1, show card when A is on and B is off. Card 2, show card when A is off and B is on. If A and B is on, it should not show

#

Will try, thanks!

dark dirge
#

Yep

tribal galleon
#

@gaunt eagle Like RobC mentioned, also consider the custom:state-switch card. You can set up different conditionals to show different cards from within the state-switch card. Kind of like an IF (show this), ELSE IF (show that), then ELSE (show something else).

gaunt eagle
#

Sounds good, I will give it a shot. Thanks!

lethal rose
#

Hi all!
I would like to change the icons of a glance card depending on the status of an entity.
Quick summary, I have a pool pump with 3 speeds and I want to display a different icon per speed.

I have added this into the glance card but the icon is not displayed:
icon: >
{% if is_state('sensor.tild_filt_state_2', '129') %}
mdi:fan-speed-1
{% elif is_state('sensor.tild_filt_state_2', '130') %}
mdi:fan-speed-2
{% elif is_state('sensor.tild_filt_state_2', '131')%}
mdi:fan-speed-3
{% else %}
mdi:fan-off
{% endif %}

I am hearing that templating might not be supported? but is there a workaround?

tribal galleon
#

@lethal rose The Glance card does not accept templates. You can get it to work with card_mod but it is not the easiest card to work with. It's been a while since I messed around with that card. I still have some examples for reference. Lemme see if I can remember how to get it to work.

tribal galleon
#

@lethal rose I remember why I didn't really work with this card too much. It is a PITA to work with. I tried something things that did not work. I consulted the card_mod huge post in the forum, specifically for the Glance card. There is no example there that shows how to change the icon. Basically, if Ildar_Gabdullin does not have it posted, there's a strong possibility that it cannot be done. (He's a beast when it comes to using card_mod.)
With that said, you can "make" your own Glance card. The custom:stack-in-card is useful for merging multiple cards into one. I posted about it a little bit ago. Scroll up and you'll see a couple of pictures that I posted. Inside the stack-in-card, just use a card that can act the way you want such as a card_modded button card, custom:button-card, or the Mushroom Template Card from Mushroom card.

lethal rose
tribal galleon
#

@lethal rose Forgot to mention, if you use the custom:button-card, it uses JavaScript and not Jinja. But, it also has the ability to apply styling based on the state; so it doesn't specifically need code to make it do what you want. (This is a very useful card and can be made to do just about anything. I have a bunch of stuff/examples posted in here about it.)

vast crane
patent wing
#

I don’t know if this is where to ask this question, but is there any way to change the card that’s used to represent HVAC controls? I need one that’s SIGNIFICANTLY smaller, as I’m using HA in the store I run, which has 8 RTUs, so these absolutely massive HVAC cards take up half my dashboard lol

kind hill
#

Hey, setting up a button to close or open curtains (hooray for conditional cards), but running into this error:
Failed to call service cover/open_cover. must contain at least one of entity_id, device_id, area_id, floor_id, label_id.

Exact yaml on the tap action is:

tap_action:
action: call-service
service: cover.close_cover
data:
entity_id: cover.living_room_curtain

I feel like I am missing something obvious. Calling the service manually from the dev tools works

worldly island
#

(it fits in a narrow column on the sections ui too, if you use that)

patent wing
lapis arch
patent wing
#

thanks!

fathom wagon
#

OK .. I'm losing my mind here..

#

the button-card supports templates for the name, yes? why does it keep showing the daggum template text and not the templated value?:

  - type: custom:button-card
    name: "{{ states('input_number.ac_mastersuite_volume')|int }}"
dark dirge
#

You're using Jinja

#

It only supports JavaScript

#

The docs show many examples of the JavaScript templates it supports

fathom wagon
#

Ok , so ... tried that too.. doesnt work even more. (which is why im losing my noggin.) use case: browsermod popup with button in content. button name is java. popup doesnt pop up ... like at all...

name: |
  [[[
    return `${states['ac_mastersuite_volume'].state |int}`
  ]]]
#

hang on.

#

I might just be being stupid.

dark dirge
#

Maybe

#

|int is Jinja

#

You also made it more complicated that necessary

#

And you didn't specify the proper entity_id

#

I swear that there are exact examples in the docs

fathom wagon
#

i noticed that too, but fixed that. however, Im looking over them again now.

#
name: |
  [[[
    return Math.trunc( states['input_number.ac_mastersuite_volume'].state );
  ]]]
#

that works

#

sheesh ... is it Friday yet!?

lyric prairie
#
name: "[[[return helpers.localize(states['input_number.ac_mastersuite_volume']) ]]]"

Shouldn't be more difficult than this. This also allows to set options for precision and unit of measurement. For string states it can also translate them

fathom wagon
#

4 Mondays in a row is just not frickin fair

lyric prairie
#

The easiest is:

name: "[[[ return states['input_number.ac_mastersuite_volume'].state ]]]"
fathom wagon
#

Yes, that returns, but as a float. I needed an integer

fathom wagon
#

I'm a (lot) brainfried today

lyric prairie
#
name: "[[[return helpers.localize(states['input_number.ac_mastersuite_volume'], undefined, 0) ]]]"

Then use this, it's all built-in button-card

#

Or change the precision within the HA ui in the entity settings

fathom wagon
#

Ok .. next one. I cant get the name of a button card to update in the browser-mod popup when the value of the entity it watches changes ... is that the same for anyone else?

#
  - type: custom:button-card
    name: "[[[ return `<center>${Math.trunc( states['input_number.anumberentity'].state )}</center>`; ]]]"
#

I've done it this same way with cards on the dash, so I want to think it's something to do with the popup

#

Confirmed ... I changed a button card to time, and it's stuck

fathom wagon
#

(unless one of you fine people know how to accomplish?) I found a ~2yr old thread that led nowhere

lyric prairie
#

You probably need to add that entity to the triggers_update

fathom wagon
#

I did try that, but it didnt seem to work, lemme look again

#

This is what I have at the moment -- I am pretty sure I have it conf'd right, dont I?

  - type: custom:button-card
    name: "[[[ return `<center>${Math.trunc( states['input_number.ac_mastersuite_hour'].state )}</center>`; ]]]"
    triggers_update:
      - input_number.ac_mastersuite_hour
#

Mind you, this is only seeming to happen within the browser_mod popups

#

but I wanna make sure it's not just me

tribal galleon
#

@fathom wagon You can also use parseInt(the_state) in place of Jinja's | int.
I've put together some concepts that shows how to do some common tasks with Jinja and Javascript. Link
triggers_update: all can also be used.
If it isn't centering like you want, you may be able to use yaml styles: name: - alignment: center(I may be wrong on the exact syntax but it is something like that.)

fathom wagon
#

does anyone know of a way to change the text size of an input bumber with card-mod?

#

(or it is even possible?)

tribal galleon
gaunt eagle
#

Any idea how to show a webpage on my dashboard? I use the webpage card but it says "refuse to connect"

digital swallow
#

You need to share more details.

quiet tree
#

Hi, is there a dedicated room for the homeassitant floorplan or would it be ok to ask here?

fiery ledge
#

having several live weather cams under some fold-entity-rows, I was wondering whether these are only downloading data when actually unfolded, or that there is a contiuous data stream going on. Can we check that somewhere in Inspector? Network tab shows traffic, but I cant pin it down to the card

#

closed: hope this has no traffic...

#

and open, which would obviously require some traffic for the open fold

fathom wagon
#

I'd like to think I havent spent the whole night tinkering with the following for no reason.. Im trying to get rid of the padding around the input textbox .. Is this doable?

      - type: entities
        card_mod:
          style:
            hui-entities-card:
              ha-card:
                '#states div':
                  padding: 0px;

#

I havent been able to do this with the config, but manually changing the css on devtools obviously works. I might also mention, that I am not even a rookie when it comes to css styling, so it may be that I am just not pointing to the correct element, if this is actually pointing to anything at all

fiery ledge
#

im using this: card_mod: style: hui-generic-entity-row $: | state-badge { display: none; } ha-textfield: $: | #label { left: 0px !important; } .: | :host { --text-field-padding: 0px; }

#

to give me:

fiery ledge
#

you can set margin-left: -16px; on the

#

to go to the card border 😉

fathom wagon
#

I'm actually trying to modify this : mdc-text-field__input

#

would you happen to know how to get that?

fathom wagon
#

I have that page open, yes .. just not to that post

fiery ledge
#
          card_mod:
            style:
              hui-generic-entity-row $: |
                state-badge {
                  display: none;
                }
              ha-textfield:
                $: |
                  #label {
                    left: 0px !important;
                  }
                  .mdc-text-field__input {
                    margin: -10px;
                  }```
#

you do know how to select the correct Dom path inside the inspector?

#

btw if you search that main post for mdc-text-field__input, you'll get a lot of hits pointing you to the solution

golden mistBOT
#

@jaunty storm I converted your message into a file since it's above 15 lines :+1:

jaunty storm
# golden mist <@579240967555514371> I converted your message into a file since it's above 15 l...

Helper code (This is brining back the right values in developer and when copied to the code it works):

{% if states('input_select.auto_pot_2_stage') == 'Germination' and states('light.grow_light') == 'on' %}
[{"from": 0, "color": "#db4437"}, {"from": 18, "color": "#ffa600"}, {"from": 20, "color": "#43a047"}, {"from": 25, "color": "#ffa600"}, {"from": 27, "color": "#db4437"}]
{% elif states('input_select.auto_pot_2_stage') == 'Germination' and states('light.grow_light') == 'off' %}
[{"from": 0, "color": "#db4437"}, {"from": 13, "color": "#ffa600"}, {"from": 15, "color": "#43a047"}, {"from": 20, "color": "#ffa600"}, {"from": 22, "color": "#db4437"}]
{% elif states('input_select.auto_pot_2_stage') == 'Seedling' and states('light.grow_light') == 'on' %}
[{"from": 0, "color": "#db4437"}, {"from": 18, "color": "#ffa600"}, {"from": 20, "color": "#43a047"}, {"from": 25, "color": "#ffa600"}, {"from": 27, "color": "#db4437"}]
{% elif states('input_select.auto_pot_2_stage') == 'Seedling' and states('light.grow_light') == 'off' %}
[{"from": 1, "color": "#db4437"}, {"from": 13, "color": "#ffa600"}, {"from": 15, "color": "#43a047"}, {"from": 20, "color": "#ffa600"}, {"from": 22, "color": "#db4437"}]
{% elif states('input_select.auto_pot_2_stage') == 'Vegatative' and states('light.grow_light') == 'on' %}
[{"from": 0, "color": "#db4437"}, {"from": 20, "color": "#ffa600"}, {"from": 22, "color": "#43a047"}, {"from": 28, "color": "#ffa600"}, {"from": 30, "color": "#db4437"}]
{% elif states('input_select.auto_pot_2_stage') == 'Vegatative' and states('light.grow_light') == 'off' %}
[{"from": 0, "color": "#db4437"}, {"from": 16, "color": "#ffa600"}, {"from": 18, "color": "#43a047"}, {"from": 23, "color": "#ffa600"}, {"from": 25, "color": "#db4437"}]
...

fiery ledge
#

please format that post (click edit, select and select <>)

tacit cave
jaunty storm
tacit cave
#

Does config template card support complex objects as an output to a field?

#

that card predates those outputs in normal templating and it hasn't been updated since.

#

Also | from_json is a jinja thing, it's not a javascript thing.

#

so you'd need to use the javascript method to turn a JSON string into an object.

#

JSON.parse(states['sensor.auto_pot_2_airtemp_segments'].state)

jaunty storm
tacit cave
#

I gave you the code..

tacit cave
#

keep in mind you need to wrap it in ${}

fiery ledge
jaunty storm
jaunty storm
fiery ledge
#

nt sure, but if you want the segments to change completely depending on several states I don't think there's another way. I cant completely get what you want or why, but personally I prevent using CTC as much as possible. You might be able to use state-switch, and give that a few options, and set a fixed segements section per those options

jaunty storm
trail siren
#

I'm trying to configure cards using mosquitto_pub and HA discovery, e.g. using topics like: homeassistant/light/living_room_light/config However, my light appears as two lightning icons, whereas all my tasmota devices appear as toggle buttons. What magic property in my config json payload makes it appear as lightning icons vs toggle button? (Talking about the control that sends the commands for ON/OFF, not the icon of the device)

golden mistBOT
#

@quiet tree I converted your message into a file since it's above 15 lines :+1:

tacit cave
#

what do you mean 'it asks'

quiet tree
#

sorry not asked, it points to

tacit cave
#

screenshot please?

lime pike
#

Hi. Before I open a frontend issue, I want to know if there is a bug with the sidebar dashboard : the sidebar on the left is really small compared to the energy dashboard

#

size seems fine when I edit the dashboard

tacit cave
#

There's nothing built into core HA that would provide that layout

#

so you'll have to tell us what you're using to provide a layout like that

lime pike
#

I have no custom layout, it's the sidebar view type

tacit cave
#

Ah a new(er) view

#

clear the cache and reload the page on your browser

#

it's working over here for me

vast crane
#

try safe mode too

lime pike
tacit cave
#

what version are you on? don't want to say it but it's working fine for me

lime pike
#

latest 2024.5.4, HAOS 12.3 on a nuc

#

mmmhhh

tacit cave
#

I'm also running 2024.5.4

#

share your yaml

#

yah, even when adding a bunch of extra gauges and history graphs, it's still displaying properly for me

vast crane
#

I got it

lime pike
#

ah!!

tacit cave
#

or zoom level?

vast crane
#

nothing with zoom

#

it's just kind of responsive, if I make the window narrower it chooses to shrink the sidebar versus the main up to a certain point

tacit cave
#

Yeah I did that and it stayed the same size for me throughout

#

Only the left panel was squeezed for me

vast crane
#

seems related to stats graph

tacit cave
#

ah, I'm using history graph

lime pike
#

do you want me to open an issue?

tacit cave
#

huh, still can't get it with stats graph

#

are you running history explorer card?

lime pike
#

I have no custom frontend theme or card

tacit cave
#

maybe related to monitor resolution then?

#

I'm running shitty old monitors with limited DPI & size

lime pike
#

When I resize the window, size is OK for 0.5s and then it is small again

tacit cave
#

eh, worth a writeup then. Not sure what will come out of it though

#

but karwosts might find it

lime pike
#

👍

lime pike
#

I can confirm that it's only when I add a statistic graph card

fathom wagon
#

y'all are smart people; how do I apply css to a element, and also the #shadow-root?

fiery ledge
fathom wagon
#

I did

fiery ledge
#

there are literally thousands of examples there

fathom wagon
#

I've having difficulties applying to the base element and it's shadowroot

fiery ledge
#

and the docs of Card-mod would be useful to you

golden mistBOT
#

@fathom wagon I converted your message into a file since it's above 15 lines :+1:

fathom wagon
#

@fiery ledge .. I figured it out. .: is the root elemet? (I had no idea, actually)

gaunt eagle
#

May I know how I can change the colour of an icon in the entities card? What will work here?

entities:
  - entity: light.bed_light
    card_mod:
      style: |
        :host {
          color: red;
          }```
hidden needle
#

Can someone point me at how to select the clock-weather-card-today-right-wrap-bottom element with card mod? Just want to set display: none but I really struggle understanding the selectors logic.

dapper pawn
#

Good Afternoon, I am having a problem with LoveLace updating from a file. Someone told me that I need to install the Development front end. Is there a step by step guide for doing this

zenith stag
#

@tribal galleon I'm trying to find out how to render something else than the entity state, in the custom:button-cards state. I think I've seen something like "state_show" or similar. Was it from you perhaps?

zenith stag
tribal galleon
zenith stag
tribal galleon
#

Take a look at the card_mod mega post for the Entities card. There's a couple of ways to handle it depending on what you're trying to accomplish. LINK Working with the icon is towards the bottom on the post.

zenith stag
#

thanks a lot 🙂

final cypress
#

hello, according to everything I've read, this bar card should be yellow and it is not and also i believe the code to be correct, is this a bug?
`type: custom:bar-card
entities:

  • entity: device_tracker.andrew_mug_warmer
    name: Andrew's Mug Warmer RSSI
    severity:
  • value: -100
    color: '#FF0000'
  • value: -80
    color: '#FFA500'
  • value: -60
    color: '#FFFF00'
  • value: -40
    color: '#00FF00'
  • value: 0
    color: '#0000FF'
    attribute: rssi`
tribal galleon
final cypress
tall monolith
#

I don't think you have that configured correctly. Severity should be from: and to: instead of value:

final cypress
#

yeah....no difference.

tribal galleon
#

@final cypress Try making one absolute value template entity and see if it is an issue with negative numbers. If that works, then the easy fix might be to wrap the bar-card with a decluttering-card and have it handle the absolute values so you don't have to make a ton of helper entities. I can look into that when I get home from work. #templates-archived can help with the helper entity.

tall monolith
final cypress
tall monolith
#

that isn't updated

#
  - from:-39
    to:0
    color: whatever```
#

i typed that freehand, with your image too small to read

final cypress
#

oh, yeah i can try it that way too..

tall monolith
#

if they're not integers, you'll probably want -39.9999

#

value is not an attribute available for severity, it requires from/to/color

golden mistBOT
#

@final cypress I converted your message into a file since it's above 15 lines :+1:

final cypress
#

note: i added the extra 9's to be four 9's

tall monolith
#

now try again with color names and no quotes?

#

no quotes around the color name, i mean

#

again though, you have a value in there and that is not a valid attribute for severity

golden mistBOT
#

@final cypress I converted your message into a file since it's above 15 lines :+1:

tall monolith
#

yeah, like that. only -from: -100/to:-100 instead of value. try that

final cypress
#

ah, right

tall monolith
#

if that still doesn't work, then it's the negative value that's the problem. you'll still need the ranges like this instead of values if you do the absolute value trick that d_sellers suggested

final cypress
#

well...it's strange, i get a color change when it's from -100 to 10 and when i put the final 0, then it goes back to not working...

tall monolith
#

maybe leave that one off altogether

final cypress
#

The color looks like it appears behind the bar though...

tall monolith
#

also, it does look like it's an integer so you don't need the .999

final cypress
#

tried doing a set state on it, the color doesn't change so it's just red no matter what the value is.

#

I've read them a bunch, that's why i think it's a bug or something...works just fine when it's not an attribute....or it might be the negative number thing, like you said..

tall monolith
#

it doesn't really say one way or another, but it also has no examples with negative numbers. nearly all of them are percentages actually

#

maybe if you set limit values?

golden mistBOT
#

@tall monolith I converted your message into a file since it's above 15 lines :+1:

final cypress
#

oh!

#

it did something

tall monolith
#

you might need to put max before min

final cypress
#

premature joyelation...

#

It brought the color forward, but ultimately still doesn't work....

tall monolith
#

well, try the absolute value trick then

final cypress
#

ok, I didn't get a response on the template thread, so i'll have to wait....

tall monolith
#

actually

#

try it without any - signs

#

just exactly like you have it already, just drop those

final cypress
#

Back to faded red

tall monolith
#

sorry, you have to swap min and max too

#

the values, i mean

final cypress
tall monolith
#

well, now the value is 0 so I guess that doesn't help... maybe keep it to min -100 and max 0

#

this is how troubleshooting goes, btw, you just try small changes until you get something

final cypress
#

oh...i know for sure...I'm just out of ideas myself with it...

#

it's back to looking functionally normal, but without the colors still

#

it works backwards though, the higher the number the lower the bar, should be the other way...

tribal galleon
#

@final cypress can you pick a different entity with positive values and set the min/max accordingly? This will check your syntax and make sure it is correct. Then, we can dig a bit deeper into working with the negative values.

tall monolith
#

and if you want the bar to fill properly, you can math it to (1/(abs(RSSI))) and then have the min/max be 0/1

#

so it's from 1/100 - 1/1

tribal galleon
#

Will the card accept templates like that?

tall monolith
#

i have no idea how to do that sort of thing, that was just math

final cypress
#

I switched to a system monitor sensor and dropped the '-' and i don't get anything

tall monolith
#

the current value of that sensor is NaN

#

pick something with a value from 0 to 100

final cypress
#

the current value is 2

tall monolith
#

ah, then drop the attribute line

final cypress
#

ah...right

#

ok, that works

tall monolith
#

k

#

gotta go book a flight. GL!

final cypress
#

colors work too

#

I've been able to do this fine with other sensors but it seems with this rssi being an attribute or a negative number or a device tracker or whatever that the bar card is just not havin it...

final cypress
tall monolith
#

Me too

#

It's going to be an amazing trip

#

But this isn't the channel for that

tribal galleon
#

The docs show that an attribute can be used though.

tall monolith
#

just not a negative one. Maybe a different kind of chart

tribal galleon
#

Try using the LQI attribute to see if it works. Usually, if there's an RSSI, there's an LQI which is an positive number.

gaunt eagle
#

May I know how I can change the colour of an icon in the entities card? The bottom changes the title color but not icon

entities:
  - entity: light.bed_light
    card_mod:
      style: |
        :host {
          color: red;
          }```
final cypress
tribal galleon
tribal galleon
gaunt eagle
hidden needle
gray bridge
#

I am trying to figure out how to add items to UI Lovelace Minimalist? I have room zero and living room that was there from the start. I want to add one somehow.

tribal galleon
#

Negative numbers in a bar-card

tribal galleon
lean osprey
#

Is this the correct channel to talk about a problem with dashboards?

dark dirge
#

This one

dreamy shoal
vale vine
#

how can you change integration device's icons?

#

not entities

mystic timber
#

hi, I was wondering if I could make the unlock button a dynamic tile (conditional card)

type: custom:mushroom-title-card
title: Rooms                              🔓
title_tap_action:
  action: call-service
  service: script.unlock_main_door
  target: {}

OR maybe you have another suggestion to make it look better? my goal is to be able to see the Unlock button (which unlocks the door) only when the door state is locked or when script.unlock_main_door is not triggered.

tribal galleon
#

Dynamic tile card options

steep sail
#

What solid methods being used to have a "default dashboard" for ALL users (forced)?

#

Seen "default-dashboard" on HACS.

#

Or is KIOSK-mode the best way?

tall monolith
#

how many users do you have?

steep sail
#

2

#

Same goes with theme really, I always thought this was centralized configurations

tall monolith
#

you set the dashboard per user

#

you set the theme per dashboard

#

i consider it part of provisioning

proven tree
#

I am trying to get the Tesla Custom Integration working but all my sensors for the car and solar say "Not Provided By Integration" anymore.....No upate in HACS, what could be the issue?

#

Odd thing is, on GH, it looks like a very active Repo

untold trail
#

Updated HA, background image is no longer working. L

bleak obsidian
#

Hi guys, i would like to setup something like this, sureillance to the right (AgentDVR local webpage) and to the left a couple of entity card for my solar, how can i do it?

polar kelp
#

You can use the sidebar layout, but that will put the entities cards on the right side.

bleak obsidian
fathom wagon
#

iI've successfully changed the font size (2.5em) of an input select control, but the text is clipped on the top; is there an acual way to change the height of the display element so that the text isnt clipped? ex:

#

the top of the 2 is clipped

tacit cave
#

decrease padding

fathom wagon
#

actually, I found it just now ... .mdc-select__selected-text-container display properties

celest karma
#
type: custom:button-card
icon: mdi:air-conditioner
styles:
  icon:
    - width: 24px
    - color: White
  img_cell:
    - width: 50px
    - height: 50px
  card:
    - background: none
    - padding: 0

Hello, I'm using this code with the button card, integration of hacs, and I want to take the border out of the line. How I can do that? Thank you.

tribal galleon
placid oracle
#

What are the color choices for icons in the horizontal stack cards?

tribal galleon
placid oracle
tribal galleon
golden mistBOT
#

@placid oracle I converted your message into a file since it's above 15 lines :+1:

golden mirage
placid oracle
tribal galleon
#

@placid oracle It looks like the Mushroom cards have their own list of colors. You can see them in the theme.ts. Like khaisilk1910 mentioned, you can also use the HEX value of the color. You could also apply some card_mod to it if you wanted to.

#
card_mod:
  style: |
    :host {
      --mush-icon-size: 60px;
      --card-primary-font-size: 20px !important;
      --card-secondary-font-size: 10px !important;
    }
    ha-state-icon {
      --icon-color: black !important;
      --icon-color-disabled: pink !important;
    }
    mushroom-shape-icon {
      --shape-color: red !important;
      --shape-color-disabled: none !important;}
    }```
#

You can also check out the names and HEX values at w3.org.

placid oracle
#

Thank you all!

untold trail
#

Any idea why my dashboard background doesn't work after the latest update?

#

it's just black now

thorny hedge
golden mistBOT
#

@thorny hedge I converted your message into a file since it's above 15 lines :+1:

tribal galleon
errant ginkgo
#

I am trying to add an image using picture elements to make a dashboard, but the image is not viewable in vscode, and when I put the path of the image it doesn't show up either. What do I do?

lapis arch
#

Is transparent.png transparent? Would explain why it's not showing up in vscode

errant ginkgo
vital burrow
#

image: /local/GIMPFolder/Transparent.png

#

Use /local/ instead of /config/www/

upper dew
#

I know it's not a feature but is there any tricks to hide logbook and history for users? Or just everybody?

vital burrow
#

It is possible to remove them for all. Both integrations are part of default_config:. Removing that from the configuration.yaml would require you to add all wanted parts of default_config: by hand.

tacit cave
#

I have a feeling he's gonna want to have them for admin

vital burrow
#

Otherwise the user itself can remove that part from the sidebar in its profile. Either by clicking and holding the Home Assistant part of the sidebar or the according medu item in the profile

upper dew
#

I noticed that when researching and that would be fine by me as long as it doesn't mess up template sensors and automations? Like if I remove it will it not break stuff?

#

From what I read that method would turn off not only logs but recorder? Or something like that. Would that mean that things will break?

#

I don't care for having logs for admin if the templates and automations all keep working

#

I'm just going to try it and see what happens I guess

errant ginkgo
hidden needle
#

Can someone help me debug this CSS? https://file.coffee/u/ytJHIq2hqeQcj0FHzutsK.mp4
Trying to make the dot fully black. It's properly set black, but a gradient from a parent seems to be messing with the colour. Idk why or how to stop it. I don't see any transparency, and I tried setting z-index too.

golden mistBOT
#

@upper dew I converted your message into a file since it's above 15 lines :+1:

vital burrow
upper dew
#

oh

#

thanks I asked over there

errant ginkgo
#

Is it possible to make buttons sized relative for devices? For example I added these buttons on my pc and they looked fine, but way too massive on mobile

golden mistBOT
#

@celest karma I converted your message into a file since it's above 15 lines :+1:

scenic current
#

Hello again my JS friends. I have a group with some custom devices in it. I'd like to pull the group member name for the first (or any one) that has an attribute that matches 'type':'view_audio' . Can someone give me a hand?

limpid kestrel
#

Anyone had an issue where a tile wasn't displaying the right content even when its been defined?

#
  - platform: mitsubishi_heatpump
    name: "My heat pump"
    hardware_uart: UART0
    baud_rate: 2400
    visual:
      min_temperature: 18
      max_temperature: 25
      temperature_step: 0.1
#

That's how I defined it but it looks like this

#

Doesn't let me control temp at all even though its a supported feature

tribal galleon
#

@limpid kestrel I'm not sure how to go about troubleshooting this but are you able to control the device with service calls or get data from it? Looking at the integration that you linked to, it has not been updated in two years. It's quite possible that the project is broken and/or dead. There are 138 forks available that might work. Looking through some of the closed issues, I found a discussion about the future of the project. https://github.com/geoffdavis/esphome-mitsubishiheatpump/issues/136. The last three posts might be relevant; one of them is by the Dev, one with an alternative option.

sullen sphinx
#

Hi all. Since I am pretty new to HA wanted to ask please what you suggest is the best to keep in the overview dashboard. Everything and then create secondary ones to categories the entities?

vocal zodiac
#

Hi guys, was playing a bit around w Modbus, directly in the configuration.yaml. I've deleted it later, but still some data is visible in the dashboard (pic w the binary sensors). Then I've implemented one sensor again - worked fine, but after restart I have two instances...one good, another one remnant without data

opal geyser
#

so it just have the same friendly name but another entinity id.

#

dashboard will not be editited if some entinity is deleted, just "normal"

lavish mirage
#

is there a way to show friendly names for entitys on the dashboard, ,for example i got a sensor called livingroom_sensor Tempaerature but i rather it just show Living room Temperature

lyric prairie
#

Most cards do default to display the friendly name over the entity_id

lavish mirage
#

how are you naming some of your sensors? because if i had my sensor to the dash, it shows up like this: bedroom_sensor Temperature when my friendly name is bedroom_sensor, not sure how else to name it so i know what it is when i am setting things up

tacit cave
#

bedroom_sensor is the name of your device, and Temperature is the name of your entity

#

you didn't override either

lavish mirage
#

ya so i had it different in the past where it looked nicer with spacing etc.. i was wondering how people have theirs setup to make it look nice.. if they did anything in particular.. i also have group entities with has a bunch of scripts on there, it shows up like a list of fan_off fan_low etc

#

friendly names with spaces and upper and lower cases can never cause a problem in the future correct?

#

if not, i will switch it all back to my old scheme

tacit cave
#

Friendly names don't matter and aren't used for anything under the hood

lyric prairie
#

And as long each entity has an unique_id you can change them freely in the GUI

lavish mirage
#

in a script if u use mqqt public payload it has a topic and there i was using the friendly name

#

example topic: zigbee2mqtt/ir_remote_control/set

#

i tried to change this in the script + z2m but then it stopped working so i reverted it back

tacit cave
#

changing the friendly name on mqtt entities does not impact what topic it's using

#

there's some miss conception that you have

#

not really sure what that is though

lavish mirage
#

so in a script if i had zigbee2mqtt/ir_remote_control/set or zigbee2mqtt/IR Remote Control/set both will work? how does it know what devices to use? should i be using the actual name of the device insteaad of the friendly name?

#

like this? zigbee2mqtt/0xa4c1382660ce0d16/set ? just trying if i can improved my setup it would be wonderful

lyric prairie
#

I think zigbee2mqtt uses the entity_name which is different than the friendly_name

#

Changing the friendly_name does not change the entity_name

lavish mirage
#

ok so just to confirm lemme show you an example i was using:

#
sequence:
  - service: mqtt.publish
    data:
      topic: zigbee2mqtt/ir_remote_control/set
      payload: >-
        {"ir_code_to_send":
        "B/kXAR0sAmcG4BUD4AkBAloCLOACAeApP+AFAeAlP0B7QAPgAQHgAz/AAeAFE+ABL8AX4AsBQBtAAeADB0ALgAOAQwNnBiwCQAHABwEsAuABF0AJwBfAB8AT4A8HB2cGLAIBHSwC"} 
mode: single
icon: mdi:air-conditioner```
#

i was using like that in my scripts the friendly name, i dont remember where i originally learned that but it would be good to know if i am doing it wrong

lyric prairie
#

Although it can be confusing without knowing the backend mechanics since the friendly name is determined when adding the entity to HA on some predefined rules

The friendly_name state attribute is generated by combining then entity name with the device name as follows:

#

But the friendly name can be changed afterwards

lavish mirage
#

under entities ir_remote_control is what is listed for name and switch.ir_remote_control as the id

lyric prairie
#

Maybe Petro can give some better insights

sleek nimbus
#

@lyric prairie do you have any insight into the current status of the minimalist project? It looks like you may have been the last person to merge something.

I’m interested in getting involved in a project to potentially contribute back to, but I’m afraid my current PR and future ones here will go left unreviewed and so my time may be better spent elsewhere.

tacit cave
vast crane
vast crane
#

Can always contribute for HA itself 😁

lyric prairie
sleek nimbus
#

Id love to do that too. Lots of the visual style and functionality I want are in third party projects right now, so while those are getting set up small things I come across can easily be contributed back. HA commits will def come later

sleek nimbus
lyric prairie
#

And to be honest Minimalist should probably undergo a full internal rewrite to coop with all the changes the last year, while most of the Minimalist unique features are already used in the tile and mushroom cards

sleek nimbus
lavish mirage
tacit cave
#

it will essentially make your other entity unavailable, while making a completely new one

#

it's 100% the wrong way to rename

#

Keep the name the same in Z2M, never update it or the seed for the entity_id. Then in HA, change the names on your devices/entities.

lavish mirage
#

ok

tribal galleon
#

@sleek nimbus If there are parts of MinimalistUI that you like, you can always copy the code into your own dashboard. MinimalistUI uses heavily templated custom:button-cards; you'd just need to incorporate the templates. This way also makes it easier to make changes specific to your usage.

sleek nimbus
# tribal galleon <@452690817069613057> If there are parts of MinimalistUI that you like, you can ...

This is true. I started out with Mushroom and moved because there were things I wanted to do that I found difficult with mushroom, but the two have a similar look and feel and could work well together. But at the core I’d like to pick a framework and stick with it as much as possible instead of using a buffet of projects. I’ve learned quite a bit of the arc of mushroom to minimalist to digging into button cards, to making modifications to the code to fit my needs and contributing it back. And of course all of the things I’ve learned here.

sleek nimbus
#

I'm taking a lot of this to heart and experimenting with the tile cards, which somehow I missed and seem great. In doing so I'm also looking at the area card, but I can't seem to modify what lights it controls, or what entities show up there. Is that a limitation by design, or somethign I can control elsewhere?

vague blaze
sleek nimbus
vast crane
vague blaze
#

You can choose sensors and measurements show on the card as well.

sleek nimbus
vast crane
#

I think what it shows is what you get

sleek nimbus
#

And I'm guessing the only way to remove this toggle from appearing is hiding it or removing it from the area

vast crane
#

afraid so

sleek nimbus
#

I'm not even sure what it goes to. It could be any number of things

vast crane
#

You may want something more like picture elements if you really want significant customization.

sleek nimbus
#

Thanks!

vast crane
#

Well I mean the "picture" is the background

#

you can put icon badges on it

sleek nimbus
#

Yeah makes sense. But the name is why I looked over it.

tribal galleon
#

@sleek nimbus Mushroom cards are great but they lack being able to be customized and templating. Can be done with card_mod though. MinimalistUI is difficult to modify if you want to change something. The custom:button-cards are very resourceful in that you can get it to do almost anything and get it to look however you want. I was able to stylize one so that it looks like a Mushroom card. Plus, being able to embed other cards into it is very useful. (That's essentially what MinimalistUI is doing.)

sleek nimbus
# tribal galleon <@452690817069613057> Mushroom cards are great but they lack being able to be cu...

Thanks, yeah, these are all the lessons I learned as well, and expresses the reasons behind the journey I've had so far. CSS and I have enough of a relationship that I don't really want to dive into it more in my free time though 🙃. Ultimately I'm just trying to build something that is pleasant enough to look at and easy enough to navigate with as little scrolling and navigating as I can make it so that my partner will be happy. Ultimate goal is to actually never need a dashboard, but if we do need it I don't want her to be confused, frustrated, or turned off by it.

#

The room card from Minimalist was great because I got four major devices to interact with for each room on each card. She would likely never need anything else.

tribal galleon
#

@sleek nimbus Consider adding pop-ups via Browser Mod. Easy to add a hold action, for example, to show more options/info without the need for navigating or scrolling.
I have a button that toggles a light group with a slider for brightness under that. Holding the light group brings up a popup to control individual lights, automation timer settings, etc.

spark spear
#
type: custom:mini-media-player
artwork: full-cover
volume_stateless: true
icon: mdi:speaker-wireless
entity: media_player.chrome_cast
tts:
  platform: google
  entity_id: media_player.chrome_cast
  service: tts.cloud_say
group: true
info: scroll
replace_mute: play_pause
sound_mode: full
#

I'm trying to broadcast to my Google Chrome tv and not sure why it is not working was told to ask here

split granite
#

You forgot to share the error

#

Ot still says tts google_say not found
Is because you've given the card an invalid config

#
tts:
  platform: cloud
``` is all you need, since you'd said you have `tts.cloud_say`
spark spear
#

Ok I c of I try to send a message it just pretends to search you from Google assistant and does not broadcast what I write

upper dew
#

Is it possible to wrap the text of entities in an entity filter?

#

I have many entities that often don't fit

#

It looks like this:

#

The light was left on all... Problem

upper dew
#

I am going to ask in general in case someone over there might know

tacit cave
#

Do not cross post

zenith stag
upper dew
#

Oh i thought it was okay since several hours had passed and I gave a warning as to not waste anyones time

upper dew
golden mistBOT
#

@celest karma I converted your message into a file since it's above 15 lines :+1:

manic surge
#

where are the yaml files for dashboards? I've set a dashboard up with wallpanel, which has disabled the bar across the top so I can't edit it again 🙂

#

nevermind, I added "?edit=1" to the URL. Now I can edit it.

slim solstice
#

anyone know if its possible to set up a custom button card with a tap_action that plays a local media file (a .mp4 video in this case) on the dashboard/device being used? struggling with wrapping my head around using a media player entity for this when i just want to display the video file on the dashboard or really in a pop-up after tapping the card

devout socket
#

Is there a way to group by label for devices or entities?

hasty ruin
#

how do i limit access for certain users ? (i need some detail im lost rn)

tacit cave
#

on the view, choose the user tab and select users you want the view to be visible for

#

if you're talking about dashboards

hasty ruin
#

OMG ty i found it this is soo good i looked at 6 different forums discussing this issue but no one ever sayed its "fixed" now WOW tysm

hasty ruin
#

works like a charm the logbook and so on is just refusing but that's not too bad

vague blaze
slim solstice
hasty ruin
vague blaze
hasty ruin
#

ok thats true alright ty ima do that

pallid zephyr
#

Creating a dashboard in the visual editor, is it possible to add a grid, and then drag cards which are already on that dashboard into the grid?

hidden needle
#

is it possible to adjust a CSS value for just a dashboard without creating an entire theme? Want to adjust the ha-view-sections-column-gap: 10px for the new sections, since the gaps are too large

hidden needle
upper dew
zenith stag
zenith stag
#

Has anyone been able to change the line color of the Mini Graph Card using templates?
I need to color to change based on a sensor.
I've tried templates directly in the card, and I've read the the themes do not support templates. Do I need to go with card_mod?

lyric prairie
#

You can do that with card mod or when packed in a button card as custom field

upper dew
zenith stag
lyric prairie
zenith stag
slim solstice
#

can anyone help me out, what i'm trying to accomplish is replicating what is on the "Media" page on one of my dashboards. I'd like to have a similar card that is a button, when it's clicked on, the media plays in a pop-up within the dashboard. Exactly like it happens on the media page, just on my dashboard. The filename of this media remains static but the content of the file changes, so using an iframe runs into all sorts of cache issues. Is this possible?

upper heath
#

Hello
i have a dashboard with 3 columns and about 10 rows. in the first column there is only a small picture, is it possible to make the first column very narrow and thus make better use of the space?
So far the whole thing is a dashboard with a “panel” layout and a vertical stacked card with many horizontal stacked cards in it

dull solar
#

is there a built in icon that resembles a solar inverter?

tacit cave
dull solar
#

thanks

slim solstice
dull solar
#

yeah I settled for mdi:lightning-bolt-circle

slim solstice
dull solar
#

weird there are icons for generators but not for inveters

slim solstice
#

yeah, i was surprised there wasn't something more specific for inverters or even a generic rectangle shape with a lightning bolt or something

golden mistBOT
#

@civic brook I converted your message into a file since it's above 15 lines :+1:

#

@civic brook I converted your message into a file since it's above 15 lines :+1:

civic brook
vast crane
# civic brook

Are you using the custom energy selector plus card ?
You need to get rid of it, IIRC it doesn't work at all and breaks all other energy cards for just being installed.

vast crane
#

this thing:

#

you need to uninstall it completely

civic brook
vast crane
#

yes get rid of it. remove it entirely from your installation.

#

it's abandoned afaik and doesn't work