#frontend-archived

1 messages · Page 9 of 1

green raft
#

Does anyone know if it's possible to use an entity attribute (or a template) for the conditional card?

modern horizon
#

Hello everyone, I have a question about the area cards https://www.home-assistant.io/dashboards/area. Is there a way to select a specific sensor that this card should use? I have a 3d printer in the room and I am retrieving the values through the octoprint. But now I am dealing with the issue that the card uses the printer's sensor instead of the normal room sensor i have installed.

charred nebula
#

Is there a way to use state on a chips card to change the color and icon based on its value

green raft
modern horizon
signal bloom
#

hey here, I'd like to follow this guide to install and get lovelace minimal running

#

but I'm already stuck trying to find auto-entities and button card HACS integrations

#

they are not displaying in my list

#

is there a specific repository to add before I can find them ?

vast crane
#

Two things come to mind.
Make sure you're in the frontend section of hacs, not integrations.
And make sure you're using the searchbox that comes up after clicking "Explore and download". The first search box you see on the main page is for searching your currently downloaded and "new" respositories.

charred nebula
#

@signal bloom I gave up following at smart home vids, there is usually a bunch of stuff he assumes you have or skips over stuff to fast, he really need to have a list of stuff you need prior to watching and following. look for another vid if you can, there are some real good guys out there that go and explain better.

#

the main reason I gave up, is about half way through a vid, he said you need these for the next step, and that was another vid all together.

signal bloom
#

hm ok 😦

#

I installed minimalist, but end up with a bunch of missing cards I guess

#

it's actually even worse

#
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/ui_lovelace_minimalist/__init__.py", line 124, in async_setup_entry
    return await async_initialize_integration(hass=hass, config_entry=config_entry)
  File "/config/custom_components/ui_lovelace_minimalist/__init__.py", line 104, in async_initialize_integration
    startup_result = await async_startup()
  File "/config/custom_components/ui_lovelace_minimalist/__init__.py", line 90, in async_startup
    await ulm.configure_community_cards()
  File "/config/custom_components/ui_lovelace_minimalist/base.py", line 280, in configure_community_cards
    content=await self.async_github_get_file(
  File "/config/custom_components/ui_lovelace_minimalist/base.py", line 178, in async_github_get_file
    return decode_content(response.data.content)
  File "/config/custom_components/ui_lovelace_minimalist/utils/decode.py", line 7, in decode_content
    return b64decode(bytearray(content, "utf-8")).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte`````
#

when I restart HA, minimalist is not even starting, I'd need a proper tutorial, text based is better, I agree

charred nebula
#

remove it and reinstall ?????

#

I try and stick with hacs and out of the box

#

then tweaks

signal bloom
#

I followed the guide one more time, checked the checkbox to download the extra dependencies, but looking at this screenshot I think minimalist is not downloading them

charred nebula
#

can anyone confirm if you can use a template on a chips card

#

icon_color: >
{% set state=states('select.mode') %}
{% if state=='Chips' %}
green
{% else %}
orange
{% endif %}

#

this works in templates, but not on the chips card, anyone have any ideas?

blazing wren
#

Does that property on the chips card allow templating?

charred nebula
#

-type: template fixed

#

had it at entity, looking at the wrong part of the code

#

lol

#

DOH!

elfin drum
#

Hi everyone, I am using an history-graph with a climate entity; is there a way to only show the current_temperature instead of the target temperature, current temperature and climate state ? Having 2 climate entities on the same graph makes it unreadable. Thanks for your help.

charred nebula
#

I used card apexcharts-card

#

there you can specify the entity you want+

#

type: custom:apexcharts-card
graph_span: 168h
header:
show: true
title: Temperature Last 7 days
show_states: true
colorize_states: true
series:

  • entity: sensor.openweathermap_temperature
    color: PowderBlue
    stroke_width: 1
elfin drum
candid ridge
#

works fine on tablet

mystic timber
#

hi.
I just hit an update on the HACS room-card and suddenly I don't see the icon colors I had before (if the device state is off there is a color, if he's on there is a diff icon color)

http://pastie.org/p/4V0r1KQr15lPoTzwl9BEvA
What am I missing here?
Thanks for help.

viscid oyster
wooden stream
#

Hello my friends, this card is supposed to show the state of a light entity if it's on or off.
Meanwhile I've been trying to fix it to show the state of multiple lights instead of just the entity one, so on the icon_color: I did some changes, that don't seem to work? What am I doing wrong here? 😦 https://dpaste.org/YO5PJ. Talking about the {% if states('light.candeeiro_quarto') == 'on' %}... part.

viscid oyster
#

same issue: icon_color: |- {% if states('media_player.spotify_accountify') != 'fakestatus' %} green {% endif %}‘‘ dosen't work (should be green)

#

@wooden streamhttps://smarthomescene.com/guides/mushroom-cards-part-2-room-layout-and-card-combinations/ look here it might help

wooden stream
#

I'm extracting that bit from another room card I have, and it works, but I'm probably f- up some code in the middle of it lol.

lyric prairie
#

It will result in yellow if one of the entities is on and in none when off.
I think you are missing an else when none condition is true

lyric prairie
#

Both..

#

Now both your templates specify only a color when any condition is true

#

But you will also need to specify another color when none condition is true

viscid oyster
#

icon_color: |- {% if states('media_player.spotify_accountify') != 'on' %} green {% else %} green {% endif %} }}

viscid oyster
lyric prairie
#

There are two random placed }} in your last line

viscid oyster
#

i removed the 2 closing brackets at the end and the icon_color is still white

#

i think now i have the good formating tho, that's a good start

wooden stream
#

IT WAS THE LAST } lol

#

Oh nevermind, it's pulling the entity state and not the icon_color one

golden mistBOT
#

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

viscid oyster
#

it would be better with the full yaml code

lyric prairie
# viscid oyster

I am not a mushroom guy, but I think you can only use templates in the template chip

wooden stream
#

pulls the state of light.candeeiro_quarto but if I do with light.bedside_lamps the new one doesn't pull the proper state like the one at the bottom.
I stole the code from the one at the bottom to the one at the top and can't seem to fix this <.<

golden mistBOT
#

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

viscid oyster
#

Still the same but i think that's more about mushroom chips ?

brave elm
#

umm hello people i have a konnected panel Interface i wana know how to make a alarm panel to control it better instead of useing a switch to arm

lyric prairie
wooden stream
#

Managed to fix my issue, thank your for the help.
It was crashed code cus everything else was working fine.

mystic timber
#

basbruss is that you from the Minimalistic thread?

buoyant hound
#

And it sounds like you have a functional alarm, it just needs that and some automation glue to give it a panel in the UI.

vapid field
#

Small silly question: what's the best way to go about maybe fixing a "card", i know that's what they are called here in lovelace / HA? (I'm going to get the terminology way wrong). I think I can download the troublesome card itself as a bundled js file and put it in my config/www directory, and from there I was thinking I could maybe tweak it / test changes. Should I look at some "how to make a card" tutorials first maybe? or a basics on how cards work / developer reference? Is there such a thing? (I found https://developers.home-assistant.io/docs/frontend/custom-ui/custom-card/ which seems pretty handy!), Sorry if this ended up in the wrong channel... I tried to premeditate!

elfin drum
#

Hi everyone, is there a way to show the current_temperature from a climate entity on an entity card? Currently, I can only get the state (heating/off) of the entity. There should be a way to get this value without having to manually create a template entity for every of my climate entities. Thanks.

vast crane
deft ginkgo
#

Who can help me out? I'm trying to make my card from my car the same height as the other cards in the middle . ( see red line in the pictere) How to do this. I really can't figure it out.

charred nebula
#

Yay completed my first full card from localtuya entities all the way through to a remotely working Rohnson Airfryer wooot

#

and thanks to @split granite again for nudging me in the right direction.

elfin drum
mystic timber
#

hi there,
I want to add a button that turns on my boiler for 60 minutes, I got already set up in my home assistant.
However in my mobile dashboard I don't want to show all the buttons and make it easier to just press on the icon to make it work.
For some reason it's not making any call service, I can't detect what's wrong.

http://pastie.org/p/5JTdFBUnjV9w4CL0B0Mnsp
also the icon of the button is not showing up.
This is the full card of my switcher device (http://pastie.org/p/3dIx5AVVj7hyByM3MMQlT5) that works - I am just trying to take the 60 minutes button and put it inside my mobile card, but it's not calling the service when I press the button of the missing icon.
thanks for helping.

tacit cave
#

that's not a real service

tacit cave
#

who tf allowed that service

#

if that service exists, make sure you're tapping on the correct area

dark dirge
#

I asked the same thing 🙂

#

BTW, it looks like it supports both data: and service_data::

            hass.callService(
                domain,
                service,
                actionConfig.data ?? actionConfig.service_data,
                actionConfig.target
            );
tacit cave
#

yea been that way for some time now

dark dirge
#

I wasn't sure if Mushroom card did. It's card-specific

tacit cave
#

well, it is paul and he goes by the book

#

I assumed he extended from HA

tacit cave
#

anyways, the tap action looks good, so it's the card or the presser IMO

dark dirge
#

Problem Exists Between Chair And Button

vivid trout
#

ohh busy icon couple of hours for me, 63 added including 5 repaired ones, but most are car brands time for a break lol

mystic timber
#

the service is real yeah lol

#

and let's say I managed to get the service to work, why I can't see the icon of it?

reef arrow
#

I would like to change the position of two texts in a card. Can this be done with a card-mod or will I have to change the card js file ? I use atomic-revive calendar and I need to swap the position of the description text and the relative time text.

vast crane
mystic timber
#

entity_1 is the lightbulb

vast crane
#

what card is this, some custom: thing?

mystic timber
#

room_card

#

type: custom:button-card
with a template of card_room

cold stirrup
#

Hey guys.. I've installed Mushroom from HACs and restarted a few times... but it doesn't show up as a card. I'm using the Docker image.. has anyone seen this before?

dark dirge
#

Did you clear your browser cache?

cold stirrup
#

I did.

#

When I go into HACs I see a red message saying "You have 1 lovelace elements that are not loaded properly in Lovelace"

#

I can't see any other errors, and I assumed the above was because I'm not actually using a card yet?

dark dirge
#

There is a HACS FAQ for that

cold stirrup
#

Found it, thanks. Will go through this

#

Fixed it, thanks for the guidance!

icy fjord
#

HACS ? as I don't recall this happening before. When I go try to add a card I notice it says "After the download completes, since you are not using lovelace in storage mode you need to manually add the resource with these settings" Before I would just download the card, refresh and it would be available. What changed in my setup?

reef arrow
#

Hi, I dont know what I'm doing wrong. I can not change the font size of my entity cards. I tried the normal ones and also the mushroom. No way.

#

At the end of my card I add:

#

style: |
ha-card {
font-size: {{states('input_number.var_fontsize')}}%;
}

dark dirge
#

how are you trying to do it?

#

ok

#

you probably need to surround that template in quotes

reef arrow
#

I also tried with : 120% and 35px

dark dirge
#

"normal" cards don't support stuff like that unless you have card_mod installed

reef arrow
#

I have install and on a glance card it runs like a charm

#

installed^

#

Its easier to show, than to explain 🙂 Here :

#

The entity cards also have the same mod code at the end, but the font does not change

#

card_mod:
style: |
ha-card {
font-size: {{states('input_number.var_fontsize')}}%;
}
.card-header {
font-size: {{states('input_number.var_titlefontsize')}}%;
}

#

what am I doing wrong ?

#

mushroom-template-cards also do not function

#

rest is fine

#

when I reopen the card config, ha adds a null after card mod. It says then :

#

card_mod: null
style: |
ha-card {
font-size: {{states('input_number.var_fontsize')}}%;
}

#

the null is added by ha itself

#

but only on entity and mushroom-template-cards

#

What is also not scaled up are the input box fonts. (180 and 200 in second picture)

#

I tried with : .mdc-text-field__input {
font-size: 200%;
}
for example, but no go

sudden lotus
#

is there a way to work out the config of an auto generated card on the default catch all dashboard?

shell torrent
#

Is it possible to create a template link in a markdown card (for example) that links directly to the more-info?

I would like the underlined entity in the pic to the open more-info dialog directly, without having to go via Dev Tools > States and search for it

fiery ledge
#

using a script, I need the language of the Home Assistant user, however this: let formattedDate = date.toLocaleDateString(navigator.language, options); is always in my computer settings, and not the profile language.

#

when I try this._hass.language or selected_language an 'undefined is not an object' error happens..

#

is there any documentation on how to retrieve that info from the HA config?

#

aware browser_mod.hass.selectedLanguage returns "en" in the inspector, but that isnt the correct format for the toLocaleDateString() which needs "en-US".

signal bloom
#

gents, what light sliding cards are you using ? I'd like to have nice cards with sliders, something that looks good 🙂

lyric prairie
#

The mushroom or minimalist light cards

signal bloom
#

ok I was giving a try to custom:slider-button-card

#

and I'm surprised it do display blue as color by default (gradient)

#

I was expecting it to read the value of my lights colors, but in the end, my basement lights (cave) are not color bulbs

#

I've tried to force this by adding color: gold

#

but it's still blue

lyric prairie
#

No color bulbs will display yellow/orange at least in the above mentioned cards, never used custom:slider-button-card

signal bloom
#

cool thanks !

#

hmmm use state color: true

#

and still it's blue

#

Trying mushroom now

#

but I cannot get it to showt he slider as in your screenshot

signal bloom
#

well yes

#

brightness control is enabled

#

🙂

#

hmmm, could it be because I am acting on a group ?

#

ok got it, my basement light group is a hroup of sonoff on/off switches, actually

#

therefore, no brightness management is possible

zealous jungle
#

Hey, not sure what i'm doing wrong. I'm trying to get the attribute "is_heating" but am getting undefined

          - operator: "template"
            icon: "mdi:fire"
            value: >
              [[[
                if (variables.entity_2.entity_id) {
                  return variables.entity_2.entity_id.attributes.is_heating == true
                }
              ]]]
            styles:
              icon:
                - color: "rgba(var(--color-red),1)"```
lyric prairie
#
return states(variables.entity_2.entity_id).atrributes.is_heating == true
cold stirrup
#

Does anyone know which mushroom card to use for a camera stream? If I use entity, I have to click it to get the stream.. but I'd like the live stream on the dashboard. It looks like they don't have picture entity, so perhaps it's not possible with a mushroom card.

signal bloom
#

If anyone have a solution to allow me to see my IP cameras live, it would be great

#

I only get snapshots for now

cold stirrup
#

If you just add by entity, does HA choose a suitable card for you? Mine work fine if I use picture entity card.. but I can't find the mushroom equivelant.

balmy plume
#

Hi, I want to visualise the location of my phone (Google Pixel 6 Pro with the homeassistant app installed and geolocation sensor activated) in a map card. But all I try results in a map without any datapoints. The entity is called sensor.pixel_6_pro_geocoded_location and it works with other cards but not with the map.

#

Here is a screenshot of the location attributes:

#

And this is what I wrote in the code editor for the map:

type: map
entities:
  - sensor.pixel_6_pro_geocoded_location
dark_mode: false
hours_to_show: 24

But the map does not show anything.

#

I am using Home Assistant 2023.1.5, Frontend 20230110.0 - latest

charred nebula
#

when I was testing it was better to go with the button, this when set to auto will update like every 5-10 secs

#

then when you tap it will open

#

It would be awesome if you could have a very low refresh rate when there is no movement and full video if there is movement detected

vast crane
balmy plume
vast crane
#

The map must not understand that. Other device trackers have one latitude: attribute, and one longitude: attribute.

balmy plume
#

I just found the device_tracker entity but it does not show any data. Maybe I have to enable it in the app somehow. I'll try to find the setting for that.

#

I can not find a dedicated entry for it in the app.

vast crane
#

what do you mean "does not show any data" exactly?

#

does it have a state? does it have attributes? is it disabled?

balmy plume
vast crane
#

Check in developer tools -> states

balmy plume
vast crane
#

yep. hmm not sure why that would be unknown. maybe check that the app has location permissions?

balmy plume
#

Oh, I see. I did not enable the correct sensor. I only enabled "geocoded location" but not "Single Accurate Location" and "Background Location".

#

Thank you. The mystery is now solved.

#

Too bad all the other location data from the other sensor from the past weeks is useless now. But that's okay I guess.

vast crane
#

Well by default it's all purged after 10 days anyway

balmy plume
#

oh, really?

#

Why is that?

balmy plume
#

My target is to never delete anything. I will take a look into the configuration.

#

And I also want to migrate to influxdb soon. I already use it for other time series data.

amber hull
#

Have any browser mod users noticed since upgrading to 2023.1.5 that the size of browser_mod.popup has changed and is about 25% wider on size: normal?

keen vault
#

how can I force a picture-entity image to refresh? I have a conditional card that only shows the picture entity when I have motion at my front door (Ring Camera). While the card loads almost instantly after motion, the image is still old. If I manually refresh the dashboard a second or two later, it has an updated snapshot. I have the picture-entity set to "camera_view: live", but it's still not updating. Am I missing something?

blazing wren
#

That's a combination of browser caching and how long it takes for the picture to be updated. Where does the picture come from?

keen vault
#

The Ring camera (integrated with the Ring MQTT AddOn). I get the delay in updating, but the problem is I can't get the dashboard picture to update on its own. If I manually refresh it a couple seconds after the motion is registered, it works

blazing wren
#

Is it a picture or a video feed? And if it's a picture, what is generating the picture?

keen vault
#

picture. The MQTT integration with the Ring camera updates a snapshot image

blazing wren
#

Manually refreshing tells the browser to look for new data, otherwise it's probably just showing you the image that's in the browser cache (very likely if the entity card is showing say doorbell.png and the contents of doorbell.png are being updated)

keen vault
#

right now I'm using a picture-entity card

polar kelp
#

Why not show the camera instead?

blazing wren
#

Example 3 shows what you want I think

polar kelp
#

The things you have to do when green

keen vault
blazing wren
#

Though that is the tap action. I don't show pictures from my camera on my dashboard

#

I just have a video stream

keen vault
#

trying to use a conditional card to pop up a picture entity whenever there's motion on my small dashboard

#

otherwise the camera view is hidden

blazing wren
#

But as Thomas says, why not a camera feed?

keen vault
#

doesn't seem to work right.. I think that's the way Ring doorbell cameras work

#

can't seem to tap into a live feed like I would for another typical security camera

blazing wren
#

Well you're using an MQTT integration.

#

I'm using Scrypted and it seems to work here

polar kelp
#

I think example 3 is the opposite. It will create a new snapshot file from the camera feed. Or am I wrong?

blazing wren
#

Yes, I think you're right Thomas. 2 hours of podcasting (including 30 minutes about HA), clearly frazzled my brain

keen vault
#

I'll try Example 3 to see if it works (though I want to do it without needing a tap action)

#

thanks for the help!

polar kelp
#

Wait. The example does two things. The camera_view: live looks promising.

keen vault
#

I have that set

polar kelp
#

...assuming it's a camera feed instead of a static url

keen vault
#

doesn't seem to update though, which is odd

blazing wren
#

I suspect it's the MQTT integration you're using

#

It might be worth checking the forums to find out what else people are using

#

I know Scrypted seems to work fine for me

keen vault
#

will do

#

are you using a Ring camera as well?

blazing wren
#

I have one.

reef arrow
#

Hi, is it possible to change the font size of the calendar panel ? Not the card, I know how to do this, I need the panel in the left menu to get bigger fonts. Can this be done ?

grim tendon
#

Does anyone have a link to documentation about the logic behind the arrows on cards in the dashboard? It's doing my head in.

glacial lynx
#

Hello, do you know if there is a way to customize the front end of the energy dashboard ?

vivid trout
#

is there anyway of overlapping icons at all? I know its possible in picture elements card, but is it possible in custom button card

kind cedar
#

I’m trying to change the background colour of a card based on its state eg if the light is on then background green and if it’s off then red. I’ve tried the below code but it doesn’t work. I’m probably missing something simple.

type: custom:button-card
entity: light.hall
name: Home
styles:

  • background-color:
    • state: 'on'
      color: green
    • state: 'off'
      color: red
golden mistBOT
#

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

fiery ledge
kind cedar
#

Brilliant thanks for that basbruss it works perfectly - I’ve spent longer than I’d like to admit trying to get that work!

vapid field
#

is it required to add a resource in the yaml file when installing for instance apexcharts-card? HACS itself doesn't have the integration so I added the file myself in /config/www and added the resource in the dashboard configuration, but the card will consistently fail to load with a Custom element doesn't exist: apexcharts-card. message.

#

Steps are as follows: I tried to install apexcharts through HACS: couldn't do it. Apexcharts doesn't appear in any of the repositories but when then manually trying to add it it complains it already exists.
Gave up on HACS and instead took the .js file itself and placed it in /config/www/apexcharts-card.js myself.
Went to the dashboard resource panel and added a new module of type Javascript and with the resource URI /local/apexcharts-card.js. Then restarted HA and refreshed my browser cache in the mean time.
When HA came back up I tried adding a card of type custom:apexcharts-card, which then complains about the custom element not existing

#

no amount of restarting HA or clearing caches fixes it, and even in a private browsing window it doesn't show up

#

I don't have an ui-lovelace.yaml file to edit, so I'm wondering if I actually need one

charred parcel
#

hey all. i have a lock entity on my dashboard. is it possible to change the button text from "lock" and "unlock" to something else?

pseudo arch
#

Does anyone have a recommendation to make a radial button float? By float I mean that I would like it to stay in the bottom right of the page as a I scroll down the interface for different rooms. I've tried researching this but I don't think I'm using the correct term by saying float haha

urban tangle
#

if anyone knows of a way to add a button to a reed sensor please let me know, instead of it saying "open/closed" for status if the button could just be there that is what i am looking for since the icon has an open/closed garage door already indicating the current state

fading otter
#

Hi
Im pretty new to Yaml and im trying to get the colour of the icons to change when its the day before garbage pick up. Any suggestions for a newbi?
square: false
columns: 1
type: grid
cards:

  • type: custom:mushroom-entity-card
    entity: sensor.skald
    name: Skrald
    fill_container: false
    icon_type: icon
  • type: custom:mushroom-entity-card
    entity: sensor.pap_og_plast
    icon: mdi:recycle
    fill_container: false
tight steeple
#

Anyone know of a card that's just a basic number input field? No name,state,icon or anything

urban tangle
#

anyone know what the issue is here?

dark dirge
#

you tried to use a template where it's not allowed

#

although it looks like it is allowed, so probably just the editor disliking it incorrectly:

icon template (optional)
Defines a template for the icon of the entity.

#

check you config in HA and don't rely on something else to tell you what's right or wrong

urban tangle
#

do i just try to install it?

dark dirge
#

?

#

what are you "installing"?

golden mistBOT
dark dirge
#

you do that to see if your config is correct and don't rely on an editor that thinks it knows what's correct

urban tangle
#

now it does this

#
ERROR Error while reading config: Invalid YAML syntax:

while scanning for the next token
found character '%' that cannot start any token
  in "/config/esphome/garage-door.yaml", line 49, column 8:
          {%  if is_state("binary_sensor.no ... ```
#
button:
  - platform: template
    name: "North Door"
    icon:
      {%  if is_state("binary_sensor.north_door_status", "off")  %}
        mdi:door-closed
      {%  else  %}
        mdi:door-open
      {%  endif  %}
    on_press:
    - switch.turn_on: relay
    - delay: 250ms
    - switch.turn_off: relay```
#

im on day like 30 of trying to figure out how to change an icon in a button lol

dark dirge
#

you removed the >- 🤷

#

also, this is for ESPHome???

urban tangle
#

yes

dark dirge
#

then you're in the wrong server

urban tangle
#

it has to do with the front end not esphome

dark dirge
#

no, it doesn't

urban tangle
#

i thgought cards were frontend?

dark dirge
#

you're defining an icon, but it's not anything to do with the frontend dashboard config

#

that's not a card

#

it's a button

urban tangle
#

what do i need to edit where to just simply change the icon of a button on a card

dark dirge
#

in "/config/esphome/garage-door.yaml", line 49, column 8:
{% if is_state("binary_sensor.no ...

#

what is that doing in an "esphome" directory?

#

it belongs under template: in configuration.yaml

urban tangle
#

ah

dark dirge
#

and it needs to be formatted as a list, as in the docs I just pointed to

urban tangle
#

that will apply to all buttons tho?

dark dirge
#

no?

#

you're defining a single button

#

it seems like you're mixing up a few things

#

I suggest reviewing the link above

#

which means you're way off in the weeds

urban tangle
#

yes

dark dirge
#

there's no indication that it supports a template there

urban tangle
#

u see the icon there ```yaml

Example button configuration

button:

  • platform: ...
    name: Livingroom Lazy Mood
    id: my_button

    Optional variables:

    icon: "mdi:emoticon-outline"
    on_press:

    • logger.log: "Button pressed"```
#

i want that to change based on another entities state

dark dirge
#

you're in the wrong server for this

urban tangle
#

im in that server they said the same thing sent me here

#

because they said it is custom template in HA

dark dirge
#

well, you're talking about the ESPHome config...

urban tangle
#

my esphome device works fine to my knowledge

dark dirge
#

and this doesn't say anything about supporting a template:

icon (Optional, icon): Manually set the icon to use for the button in the frontend.

#

you agree that what you posted is the ESPHome config, right?

#

and nothing to do with HA

urban tangle
#

yes but u are telling me i need to change it elsewhere or no?

#

im so confused

dark dirge
#

I'm telling you that the icon: field does not support templates, based on the ESPHome docs

#

HA can't do anything about that

urban tangle
#

both servers are telling me to go to the other server

dark dirge
#

ok

urban tangle
#

so if u buy a smart bulb at walmart u cant change the icon for that smart bulb?

dark dirge
#

you can't use a template there, it's that simple

#

what does that have to do with ESPHome?

urban tangle
#

nothing which is why im asking what to edit lol

#

it has nothing to do with the device used i need to change the icon for the card based on an entities state

dark dirge
#

there's nothing to edit

#

you can't do what you're asking

#

there's no general answer to that, it's very important that you be specific about what you're trying to do

tidal vale
#

okay maybe i shouldn't ask this here since it's a minimalist thing but i have this tap_action on a card but when i press it i get the following error Failed to call service light/toggle. must contain at least one of entity_id, device_id, area_id

dark dirge
#

you have no indentation there

golden mistBOT
#

YAML is the mark up language used by Home Assistant, consistent indenting (two spaces per level) is key. Here is a primer, and this explains multi-line templates. For validating YAML see YAML Lint.

urban tangle
#

the reed sensor says closed

#

when door opens it says open and the icon of the garage is open like the top one

#

instead of having 4 items on this card i basically just want to put the button press where it says open/closed

tidal vale
#

both don't work

dark dirge
#

ok. you cannot use a template in the ESPHome config as you were attempting to do. If you want to configure how a button appears and acts in HA, you can create a template button that references the one exposed by ESPHome

#

the link above should help

urban tangle
#

ok thats what i need to do

blazing wren
urban tangle
#

i basically want the icon of "North Door" to reflect the status of "North Door Status"

blazing wren
#

But wow was this a rollercoaster to read up until here.

urban tangle
#

so when the door is open the icon changes to an open garage door

blazing wren
#

Template button assuming there's one button that toggles open/close.

urban tangle
#

yes

dark dirge
urban tangle
#

the button is just this ```yaml
button:

  • platform: template
    name: "North Door"
    on_press:
    • switch.turn_on: relay
    • delay: 250ms
    • switch.turn_off: relay```
#
switch:
  - platform: gpio
    pin: GPIO4
    name: "North Garage Door Relay"
    id: relay
    restore_mode: ALWAYS_OFF
    internal: true```
#

which triggers this

blazing wren
#

If you already have a template button then look at the docs for it.

#

I'm 99% sure they have an example with the icon changing.

dark dirge
#

that's all ESPHome stuff

blazing wren
#

The button template looked like HA to me.

dark dirge
#

nope

blazing wren
#

But a HA button template can press a button added to HA.

dark dirge
#

see the link I posted above. "on_press:" and such

#

yes, that's what I suggested

urban tangle
#

ok so i need to edit this in esphome or HA

blazing wren
#

Create a NEW button template in HA following the documentation

#

Put that on your dashboard.

#

And please label configs coming from ESPHome as such when posting them in the HA discord 🤪

urban tangle
#

so custom button card goes in configuration.yaml

errant monolith
#

figured it out

fading otter
urban tangle
#

what is the name of the service to just press a button

urban tangle
#

ffs lol

#

i cant i just wtf is thsi

#
tap_action:
  action: call-service
  service: button.press
  target:
    entity_id: button.south_door
#

"must contain at least one of "entidy_id.."

dark dirge
#

change "target" to "data"

urban tangle
#

failed to call service still

#
tap_action:
  action: call-service
  service: button.press
  data:
    entity_id: button.south_door
#

name is correct

blazing wren
#

What is the YAML for your whole card?

golden mistBOT
#

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

urban tangle
#

now i have the card the way i want it but cant call the button lmao

blazing wren
#

This is mine:

show_name: true
show_icon: true
type: button
entity: button.washing_machine_power
tap_action:
  action: call-service
  service: button.press
  data: {}
  target:
    entity_id: button.washing_machine_power
#

Why don't you just set the show as property for the binary sensor to door so you can skip the label template?

urban tangle
#

because after 4 hours my mind doesnt even work anymore

#

ive coded c++ for 8 years and never in my life have i ever even came close to this much of a struggle

#

i just cant comprehend why the official documentations example doesnt even work

#

is it really this complicated like im actually going insane

#

how do i look at the yaml for the original button maybe i can copy that

#

found it ya its the same spelling and everything

blazing wren
#

The problem is you're mixing and matching between multiple systems, that makes it more complicated.

dark dirge
#

You're reading the documentation for the integration and how it's used in the backend, while you're coding cards in the frontend

#

They are different

blazing wren
#

You did ask what the service was called, but I'm not sure why you're writing raw YAML to create a button card when you can do it all in the GUI

urban tangle
#

omg i got it working

golden mistBOT
#

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

urban tangle
peak flower
#

Anyone know if Input Number(helper) will get similar feature like a light on the new Tile card? Would be great to get a more touch friendly input method for Input number and the slider for lights on the tile card is spot on

golden mistBOT
#

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

vale mortar
#

I've got a very strange problem with an input_select + button card, controlling a few media_player entities. I have an input_select populated with internet radio URLs (currently only 2 entries), and buttons for each media_player, currently all living in a vertical-stack card.

The intended flow is that I select which station I want to listen to from the input_select, then click the button of the corresponding media_player I'd like to start playing that station.

While this does work, in order for it to start playing the station URL I have just selected, I have to push the media_player button twice. The first press starts the media_player with the previously selected URL, the second press begins playing the station I actually selected.

See above post for YAML

polar kelp
#

I thinkyou should take that tap_action and put it into a script instead, and then just call that script from the button.

#

Then you can skip the entire config-template-card and won't have any problems with what updates when.

mortal compass
polar kelp
#

You can set it in a theme

vivid trout
#

hey thomasloven, is there anyway have one custom button card containing 2 custom button cards within it? or place a picture elements card within a button card to keep aspect ration on two different screens?

mortal compass
vivid trout
#

I am trying to make this but keep it within the 1/1 aspect ratio

polar kelp
#

I'm not the developer of custom button card.

#

I don't even use it

vivid trout
#

np, I worked out a fix, grid card with picture elements card and 2 custom button cards in the picture elements card 😛

sweet sail
#

Hi, why media card for device does not show stream information, like radio station, or song name ? When I play same stream in VLC, I can see all information. I use this service with parameters

    data:
      media_content_id: "http://"
      media_content_type: music

Do I have to configure it somewhere ?

fiery ledge
#

just realized the core button card does not execute the button entity upon clicking? Believed it was explicitly designed to do so...```

  • type: button
    entity: button.screen_keuken_my_position
#

is that a bug?

golden mistBOT
#

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

keen solar
#

I need some input, how would you solve the need for a bookmark list? I have so many hosted services on my server, i need a central point to link them all, so i can access them everywhere without looking up the port they are running on or sharing bookmarks over all devices. Is there a UI element that works well for that case? Maybe even with the option to automatically set an icon to the favicon of the page or something like that

#

My HA install is pretty vanilla currently as well, so i guess there are many things to figure out for me in general

lyric prairie
golden mistBOT
#

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

lyric prairie
#

A javascript template to use will look like

volume_level: "[[[ return parseFloat(states('media_player.keuken_speaker').attributes.volume_level) - 0.01; ]]]"
livid oracle
#

Hi, I am trying to open a popup from a chip card that shows how many lights are on. I am using the browser mod. I am trying to use the glance card. Popupopens fine, but always empty. Same glance card in a normal view populates correctly.
Any ideas?

golden mistBOT
#

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

silver zodiac
#

I integrated Zigbee2MQTT and scanned for devices. It found the Sengled light bulb. I renamed it but it is not showing up in HA settings, devices and services, devices. I started asking for help in the Zigbee2MQTT discord but they ran out of ideas. They told me to come here for help. I need help.

calm plover
#

Hi, my button card is completely ignoring the color templates. No error, everything is simply grey. Example:

golden mistBOT
#

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

calm plover
#

This is what I have at the beginning of my file:

#

button_card_templates: !include_dir_merge_named "/config/custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"

mystic timber
#

hi, is it possible to create a new view in my dashboard and if a person clicks on that view button it will navigate him to another view (that in different dashboard)?

lyric prairie
flat widget
#

Hello guys,
I've got a problem with the layout-card. The code for the layout itself looks like this:

grid-template-columns: 1fr 1fr 1fr 1fr
grid-template-areas: |
  "person_x person_x person_y person_y"
  "chip chip chip chip"
  "title_devices title_devices title_devices title_devices"
  "vacuum . . ."
  ...

The cards itself only have this:

view_layout:
  grid-area: person_x

nothing else related to the layout-card.

Everything works fine until I resize under a specific width (especially not working in companion app). From then on column 1 and 2 resize slower than columns 3 and 4. Anyone knows why this could happen or how to prevent it?

#

Forget it. It's because of the 1fr thing...

grid-template-columns: 25% 25% 25% 25%

fixed it. The question remaining to me is, why didn't it work with the 1fr?

polar kelp
#

Could be because fr has to keep recalculating in comparison to each other while % is calculated once in comparison to your screen width.

#

☝️ pure guesswork

mystic timber
#

hi, is it possible to create a new view in my dashboard and if a person clicks on that view button it will navigate him to another view (that in different dashboard)?

flat widget
#

@polar kelp At least it works now 🙂 Thanks for your great work!

flat widget
mystic timber
lyric prairie
#

Then you will need to fill that tab with all state-switch cards, that can identify users

mystic timber
#

If a person click on this icon (which is located in 'Wall Tablet' dashboard) that he will be redirected to a tab that already exist in 'Mobile' dashboard

#
  - theme: Backend-selected
    icon: mdi:robot-vacuum-variant
    path: robot
    tap action:
      action: navigate
      navigation_path: /dashboard-mobile/robot
    badges: []
    cards: []

It's not redirecting me when I click on the icon of the view

calm plover
lyric prairie
primal spindle
mystic timber
lyric prairie
sick marlin
#

Does anyone know how to pull playlist cover art from the spotify integration. I want a button card that plays a specific playlist. I can get it to play but I cant find any documentation on cover art.

charred nebula
#

HEY ALL, ios THEMES DOESNT SEEM TO SHOW BACK GROUND ON THE pc ANY IDEAS?

#

Sorry caps

unique vessel
#

hi everyone

charred nebula
#

hey

unique vessel
#

new to this HASS thing

#

can't wait to set it up

charred nebula
#

IS anyone using iOS Themes - Dark Mode and Light Mode having any issues with the background image not showing? or have any ideas why it would not show, installed via hacs.....

keen vault
#

using the custom:button-card, is there a way to run two different service calls based on state? Problem is that the two service calls need different service data, specifically to either call the media_player.join call if a sonos speaker is ungrouped, or a media_player.unjoin call. The service_data: section varies based on the service call.

dark dirge
#

create a script and call it

#

I don't think it supports more than one action there

keen vault
compact fern
#

I am using mushroom light card to control an mqtt light, and when I set the slider to 100% the card sends a number 80 to my mqtt broker, why could this be happening

tawny cloak
#

Controlling HA using my mobile is slow, too slow to my liking. The slowness being the time that it takes to set up the communication and the screen (after that it is fine).
Every time I want to switch on a light I take my mobile, press the HA icon, it starts, usually it says it needs to refresh the external url, it loads the initial screen, then there's another 'loading data' and screen rebuild and only then it is ready to accept the tap on the light button.
Is there a way to speed this up?

charred nebula
#

are you using duckdns setup? or local

unique vessel
#

anyone knows how to get this bar ?

#

Learning to create my own dashboard right now

tight steeple
#

Is there a way to list all file names in a folder in a drop-down?

cold stirrup
#

I'm trying to make the camera as wide as the the above.. in proportion.. But struggling to fully understand how to position things. The person entities are a grid with two columns, and the camera is a grid with 1 column.

cold stirrup
unique vessel
#

yeah it takes time for sure

#

this is my dashboard lmk what you think

tawny cloak
cold stirrup
vast crane
unique vessel
#

I somehow saw another video of his but from the beginning it didn't match how my HASS worked

cold stirrup
#

I had the same, took some working out to get over the differences in versions.. but you'll get there.

unique vessel
#

You didn't go with mushroom ?

cold stirrup
#

I tried it, I didn't like it so much.

#

I also tried out Dwains Dashboard too.

#

But I like the style of the minimilist UI stuff.. and there are a lot of custom cards

unique vessel
#

true it's the best imo

cold stirrup
#

Will bookmark it 🙂

cold stirrup
lyric prairie
golden mistBOT
#

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

cold stirrup
#

Sure, I pasted everything... sorry if it's too much lol

lyric prairie
#

The indentation of the last grid card looks off

cold stirrup
#

Oh, should it be a grid within a grid?

lyric prairie
cold stirrup
#

Ah yes, true.. but.. if I indent it in.. the camera moves along to the right..

#

This size is great, I just want it below the people

lyric prairie
#

That's just the basic masonry lay-out of HA

#

You can fix that by adding all grid cards into the same vertical stack card

cold stirrup
#

Ooh, let me try that..

#

That takes me back to where I was 😦

lyric prairie
cold stirrup
#

Hmm, that's what I tried.. I'll look closer

#

Oh wow.. that's done it 🙂

#

Thank a lot!! I will look closely to see what you did differently.. but gonna be late for a hair cut so gotta run. Thanks a lot for the help though 🙂

lyric prairie
#

No problem at all 😉

golden mistBOT
#

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

vale mortar
polar kelp
#

If you call a script with yaml service: script.my_script data: variable: value media_player: media_player.tv you can use {{variable}} and {{media_player}} in templates in your script.

fading otter
#

Hi 🙂
Can you customize the deafult box that pop up when you long press a light? I really want it to bring up my phillips hue scenes. All the scenes are entities and I can see then when I look at the specifc light

polar kelp
#

Look up "browser_mod".

pliant kayak
#

I hope I'm in the right channel. I just noticed the plex integration creates a new media player for every time you watch something on the plex webpage in incognito mode. After you close it it is never deleted. i currently have over 50 Browser plex media player, that don't have any connection to anything. Is there a way to delete them automatically or do I need to delete them every time i watch something on plex via Browser?

blazing wren
#

That' an #integrations-archived issue. Turn off discovering new entities, or stop watching Plex in incognito mode 😉

pliant kayak
#

ok thanks

#

oh just fount there is a checkbox for ignoring web clients^^

unique vessel
#

I did everything correctly with the yaml files but the dashboard is empty

#

i feel like I am not creating the home path correctly on the website

fading otter
#

square: false
columns: 1
type: grid
cards:

  • type: custom:mushroom-entity-card
    entity: sensor.skald
    name: Skrald
    fill_container: false
    icon_type: icon
    icon_color: |-
    {% if state.sensor.skald.days_until < 2 %}
    red
    {% else %}
    blue
    {% endif %}

Any ideas why the colors wont work :(?

dark dirge
#

I don't use that card, but this will never work:
{% if state.sensor.skald.days_until < 2 %}

#

is days_until an attribute?

fading otter
#

arh fuck no. Attribute is next_date

#

any recomendation of card then?

dark dirge
#

I'm not following

#

what are you trying to do?

#

the card isn't the problem, your template is

fading otter
#

I see 🙂 so im trying to get the color of the icon to changed the day before garbage is collected.
So based on the given date that is set it needs to change

#

Attribute Description
next_date The date of next collection

#

so trying to use this attribute

#

icon_color: |-
{% if state.sensor.skald.next_date %}
red
{% else %}
blue
{% endif %}

dark dirge
#

right, that's still wrong

#

see that link I posted

#

you're also not testing that for anything 🤷

#

I'm just piecing things together from random posts and code, but you want it to be red if the next_date attribute is within 2 days from now?

fading otter
#

1 day before the pick up date 🙂

#

it gets its date from a helper that just have the dates

dark dirge
#

my guess:
{{ iif(state_attr('state.sensor', 'next_date')|as_datetime - now() < timedelta(days=2), 'red', 'blue') }}

#

but please do read the link I posted

fading otter
#

For sure I will read it. Good to have something to fall back on next time. So I tweaked your code abit, and it seems to accept it. gonna try and see if I can test it with a new helper

#

But thanks alot RobC kudos to you for helping a newcommer 🙂

dark dirge
#

test the template in devtools -> Templates and make sure it's returning what you expect

fading otter
#

not sure how to do that. Ill give google a go

dark dirge
#

just paste it in there

#

nothign to it

#

go there, paste, observe output

fading otter
#

yea, it doesnt change 😦 It might be abit out of my reach for now.

square: false
columns: 1
type: grid
cards:

  • type: custom:mushroom-entity-card
    entity: sensor.test
    name: Skrald
    fill_container: false
    icon_type: icon
    icon_color: >-
    { if(state_attr('state.sensor', 'next_date')|as_datetime - now() < timedelta(days=2), 'red', 'blue') }}
dark dirge
#

that isn't what I gave you 🙂

#

go back and look again

#

and please, use the dev tools like I suggested

#

you're going to have a bad day if you don't follow normal debugging procedures

fading otter
#

It wont eat your code as it is. Let me read up on debugging procedures, before I waist more of your time

dark dirge
#

alright

#

I had a typo, and had to add something to make it work for me:
{{ iif(state_attr('sensor.landscape', 'next_date').isoformat()|as_datetime - now() < timedelta(days=2), 'red', 'blue') }}

#

that works fine for me

fading otter
#

I wish I was experiencing the same success 😄

dark dirge
fading otter
#

yea its returning this
square: false
columns: 1
type: grid
cards:

  • type: custom:mushroom-entity-card
    entity: sensor.test
    name: Skrald
    fill_container: false
    icon_type: icon
    icon_color:red
dark dirge
#

is that the right color?

#

you're missing a space, at least

fading otter
#

it is. based on the test entity i have set

dark dirge
#

excellent

fading otter
#

but the icon isnt changing 😄

dark dirge
#

well, you at least need a space after :

#

and I think you need to use a mushroom template card or something to use templates, but 🤷

unkempt egret
#

does anybody know how to get rid of the play/scrub bar at the bottom of the live feed of the frigate card?

loud finch
#

I'm looking for card like room-card ( https://github.com/marcokreeft87/room-card/wiki/Configuration#actions ) but ideally it would have one action on click (ie. turn light on off) and on long click it would open "dialog window"/modal or whatever it is called, or just "bubble" from the icon, that would show more settings (for the light example color temp. brightness; for ie. hvac it could be setting ... well I guess in case of hvac it would open more settings on regular click)

Is there some like that?

keen vault
#

why would my custom-button card icon color not change when using color: "[[[ return 'green';]]]"? (trying remove the coding element from this to troubleshoot). If I replace with green, obviously it works just fine. I have working code to change up the call_service value, but color doesn't seem to want to stick

flat widget
#

Hello guys, I'm currently playing with auto-entities to automatically add entities to my dashboard when I add them (I'm moving in the next to years so this will come in handy)

Is there any way to pass more variables from the filled entities? I see there is a "magic value" this.entity_id but I need something like friendly_name or other attributes from the auto-filled entities.

faint vortex
#

Hey, is it possible for me to add an iframe using the docker version how the OS version adds them for the addons?

Just need to know where to look to be able to add something like this if at all possible, thanks!

golden mistBOT
#

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

unique vessel
#

Hey guys, I was trying to use MinimalistUI and I am finding difficulty

#

I setup the yaml files but somehow the dashboard is empty and i don't know what I have missed

#

this is the path in my yaml file : path: "home"

#

I created a dashboard with that path but it still is not showing anything

unique vessel
#

this is my yaml file

unique vessel
#

but when I go to the Minimalist T dashboard I don't have any views at all and it's empty

#

of course the Home file is filled up :

primal onyx
#

Sambanas

unique vessel
golden mistBOT
#

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

viscid oyster
#

Hi, I have a problem with mushroom cards
But only with my lenovo smart display, on computer iOS and other android devices it works well even outside of my home on new devices (not a cache problem)
Any ideas ?
Here is my config for my dashboard :

#

thing is, it was working on this device before, do i know that it's not a limitation of this device somehow but something that changed in the config i guess

#

but for me everything look alright

#

on hacks: mini-graph-card (only card working on the lenovo hub) + mushroom integration, below UI Lovelace Minimalist Settings:

#

its been days and i don't have a clue about whats wrong lmao

lyric prairie
unique vessel
#

bruh

#

I re installed everything just for that

#

xD

#

let me check

umbral harness
#

Name a better duo coders having issues and a single missing character

unique vessel
#

i saw tutorials online but i can't see the hyphen

sweet sail
#

Hi, why media card for device does not show stream information, like radio station, or song name ? When I play same stream in VLC, I can see all information. I use this service with parameters

    data:
      media_content_id: "http://"
      media_content_type: music

Do I have to configure it somewhere ?

golden mistBOT
#

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

cold stirrup
#

Oh sorry about that.. too many lines. 😦

#

In case people don't have time to download the text file.. I'm trying to change the background color for a binary sensor card to change based on the state... I think I'm most of the way there with ``` styles:
card:
- background-color: >-
[[[
if (states[variables.camera.state] == "open") {
return 'rgba(var(--color-background-red), 0.2)';
else
return 'var(--ha-card-background, var(--card-background-color, white))';
}
]]]

#

But perhaps I'm putting the styles part in the wrong place? Because now the card does not show up.

dark dirge
#

what does variables.camera.state resolve to?

cold stirrup
#
        columns: 1
        square: false
        cards:
          - type: 'custom:button-card'
            template: card_binary_sensor
            variables:
              ulm_card_binary_sensor_alert: true
              ulm_show_last_changed: false
              camera: cover.smart_garage_door_2203188494090036103248e1e98c0b2c_garage
            entity: cover.smart_garage_door_2203188494090036103248e1e98c0b2c_garage
dark dirge
#

you can't just add ".state" to that to get the state of that entity

cold stirrup
#

Oh 😂

dark dirge
#

this whole part is weird:
states[variables.camera.state] == "open"

cold stirrup
#

If I check the state of that entity though in states.. I see open or closed.

dark dirge
#

you want states[variables.camera].state == "open"

cold stirrup
#

Oh I see, you're right.. that would make more sense.

#

Still failing though.

#

Now I'm seeing an error.

dark dirge
#

you have an opening { and then way later the closing }

cold stirrup
#

line 17, column 9 could not find expected ':' in line 18, column 11

dark dirge
#

it's broken syntax

cold stirrup
#

Ah yes, the brackets maybe not needed

dark dirge
#

you either need to put each on a single line, or fix the matching {}

cold stirrup
#

I thought this may be correct, but I'm still getting an error - background-color: >- [[[ if (states[variables.camera].state == "open") { return 'rgba(var(--color-background-red), 0.2)'; } else { return 'var(--ha-card-background, var(--card-background-color, white))'; } ]]]

dark dirge
#

you also need to fix your indentation

#

example from mine:

    styles:
      icon:
        - color: >
            [[[
              if (entity.state === variables.normal) return "green";
              else return "red";
            ]]]
cold stirrup
#

Ah nice. I tabbed it in and now the error has gone.

#

Awesome!! That works great! Thanks for the help there.

#

It's really helpful to have the card red if the garage door is open!

#

I thought I'd add an 'OR' for "opening" to have it turn red immediately...

#

I was assuming OR would be || ?

#

if (states[variables.camera].state == "open") || (states[variables.camera].state == "opening") {

dark dirge
#

it's Javascript

#

and that's not correct syntax

cold stirrup
#

Ah cool. Thanks

dark dirge
#

remove the ) ( from the middle

cold stirrup
#

Nice, working now. Thanks again.

#

Took some inspiration from your example. Turns out I didn't need to add the variable at all. I can just use entity.state

timid beacon
#

Is there a way to display an entity with auto-entities based on the state of a different entity?

gentle grail
gaunt birch
#

hi, any idea on how to customize open/closed icon for an entity ?

#

i'm using mqtt integration, i have "icon" in the configuration but nothing for open/close difference

timid beacon
gaunt birch
#

can we customize our own class ?

timid beacon
#

I don't think so. I think there are specific icons tied to different device classes

gaunt birch
timid beacon
#

Ah yeah, that is a perfect illustration of how it works

#

Either the integration would need to allow you to set the icon via template or the card you're using to display it would need to

gaunt birch
#

set the icon via template ? mmm i'll search this

#

ah, but i need something like icon_template

timid beacon
#

Here's an instance of doing that with a card

gaunt birch
#

ok

timid beacon
gaunt birch
#

yeah but i need a icon_template in the configuration file

shadow rock
#

I am a complete newb to HA. I am running a docker with HA and it doesn't seem to be updating properly. It will not update past 2022.12.8

gaunt birch
#

i'll do a feature request

timid beacon
#

Yeah unfortunately not all of them support it

gaunt birch
#

i understand 🙂

rocky bobcat
shadow rock
#

@rocky bobcat I did already

#

thank you

thorny echo
#

Hey HA community, I'm trying to recreate the functionality of the LIFX app where when you press on the power button on a light, it brings up a timer to select how long you want to fade out for. I have the helper created with the minimum and maximum values, but beyond that I'm not sure how to create this. Has someone else done something like this? The closest thing I can find is https://community.home-assistant.io/t/light-fader-by-transition-time/99600/35 but I'm not quite sure I can follow how this works, and it also doesn't seem to take advantage of the native fade in or out function. Basically, I'm just wanting to call up the slider, take the value from the slider and pass it into the transition part of the YAML file

glossy bough
#

Hi all. I'm trying to create a wildcard button that takes the user to the appropriate page for them. The names of the bedrooms are set up as /lovelace/users-room, and I was wondering how that might be possible. I'm struggling at the moment to insert the username into the address of the page to navigate to. Does anyone have any ideas as to how I could achieve this? Many thanks

glossy bough
#

This is what I have at the moment:

#

Please do ignore the hold and double-tap actions for now

tidal dirge
#

If you don't need any literal ' characters in the output (which I think not? I don't think Lovelace allows that in dashboard names) then you probably want "/lovelace/{{user}}s-room". That's assuming that field allows templates, which I didn't check, just the template syntax

#

Though I'm also not sure exactly where user comes from here

glossy bough
#

@tidal dirge Thanks for the help. I wonder if there's a better way for me to approach this?

tidal dirge
#

Hm, perhaps you could set up a conditional card? I'm not sure if the logged in user is available there, looking at that now

#

(I didn't find anything. Perhaps someone else will have a good idea though)

glossy bough
#

Ah well thanks for looking

fiery ledge
#

anyone around using Kios-mode And subviews, and also noticing the subviews actualy still showing the menu items even though setting:```
mobile_settings:
hide_menubutton: true
hide_overflow: true
ignore_entity_settings: true

viscid oyster
#

{% if is_state('person.x', 'home') %} sensor.kicthen_atc_2_temperature ..

#

Hi,

#

how can i show an entity status in a if statement ? instead of showing pure text

crisp rapids
#

Any idea why this isn't working on custom button card

type: custom:button-card
entity: input_select.test_optie
tap_action:
  action: call-service
  service: input_select.select_next
  data: {}
  target:
    entity_id: input_select.test_optie
double_tap_action:
  action: call-service
  service: input_select.select_previous
  data: {}
  target:
    entity_id: input_select.test_optie

Cannot service input_select/select_previous niet aanroepen. must contain at least one of entity_id, device_id, area_id.

But does work when using button card in love lace?

foggy flax
#

Is there a way to limit access to certain things on the dashboard for other users? For example I don't want person B to control person A's light through the dashboard

crisp rapids
#

You could use custom state switch

#

Build your dashboard upon selected user

foggy flax
#

i dont understand?

flat widget
foggy flax
#

i see

foggy flax
crisp rapids
#

It does for me

earnest perch
#

Is anyone using UI minimalist's light popup? I added ulm_card_light_enable_popup to the light card, but can't get the popup to show in any way

#
              - type: "custom:button-card"
                template: card_light
                entity: light.living_room_ceiling_light
                variables:
                  ulm_card_light_enable_slider: true
                  ulm_card_light_enable_popup: true
lyric prairie
#

Have you installed browser modV2 ?

earnest perch
#

I think so?

#

It doesn't show up under Developer Tools -> Services so might have messed something up

#

Ah, I had to enable the integration 😅

#

Now it works, thanks @lyric prairie!

idle current
#

this might be a weird question but I couldn't find exact resources to find an answer. Is it possible to have a dashboard main page like this : I want the buttons on each room to trigger a short video (basically a transition animation from overhead view to individual room) and after that another dashboard page (room specific with more details). If the answer is yes could someone point me towards the right documentation or examples? thanks in advance!

compact pebble
#

I am having trouble configuring the minimalist ui adaptive dashboard right side popup. I can see the cards fine, but on tap it toggles the device instead of triggering the popup. Also when is the adaptive tap action required? my popup.yaml (https://pastebin.com/WMN1teWP) my main.yaml (https://pastebin.com/ciHMkRch)

frigid cave
#

I finally updated HA core and OS tonight, and now these gray borders appear everywhere. Any idea how I can remove?

frigid cave
#

Figured it out!

lyric prairie
compact pebble
stuck saddle
covert lava
#

If I want to start a new custom card, is the boilerplate card still the best place to get started?

halcyon mantle
#

How can I get a sensor to wrap the text that it will display on multiple lines?

rugged venture
#

Hey Guys,
does anybody of you know if it is possible to change the sting shown in a Person badge at the top of the Dashboard?
It ccurrently says "Home", but im using HJomeassistant to automate some things in my small bussines. So i'd like it to say something like "Present".

blazing wren
# rugged venture Hey Guys, does anybody of you know if it is possible to change the sting shown i...

https://www.home-assistant.io/integrations/zone#home-zone
As it says, customizing the home zone in the UI is not supported, but you can make some changes in the YAML.
That said, for what you want I would create a simple #templates-archived sensor, or use something like the Mushroom Chips with auto-entities to just show the people who are "present"
https://github.com/thomasloven/lovelace-auto-entities
https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/chips.md

rugged venture
blazing wren
#

Install HACS, you will definitely appreciate it 😉

rugged venture
#

I have it in my personal Instance but not in the Business. As by now i've only ever installed 2 HACS Packages, i thought i might omit it there. But now as i like to try Mushroom i'l definitely get it 😄
Or maybe try it at home first 🤔

sturdy bough
#

Hi guys, i've starte using custom button card. It's really nice, but i can't figure out why stiles are not applied to a button that is not from a switch, buta a template sensor. The sensor retturn the washer status in a text format, and the button ignores all styles. If i switch the entity from the sensor to a switch, the button renders with all stiles applied.

foggy flax
#

I've asked if there was a way to control which user has access to certain cards, but I only got to know how to make different cards per user, but I'm lazy (xD) and I don't want to redo it every time I'm adding something new. Is there a way to define users who can interact with it? Like just a list without duplicating cards for each user?

carmine talon
rancid vortex
#

Hi,
Comment dois-je m'y prendre pour avoir des colonnes dans mon Dashboard? Je n'arrive pas avoir un résultat correcte.
Voilà ce que j'ai (backrground white) et ce que je voudrai avoir (background dark) :

blazing wren
stark dagger
blazing wren
rancid vortex
stark dagger
blazing wren
blazing wren
nova bloom
#

is there any way to have notifications show in a card? im using nspanel pro and it will not display notifications via the OS

vocal kiln
#

an empty Entity Filter Card (or a Conditional Card whose conditions aren't met) still takes up just a teeny tiny amount of space, even when show_empty is set to false. where would the right place be to open an issue for this?

fair pulsar
#

Hello, is it possible to modify the opacity of a background-image ?

#

its in a template of button-card so modifying opacity alone set everything, button include but I would love to modify only the background-image

tender pine
#

i'm trying to add a custom background to my dashboard i added the

    background: center / cover no-repeat url("/local/wallpaper.jpg") fixed

in the raw editor It does not work but when i use the full url to the wallpaper it does work
the wallpaper is locally stored in the media folder.

lyric prairie
pure roost
#

Did you end up finding a flexbox layout card?

wintry lotus
#

If I want to be more in control of the way Lovelace looks (and in particular show more buttons on a screen with less white space) but I don't really fancy fiddling with yaml directly, is there a plugin or similar for me?

cold stirrup
#

I'm having some trouble getting a card to become the correct size.

#

I need the card to fit the map.. but, I can't seem to get it to play ball

#

Anyone got any ideas? 🙂

halcyon mantle
#

How can I get a sensor to wrap the text that it will display on multiple lines?

#

I have tried this, but it seems to have no effect - Any help will be appreciated...```
style: |
.entities .entity:
$: |
.name {
text-overflow: unset !important;
white-space: unset !important;
}

cold stirrup
#

wordwrap(50, true,"§")).split("§")[0]

#

In the sensor template.

halcyon mantle
#

Thx! but that is a bit over my head 😳 Do you perhaps have an example to assist me in figuring it out. My template look like this: ```
state: "{{ state_attr('sensor.babybuddy_previous_change_01', 'notes') }}"

#

I am using template-entity-row. Here is the full entry:```
- type: custom:template-entity-row
icon: mdi:clock-outline
name: Notes
state: "{{ state_attr('sensor.babybuddy_previous_change_01', 'notes') }}"

cold stirrup
#

Try that

halcyon mantle
#

Thank you! Let me try it...

#

@cold stirrup Thank you so much! It worked perfectly - Appreciate the help... 🙏

#

Not 100% sure what all of it means, but I will try and make sense of it using google...

carmine field
#

I turned "take control of dashboard" on awhile back. Where was the button to turn it off?

compact fern
#

I am trying to make a two separate columns with differente cards, but the second column goes under the first one, I tried using layout card but I wasnt able to make it work, any help with it?

compact fern
#

I wanted to have each one on a single column

foggy flax
#

oh idk

compact fern
#

No worries, thanks 😄

onyx bronze
#

howdy all.
I have a picture entity card for my cameras around my house and i was wondering if there's a way to blow up the image when i click on it?

right now it just shows a standard size for all of them and it's not really all that much larger

vast crane
keen girder
#

I've got a camera entity that shows up on my dashboard, but it seems to only show a still image and not a live feed. I tried making another dashboard, editing it, and setting the "Camera View" setting to "live", but it still seems to be a static image. Anything else I should try?

keen girder
#

nm, I was able to figure out the problem

static grove
#

Can people share there person card? That u use with battery from phone and watch?

carmine talon
frigid cave
lyric prairie
golden mistBOT
#

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

upper heath
#

How do i add a custom entity icon?

signal bloom
#

gents, can I force a mushroom light card to display brightness control ?

#

show_brightness_control ?

#

I have several grouped switches that obviously DONT have brightness control capability, so even with brightness control on for these groups, the slider is not showing up.

#

and its not nice to look at on my dashboard

#

I'd rather see them all wit the slider, just for aesthetics. Now there are larger and ticker cards...

errant turret
#

Hey guys - any idea why my state icons are set to --paper-item-icon-color rather than something attached to state? I've read some posts but its hard to find the info I need around everyone blowing up over change. I've added the state_color: true at the root level of an entities card.

lyric prairie
deep oasis
#

Is there a way to mark certain devices to not be able to be turned off on the default overview dashboard without building a custom dashboard? As an example, when I turn off the Office, I'd prefer all my 3D printer stuff to stay on. All of those switches are from a TP-Link Kasa power strip.

blazing wren
#

I personally created a separate area for my 3D printer

#

Same with the wardrobe in my bedroom, etc. Any unique "sub" areas.

umbral harness
#

it's not as scary as it sounds

blazing wren
#

Create a new dashboard, and do it on that 😉

deep oasis
#

Yeah. I figured that was the answer 😦

blazing wren
#

You don't have to start from an empty page

#

The separate area as I suggested is a workaround

deep oasis
#

I know. I've been using Home Assistant for awhile, so I'm quite comfortable with that. This was a new home assistant install after the memory card on my last one died and this is how I learned that I really need to backup to my NAS.

timid beacon
#

Are there general strategies for displaying multiple icons at the same time where one icon would typically be?

#

Sorry, I know that's a broad/vague question, but not sure what's out there. I like to be as terse as possible on my dashboards. For instance, to display charging status of my mouse I'd use a batter icon and a mouse icon.

keen raven
#

is there a way on a gauge card to make the min/max value the result of an entity? i.e. I am trying to make a gauge with either the max or the severities fluxuate based on the octoprint target temps

umbral harness
#

If your temps are fluctuating on your tool head you need to run a pid tune, check wiring, or replace thermistor fyi

keen raven
#

mine arent, just building certain automations related to tool temp and a nice gauge is good to have for heatup and shutdown but temps change based on material. trying to make a nice dashboard for the printer

#

i can always use some generic temps but was just wondering if there was a way to take it from the entity octoprint sends over

keen raven
#

i guess i could make a card for each material then conditional them on the temp sent over from octoprint 🙂 always many ways to do something it seems

vast crane
keen raven
gentle quartz
#

Is there any way to simplify the development of a dashboard?

I have the following dashboard code:

golden mistBOT
#

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

gentle quartz
#

The two thermostats are basically the same thing but just with different entitiy IDs. Same layout, same buttons, everything

#

it feels like I should be able to write that once, and then somehow be able to adapt it by passing it an entity ID

lyric prairie
#

You could use yaml anchors

opal crown
#

Anyone know if I can disable the exploration in the history-explorer card (HACS)? I just want to use it as a better history graph card and want to reclaim the screen real estate from the date and entity options. I can't seem to find the disable option in the docs.

golden mistBOT
#

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

tender pine
#

Any advice?

covert wren
#

I have a derivative sensor that tracks a temperature change over time, but it displays the temperature as just a number over time—without indication that it’s degree Fahrenheit. Is there any way to get it to respect the unit of measure of the original sensor?

#

I think I used to be able to assign a device class via customizations but that seems to no longer be an option.

dark dirge
covert wren
#

The source sensor has a device class of temperature but seems to be ignoring that. I must be missing something.

dark dirge
#

Maybe give it a unit_of_measurement

covert wren
#

Yeah—trying that now.

#

That did it!

quaint snow
#

I've been using a button with some templates in it for the name, so it changes depending on state, can you achieve this through the mushroom cards?

Example:

name: |
  [[[
    if (states['binary_sensor.home_assistant_versions_update_available'].state === 'off') return "Current";
    else return "Updates";
  ]]]
fiery ledge
#

use the mushroom-template card and use jinja templates```
- type: custom:mushroom-template-card
primary: >
{{state_attr(entity,'friendly_name')}}
secondary: >
{{states(entity)|title}}
icon: >
mdi:{{iif(is_state(entity,'on'),'coffee','coffee-off')}}
entity: switch.espresso_keuken

#

check the thread, I posted that 16 minutes before you 😉

obtuse void
#

Hi all, I have something that I want to do and don't know how.
#energy-archived #dashboard #statistics

For electricity (or energy) consumption, there's this nice dashboard out of the box where you can compare a period of consumption with the previous period (e.g. this week vs. last week).
Looks like this:

spice wedge
#

I moved all my mqtt devices to areas and now my dashboard gives:

TypeError: e[0] is undefined
kindred anchor
#

Does anyone have a good template for for ecobee thermostats using the simple thermostat lovelace card?

maiden drum
#

hey everyone. I am working on setting up my Konnected alarm with my MA and I am having trouble getting the card to display the number pad for the code. Here is my YAML code
alarm_control_panel:

  • platform: manual
    name: Home Alarm
    code: "00000"
    arming_time: 30
    delay_time: 30
    trigger_time: 180
dawn acorn
#

What about the yaml for your card?

maiden drum
#

type: alarm-panel
states:

  • arm_home
  • arm_away
    entity: alarm_control_panel.home_alarm
cobalt gale
#

someone can help me to find this feature in code?

vast crane
#

please dont cross post questions to multiple channels.

blazing wren
#

And if you need to find it in the code, you need #devs_frontend-archived. But free tip: Try the translation strings 😉

maiden rampart
#

Hi, I'm trying to use the temperature controls with an mushroom card, but it doesn't show me the slider when I enable the feature. I'm using WLED as integration with SK6812. It works with light groups that contain Phillips Hue strips, but the set color temperature does not account the white channel, only color.

elder badger
#

Good evening,
just a quick one: Is there a way to customize the login page and if so, could you point me in the right direction?

polar kelp
#

Not really, no.

elder badger
#

That's sad. Well, maybe one day...

umbral harness
#

are you talking about rebranding to package and sell it?

viscid oyster
#

hi, help or i will be cold for the night 🤣

#

so my target temperature is 24, thermometer at 20.3

#

heater not heating on generic thermosat

mild veldt
#

Doesn’t sound like a frontend issue

viscid oyster
#

i think i've found the reason, but i am not sure

#

heater: select.livingroom_heater_cable_outlet_mode

#

i use this entity for heater control instead of the switch entity

#

with those different states available

#

is it compatible with the generic thermostat or is a binary switch the only way to do it ?

mild veldt
#

Is that the tile card or the custom one?

viscid oyster
#

i don't mind having those modes

viscid oyster
blazing wren
#

Then a template switch would work better probably

viscid oyster
#

yeah i was thinking about that

#

switch as X right ?

blazing wren
#

No

#

The template switch 😉

viscid oyster
#

okay so it should look like that if i got it correctly

#

so there's 1 entity for the On and another one for the Off State

blazing wren
#

Yes, but do you have two entities for switch bedroom comfort on and off?

viscid oyster
#

but i remembered that switches only have 1 entity from which you can turn on or off

dawn acorn
#

your device doesn't look correct in the template

blazing wren
#

What does your entity look like right now?

dawn acorn
#

test your templates in dev tools

viscid oyster
#

the target entity id should be related to the heater entity, i thought it was a name for the switch

viscid oyster
#

target:
entity_id: bedroom_heater_device_mode state: "comfort"

#

i guess something around those lines

dawn acorn
#

you don't have an entity type

viscid oyster
#

bedroom_heater_cable_outlet_mode has 6 possible states

#

how can i call the right one then

dawn acorn
#

you're typing in your entity name instead of id, I believe

#

I wish the dev tools didn't hide the entity id once you select one

#

in states

#

scroll down below and use the filter

viscid oyster
dawn acorn
#

it should be like climate.bedroom_heater_cable_outlet_mode

viscid oyster
#

are you sure it has an entity id ?

polar kelp
#

Stop

viscid oyster
#

it should be written under the attributes sections right

dawn acorn
#

runs

polar kelp
#

Why are you using a select at all? The thermostat entity has comfort and off already.

viscid oyster
#

okay so for the generic_thermostat a switch isn't mendatory

#

it can deal with entities having multiple options like comfort etc ...

#

i am not really sure about that taht's the thing

polar kelp
#

What the generic thermostat does is it takes a switch (e.g. one connected to an electric heater) and a temperature sensor, and makes it so that if the sensor registers a lower temp than the set one the heater turns on and vice versa.

#

Does that apply to your use case?

viscid oyster
#

yes i have a temperature sensor which is now working with the generic_thermostat

#

but i have trouble setting up the heater on/off

#

as it's not a switch but multiple modes

polar kelp
#

Then heater: should be the switch entity, e.g. switch.my_electric_heater

viscid oyster
#

that's what we where doing but:

polar kelp
#

How is it multiple modes?

viscid oyster
#

you see

polar kelp
#

What is the hardware you have?

viscid oyster
#

well i think i should mention that frist

#

in france we have what we call the "pilot cable"

#

tldr cable that sends a signal to control your electric individual heater

#

using a pilot wire allows you to control the state

#

but:

#

you have 5 heating modes

#

and off

polar kelp
viscid oyster
#

= 6 states possible

polar kelp
#

Otherwise it is not a generic thermostat and you should abandon that track.

dawn acorn
#

yep, we are on the right track. your yaml does not specify the entity type. go to template in dev tools and you'll find the templating you are trying to use does not work

viscid oyster
#

it is because i want the comfort mode to be the on has controlling the on state through a switch template

dawn acorn
#

bedroom_heater_cable_outlet_mode is not an entity id

#

not a full one

viscid oyster
#

yup that's the thing

#

and about the state as you said

#

i can't use it because it requires pilot wire to be off

#

But i need to control the heater using the pilot wire, else you can damage it's internal electronics

#

so i want bedroom_heater_cable_outlet_mode -> "comfort" to be a switch in order to add it to the generic_thermostat

polar kelp
#

Ok, here is what it sounds like to me.

#

I would expect that if I had an outlet that I could set to a "comfort" mode it would somehow measure the temperature and turn on and off the heater automatically to keep a comfortable temperature when that mode was active.

viscid oyster
polar kelp
#

Which is exactly what the generic thermostat does if that is set to "comfort" mode by measuring the temperature and turning on and off the heater to maintain a comfortable temperature.

dawn acorn
#

you showed me a screenshot of a full id. select.livingroom_heater_cable_outlet_mode

viscid oyster
polar kelp
#

But what you're trying to do is have the Generic Thermostat turn on and off the comfort mode of the outlet such that you get two controllers actively sabotaging each other?

viscid oyster
viscid oyster
dawn acorn
#

by checking if the mode is on comfort or not off

blazing wren
#

Take a screenshot of the device page for us and share it via Imgur

viscid oyster
#

okay then i think i got it

#

it should look something like this

blazing wren
#

The device from Z2M that is

#

But if you already have a switch for comfort, why are you creating a template switch?

dawn acorn
#

that is still not a full entity id 😐 I'm going to let the green people take over. 🙂

viscid oyster
#

okay take 2

#

this time it should make more sense

blazing wren
#

bedroom_heater_cable_outlet_mode is not an entity id

#

It's part of an entity id, but it is not an entity id on its own

#

It's just lonely text

polar kelp
#

First of all: The first response you got was correct: <#frontend-archived message>
Second of all: This sounds like the wrong solution to the actual problem.
Third of all: something like yaml turn_on: service: select.select_option target: entity_id: select.living_room_heater_cable_outlet_mode data: option: comfort should get you started

#

The select. part of the entity_id is vital - as people keep telling you.

viscid oyster
#

for the Second:

blazing wren
#

No

#

is_state will not work

#

Look at what Thomas and I both said

#

And the service is wrong, you need to look at the example Thomas provided more closely

viscid oyster
blazing wren
#

We get that

#

It's a SELECT

#

hence, using the right service...

polar kelp
blazing wren
#

You can't drive to a ice cream parlour and ask them to fill up your car with gas

viscid oyster
#

i see but does it still make sense if i only need one mode ?

#

and set up the temperature with the card

#

actually that's all i want to do: setting up the temperature myself and not having modes if that make sense

blazing wren
#

You can't just go into the middle of town and wait for someone to bring you ice cream.
Without the proper entity ID and the correct service calls, this is exactly what you're trying to do

polar kelp
#

It will ignore the temperature. The Generic Thermostat will turn on the Comfort mode based on one set of rules, and then the outlet will controll the heater based on an entirely different set of rules - but only while the Generic Thermostat allows it.

polar kelp
viscid oyster
polar kelp
#

That would make the most sense to me.

viscid oyster
#

i would love to, but heaters having pilot wire needs to be turned on and off using the pilot wire only that's the problem

#

i could go the dumb way but i read in multiple place across the internet on trustable website that this would damage the hardware control

blazing wren
#

Then you need to go to #hardware-archived and find something that actually works with your setup

viscid oyster
#

id i didn't had hardware control with idiot internal thermostat on the heater itself then it would be possible to control the outlet in a binary mode

#

pilot wire in french specific don't ask me why we're doing things diffrently

polar kelp
#

Say it's like this: You want the temperature to be 23 °C, so that's what you turn your theromstat in Home Assistant to. That means when the temperature drops to 22 °C it will turn on Comfort mode.
But what if the outlets Comfort mode is set to 21 °C? Then NOTHING will happen. It will keep the heater off.

viscid oyster
#

basically i will always put the comfort to 25

#

that's what i planned

#

so i will have an hardware limit of 25 degree no matter what

polar kelp
#

Then things might work if you start using entity ids instead of entity names.

viscid oyster
#

it's dumb i know, but this pilot wire is making things weird

polar kelp
#

An entity id is <type>.<name> always with a .. And in yaml you pretty much ALWAYS want ids

blazing wren
#

Let's play spot the difference:
bathroom
light.bathroom

#

Which one of those is the entity id?

viscid oyster
#

entity id number 2 !

blazing wren
#

Bingo.

polar kelp
#

You're getting really close now at least. We should be able to get this.

blazing wren
#

Your value template needs to use something like entity id 2

#

It is using the first type right now.

#

Which is wrong, and not an ID at all

polar kelp
#

And you need to call the right service.

#

Also, I just assumed the entity ids in my examples. You should double check those.

#

You can find them in Settings->Devices->MQTT and then find you outlet entity device

dawn acorn
#

dev tools is your friend, use all of the tabs 🙂

polar kelp
#

That too.

blazing wren
#

Dev tools will hide the domain part of the entity ID from you when you click on one

dawn acorn
#

before you blast that template into yaml, test it out in dev tools

blazing wren
#

I prefer going via the integrations page(s) myself

polar kelp
blazing wren
#

Unless somehow you're running the old #add-ons-archived Z2M which stopped being updated a very long time ago 🤪

viscid oyster
#

running the new one on zigbee dongle E everything new !

blazing wren
#

E with Z2M? Interesting choice

viscid oyster
#

well, it works (for now)

polar kelp
#

I never even heard of that one?

viscid oyster
#

seems stable enough for me yet

blazing wren
#

It's only got experimental support so far

viscid oyster
polar kelp
#

Oh. Sonoff?

blazing wren
#

Yup.

#

At least it's not Conbee 🤪

polar kelp
#

I've seen a few users of that. Should work pretty well, I think.

viscid oyster
polar kelp
#

I also think conbee II is decent with Z2M. Conbee I is not in my personal experience.

#

Aaaaanyway

#

Did you find your outlet device there?

viscid oyster
dark dirge
#

I found a smart plug that crashed Z2M on joining with the EZSP-based SkyConnect, but other than that it was fine

#

Same plug works with the Sonoff-P variant

viscid oyster
polar kelp
#

... Settings->Devices->MQTT in Home Assistant...

viscid oyster
polar kelp
#

Yes. Click the icon with the three dots and lines to the left of the select box.

#

Then the Settings tab

#

There you'll have the actual entity_id you neeed.

viscid oyster
#

"select.bedroom_heater_cable_outlet_mode"

polar kelp
#

🎉

#

That's what you need in your template switch declaration. Both in the target: and the value_template: