mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Refactor camera view
This commit is contained in:
@@ -49,9 +49,7 @@
|
|||||||
title: Devices
|
title: Devices
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template:
|
template: default
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: media_player.nvidia_shield
|
entity: media_player.nvidia_shield
|
||||||
name: TV
|
name: TV
|
||||||
icon: mdi:television
|
icon: mdi:television
|
||||||
@@ -74,29 +72,17 @@
|
|||||||
- value: 'idle'
|
- value: 'idle'
|
||||||
styles: *on_styles
|
styles: *on_styles
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template:
|
template: default
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: switch.titanium_power
|
entity: switch.titanium_power
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template:
|
template: default
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: sensor.synology_type_volume_1
|
entity: sensor.synology_type_volume_1
|
||||||
name: Platinum
|
name: Platinum
|
||||||
icon: mdi:nas
|
icon: mdi:nas
|
||||||
tap_action:
|
tap_action:
|
||||||
action: more-info
|
action: more-info
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template:
|
template: default
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: switch.camera
|
|
||||||
name: Camera
|
|
||||||
- type: custom:button-card
|
|
||||||
template:
|
|
||||||
- xs
|
|
||||||
- with_state_background
|
|
||||||
entity: binary_sensor.pi_hole_enabled
|
entity: binary_sensor.pi_hole_enabled
|
||||||
name: Pi-Hole
|
name: Pi-Hole
|
||||||
icon: mdi:pi-hole
|
icon: mdi:pi-hole
|
||||||
@@ -179,19 +165,13 @@
|
|||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
title: Camera
|
title: Camera
|
||||||
cards:
|
cards:
|
||||||
- type: picture-entity
|
- type: picture-glance
|
||||||
aspect_ratio: 50%
|
camera_image: camera.amcrest_camera
|
||||||
entity: camera.amcrest_camera
|
entities:
|
||||||
show_name: true
|
- entity: camera.amcrest_camera
|
||||||
show_state: true
|
- entity: switch.camera
|
||||||
|
show_state: false
|
||||||
- type: horizontal-stack
|
- entity: binary_sensor.amcrest_camera_online
|
||||||
cards:
|
show_state: false
|
||||||
- type: custom:button-card
|
- entity: binary_sensor.amcrest_camera_motion_detected
|
||||||
template: default
|
show_state: false
|
||||||
entity: binary_sensor.amcrest_camera_online
|
|
||||||
name: Online
|
|
||||||
- type: custom:button-card
|
|
||||||
template: default
|
|
||||||
entity: binary_sensor.amcrest_camera_motion_detected
|
|
||||||
name: Motion
|
|
||||||
|
|||||||
Reference in New Issue
Block a user