Skip to content

Instantly share code, notes, and snippets.

@cmsj
Created August 31, 2026 13:28
Show Gist options
  • Select an option

  • Save cmsj/79a7f53106b16d0e9569be0321128e4a to your computer and use it in GitHub Desktop.

Select an option

Save cmsj/79a7f53106b16d0e9569be0321128e4a to your computer and use it in GitHub Desktop.
Initial attempt at a Live Activity on iOS using Home Assistant and PrusaLink
alias: 'C1L: Live Activity while printing'
description: ''
triggers:
- trigger: state
entity_id:
- sensor.prusa_core_one_l
to:
- finished
- error
- stopped
- unavailable
- unknown
id: dismiss
alias: Printer enters a terminal state
- trigger: state
entity_id: sensor.prusa_core_one_l_progress
id: progress
alias: Printing progress changes
- trigger: state
entity_id:
- sensor.prusa_core_one_l
to:
- printing
id: printing
alias: Printing starts
conditions:
- condition: or
conditions:
- condition: trigger
id:
- dismiss
- condition: trigger
id:
- printing
- condition: and
conditions:
- condition: trigger
id:
- progress
- alias: Progress is a multiple of 5%
condition: template
value_template: '{{ states(''sensor.prusa_core_one_l_progress'') | int(0) % 5 == 0 }}'
alias: If triggered by progress, filtered to increments of 5%
actions:
- choose:
- conditions:
- condition: trigger
id:
- dismiss
sequence:
- action: notify.mobile_app_pony
metadata: {}
data:
message: clear_notification
data:
tag: coreonel_printing
- conditions:
- condition: trigger
id:
- progress
- printing
sequence:
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
alias: Delay so we can be restarted if progress is changing too quickly
- action: notify.mobile_app_pony
data:
title: Core One L
message: '{{ states(''sensor.prusa_core_one_l_filename'') }}'
data:
tag: coreonel_printing
live_update: true
progress: '{{ states(''sensor.prusa_core_one_l_progress'') | int}}'
progress_max: 100
chronometer: true
when: >-
{{ states('sensor.prusa_core_one_l_print_finish') |
as_timestamp}}
notification_icon: mdi:printer-3d-nozzle-heat
notification_icon_color: '#FC6D09'
url: /dashboard-cmsj2/rooms%23prusa
mode: restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment