diff --git a/lovelace/cameras/barnrum.yaml b/lovelace/cameras/barnrum.yaml index 0ecebd6..284be11 100644 --- a/lovelace/cameras/barnrum.yaml +++ b/lovelace/cameras/barnrum.yaml @@ -1,5 +1,6 @@ {% set entity='"camera.barnrum"' %} type: picture-elements +title: Barnrum image: /local/images/placeholder-1280x720.png elements: - type: image diff --git a/lovelace/cameras/kontor.yaml b/lovelace/cameras/kontor.yaml index 011b2da..d8b6913 100644 --- a/lovelace/cameras/kontor.yaml +++ b/lovelace/cameras/kontor.yaml @@ -1,8 +1,15 @@ type: picture-elements +title: Kontoret image: /local/images/placeholder-800x600.png elements: - - type: image - camera_image: camera.kontor + # Only show camera feed if noone is home + - type: custom:hui-conditional-card + conditions: + - entity: binary_sensor.home_occupied + state: "off" + card: + type: custom:hui-image-element + camera_image: camera.kontor style: left: 50% top: 50% @@ -15,10 +22,10 @@ elements: action: none style: left: 50% - top: 0% - height: 100px + top: 25px + height: 50px width: 100% - background: rgba(0,0,0,0.3) + background: rgba(128,128,128,0.3) - type: state-icon entity: light.taklampa_kontoret diff --git a/lovelace/cameras/vardagsrum.yaml b/lovelace/cameras/vardagsrum.yaml index 56fe086..5414943 100644 --- a/lovelace/cameras/vardagsrum.yaml +++ b/lovelace/cameras/vardagsrum.yaml @@ -1,8 +1,14 @@ type: picture-elements +title: Vardagsrum image: /local/images/placeholder-800x600.png elements: - - type: image - camera_image: camera.vardagsrum + - type: custom:hui-conditional-card + conditions: + - entity: binary_sensor.home_occupied + state: "off" + card: + type: custom:hui-image-element + camera_image: camera.vardagsrum style: left: 50% top: 50%