How? I tried to get the state for the images from outside the card, but the dual images didn’t show up. I AM obvioulsy a newbie here, and as such I have read the documentation. Yet I find it a bit challenging what’s in the templates as CSS, what’s built into the card and so on.
Do this using variables, where you can add external sensors or whatever to change the card. In your case I would make two cards using horizontal cards side by side. Try to come up with a simple way, you can message me and I’ll try to help you as much as I can.
can someone help me out with this code.
I have a google nest protect that i want to make as a button card in mattias config, i need help with the code.
im thinking something like this:
But i needs to be blinking red for exempel when its a fire/smoke detected and so on…
And i dont want 4 row like in the link, only one card button row to fit mattias config. Can be design by somene here.
i see that the newer versions of the dasboard has the fixes for my errors, but i also see the whole setup is build up different, the newer version has button_card_templates folder with sub files in stead of the seperate file with the settings…
if i overwrite my files with the newest version files my dashboard is not working anymore…
can someone please give me a solution for this?
i use this dashboard for 3 years now, i think my version is from march 2020…
@VietNgoc hope you can help me wrap my head arround this in your code
I’m trying to implement my plex_recently_added sensor with your added_movies ( recently added movies) section. But my button card shows up blank, with the upcoming tv show on next slide
would this template sensor not work with your added_movies button template? I know I don’t have all the arrays as in the original.
- sensor:
- unique_id: added_movies_2
name: 'Added movies_2'
state: >-
{% if has_value("sensor.added_movies_2") %}
{{ states.sensor.plex_recently_added.attributes.data[1].title }}
{% endif %}
attributes:
data: |
[
{%- for movie in states.sensor.plex_recently_added.attributes.data[1:2] -%}
{
"title": "{{ movie.title if movie.title is defined else 'Unknown' }}",
"original_title": "{{ movie.title if movie.title is defined else 'Unknown' }}",
"number": "{{ movie.number if movie.number is defined else 'Unknown' }}",
"genre": "{{ movie.genre if movie.genre is defined else 'Unknown' }}",
"entity_picture": "{{ movie.poster if movie.poster is defined else 'Unknown' }}"
},
{%- endfor %}
]
unit_of_measurement: movies
icon: mdi:movie
This is the data from the sensor.plex_recently_added
This template will definitely not work with a plex sensor or similar. I have my own restful sensor that pulls data from the movie streaming service website I use. I don’t download movies anywhere.
My sensor looks like this, practically it’s just information about subtitles, dubbing, quality etc.
Hoping someone can help, but I will also post this to the custom button card thread. Following instructions posted above, I was able to implement a countdown for timers on my fan card. I would also like to incorporate a progress bar across the bottom of the card using another custom card (timer-bar-card). I can get that card to show just the progress bar, but I am struggling to force it to the bottom of the card. It gets placed right between my name and label. When the timer starts, I would like the progress bar to be all the way across the bottom of the card and as time reduces, so will the progress bar. Here is what the card is looking like when I use it.
Wanted to add a card type: tile for the climate popup but got an error that Unknown type encountered: tile. It’s a built-in card, so I expected it to work. The reason I want to use it is for the presets. Mushroom doesn’t support it to my knowledge (only heating and off). Could anyone please help me out?
I tried to add something like that. I removed the overlap, but moved everything else way up on the card and still did not push the progress bar to the bottom or expand for the full width. I added the timer styles to the base code. See below. I tried to move the left point and adjusted the width to account for the card padding that is included in the extra_styles template. It didn’t seem to change anything though.
I have been playing with values all morning. It seems the card is stuck on the “bottom” value. I moved the styling back into my template card. I can change the width and left values and get the bar to where I want it. It doesn’t matter what change I put in for bottom though, the bar will not budge vertically.
I tried changing it to “top” instead of “bottom” and it moved the bar to the bottom, but once there, it won’t budge based on the value I put in. It stays in the same location and is not visible on my mobile device.
So at this point I am 70% of the way there, but struggling to get the card to accept any vertical changes.
I tried that exactly and this is what I end up with. The bar is shifted to the right and still overlapping my text. I don’t know if this has anything to do with the “extra_styles” template. I even tried commenting that out in my base template and it didn’t fix anything. I appreciate you trying to help by the way. Thank you for that.