Yeah I think so too, but I havent touched that…yet.
I did do this in the popup card itself:
// .fullscreen {
// margin-top:-64px;
// }
otherwise the top of the popup isn’t visible, as discussed above with @jimz011
yes, I’d like to color the percentage, (simply want to make it follow the icon color)
Button-card has 2 options for this, follow color And temperature, or follow only color. would be cool if you implement that too.
this is in my button_template, calling the popup via browser_mod:
hold_action:
haptic: heavy
action: call-service
service: browser_mod.popup
service_data:
title: >
[[[ return entity.attributes.friendly_name ]]]
card: !include /config/lovelace/includes/include_light_button_popup.yaml
style:
# position: fixed
# z-index: 999
# top: 20
# left: 0
# height: 85%
# width: 30%
display: block
# align-items: center #prevents vertical scrolling on vertical stacks
# justify-content: center
background: rgba(0, 0, 0, 0.8)
color: 'var(--primary-color)'
# flex-direction: column
# margin: 0
# --iron-icon-fill-color: >
# [[[ var bri = states[entity.entity_id].attributes.brightness;
# var bri = 254 - bri;
# return 'hsl(' + bri + ',65%,50%)'; ]]]
# ]]]"#FFF"
the include is:
type: vertical-stack
cards:
# - type: custom:swipe-card
# cards:
# - type: custom:light-entity-card
# entity: '[[[ return entity.entity_id ]]]'
# persist_features: true
# show_slider_percent: true
# smooth_color_wheel: true
- type: entities
style: |
ha-card {
--ha-card-background: transparant;
background: transparant;
box-shadow: none;
margin-top: -15px;
}
entities:
- type: custom:light-popup-card
entity: '[[[ return entity.entity_id ]]]'
fullscreen: false
sliderColoredByLight: true
sliderThumbColor: 'var(--paper-card-background-color)'
sliderTrackColor: ivory
settings: true
# --iron-icon-fill-color: 'var(--primary-color)'
# [[[ var bri = states[entity.entity_id].attributes.brightness;
# return 'hsl(' + bri + ',65%,50%)'; ]]]
brightnessWidth: 150px
brightnessHeight: 400px
switchWidth: 150px
switchHeight: 400px
# supportedFeaturesTreshold: {{ _global.lights_popup.supportedFeaturesTreshold|default('9') }}
- type: custom:button-card
template: vertical-filler
- type: 'custom:rgb-light-card'
entity: '[[[ return entity.entity_id ]]]'
colors:
- color_temp: 153
transition: 2
icon_color: 'rgb(166, 209, 255)'
- color_temp: 227
transition: 2
icon_color: 'rgb(191, 222, 255)'
- color_temp: 300
transition: 2
icon_color: 'rgb(224, 239, 255)'
justify: center
- type: custom:rgb-light-card
entity: '[[[ return entity.entity_id ]]]'
colors:
- color_temp: 360
transition: 2
icon_color: 'rgb(255, 202, 112)'
- color_temp: 440
transition: 2
icon_color: 'rgb(255, 188, 74)'
- color_temp: 500
transition: 2
icon_color: 'rgb(255, 160, 0)'
justify: center
# - type: entities
# style: |
# ha-card {
# --ha-card-background: transparant;
# background: transparant;
# box-shadow: none;
# --paper-slider-knob-color: white;
# --paper-slider-knob-start-color: white;
# --paper-slider-pin-color: white;
# --paper-slider-active-color: white;
# color: white !important;
# --primary-text-color: white !important;
# }
# entities:
# - type: custom:more-info-card
# style: |
# ha-card {
# border-radius: none;
# box-shadow: none;
# margin-top: -40px;
# }
# entity: '[[[ return entity.entity_id ]]]'