spaceapid: adjustments to 3d printer state sensors #8
Loading…
Reference in a new issue
No description provided.
Delete branch "dx/nix-infra:3d-printer-state-part-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
extensions (this also improves attribute access for tools that don't
like fields starting with a number)
Talked to @bendodroid and got some feedback to refine this
This is marked as WIP because it requires changes in home assistant:
3d_printer_state
should now hitext_3d_printer_busy_state
ext_3d_printer_minutes_remaining
needs a new automation that triggers every minute when a printer is printing. The tricky part of this one is that we get the finish time in absolute time from the entity, and we want to turn that into relative time in minutes. I don't know how difficult this is, likely involves writing some pseudopython in the jinja value template.The first change is a breaking change (of an unannounced feature that only i am using currently), but it is easy enough. If someone wants to do that for me, this can be merged and deployed.
The second one can stay as 0 until the next time I visit club and implement that. (Unless, of course, someone else wants to take that challenge)
Looks good!
Okay handling of time in templates is well documented and looks doable: https://www.home-assistant.io/docs/configuration/templating/#time
WIP: spaceapid: adjustments to 3d printer state sensorsto spaceapid: adjustments to 3d printer state sensors80a543aaf3
to8305b8319f
8305b8319f
to9d1521c485
I rebased this, can I have a merge please? :3