-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathHomeDicator.yaml
executable file
·179 lines (159 loc) · 6.19 KB
/
HomeDicator.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
substitutions:
# -----------------------
# ADJUST DEVICE NAME HERE
# -----------------------
device_name: "homedicator-development"
device_friendly_name: "HomeDicator Development"
# ------------------
# ENTER API KEY HERE
# ------------------
api_key: "<api-key>"
# ----------------------------------------------------------------------------------------------------
# ADJUST TOTAL NUMBER OF PAGES HERE
# Is used to generate navigation dots and their logic (set it to your pages + 1 for the settings page)
# ----------------------------------------------------------------------------------------------------
total_pages: "3"
# --------------
# OTHER SETTINGS
# --------------
page_transition_time: 150ms # How long to animate the transition between pages.
user_interface_debug_mode: "false" # Draws borders around objects and labels for layouting
packages:
HomeDicator: !include HomeDicator/device/sdl.yaml
sensor:
# -----------------------------------------------------------------------
# ADD YOUR SENSORS HERE
# Because of the way ESPHOME works lights, thermostats, etc also go here
# They need to be included here in order for the display to update values.
# -----------------------------------------------------------------------
- !include
file: HomeDicator/core/templates/sensor.yaml
vars:
hass_sensor_id: "airgradient_schlafzimmer_temperature" # You can ommit the "sensor."
- !include
file: HomeDicator/core/templates/sensor.yaml
vars:
hass_sensor_id: "airgradient_schlafzimmer_senseair_co2_value" # You can ommit the "sensor."
- !include
file: HomeDicator/core/templates/sensor.yaml
vars:
hass_sensor_id: "airgradient_schlafzimmer_particulate_matter_1_0_m_concentration" # You can ommit the "sensor."
- !include
file: HomeDicator/core/templates/climate_sensor_wide.yaml
vars:
hass_climate_id: "schlafzimmer_schreibtisch" # You can ommit the "climate."
- !include
file: HomeDicator/core/templates/climate_sensor.yaml
vars:
hass_climate_id: "wohnzimmer_fenster_links" # You can ommit the "climate."
- !include
file: HomeDicator/core/templates/climate_sensor.yaml
vars:
hass_climate_id: "kuche" # You can ommit the "climate."
- !include
file: HomeDicator/core/templates/climate_sensor_wide.yaml
vars:
hass_climate_id: "badezimmer_fenster" # You can ommit the "climate."
binary_sensor:
# ---------------------
# ADD YOUR SENSORS HERE
# ---------------------
switch:
# ----------------------
# ADD YOUR SWITCHES HERE
# ----------------------
lvgl:
pages:
# ----------------------------
# ADD / ADJUST YOUR PAGES HERE
# ----------------------------
- id: first_page
bg_opa: TRANSP
widgets:
- !include
file: HomeDicator/user_interface/templates/page_title.yaml
vars:
title: "Temperature" # CHANGE PAGE TITLE HERE
- obj:
styles: content_container
layout:
type: FLEX
flex_flow: ROW_WRAP
flex_align_main: LV_FLEX_ALIGN_START
flex_align_cross: CENTER
widgets:
- !include
file: HomeDicator/user_interface/templates/tiles/thermostat/wide_half_height.yaml
vars:
color: 0xeebf41
hass_climate_id: "schlafzimmer_schreibtisch"
min_value: 5
max_value: 25
unit: "°C"
icon: "\U000F08A0"
- !include
file: HomeDicator/user_interface/templates/tiles/thermostat/square.yaml
vars:
color: 0xeebf41
hass_climate_id: "wohnzimmer_fenster_links"
min_value: 5
max_value: 25
unit: "°C"
title: "Living Room"
- !include
file: HomeDicator/user_interface/templates/tiles/thermostat/square.yaml
vars:
color: 0xeebf41
hass_climate_id: "kuche"
min_value: 5
max_value: 25
unit: "°C"
title: "Kittchen"
- !include
file: HomeDicator/user_interface/templates/tiles/thermostat/wide_half_height.yaml
vars:
color: 0xeebf41
hass_climate_id: "badezimmer_fenster"
min_value: 5
max_value: 25
unit: "°C"
icon: "\U000F1819"
- id: second_page
bg_opa: TRANSP
widgets:
- !include
file: HomeDicator/user_interface/templates/page_title.yaml
vars:
title: "Sensors" # CHANGE PAGE TITLE HERE
- obj:
styles: content_container
layout:
type: FLEX
flex_flow: ROW_WRAP
flex_align_main: LV_FLEX_ALIGN_START
flex_align_cross: CENTER
widgets:
- !include
file: HomeDicator/user_interface/templates/tiles/sensor/square.yaml
vars:
color: 0xeebf41
hass_sensor_id: "airgradient_schlafzimmer_temperature"
icon: "\U000F0F55"
unit: "°C"
title: "Bedroom"
- !include
file: HomeDicator/user_interface/templates/tiles/sensor/square.yaml
vars:
color: 0xeebf41
hass_sensor_id: "airgradient_schlafzimmer_senseair_co2_value"
icon: "\U000F07E4"
unit: "ppm"
title: "Bedroom"
- !include
file: HomeDicator/user_interface/templates/tiles/sensor/wide.yaml
vars:
color: 0xeebf41
hass_sensor_id: "airgradient_schlafzimmer_particulate_matter_1_0_m_concentration"
icon: "\U000F013B"
unit: "µg/m³"
title: "Bedroom"