forked from bradcrc/color-lite-card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example-Lovelace.yaml
62 lines (39 loc) · 1.28 KB
/
Example-Lovelace.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
title: Home Assistant
resources:
# Copy the .js file to the path below in your config dir
- url: /local/js/color-lite-card.js?v=0.348
type: js
views:
- path: floorplan
title: Main Floor
background: "#000000"
panel: true
cards:
- type: picture-elements
image: /local/floorplan/house.jpg
elements:
# This is the light card
- type: custom:color-lite-card
entity: light.living_room_lamp
image:
/local/floorplan/Lamp.png
color_image:
/local/floorplan/LampColor.png
style:
top: 50%
left: 50%
width: 100%
# This is the control card.
# Make sure it is after *all* full screen light cards so its on top.
- type: image
entity: light.living_room_lamp
tap_action:
action: toggle
state_image:
'on': /local/lite.png
'off': /local/liteoff.png
# Adjust top/left position so its over the light fixture
style:
top: 73.1%
left: 42.4%
width: 12%