Files
fresh-home/lovelace/room_cards/master_bedroom.yaml
T

187 lines
3.8 KiB
YAML

type: picture-elements
#background image
image: /local/bg500x225.png
elements:
- type: custom:mushroom-template-card
primary: "{{states('input_select.master_bedroom_mode')}}"
entity: input_select.master_bedroom_mode
tap_action:
action: more-info
style:
font-style: italic
left: 12%
top: 88%
- type: state-label
entity: sensor.master_bedroom_multisensor_air_temperature
style:
left: 15%
top: 35%
font-size: 180%
- type: state-label
entity: sensor.master_bedroom_multisensor_humidity
style:
left: 85%
top: 35%
font-size: 180%
text-align: right
#Card title
- type: custom:mushroom-title-card
title: "Master Bedroom"
style:
font-size: 130%
left: -2%
top: -10%
transform: initial
#top left icon spot
- type: state-icon
entity: binary_sensor.master_bedroom_occupied
style:
left: 60%
top: 9%
#top left icon #2 spot
# - type: state-icon
# entity: group.master_bedroom_motion
# style:
# left: 60%
# top: 9%
- type: state-icon
entity: binary_sensor.master_bedroom_window_contact
style:
left: 68%
top: 9%
#top icon spot #2
- type: state-icon
entity: fan.master_bedroom
style:
left: 76%
top: 9%
tap_action:
action: more-info
hold_action:
action: toggle
#top icon spot #3
- type: state-icon
entity: switch.master_bedroom_light_cycle
style:
left: 84%
top: 9%
tap_action:
action: toggle
hold_action:
action: more-info
#top icon spot #4
- type: state-icon
entity: input_boolean.master_bedroom_occupied
style:
left: 92%
top: 9%
tap_action:
action: toggle
hold_action:
action: more-info
#button #1
- type: "custom:button-card"
color: auto
entity: light.master_bedroom_ceiling_hue
show_name: false
style:
left: 12%
top: 65%
styles:
card:
- border-radius: 50px
- width: 50px
- height: 50px
icon:
- width: 30px
- height: 30px
tap_action:
action: toggle
hold_action:
action: more-info
#button #2
- type: "custom:button-card"
color: auto
entity: camera.frigate_cam06
show_name: false
show_entity_picture: true
style:
left: 31%
top: 65%
styles:
card:
#- border-radius: 50px
- width: 50px
- height: 50px
icon:
- width: 45px
- height: 45px
tap_action:
action: navigate
navigation_path: /ai-yml/ai-cam06
#button #3
- type: "custom:button-card"
color: auto
entity: binary_sensor.bed_presence_c175a4_bed_occupied_either
show_name: false
style:
left: 50%
top: 65%
styles:
card:
- border-radius: 50px
- width: 50px
- height: 50px
icon:
- width: 30px
- height: 30px
tap_action:
action: more-info
#button #4
- type: "custom:button-card"
color: auto
entity: camera.frigate_cam07
show_name: false
show_entity_picture: true
style:
left: 69%
top: 65%
styles:
card:
#- border-radius: 50px
- width: 50px
- height: 50px
icon:
- width: 45px
- height: 45px
tap_action:
action: navigate
navigation_path: /ai-yml/ai-cam07
#button #5
- type: "custom:button-card"
color: auto
entity: media_player.master_bedroom_clock
show_name: false
show_entity_picture: true
style:
left: 88%
top: 65%
styles:
card:
#- border-radius: 50px
- width: 50px
- height: 50px
icon:
- width: 45px
- height: 45px
tap_action:
action: more-info
# 12,31,50,69,88
# 14,38,62,86
# 25,50,75
# 33,66
# 50