New badge for when Emma went to sleep

This commit is contained in:
2025-03-06 03:09:54 -05:00
parent 1fc7718bba
commit 02378b4255

View File

@ -3909,6 +3909,29 @@ views:
- condition: state
entity: input_boolean.emma_sleeping
state: 'off'
- type: custom:mushroom-template-badge
content: |-
{% from 'time.jinja' import input_datetime_read %}
{{ input_datetime_read('input_datetime.emma_asleep_at') }}
icon: mdi:weather-sunset-up
color: ''
entity: input_datetime.emma_asleep_at
label: Emma Asleep At
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
visibility:
- condition: user
users:
- f387a983651a4321a7411ff8cf36f949
- c3909d27048140729f002aaef0391775
- 879b4c04e32841b3ad1d2763a11b4e70
- condition: state
entity: input_boolean.emma_sleeping
state: 'on'
header:
card:
type: markdown