I am trying to create a Live Activity that will display my 3D print’s progress. However, whenever I try to use a template to get the current progress, it turns itself into "[object Object]": null. The YAML I am trying to use is:
- action: notify.mobile_app_[my_device_identifier]
metadata: {}
data:
data:
tag: p1s
live_update: true
progress: {{ states("sensor.p1s_01p00c4c2300887_print_progress") }}
progress_max: 100
notification_icon: mdi:printer-3d-nozzle
notification_icon_color: 5f68bd
message: >-
Current stage: {{
states("sensor.p1s_01p00c4c2300887_current_stage")}}
title: P1S Print Progress
However, the
progress: {{ states("sensor.p1s_01p00c4c2300887_print_progress")}}
turns itself into
progress:
"[object Object]": null
Can anybody shed some light on why this isn’t working?
Thanks in advance!