Add bed_led light

This commit is contained in:
2020-04-23 21:19:28 +03:00
parent 8108de9a8c
commit dac8d3d00d
14 changed files with 96 additions and 41 deletions
@@ -26,6 +26,13 @@
- top: 11.7%
- left: 61.6%
- type: custom:decluttering-card
template: floorplan_state_icon
variables:
- entity: light.bed_led
- top: 11%
- left: 67.5%
- type: custom:decluttering-card
template: floorplan_state_icon
variables:
@@ -167,3 +167,21 @@
background-color: rgba(255,0,0,0.5)
color: transparent
transform: perspective(2000px) rotateX(185.6deg) rotateY(73.1deg)
# Master bedroom LED Strip
- type: conditional
conditions:
- entity: light.bed_led
state: "on"
elements:
- type: state-label
entity: light.bed_led
style:
width: 9.9%
height: 0
top: 7.6%
left: 67.6%
background-color: '${ states[''light.bed_led''].attributes.rgb_color ? "rgb(" + states[''light.bed_led''].attributes.rgb_color[0] + "," + states[''light.bed_led''].attributes.rgb_color[1] + "," + states[''light.bed_led''].attributes.rgb_color[2] + ")" : "rgba(0, 0, 0, 0)" }'
color: transparent
box-shadow: '${ states[''light.bed_led''].attributes.rgb_color ? "0 0 10px 5px rgba(" + states[''light.bed_led''].attributes.rgb_color[0] + "," + states[''light.bed_led''].attributes.rgb_color[1] + "," + states[''light.bed_led''].attributes.rgb_color[2] + ",0.7)" : "none" }'
+12 -6
View File
@@ -35,14 +35,24 @@ cards:
template: small
entity: light.living_room_main_lights
name: Living room
- type: custom:button-card
template: small
entity: light.tuya_hallway_main_lights
name: Hallway
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: light.master_bedroom_main_lights
name: "M. Bedroom"
- type: custom:button-card
template: small
entity: light.tuya_hallway_main_lights
name: Hallway
entity: light.bedside_light
name: Bedside
- type: custom:button-card
template: small
entity: light.bed_led
name: Bed
- type: horizontal-stack
cards:
- type: custom:button-card
@@ -52,10 +62,6 @@ cards:
- type: custom:button-card
template: small
entity: light.pc
- type: custom:button-card
template: small
entity: light.bedside_light
name: Bedside
- type: custom:button-card
template: small
entity: light.tuya_hallway_entrance_lights
@@ -72,6 +72,7 @@ cards:
- fade: switch.light_le_4_fade
- wifi: sensor.light_le_4_wifi
- light.bedside_light
- light.bed_led
- type: custom:decluttering-card
template: sonos_media_player
@@ -117,8 +117,7 @@ cards:
- automation.house_mode_set_to_day
- automation.house_mode_set_to_bed
- automation.house_mode_set_to_night
- automation.house_mode_set_to_night_on_bedside_switch_double_click
- automation.house_mode_set_to_bed_on_bedside_switch_hold
- automation.house_mode_toggle_on_bedside_switch_double_click
- automation.alarm_wake_up
- automation.alarm_set_time