Very strange because the binary sensor returns the state on or off. So if there is, the card should light up.
I am using popups on my dashboard. I am trying to figure how to do a media query and return two different sizes. On my mobile, I want it to be fullscreen. On any other device, I want it to be normal size. Right now, on my two dashboards I am currently using two different popups. I would like to consolidate it all into one popup.
mobile popup
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Bathroom
size: fullscreen
content:
other device popup
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Bathroom
style: |
--popup-min-width: 500px;
--popup-max-width: 750px;
--popup-border-width: none;
--popup-border-color: none;
--popup-border-radius: 30px;
--popup-padding-x: 20px;
--popup-padding-y: 15px;
content:
Any help would be greatly appreciated.
Hello all,
Currently i’m installing and configuring this for my own purposes. Thanks in advance for the great stuff! It looks amazing!!
However I find myself struggeling for hours with the media section. I cannot figure out what to change or so… I don’t use plex, Radarr or Sonarr… Is there any way of still using it to its fullest potentional?
Just some extra info for you guys. I have 2 televisions, 1 in the living and 1 in de master bedroom. In the living there is also a sonos setup which is being used for the TV or playing radio/spotify. Can anyone link me to a guide or maybe explain themselfs how to get going?
For example: We often use Videoland (streaming service) or Netflix or Youtube to watch content or just use the TV box from Ziggo. Is there a way to pull the data from the TV to change the image to whatever platform is being used?
Thanks! Remco
To explain a bit more on what I need help with:
First of all: How does it work. As I understand correctly the 1st screen is showing the last played media until its inactive for an x amount of time and then show the latest releases on (for example) Plex.
#################################################
# #
# MEDIA #
# #
#################################################
- type: grid
title: Media
view_layout:
grid-area: media
columns: 1
cards:
- type: custom:swipe-card
parameters:
speed: 550
spaceBetween: 40
threshold: 5
cards:
- type: horizontal-stack
cards:
- type: conditional
conditions:
- entity: **select.conditional_media** <- what is this?
state_not: Vardagsrum
- entity: **select.conditional_media** <- what is this?
state_not: Sovrum
- entity: **select.conditional_media** <- what is this?
state_not: Spotify
- entity: **select.conditional_media** <- what is this?
state_not: Kök
card:
type: custom:button-card
entity: **media_player.sonos** <- I put my Sonos bar here.. is this what is supposed to go here?
name: Sonos
tap_action:
action: none
template:
- conditional_media
- icon_plex
- type: conditional
conditions:
- entity: **select.conditional_media** <- what is this?
state: Vardagsrum
card:
type: custom:button-card
entity: media_player.vardagsrum
triggers_update: **sensor.youtube_watching** <- how does this work?
template:
- conditional_media
- icon_apple_tv
- type: conditional
conditions:
- entity: **select.conditional_media** <- what is this?
state: Sovrum
card:
type: custom:button-card
entity: media_player.sovrum
triggers_update: sensor.youtube_watching
template:
- conditional_media
- icon_apple_tv
- type: conditional
conditions:
- entity: select.conditional_media
state: Spotify
card:
type: custom:button-card
entity: media_player.spotify
template:
- conditional_media
- icon_spotify
- type: conditional
conditions:
- entity: select.conditional_media
state: Kök
card:
type: custom:button-card
entity: media_player.kok
template:
- conditional_media
- icon_nest_mini
- type: grid
columns: 2
cards:
- type: custom:button-card
entity: media_player.woonkamer_tv_2
triggers_update: **sensor.youtube_watching** <- how does this work?
name: Woonkamer TV
template:
- media
- icon_tv
- type: custom:button-card
entity: media_player.slaapkamer_tv_2
triggers_update: **sensor.youtube_watching** <- how does this work.
name: Slaapkamer TV
template:
- media
- icon_tv
- type: custom:button-card
entity: media_player.spotify_speenkruidhof
name: Spotify
template:
- media
- icon_spotify
- type: custom:button-card
entity: media_player.nest
name: Nest Mini
template:
- media
- icon_nest_mini
I put ** and ← where I don’t understand what to put there or how it works.
thanks in advance.
Is this reply for me?
I think so… this is the conditional media template
大佬可以分享一下空调动画吗?
has someone the same problem`?
and where is those js/plugin/popups.ts file or path?
Sorry for this stupid question;-)
On my tablet I’ve:
Time, date and a welcome text
On my phone I’ve only the welcome text. I’ve searched for an hour but can’t find where the time/day is skipped in the phone view.
Can anyone point me in the right direction?
Sidebar.yaml template line 12
I couldn’t find that file myself. I followed the instructions in this post and it fixed my issues after I refreshed my browser cache.
Thank you very much! Very helpful.
Hi, will you share “calender in sidebar” code? Thx
Can anyone help me?
When I write code like this, it’s normally written with margins on the right, which looks good.
views:
- type: custom:grid-layout
title: Home
layout:default
margin: 0
grid-gap: var(–custom-layout-card-padding)
grid-template-columns: repeat(4, 1fr) 1fr
grid-template-rows: 0 repeat(0, fit-content(100%)) 1fr
grid-template-areas: |
“sidebar . . . . .”
“sidebar mode climate media restroom .”
“sidebar livingroom workroom bedroom closet .”
“sidebar footer footer footer footer .”
But when I write it this way, it doesn’t have any margin on the right side, it’s stuck together, and it doesn’t look good. Should I edit the area?
views:
- type: custom:grid-layout
title: Home
layout:default
margin: 0
grid-gap: var(–custom-layout-card-padding)
grid-template-columns: repeat(5, 1fr) 1fr
grid-template-rows: 0 repeat(0, fit-content(100%)) 1fr
grid-template-areas: |
“sidebar . . . . .”
“sidebar mode climate media restroom livingroom”
“sidebar . workroom bedroom closet .”
“sidebar footer footer footer footer footer”
Hello, can you share yours button shadow configuration ?