Replies: 2 comments 6 replies
-
|
Thats nice, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@Eloura74 I guess you can ditch the manual rest sensor since I support setting Klipper url to get the active spool and save that particular information within the appropiate spool. See #86 for more. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made a direct integration with Moonraker via the RESTful sensor, to display the reels selected in klipper directly in Home assistant, then I created images with different colors which function as layers which are superimposed to continue my floorplan



as well as put the different coils in a honeycomb
here's how:
#################
color:
#################
name: Klipper Active Filament Spool
resource: http://192.168.1.130:7125/server/spoolman/spool_id
method: GET
value_template: '{{ value_json.result.spool_id }}' # Mise à jour ici
scan_interval: 60
headers:
Content-Type: application/json
###################
honeycomb:
###################
name: Honey Spoolman
styles:
entity_picture:
- height: 100%
- width: 40%
- transform: scaleX(0.6) scaleY(0.7) rotateX(4deg)
card:
- filter: opacity(100%)
- box-shadow: unset
- background-color: unset
- background: none
- border: none
style:
top: 15%
left: 8%
entity: light.canape
entity_picture: /local/icone/spool12.png
show_entity_picture: true
show_name: false
tap_action:
action: call-service
service: honeycomb
service_data:
size: 320
active: true
buttons:
- type: custom:button-card
entity: sensor.sunlu_black_pla
name: Sunlu PLA
show_name: true
show_state: true
show_icon: true
icon: bha:sonarr
styles:
card:
- width: 100%
- background: linear-gradient(to right, grey, darkgrey)
name:
- font-size: 13px
- color: white
- position: absolute
- top: 12%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 2px 2px black
state:
- font-size: 18px
- color: black
- position: absolute
- top: 60%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 1px 1px white
icon:
- color: >-
[[[ return
#${states['sensor.sunlu_black_pla'].attributes.filament_color_hex};]]]
tap_action:
action: more-info
- type: custom:button-card
entity: sensor.sunlu_blanc_pla
name: Sunlu PLA
show_name: true
show_state: true
show_icon: true
icon: bha:sonarr
styles:
card:
- width: 100%
- background: linear-gradient(to right, grey, darkgrey)
name:
- font-size: 13px
- color: white
- position: absolute
- top: 12%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 2px 2px black
state:
- font-size: 18px
- color: black
- position: absolute
- top: 60%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 1px 1px white
icon:
- color: >-
[[[ return
#${states['sensor.sunlu_blanc_pla'].attributes.filament_color_hex};]]]
tap_action:
action: more-info
- type: custom:button-card
entity: sensor.sunlu_bleu_pla
name: Sunlu PLA
show_name: true
show_state: true
show_icon: true
icon: bha:sonarr
styles:
card:
- width: 100%
- background: linear-gradient(to right, grey, darkgrey)
name:
- font-size: 13px
- color: white
- position: absolute
- top: 12%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 2px 2px black
state:
- font-size: 18px
- color: black
- position: absolute
- top: 60%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 1px 1px white
icon:
- color: >-
[[[ return
#${states['sensor.sunlu_bleu_pla'].attributes.filament_color_hex};]]]
tap_action:
action: more-info
- type: custom:button-card
entity: sensor.sunlu_gris_pla
name: Sunlu PLA
show_name: true
show_state: true
show_icon: true
icon: bha:sonarr
styles:
card:
- width: 100%
- background: linear-gradient(to right, grey, darkgrey)
name:
- font-size: 13px
- color: white
- position: absolute
- top: 12%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 2px 2px black
state:
- font-size: 18px
- color: black
- position: absolute
- top: 60%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 1px 1px white
icon:
- color: >-
[[[ return
#${states['sensor.sunlu_gris_pla'].attributes.filament_color_hex};]]]
tap_action:
action: more-info
- type: custom:button-card
entity: sensor.sunlu_rouge_pla
name: Sunlu PLA
show_name: true
show_state: true
show_icon: true
icon: bha:sonarr
styles:
card:
- width: 100%
- background: linear-gradient(to right, grey, darkgrey)
name:
- font-size: 13px
- color: white
- position: absolute
- top: 12%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 2px 2px black
state:
- font-size: 18px
- color: black
- position: absolute
- top: 60%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 1px 1px white
icon:
- color: >-
[[[ return
#${states['sensor.sunlu_rouge_pla'].attributes.filament_color_hex};]]]
tap_action:
action: more-info
- type: custom:button-card
entity: sensor.sunlu_multi_bleu_pla
name: Sunlu PLA
show_name: true
show_state: true
show_icon: true
icon: bha:sonarr
styles:
card:
- width: 100%
- background: linear-gradient(to right, grey, darkgrey)
name:
- font-size: 13px
- color: white
- position: absolute
- top: 12%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 2px 2px black
state:
- font-size: 18px
- color: black
- position: absolute
- top: 60%
- left: 50%
- transform: translateX(-50%)
- text-shadow: 1px 1px white
icon:
- color: >-
[[[ return
#${states['sensor.sunlu_multi_bleu_pla'].attributes.filament_color_hex};]]]
tap_action:
action: more-info
Beta Was this translation helpful? Give feedback.
All reactions