-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui-lovelace.yaml
executable file
·188 lines (165 loc) · 6.3 KB
/
ui-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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
########## 前端使用内置的lovelace服务并通过改写yaml文件方式进行设计 ################
########## 外置插件需要在resource里面进行refer,可索引到本地端链接或者远程github repositpory
########## 由custom-updater进行更新管理,需要在url最后添加"?track=true",否则无法自动更新
resources:
- url: /local/custom-lovelace/tracker-card/tracker-card.js?track=true
type: module
- url: /local/custom-lovelace/weather-card/weather-card.js?track=true
type: module
- url: /local/custom-lovelace/swipe-card/swipe-card.js?track=true
type: module
- url: /local/custom-lovelace/mini-graph-card/mini-graph-card-bundle.js?v=0.3.0
type: module
- url: /local/custom-lovelace/compact-custom-header/compact-custom-header.js?v=0.0.1
type: module
- url: /local/custom-lovelace/useful-markdown-card/markdown-mod.js?track=true
type: module
- url: /local/custom-lovelace/card-tools.js?track=true
type: js
- url: /local/custom-lovelace/layout-card/layout-card.js?track=true
type: js
### compact-custom-header ###
### src: https://github.com/maykar/compact-custom-header ###
cch:
background: transparent
menu: show
options: hide
voice: hide
#notifications: hide
title: 我的家
views:
- title: 控制
path: config
icon: mdi:wrench
cards:
- type: custom:tracker-card
trackers: ['sensor.custom_card_tracker']
- title: 主页
path: overview
icon: mdi:home-circle
background: center / cover no-repeat url("/local/photos/Republic-of-Gamers.jpg") fixed
panel: true
cards:
### lovelace-layout-card ###
### src: https://github.com/thomasloven/lovelace-layout-card ###
- type: custom:layout-card
layout: vertical
cards:
### Welcome page #############################################
###########################################################
### lovelace-markdown-mod ###
### src: https://github.com/thomasloven/lovelace-markdown-mod ###
- type: markdown
content: >
<font face="苹方-简" size=5>欢迎回家:</font><br/><br/>
<center>
<font face="Noto Nastaliq Urdu" size=3>[[ sensor.date ]]</font><br/><br/>
<font face="综艺体简" size=10>[[ sensor.time ]]</font>
</center>
### Darksky weather #######################################
###########################################################
### weather-card ###
### src: https://github.com/bramkragten/weather-card ###
- type: custom:weather-card
entity: weather.darkskytian_qi
icons: "/local/custom-lovelace/weather-card/icons/"
- break
### Phicomm-m1 #############################################
###########################################################
- type: entities
show_header_toggle: false
entities:
### swipe-card ###
### src: https://github.com/bramkragten/swipe-card ###
- type: custom:swipe-card
path: '/local/custom-lovelace/swipe-card'
parameters:
effect: coverflow
grabCursor: true
centeredSlides: true
slidesPerView: auto
coverflowEffect:
rotate: 50
stretch: 0
depth: 100
modifier: 1
slideShadows: true
pagination:
type: bullets
cards:
### mini-graph-card ###
### src: https://github.com/kalkih/mini-graph-card ###
- type: custom:mini-graph-card
entities:
- sensor.m1_temperature
name: 室内温度
line_color: '#e74c3c'
font_size: 75
points_per_hour: 6
- type: custom:mini-graph-card
entities:
- sensor.m1_humidity
name: 室内湿度
line_color: blue
font_size: 75
points_per_hour: 6
- type: custom:mini-graph-card
entities:
- sensor.m1_hcho
name: 室内甲醛
font_size: 75
points_per_hour: 6
color_thresholds:
- value: 0
color: "#9AFF9A"
- value: 0.1
color: "#CAFF70"
- value: 0.3
color: "#CDCD00"
- type: custom:mini-graph-card
entities:
- sensor.m1_pm25
name: 室内pm2.5
font_size: 75
points_per_hour: 6
color_thresholds:
- value: 0
color: "#D9D9D9"
- value: 75
color: "#CDC1C5"
- value: 150
color: "#B3B3B3"
- input_number.phicomm_m1_led
### Heweather #############################################
###########################################################
- type: entities
show_header_toggle: false
entities:
- sensor.heweather_comf
- sensor.heweather_cw
- sensor.heweather_drsg
- sensor.heweather_sport
- sensor.heweather_trav
- sensor.heweather_uv
- break
- type: entities
show_header_toggle: false
entities:
- sun.sun
- sensor.heweather_tmp_max
- sensor.heweather_tmp_min
- sensor.heweather_fl
- sensor.heweather_tmp
- sensor.heweather_hum
- sensor.heweather_pop
- sensor.heweather_cond_txt
- sensor.heweather_pcpn
- sensor.heweather_pres
- sensor.heweather_vis
- title: 面板
path: panel
icon: mdi:home-automation
background: "#231f25"
cards:
### Floorplan page #############################################
###########################################################