Floorplan V2

This commit is contained in:
2020-03-22 21:30:56 +02:00
parent 72158e12bf
commit b4061ddfcd
17 changed files with 102 additions and 48 deletions
+100 -46
View File
@@ -14,55 +14,97 @@ views:
icon: mdi:floor-plan icon: mdi:floor-plan
cards: cards:
- type: picture-elements - type: picture-elements
image: /local/images/floorplan/floorplan_night.jpg image: /local/images/floorplan/floorplan_night_transparent.png
elements:
# Lighting Overlays
- type: conditional
conditions:
- entity: light.pc
state: "on"
- entity: light.living_room_main_lights
state: "off"
elements: elements:
- type: image - type: image
image: /local/images/floorplan/living_room_pc_light.png entity: sun.sun
tap_action: none action: none
hold_action: none hold_action:
action: none
state_image:
above_horizon: /local/images/floorplan/floorplan_day.jpg
below_horizon: /local/images/floorplan/transparent.png
style: style:
top: 71.04% height: 100%
left: 65.65% left: 50%
width: 40.08% top: 50%
- type: conditional width: 100%
conditions: tap_action:
- entity: light.pc action: none
state: "off"
- entity: light.living_room_main_lights
state: "on"
elements:
- type: image
image: /local/images/floorplan/living_room_main_lights.png
tap_action: none
hold_action: none
style:
top: 71.04%
left: 65.65%
width: 40.08%
- type: conditional
conditions:
- entity: light.pc
state: "on"
- entity: light.living_room_main_lights
state: "on"
elements:
- type: image
image: /local/images/floorplan/living_room_all_lights.png
tap_action: none
hold_action: none
style:
top: 71.04%
left: 65.65%
width: 40.08%
# Lighting Overlays
# Living Room
- type: conditional
conditions:
- entity: sun.sun
state: "below_horizon"
- entity: light.pc
state: "on"
- entity: light.living_room_main_lights
state: "off"
elements:
- type: image
image: /local/images/floorplan/living_room_pc_light_on.png
tap_action: none
hold_action: none
style:
top: 71.04%
left: 65.92%
width: 38.5%
- type: conditional
conditions:
- entity: sun.sun
state: "below_horizon"
- entity: light.pc
state: "off"
- entity: light.living_room_main_lights
state: "on"
elements:
- type: image
image: /local/images/floorplan/living_room_main_lights_on.png
tap_action: none
hold_action: none
style:
top: 71.04%
left: 65.92%
width: 38.5%
- type: conditional
conditions:
- entity: sun.sun
state: "below_horizon"
- entity: light.pc
state: "on"
- entity: light.living_room_main_lights
state: "on"
elements:
- type: image
image: /local/images/floorplan/living_room_all_lights_on.png
tap_action: none
hold_action: none
style:
top: 71.04%
left: 65.92%
width: 38.5%
# Master Bedroom
- type: conditional
conditions:
- entity: sun.sun
state: "below_horizon"
- entity: light.bedside_light
state: "on"
elements:
- type: image
image: /local/images/floorplan/master_bedroom_bedside_light_on.png
tap_action: none
hold_action: none
style:
top: 25.7%
left: 70.35%
width: 29%
# Light switches
- type: image - type: image
entity: light.pc entity: light.pc
tap_action: tap_action:
@@ -71,6 +113,7 @@ views:
style: style:
top: 71% top: 71%
left: 77.8% left: 77.8%
- type: image - type: image
entity: light.living_room_main_lights entity: light.living_room_main_lights
tap_action: tap_action:
@@ -82,6 +125,17 @@ views:
width: 5% width: 5%
height: 2% height: 2%
- type: image
entity: light.bedside_light
tap_action:
action: toggle
image: /local/images/floorplan/transparent.png
style:
top: 11.7%
left: 61.6%
width: 1.5%
# Sensors
- type: state-icon - type: state-icon
entity: binary_sensor.bedroom_right_window_on_off_wrapper entity: binary_sensor.bedroom_right_window_on_off_wrapper
style: style:
@@ -101,7 +155,7 @@ views:
color: "#000" color: "#000"
border-radius: 50% border-radius: 50%
text-align: center text-align: center
background-color: "rgba(255, 255, 255, 0.3)" background-color: "rgba(255, 255, 255, 0.6)"
font-size: 14px font-size: 14px
font-weight: bold font-weight: bold
Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 567 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 509 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB