@ -4,12 +4,21 @@ input_boolean:
|
||||
tony_streaming_today:
|
||||
name: Tony Streaming Today
|
||||
icon: mdi:twitch
|
||||
tony_morning_meds_reminder:
|
||||
name: Tony Morning Meds Reminder
|
||||
icon: mdi:medication
|
||||
tony_morning_meds_taken:
|
||||
name: Tony Morning Meds Taken
|
||||
icon: mdi:medication
|
||||
tony_afternoon_meds_reminder:
|
||||
name: Tony Afternoon Meds Reminder
|
||||
icon: mdi:medication
|
||||
tony_afternoon_meds_taken:
|
||||
name: Tony Afternoon Meds Taken
|
||||
icon: mdi:medication
|
||||
tony_night_meds_reminder:
|
||||
name: Tony Night Meds Reminder
|
||||
icon: mdi:medication
|
||||
tony_night_meds_taken:
|
||||
name: Tony Night Meds Taken
|
||||
icon: mdi:medication
|
||||
@ -180,32 +189,32 @@ sensor:
|
||||
- items
|
||||
scan_interval: 30
|
||||
|
||||
template:
|
||||
- binary_sensor:
|
||||
- name: Tony Morning Meds Needed
|
||||
unique_id: 32f2f158-8c59-486e-bf85-f14909375ff7
|
||||
state: >
|
||||
{% set ct = as_timestamp(now()) %}
|
||||
{% set notify = state_attr('input_datetime.tony_morning_meds_notify','timestamp') %}
|
||||
{{ (ct >= notify) and is_state('input_boolean.tony_morning_meds_taken','off') }}
|
||||
attributes:
|
||||
reminder_time: "{{ states('input_datetime.tony_morning_meds_notify') }}"
|
||||
icon: mdi:medication
|
||||
- name: Tony Afternoon Meds Needed
|
||||
unique_id: 363b5ea0-3ad7-4e98-b0b0-5ff67bbef2f4
|
||||
state: >
|
||||
{% set ct = as_timestamp(now()) %}
|
||||
{% set notify = state_attr('input_datetime.tony_afternoon_meds_notify','timestamp') %}
|
||||
{{ (ct >= notify) and is_state('input_boolean.tony_afternoon_meds_taken','off') }}
|
||||
attributes:
|
||||
reminder_time: "{{ states('input_datetime.tony_afternoon_meds_notify') }}"
|
||||
icon: mdi:medication
|
||||
- name: Tony Night Meds Needed
|
||||
unique_id: b927b5a4-27a7-42aa-af4e-fa37a7036d25
|
||||
state: >
|
||||
{% set ct = as_timestamp(now()) %}
|
||||
{% set notify = state_attr('input_datetime.tony_night_meds_notify','timestamp') %}
|
||||
{{ (ct >= notify) and is_state('input_boolean.tony_night_meds_taken','off') }}
|
||||
attributes:
|
||||
reminder_time: "{{ states('input_datetime.tony_night_meds_notify') }}"
|
||||
icon: mdi:medication
|
||||
# template:
|
||||
# - binary_sensor:
|
||||
# - name: Tony Morning Meds Needed
|
||||
# unique_id: 32f2f158-8c59-486e-bf85-f14909375ff7
|
||||
# state: >
|
||||
# {% set ct = as_timestamp(now()) %}
|
||||
# {% set notify = state_attr('input_datetime.tony_morning_meds_notify','timestamp') %}
|
||||
# {{ (ct >= notify) and is_state('input_boolean.tony_morning_meds_taken','off') }}
|
||||
# attributes:
|
||||
# reminder_time: "{{ states('input_datetime.tony_morning_meds_notify') }}"
|
||||
# icon: mdi:medication
|
||||
# - name: Tony Afternoon Meds Needed
|
||||
# unique_id: 363b5ea0-3ad7-4e98-b0b0-5ff67bbef2f4
|
||||
# state: >
|
||||
# {% set ct = as_timestamp(now()) %}
|
||||
# {% set notify = state_attr('input_datetime.tony_afternoon_meds_notify','timestamp') %}
|
||||
# {{ (ct >= notify) and is_state('input_boolean.tony_afternoon_meds_taken','off') }}
|
||||
# attributes:
|
||||
# reminder_time: "{{ states('input_datetime.tony_afternoon_meds_notify') }}"
|
||||
# icon: mdi:medication
|
||||
# - name: Tony Night Meds Needed
|
||||
# unique_id: b927b5a4-27a7-42aa-af4e-fa37a7036d25
|
||||
# state: >
|
||||
# {% set ct = as_timestamp(now()) %}
|
||||
# {% set notify = state_attr('input_datetime.tony_night_meds_notify','timestamp') %}
|
||||
# {{ (ct >= notify) and is_state('input_boolean.tony_night_meds_taken','off') }}
|
||||
# attributes:
|
||||
# reminder_time: "{{ states('input_datetime.tony_night_meds_notify') }}"
|
||||
# icon: mdi:medication
|
||||
|
Reference in New Issue
Block a user