-
Notifications
You must be signed in to change notification settings - Fork 20
/
3dprinter.dash
181 lines (155 loc) · 3.9 KB
/
3dprinter.dash
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
#
# Main arguments, all optional
#
title: 3D Printer
widget_dimensions: [120, 50]
widget_margins: [4, 4]
widget_size: [1, 2]
columns: 8
global_parameters:
use_comma: 0
precision: 1
use_hass_icon: 1
namespace: default
devices:
media_player:
step: 5
office:
widget_type: navigate
title: Office
dashboard: Office
icon_inactive: mdi-desk-lamp
main_dash:
widget_type: navigate
title: Main
dashboard: Main
icon_inactive: mdi-view-dashboard
args:
sticky: 1
label:
widget_type: label
text: "Ender 3 V2"
3d_printer_switch:
widget_type: switch
title: 3D Printer
entity: switch.3d_printer
warn: 1
state_text: 1
state_map:
"on": "On"
"off": "Off"
bed_temperature:
widget_type: sensor
title: Bed
precision: 0
entity: sensor.3d_printer_bed_actual
sub_entity: sensor.3d_printer_bed_target
nozzle_temperature:
widget_type: sensor
title: Nozzle
precision: 0
entity: sensor.3d_printer_hotend_actual
sub_entity: sensor.3d_printer_hotend_target
3d_printer_state:
widget_type: sensor
title: Status
entity: sensor.3d_printer_state
sub_entity: sensor.3d_printer_print_time
state_map:
"printing": Printing
"standby": "Stand-by"
"complete": "Complete"
3d_printer_time:
widget_type: sensor
title: Remaining Time
entity: sensor.3d_printer_time_remaining
sub_entity: sensor.3d_printer_eta
3d_printer_message:
widget_type: sensor
entity: sensor.3d_printer_message
3d_printer_state_message:
widget_type: sensor
entity: sensor.3d_printer_state_message
3d_printer_current_print:
widget_type: sensor
entity: sensor.3d_printer_current_print
3d_printer_camera:
widget_type: camera
entity: camera.3d_printer
base_url: HomeAssistant
stream: 1
widget_style: "background: transparent;"
3d_printer_thumbnail:
widget_type: camera
entity: camera.3d_printer_thumbnail
base_url: HomeAssistant
refresh: 60
3d_printer_emergency_stop:
widget_type: script
entity: script.3d_printer_emergency_stop
title: Emergency Stop
icon_style_inactive: "color: $red;"
3d_printer_firmware_restart:
widget_type: script
entity: script.3d_printer_firmware_restart
title: Firmware Restart
icon_style_inactive: "color: $green;"
3d_printer_pause:
widget_type: script
entity: script.3d_printer_pause
title: Pause
icon_style_inactive: "color: $yellow;"
3d_printer_cancel:
widget_type: script
entity: script.3d_printer_cancel
title: Cancel
icon_style_inactive: "color: $red;"
3d_printer_resume:
widget_type: script
entity: script.3d_printer_resume
title: Resume
icon_style_inactive: "color: $green;"
3d_printer_power:
widget_type: sensor
title: Power
precision: 0.1
entity: sensor.3d_printer_power_meter
sub_entity: sensor.3d_printer_heaters_power
3d_printer_progress:
widget_type: gauge
title: Progress
entity: sensor.3d_printer_current_progress
max: 100
min: 0
units: "%"
color: $white
low_color: $blue
med_color: $blue
high_color: $blue
3d_printer_filament:
widget_type: icon
title: Filament
entity: binary_sensor.3d_printer_filament
state_text: 1
state_map:
"on": Detected
"off": "Not detected"
icons:
"on":
icon: mdi-printer-3d-nozzle-outline
style: "color: $green;"
"off":
icon: mdi-printer-3d-nozzle-alert
style: "color: $red;"
layout:
- include: top_panel
- label (8x1)
- 3d_printer_state, 3d_printer_thumbnail (1x2), 3d_printer_message (3x1), 3d_printer_camera (3x4)
- 3d_printer_current_print (3x1)
- 3d_printer_time, 3d_printer_progress, bed_temperature (1x2), nozzle_temperature (1x2), 3d_printer_filament
- spacer (6x1)
- spacer (8x1)
- spacer (8x1)
- 3d_printer_switch (1x2), 3d_printer_power (1x2), 3d_printer_pause, 3d_printer_cancel, 3d_printer_resume, spacer (1x1), office (1x2), main_dash
- spacer (1x1)
- 3d_printer_emergency_stop, 3d_printer_firmware_restart, 3d_printer_state_message (4x1)