Add meds taken badges to mobile dashboard
This commit is contained in:
@ -3805,6 +3805,162 @@ views:
|
||||
- condition: state
|
||||
entity: binary_sensor.raining
|
||||
state: 'on'
|
||||
- type: custom:mushroom-template-badge
|
||||
content: |-
|
||||
{% from 'time.jinja' import input_datetime_read %}
|
||||
{{ input_datetime_read('input_datetime.tony_morning_meds_taken') }}
|
||||
icon: mdi:medication
|
||||
color: ''
|
||||
entity: input_datetime.tony_morning_meds_taken
|
||||
label: Tony Morning Meds
|
||||
tap_action:
|
||||
action: none
|
||||
hold_action:
|
||||
action: none
|
||||
double_tap_action:
|
||||
action: none
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- condition: state
|
||||
entity: input_boolean.tony_morning_meds_taken
|
||||
state: 'on'
|
||||
- type: custom:mushroom-template-badge
|
||||
content: |-
|
||||
{% from 'time.jinja' import input_datetime_read %}
|
||||
{{ input_datetime_read('input_datetime.tony_afternoon_meds_taken') }}
|
||||
icon: mdi:medication
|
||||
color: ''
|
||||
entity: input_datetime.tony_morning_meds_taken
|
||||
label: Tony Afternoon Meds
|
||||
tap_action:
|
||||
action: none
|
||||
hold_action:
|
||||
action: none
|
||||
double_tap_action:
|
||||
action: none
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- condition: state
|
||||
entity: input_boolean.tony_afternoon_meds_taken
|
||||
state: 'on'
|
||||
- type: custom:mushroom-template-badge
|
||||
content: |-
|
||||
{% from 'time.jinja' import input_datetime_read %}
|
||||
{{ input_datetime_read('input_datetime.tony_night_meds_taken') }}
|
||||
icon: mdi:medication
|
||||
color: ''
|
||||
entity: input_datetime.tony_morning_meds_taken
|
||||
label: Tony Night Meds
|
||||
tap_action:
|
||||
action: none
|
||||
hold_action:
|
||||
action: none
|
||||
double_tap_action:
|
||||
action: none
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- condition: state
|
||||
entity: input_boolean.tony_night_meds_taken
|
||||
state: 'on'
|
||||
- type: custom:mushroom-template-badge
|
||||
content: |-
|
||||
{% from 'time.jinja' import input_datetime_read %}
|
||||
{{ input_datetime_read('input_datetime.tina_morning_meds_taken') }}
|
||||
icon: mdi:medication
|
||||
color: ''
|
||||
entity: input_datetime.tina_morning_meds_taken
|
||||
label: Tina Morning Meds
|
||||
tap_action:
|
||||
action: none
|
||||
hold_action:
|
||||
action: none
|
||||
double_tap_action:
|
||||
action: none
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- condition: state
|
||||
entity: input_boolean.tina_morning_meds_taken
|
||||
state: 'on'
|
||||
- type: custom:mushroom-template-badge
|
||||
content: |-
|
||||
{% from 'time.jinja' import input_datetime_read %}
|
||||
{{ input_datetime_read('input_datetime.tina_night_meds_taken') }}
|
||||
icon: mdi:medication
|
||||
color: ''
|
||||
entity: input_datetime.tina_night_meds_taken
|
||||
label: Tina Night Meds
|
||||
tap_action:
|
||||
action: none
|
||||
hold_action:
|
||||
action: none
|
||||
double_tap_action:
|
||||
action: none
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- condition: state
|
||||
entity: input_boolean.tina_night_meds_taken
|
||||
state: 'on'
|
||||
- type: custom:mushroom-template-badge
|
||||
content: |-
|
||||
{% from 'time.jinja' import input_datetime_read %}
|
||||
{{ input_datetime_read('input_datetime.kallen_morning_meds_taken') }}
|
||||
icon: mdi:medication
|
||||
color: ''
|
||||
entity: input_datetime.kallen_morning_meds_taken
|
||||
label: Kallen Morning Meds
|
||||
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.kallen_morning_meds_taken
|
||||
state: 'on'
|
||||
- type: custom:mushroom-template-badge
|
||||
content: |-
|
||||
{% from 'time.jinja' import input_datetime_read %}
|
||||
{{ input_datetime_read('input_datetime.kallen_night_meds_taken') }}
|
||||
icon: mdi:medication
|
||||
color: ''
|
||||
entity: input_datetime.kallen_night_meds_taken
|
||||
label: Kallen Night Meds
|
||||
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.kallen_night_meds_taken
|
||||
state: 'on'
|
||||
header:
|
||||
card:
|
||||
type: markdown
|
||||
|
Reference in New Issue
Block a user