mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Minor improvements
This commit is contained in:
@@ -34,7 +34,7 @@ v3_button:
|
|||||||
name:
|
name:
|
||||||
- position: absolute
|
- position: absolute
|
||||||
- left: 16px
|
- left: 16px
|
||||||
- bottom: 28px
|
- bottom: "[[[ return this.___config.show_state ? '28px' : '10px'; ]]]"
|
||||||
- white-space: normal
|
- white-space: normal
|
||||||
- word-wrap: break-word
|
- word-wrap: break-word
|
||||||
- word-break: break-word
|
- word-break: break-word
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ v3_pill:
|
|||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- width: 380px
|
- width: 380px
|
||||||
- margin-left: 16px
|
- margin-left: 8px
|
||||||
- height: 60px
|
- height: 60px
|
||||||
- font-size: 15px
|
- font-size: 15px
|
||||||
- border-radius: 8px
|
- border-radius: 8px
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
v3_popup_button:
|
||||||
|
variables:
|
||||||
|
background_color: rgba(60, 60, 60, 1)
|
||||||
|
styles:
|
||||||
|
card:
|
||||||
|
- margin-bottom: 8px
|
||||||
@@ -10,18 +10,24 @@ brita_card:
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: [v3_button, v3_popup_button]
|
||||||
name: New filter
|
name: New filter
|
||||||
entity: script.brita_new_filter
|
entity: script.brita_new_filter
|
||||||
|
show_state: false
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
|
styles:
|
||||||
|
card:
|
||||||
|
- margin-left: 8px
|
||||||
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: [v3_button, v3_popup_button]
|
||||||
name: Pour water
|
name: Pour water
|
||||||
entity: script.brita_pour_water
|
entity: script.brita_pour_water
|
||||||
|
show_state: false
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: [v3_button, v3_popup_button]
|
||||||
name: Filter
|
name: Filter
|
||||||
entity: binary_sensor.brita_should_change_filter
|
entity: binary_sensor.brita_should_change_filter
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
living_room_climate_card:
|
|
||||||
card:
|
|
||||||
type: custom:decluttering-card
|
|
||||||
template: climate_card
|
|
||||||
variables:
|
|
||||||
- main_entity: sensor.multisensor_6_temperature
|
|
||||||
- left_entity: sensor.multisensor_6_relative_humidity
|
|
||||||
- left_name: Humidity (6)
|
|
||||||
- right_entity: sensor.multisensor_6_luminance
|
|
||||||
- right_name: Luminance (6)
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
temperature_card:
|
|
||||||
default:
|
|
||||||
- main_name: "Temperature"
|
|
||||||
card:
|
|
||||||
type: vertical-stack
|
|
||||||
cards:
|
|
||||||
- type: "custom:mini-graph-card"
|
|
||||||
name: "[[main_name]]"
|
|
||||||
entities:
|
|
||||||
- "[[main_entity]]"
|
|
||||||
cache: false
|
|
||||||
group_by: hour
|
|
||||||
hours_to_show: 72
|
|
||||||
line_width: 2
|
|
||||||
show:
|
|
||||||
average: true
|
|
||||||
extrema: true
|
|
||||||
fill: true
|
|
||||||
@@ -28,21 +28,3 @@ sonos_media_player:
|
|||||||
idle_view:
|
idle_view:
|
||||||
when_idle: true
|
when_idle: true
|
||||||
when_standby: true
|
when_standby: true
|
||||||
|
|
||||||
sonos_media_player_small:
|
|
||||||
card:
|
|
||||||
type: custom:mini-media-player
|
|
||||||
artwork: cover
|
|
||||||
name: "[[name]]"
|
|
||||||
entity: "[[player]]"
|
|
||||||
speaker_group:
|
|
||||||
entities: *entities_in_gorup
|
|
||||||
hide:
|
|
||||||
power: true
|
|
||||||
icon: true
|
|
||||||
controls: true
|
|
||||||
shuffle: true
|
|
||||||
info: true
|
|
||||||
idle_view:
|
|
||||||
when_idle: true
|
|
||||||
when_standby: true
|
|
||||||
|
|||||||
@@ -1,77 +0,0 @@
|
|||||||
media_with_controls:
|
|
||||||
default:
|
|
||||||
- title: "Media"
|
|
||||||
- player_name:
|
|
||||||
card:
|
|
||||||
type: vertical-stack
|
|
||||||
title: "[[title]]"
|
|
||||||
cards:
|
|
||||||
- type: custom:decluttering-card
|
|
||||||
template: sonos_media_player
|
|
||||||
variables:
|
|
||||||
- player: "[[player]]"
|
|
||||||
- name: "[[player_name]]"
|
|
||||||
- sync_volume: false
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.sonos_volume_10
|
|
||||||
icon: mdi:volume-low
|
|
||||||
name: vol 10
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_volume_10
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.sonos_volume_20
|
|
||||||
icon: mdi:volume-medium
|
|
||||||
name: vol 20
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_volume_20
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Chill
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Chill 2
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.music_play
|
|
||||||
service_data:
|
|
||||||
playlist: "Songs for a Romantic Evening"
|
|
||||||
shuffle: true
|
|
||||||
volume_level: 0.1
|
|
||||||
- type: custom:button-card
|
|
||||||
template: xs
|
|
||||||
entity: script.music_play
|
|
||||||
name: Retro
|
|
||||||
icon: mdi:music
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.music_play
|
|
||||||
service_data:
|
|
||||||
playlist: "Retro"
|
|
||||||
- type: custom:button-card
|
|
||||||
template: [xs, with_state_background]
|
|
||||||
entity: binary_sensor.sonos_is_bedroom_master
|
|
||||||
name: Bedroom
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_bedroom
|
|
||||||
- type: custom:button-card
|
|
||||||
template: [xs, with_state_background]
|
|
||||||
entity: binary_sensor.sonos_is_living_room_master
|
|
||||||
name: TV
|
|
||||||
icon: mdi:speaker-multiple
|
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: script.sonos_join_tv
|
|
||||||
@@ -20,11 +20,11 @@ v3_media_with_controls:
|
|||||||
template: v3_section_title
|
template: v3_section_title
|
||||||
variables:
|
variables:
|
||||||
- title: Volume
|
- title: Volume
|
||||||
- margin_left: 16px
|
- margin_left: 8px
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_xs_button
|
template: [v3_xs_button, v3_popup_button]
|
||||||
show_state: false
|
show_state: false
|
||||||
entity: script.sonos_volume_10
|
entity: script.sonos_volume_10
|
||||||
icon: mdi:volume-medium
|
icon: mdi:volume-medium
|
||||||
@@ -34,11 +34,9 @@ v3_media_with_controls:
|
|||||||
service: script.sonos_volume_10
|
service: script.sonos_volume_10
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- margin-left: 16px
|
- margin-left: 8px
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_xs_button
|
template: [v3_xs_button, v3_popup_button]
|
||||||
show_state: false
|
show_state: false
|
||||||
entity: script.sonos_volume_20
|
entity: script.sonos_volume_20
|
||||||
icon: mdi:volume-high
|
icon: mdi:volume-high
|
||||||
@@ -46,19 +44,17 @@ v3_media_with_controls:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.sonos_volume_20
|
service: script.sonos_volume_20
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: v3_section_title
|
template: v3_section_title
|
||||||
variables:
|
variables:
|
||||||
- title: Group
|
- title: Group
|
||||||
- margin_left: 16px
|
- margin_left: 8px
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_xs_button
|
template: [v3_xs_button, v3_popup_button]
|
||||||
entity: binary_sensor.sonos_is_bedroom_master
|
entity: binary_sensor.sonos_is_bedroom_master
|
||||||
name: Bedroom
|
name: Bedroom
|
||||||
icon: mdi:speaker-multiple
|
icon: mdi:speaker-multiple
|
||||||
@@ -67,19 +63,15 @@ v3_media_with_controls:
|
|||||||
service: script.sonos_join_bedroom
|
service: script.sonos_join_bedroom
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- margin-left: 16px
|
- margin-left: 8px
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_xs_button
|
template: [v3_xs_button, v3_popup_button]
|
||||||
entity: binary_sensor.sonos_is_living_room_master
|
entity: binary_sensor.sonos_is_living_room_master
|
||||||
name: TV
|
name: TV
|
||||||
icon: mdi:speaker-multiple
|
icon: mdi:speaker-multiple
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.sonos_join_tv
|
service: script.sonos_join_tv
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
|
|||||||
@@ -163,38 +163,29 @@ sensor.active_motion_sensors:
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.hallway_motion_occupancy
|
entity: binary_sensor.hallway_motion_occupancy
|
||||||
name: Hallway Entrance
|
name: Hallway Entrance
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- margin-left: 8px
|
- margin-left: 8px
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.trisensor_motion
|
entity: binary_sensor.trisensor_motion
|
||||||
name: Hallway
|
name: Hallway
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.multisensor_motion
|
entity: binary_sensor.multisensor_motion
|
||||||
name: Living Room
|
name: Living Room
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.kitchen_motion_occupancy
|
entity: binary_sensor.kitchen_motion_occupancy
|
||||||
name: Kitchen
|
name: Kitchen
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- margin-left: 8px
|
- margin-left: 8px
|
||||||
- margin-bottom: 8px
|
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
|
|
||||||
sensor.open_door_count:
|
sensor.open_door_count:
|
||||||
title: Open doors
|
title: Open doors
|
||||||
@@ -204,20 +195,15 @@ sensor.open_door_count:
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.front_door
|
entity: binary_sensor.front_door
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- margin-left: 8px
|
- margin-left: 8px
|
||||||
- margin-bottom: 8px
|
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.bedroom_door
|
entity: binary_sensor.bedroom_door
|
||||||
name: Bedroom
|
name: Bedroom
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
|
|
||||||
sensor.open_window_count:
|
sensor.open_window_count:
|
||||||
title: Open windows
|
title: Open windows
|
||||||
@@ -227,38 +213,29 @@ sensor.open_window_count:
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.living_room_right_window
|
entity: binary_sensor.living_room_right_window
|
||||||
name: Living Room
|
name: Living Room
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- margin-left: 8px
|
- margin-left: 8px
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.bedroom_left_window
|
entity: binary_sensor.bedroom_left_window
|
||||||
name: Bedroom Left
|
name: Bedroom Left
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.bedroom_right_window
|
entity: binary_sensor.bedroom_right_window
|
||||||
name: Bedroom Right
|
name: Bedroom Right
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.kitchen_window
|
entity: binary_sensor.kitchen_window
|
||||||
name: Kitchen
|
name: Kitchen
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- margin-left: 8px
|
- margin-left: 8px
|
||||||
- margin-bottom: 8px
|
|
||||||
variables:
|
|
||||||
background_color: rgba(60, 60, 60, 1)
|
|
||||||
|
|
||||||
sensor.bedroom_weather_temperature:
|
sensor.bedroom_weather_temperature:
|
||||||
title: Bedroom Climate
|
title: Bedroom Climate
|
||||||
@@ -270,7 +247,26 @@ sensor.multisensor_6_temperature:
|
|||||||
title: Living Room Climate
|
title: Living Room Climate
|
||||||
card:
|
card:
|
||||||
type: custom:decluttering-card
|
type: custom:decluttering-card
|
||||||
template: living_room_climate_card
|
template: climate_card
|
||||||
|
variables:
|
||||||
|
- main_entity: sensor.multisensor_6_temperature
|
||||||
|
- left_entity: sensor.multisensor_6_relative_humidity
|
||||||
|
- right_entity: sensor.multisensor_6_luminance
|
||||||
|
- right_name: Luminance
|
||||||
|
|
||||||
|
|
||||||
|
sensor.multisensor_6_relative_humidity:
|
||||||
|
title: Living Room Humidity
|
||||||
|
card:
|
||||||
|
type: custom:decluttering-card
|
||||||
|
template: climate_card
|
||||||
|
variables:
|
||||||
|
- main_entity: sensor.multisensor_6_relative_humidity
|
||||||
|
- main_name: Humidity
|
||||||
|
- left_entity: sensor.multisensor_6_temperature
|
||||||
|
- left_name: Temperature
|
||||||
|
- right_entity: sensor.multisensor_6_luminance
|
||||||
|
- right_name: Luminance
|
||||||
|
|
||||||
sensor.bedroom_weather_humidity:
|
sensor.bedroom_weather_humidity:
|
||||||
title: Bedroom Humidity
|
title: Bedroom Humidity
|
||||||
|
|||||||
Reference in New Issue
Block a user