No Daleks, I promise… Cybermen - MAYBE?
Cool Project! Simple Timer Card
But look how they’re doing it for the card is important… These are the instructions for how they pull in the info for a VPE (you know those timers that live on an island right now?)
simple-timer-card/voice-pe.md at main · eyalgal/simple-timer-card
tl;dr
They build a bunch of template sensors like this one
template:
- sensor:
- name: "VPE Timer 1"
state: "{{ states('sensor.timer_1_state') or 'idle' }}"
attributes:
display_name: >-
{% set s = states('sensor.timer_1_total_seconds')|int(0) %}
{% set h = s // 3600 %}
{% set m = (s % 3600) // 60 %}
{% set sec = s % 60 %}
{% if h > 0 %}Voice PE - {{ h }}h
{% elif m > 0 %}Voice PE - {{ m }}m
{% else %}Voice PE - {{ sec }}s{% endif %}
timer_name: "{{ states('sensor.timer_1_name') }}"
duration: >-
{% set s = states('sensor.timer_1_total_seconds')|int(0) %}
{{ '%d:%02d:%02d' % (s//3600, (s%3600)//60, s%60) }}
remaining: >-
{% set s = states('sensor.timer_1_seconds_left')|int(0) %}
{{ '%d:%02d:%02d' % (s//3600, (s%3600)//60, s%60) }}
supports_pause: false
supports_cancel: false
And feed them with a little lightweight extra code on your VPE (yes you can, (documented in the repo)
Then you suddenly have a central timer repository… - and if you use the same template sensors to feed your timer tools…
Thanks eyalgal for the solve.
So you do you, but PERSONALLY I like hijacking a known solve (trigger text sensors) and turning it into something cool (cabinet) - It’s how we do things roun’ here…
This just became the basis for Friday’s timer manager… Timekeeper. (Look, I’m fighting every urge to NOT call it Timelord, OK?)
She’s back online, so I’ll get the tool in beta soon-ish.
On that… Moral is, don’t oversubscribe disks folks, “disk r cheep” and your time for a 24 hr recovery (I still have a day job to do…) from bonehead maneuver is expensive…