Skip to content

Commit

Permalink
Merge pull request #22 from raihei/main
Browse files Browse the repository at this point in the history
Added sorting_weight to filament settings for web server.
  • Loading branch information
spuder authored Jan 12, 2025
2 parents dde7304 + 76b4547 commit 476c0cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions firmware/conf.d/filament.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ select:
icon: mdi:movie-roll
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 30
options:
- ABS
- ASA
Expand Down Expand Up @@ -49,6 +50,7 @@ select:
icon: mdi:label
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 40
options:
- Basic
- Matte
Expand All @@ -70,6 +72,7 @@ select:
icon: mdi:alpha-f-circle
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 10
options:
- Generic
- Bambu # Adding bambu even though you should never add a openspool tag to a bambu spool or you might get conflicts on RFID
Expand All @@ -88,6 +91,7 @@ select:
icon: mdi:palette-outline
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 20
optimistic: true
options:
- "beige"
Expand Down Expand Up @@ -190,6 +194,7 @@ number:
optimistic: true
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 50
set_action:
then:
- lambda: |-
Expand All @@ -213,6 +218,7 @@ number:
optimistic: true
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 60
set_action:
then:
- lambda: |-
Expand All @@ -231,6 +237,7 @@ text_sensor:
icon: mdi:code-brackets
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 110
on_value:
then:
- script.execute: preview_rfid_data
Expand All @@ -241,6 +248,7 @@ text_sensor:
icon: mdi:hexagon-outline
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 100
on_value:
then:
- script.execute: preview_rfid_data
Expand All @@ -251,6 +259,7 @@ text_sensor:
icon: mdi:label
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 120
on_value:
then:
- script.execute: preview_rfid_data
Expand All @@ -262,6 +271,7 @@ button:
icon: mdi:upload
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 200
on_press:
then:
- script.execute: publish_filament_setting
1 change: 1 addition & 0 deletions firmware/conf.d/pn532_rfid-solo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ button:
icon: mdi:nfc-tap
web_server:
sorting_group_id: sorting_group_filament_settings
sorting_weight: 210
on_press:
then:
- if:
Expand Down

0 comments on commit 476c0cd

Please sign in to comment.