Preview image for 3d printer
This commit is contained in:
@@ -202,6 +202,10 @@ sensor:
|
||||
value: !lambda return x;
|
||||
|
||||
text_sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: image.k2plus_c06b_current_print_preview
|
||||
attribute: entity_picture
|
||||
id: printer_preview_url
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.k2plus_c06b_print_status
|
||||
id: printerStatus
|
||||
@@ -887,6 +891,33 @@ lvgl:
|
||||
entity_id: number.k2plus_c06b_bed_target
|
||||
value: !lambda "return x;"
|
||||
|
||||
- id: printer_preview_page
|
||||
widgets:
|
||||
- obj:
|
||||
align: TOP_MID
|
||||
id: header_page_printer_preview
|
||||
styles: header_footer
|
||||
widgets:
|
||||
- label:
|
||||
text: "Print Preview"
|
||||
align: CENTER
|
||||
text_align: CENTER
|
||||
text_color: 0xFFFFFF
|
||||
- label:
|
||||
align_to:
|
||||
id: header_page_printer_preview
|
||||
align: OUT_BOTTOM_MID
|
||||
y: 10
|
||||
id: lbl_preview_status
|
||||
text: "Print preview image"
|
||||
text_align: CENTER
|
||||
- label:
|
||||
align: CENTER
|
||||
id: lbl_preview_info
|
||||
text: "View full preview in\nHome Assistant app"
|
||||
text_align: CENTER
|
||||
text_color: 0x808080
|
||||
|
||||
on_idle:
|
||||
timeout: !lambda "return (id(displayTimeout).state * 1000);"
|
||||
then:
|
||||
|
||||
Reference in New Issue
Block a user