Tweak progress buttons

This commit is contained in:
2020-05-03 03:06:27 +03:00
parent 095453b76d
commit 78345828ae
3 changed files with 8 additions and 4 deletions
@@ -32,9 +32,11 @@ progress:
- font-size: 1.9em
icon:
- position: absolute
- top: 0
- right: 0
- top: 4px
- right: -4px
- height: 16px
img_cell:
- position: initial
card:
- background: >
[[[
@@ -38,7 +38,7 @@ brita_water_card:
custom_fields:
remaining_liters:
- position: absolute
- top: 5px
- top: 8px
- right: 5px
- font-size: 12px
variables:
@@ -113,11 +113,13 @@
- small
- progress
entity: sensor.bedroom_weather_temperature
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template:
- small
- progress
entity: sensor.bedroom_weather_humidity
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
variables:
min_value: 25
max_value: 90
@@ -150,7 +152,7 @@
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_right_window_on_off_wrapper
name: M. Bedroom
name: Window
- type: custom:button-card
template:
- default