Skip to content

Commit 476c0cd

Browse files
authored
Merge pull request #22 from raihei/main
Added sorting_weight to filament settings for web server.
2 parents dde7304 + 76b4547 commit 476c0cd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

firmware/conf.d/filament.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ select:
1111
icon: mdi:movie-roll
1212
web_server:
1313
sorting_group_id: sorting_group_filament_settings
14+
sorting_weight: 30
1415
options:
1516
- ABS
1617
- ASA
@@ -49,6 +50,7 @@ select:
4950
icon: mdi:label
5051
web_server:
5152
sorting_group_id: sorting_group_filament_settings
53+
sorting_weight: 40
5254
options:
5355
- Basic
5456
- Matte
@@ -70,6 +72,7 @@ select:
7072
icon: mdi:alpha-f-circle
7173
web_server:
7274
sorting_group_id: sorting_group_filament_settings
75+
sorting_weight: 10
7376
options:
7477
- Generic
7578
- Bambu # Adding bambu even though you should never add a openspool tag to a bambu spool or you might get conflicts on RFID
@@ -88,6 +91,7 @@ select:
8891
icon: mdi:palette-outline
8992
web_server:
9093
sorting_group_id: sorting_group_filament_settings
94+
sorting_weight: 20
9195
optimistic: true
9296
options:
9397
- "beige"
@@ -190,6 +194,7 @@ number:
190194
optimistic: true
191195
web_server:
192196
sorting_group_id: sorting_group_filament_settings
197+
sorting_weight: 50
193198
set_action:
194199
then:
195200
- lambda: |-
@@ -213,6 +218,7 @@ number:
213218
optimistic: true
214219
web_server:
215220
sorting_group_id: sorting_group_filament_settings
221+
sorting_weight: 60
216222
set_action:
217223
then:
218224
- lambda: |-
@@ -231,6 +237,7 @@ text_sensor:
231237
icon: mdi:code-brackets
232238
web_server:
233239
sorting_group_id: sorting_group_filament_settings
240+
sorting_weight: 110
234241
on_value:
235242
then:
236243
- script.execute: preview_rfid_data
@@ -241,6 +248,7 @@ text_sensor:
241248
icon: mdi:hexagon-outline
242249
web_server:
243250
sorting_group_id: sorting_group_filament_settings
251+
sorting_weight: 100
244252
on_value:
245253
then:
246254
- script.execute: preview_rfid_data
@@ -251,6 +259,7 @@ text_sensor:
251259
icon: mdi:label
252260
web_server:
253261
sorting_group_id: sorting_group_filament_settings
262+
sorting_weight: 120
254263
on_value:
255264
then:
256265
- script.execute: preview_rfid_data
@@ -262,6 +271,7 @@ button:
262271
icon: mdi:upload
263272
web_server:
264273
sorting_group_id: sorting_group_filament_settings
274+
sorting_weight: 200
265275
on_press:
266276
then:
267277
- script.execute: publish_filament_setting

firmware/conf.d/pn532_rfid-solo.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ button:
178178
icon: mdi:nfc-tap
179179
web_server:
180180
sorting_group_id: sorting_group_filament_settings
181+
sorting_weight: 210
181182
on_press:
182183
then:
183184
- if:

0 commit comments

Comments
 (0)