Rename button templates

This commit is contained in:
2020-12-08 10:46:05 +02:00
parent 2df7f48e76
commit 5b538146fa
16 changed files with 101 additions and 101 deletions
@@ -25,21 +25,21 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
template: regular
name: Automations
icon: mdi:reload
tap_action:
action: call-service
service: automation.reload
- type: custom:button-card
template: small
template: regular
name: Scripts
icon: mdi:reload
tap_action:
action: call-service
service: script.reload
- type: custom:button-card
template: small
template: regular
name: Scenes
icon: mdi:reload
tap_action:
@@ -48,21 +48,21 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
template: regular
name: Groups
icon: mdi:reload
tap_action:
action: call-service
service: group.reload
- type: custom:button-card
template: small
template: regular
name: Theme
icon: mdi:reload
tap_action:
action: call-service
service: frontend.reload_themes
- type: custom:button-card
template: small
template: regular
name: Resources
icon: mdi:reload
tap_action:
@@ -5,28 +5,28 @@ cards:
cards:
- type: custom:gui-sandbox
- type: custom:button-card
template: small
template: regular
icon: mdi:reload
name: Theme
tap_action:
action: call-service
service: frontend.reload_themes
- type: custom:button-card
template: small
template: regular
icon: mdi:reload
name: Resources
tap_action:
action: call-service
service: lovelace.reload_resources
- type: custom:button-card
template: small
template: regular
name: time picker
icon: mdi:clock
tap_action:
action: navigate
navigation_path: "#time_picker"
- type: custom:button-card
template: small
template: regular
icon: mdi:folder
name: folder
tap_action:
@@ -1,2 +1,2 @@
default:
template: [small, with_state_background]
template: [regular, with_state_background]
@@ -1,5 +1,5 @@
hallway_dashboard_mode:
template: [mobile]
template: [small]
entity: input_select.hallway_dashboard_mode
show_state: true
show_name: false
@@ -1,6 +1,6 @@
humidity_button:
type: custom:button-card
template: [small, progress]
template: [regular, progress]
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
icon: mdi:water-percent
variables:
@@ -1,14 +1,14 @@
mobile:
size: 24px
regular:
size: 30px
hold_action:
action: more-info
styles:
card:
- height: 70px
- height: 100px
- font-size: 14px
grid:
- height: 60px
- height: 90px
img_cell:
- height: 40px
- height: 60px
name:
- height: 24px
- height: 30px
@@ -1,14 +1,14 @@
small:
size: 30px
size: 24px
hold_action:
action: more-info
styles:
card:
- height: 100px
- height: 70px
- font-size: 14px
grid:
- height: 90px
img_cell:
- height: 60px
img_cell:
- height: 40px
name:
- height: 30px
- height: 24px
@@ -1,7 +1,7 @@
purifier_target_humidity:
card:
type: custom:button-card
template: [small, progress, with_state_indicator]
template: [regular, progress, with_state_indicator]
entity: sensor.purifier_target_humidity
tap_action:
action: call-service
@@ -22,50 +22,50 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.living_room
name: Living room
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.living_room_main
name: Main
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.light_avatar_small_2
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.living_room_ambient
name: Ambient
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.master_bedroom
name: Bedroom
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.master_bedroom_main
name: Main
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.bed_led
name: Bed
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.bedside
name: Bedside
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.tuya_kitchen
name: Kitchen
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.tuya_hallway_main
name: Hallway
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.hallway_entrance
name: Entrance
@@ -82,11 +82,11 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: input_boolean.speech_notifications
name: Speech
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.house_mode
tap_action:
action: call-service
@@ -94,7 +94,7 @@ cards:
service_data:
entity_id: input_select.house_mode
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: input_boolean.guest_mode
tap_action:
action: toggle
@@ -102,7 +102,7 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: mobile
template: small
entity: media_player.living_room_tv
name: TV
icon: mdi:television
@@ -126,20 +126,20 @@ cards:
styles: *on_styles
- type: custom:button-card
template: [mobile, with_state_background, with_state_indicator]
template: [small, with_state_background, with_state_indicator]
entity: switch.titanium
variables:
state_indicator_id: automation.titanium_turn_off_when_idle
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: sensor.synology_type_volume_1
name: Platinum
icon: mdi:nas
tap_action:
action: more-info
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.pi_hole_enabled
name: Pi-Hole
icon: mdi:pi-hole
@@ -147,27 +147,27 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [ac_button, mobile]
template: [ac_button, small]
- type: custom:button-card
template: [radiator_button, mobile]
template: [radiator_button, small]
entity: climate.living_room_radiator_mode
name: "Living room"
- type: custom:button-card
template: [radiator_button, mobile]
template: [radiator_button, small]
entity: climate.bedroom_radiator_mode
name: "Bedroom"
- type: custom:button-card
template: [radiator_button, mobile]
template: [radiator_button, small]
entity: climate.kitchen_radiator_mode
name: "Kitchen"
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: switch.camera
name: Camera
- type: custom:button-card
template: [mobile, with_state_background, with_state_indicator]
template: [small, with_state_background, with_state_indicator]
entity: fan.philips_airpurifier
variables:
state_indicator_id: binary_sensor.purifier_filter_needs_change
@@ -176,11 +176,11 @@ cards:
state_indicator_on_color: var(--color-red)
state_on_indicator_on_color: var(--color-red)
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: vacuum.vacuum
name: Vacuum
- type: custom:button-card
template: [brita_water, mobile]
template: [brita_water, small]
- type: horizontal-stack
@@ -22,50 +22,50 @@ cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.living_room
name: Living room
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.living_room_main
name: Main
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.light_avatar_small_2
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.living_room_ambient
name: Ambient
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.master_bedroom
name: Bedroom
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.master_bedroom_main
name: Main
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.bed_led
name: Bed
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.bedside
name: Bedside
- type: horizontal-stack
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.tuya_kitchen
name: Kitchen
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.tuya_hallway_main
name: Hallway
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: light.hallway_entrance
name: Entrance
@@ -84,7 +84,7 @@ cards:
square: false
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.georgi_home
name: Georgi home?
tap_action:
@@ -93,16 +93,16 @@ cards:
service_data:
entity_id: input_boolean.georgi_home
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: input_boolean.speech_notifications
name: Speech
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: input_boolean.guest_mode
tap_action:
action: toggle
- type: custom:button-card
template: mobile
template: small
entity: media_player.living_room_tv
name: TV
icon: mdi:television
@@ -125,30 +125,30 @@ cards:
- value: 'idle'
styles: *on_styles
- type: custom:button-card
template: [mobile, with_state_background, with_state_indicator]
template: [small, with_state_background, with_state_indicator]
entity: switch.titanium
variables:
state_indicator_id: automation.titanium_turn_off_when_idle
- type: custom:button-card
template: [ac_button, mobile]
template: [ac_button, small]
- type: custom:button-card
template: [radiator_button, mobile]
template: [radiator_button, small]
entity: climate.living_room_radiator_mode
name: "Living room"
- type: custom:button-card
template: [radiator_button, mobile]
template: [radiator_button, small]
entity: climate.bedroom_radiator_mode
name: "Bedroom"
- type: custom:button-card
template: [radiator_button, mobile]
template: [radiator_button, small]
entity: climate.kitchen_radiator_mode
name: "Kitchen"
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: switch.camera
name: Camera
- type: custom:button-card
template: [mobile, with_state_indicator]
template: [small, with_state_indicator]
entity: fan.philips_airpurifier
variables:
state_indicator_id: binary_sensor.purifier_filter_needs_change
@@ -157,7 +157,7 @@ cards:
state_indicator_on_color: var(--color-red)
state_on_indicator_on_color: var(--color-red)
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: vacuum.vacuum
name: Va
@@ -18,26 +18,26 @@ cards:
columns: 4
cards:
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.living_room_right_window
name: Living room
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.bedroom_left_window
name: Bedroom left
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.bedroom_right_window
name: Bedroom right
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.kitchen_window
name: Kitchen
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.front_door
- type: custom:button-card
template: [mobile, with_state_background]
template: [small, with_state_background]
entity: binary_sensor.bedroom_door
- type: custom:mini-graph-card
@@ -48,7 +48,7 @@
variables:
state_indicator_id: automation.lighting_hallway_motion_on
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.hallway_motion_illuminance
name: Lux
variables:
@@ -104,7 +104,7 @@
variables:
state_indicator_id: automation.lighting_kitchen_motion_on
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.kitchen_motion_illuminance
name: Lux
variables:
@@ -99,7 +99,7 @@
- type: custom:button-card
template: ac_button
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.desk_outlet_power
name: Desk power
variables:
@@ -163,6 +163,6 @@
- right_name: Humidity (6)
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.living_room_radiator_temperature
name: Radiator temperature
@@ -88,7 +88,7 @@
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
template: regular
entity: media_player.living_room_tv
name: TV
icon: mdi:television
@@ -276,12 +276,12 @@
- type: horizontal-stack
cards:
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.average_temperature
icon: mdi:thermometer
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.average_humidity
icon: mdi:water-percent
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
+14 -14
View File
@@ -336,44 +336,44 @@ sensor.average_temperature:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.multisensor_6_temperature
name: Living room
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.trisensor_temperature
name: Desk
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.living_room_radiator_temperature
name: Radiator
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.bedroom_weather_temperature
name: Bedroom
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: horizontal-stack
cards:
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.kitchen_weather_temperature
name: Kitchen
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.bathroom_weather_temperature
name: Bathroom
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.hallway_weather_temperature
name: Hallway
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.guest_bedroom_weather_temperature
name: G. Bedroom
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
@@ -397,7 +397,7 @@ sensor.average_humidity:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.multisensor_6_relative_humidity
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
name: Living room
@@ -408,7 +408,7 @@ sensor.average_humidity:
high_value: 65
low_color: "var(--color-red)"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.bedroom_weather_humidity
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
name: Bedroom
@@ -419,7 +419,7 @@ sensor.average_humidity:
high_value: 65
low_color: "var(--color-red)"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.kitchen_weather_humidity
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
name: Kitchen
@@ -432,7 +432,7 @@ sensor.average_humidity:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.bathroom_weather_humidity
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
name: Bathroom
@@ -443,7 +443,7 @@ sensor.average_humidity:
high_value: 65
low_color: "var(--color-red)"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.hallway_weather_humidity
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
name: Hallway
@@ -454,7 +454,7 @@ sensor.average_humidity:
high_value: 65
low_color: "var(--color-red)"
- type: custom:button-card
template: [small, progress]
template: [regular, progress]
entity: sensor.guest_bedroom_weather_humidity
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
name: G. Bedroom