212 lines
5.6 KiB
YAML
212 lines
5.6 KiB
YAML
# This file is for entities/automations that are specific to Tony
|
|
|
|
input_boolean:
|
|
tony_streaming_today:
|
|
name: Tony Streaming Today
|
|
icon: mdi:twitch
|
|
tony_morning_meds_taken:
|
|
name: Tony Morning Meds Taken
|
|
icon: mdi:medication
|
|
tony_afternoon_meds_taken:
|
|
name: Tony Afternoon Meds Taken
|
|
icon: mdi:medication
|
|
tony_night_meds_taken:
|
|
name: Tony Night Meds Taken
|
|
icon: mdi:medication
|
|
tony_ibuprofen_active:
|
|
name: Tony Ibuprofen Active
|
|
icon: mdi:medication
|
|
tony_ibuprofen_taken:
|
|
name: Tony Ibuprofen Taken
|
|
icon: mdi:medication
|
|
tony_tylenol_active:
|
|
name: Tony Tylenol Active
|
|
icon: mdi:medication
|
|
tony_tylenol_taken:
|
|
name: Tony Tylenol Taken
|
|
icon: mdi:medication
|
|
tony_custom_meds_tracker_p1:
|
|
name: Tony Custom Meds Tracker P1
|
|
icon: mdi:medication
|
|
tony_custom_meds_taken_p1:
|
|
name: Tony Custom Meds Taken P1
|
|
icon: mdi:medication
|
|
tony_custom_meds_tracker_p2:
|
|
name: Tony Custom Meds Tracker P2
|
|
icon: mdi:medication
|
|
tony_custom_meds_taken_p2:
|
|
name: Tony Custom Meds Taken P2
|
|
icon: mdi:medication
|
|
tony_awake:
|
|
name: Tony Awake
|
|
icon: mdi:eye-check
|
|
|
|
input_datetime:
|
|
tony_streaming_start_time:
|
|
name: Tony Streaming Start Time
|
|
has_date: false
|
|
has_time: true
|
|
icon: mdi:twitch
|
|
tony_morning_meds_taken:
|
|
name: Tony Morning Meds Taken
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_afternoon_meds_taken:
|
|
name: Tony Afternoon Meds Taken
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_night_meds_taken:
|
|
name: Tony Night Meds Taken
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_morning_meds_notify:
|
|
name: Tony Morning Meds Notify
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_afternoon_meds_notify:
|
|
name: Tony Afternoon Meds Notify
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_night_meds_notify:
|
|
name: Tony Night Meds Notify
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_custom_meds_taken_p1:
|
|
name: Tony Custom Meds Taken P1
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_custom_meds_notify_p1:
|
|
name: Tony Custom Meds Notify P1
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_custom_meds_taken_p2:
|
|
name: Tony Custom Meds Taken P2
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_custom_meds_notify_p2:
|
|
name: Tony Custom Meds Notify P2
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_ibuprofen_taken:
|
|
name: Tony Ibuprofen Taken
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_ibuprofen_notify:
|
|
name: Tony Ibuprofen Notify
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_tylenol_taken:
|
|
name: Tony Tylenol Taken
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
tony_tylenol_notify:
|
|
name: Tony Tylenol Notify
|
|
has_date: true
|
|
has_time: true
|
|
icon: mdi:medication
|
|
|
|
input_number:
|
|
tony_afternoon_meds_interval:
|
|
name: Tony Afternoon Meds Interval
|
|
min: 0
|
|
max: 12
|
|
step: 1
|
|
unit_of_measurement: hours
|
|
icon: mdi:medication
|
|
tony_custom_meds_interval_p1:
|
|
name: Tony Custom Meds Interval P1
|
|
min: 0
|
|
max: 24
|
|
step: 1
|
|
icon: mdi:medication
|
|
tony_custom_meds_interval_p2:
|
|
name: Tony Custom Meds Interval P2
|
|
min: 0
|
|
max: 24
|
|
step: 1
|
|
icon: mdi:medication
|
|
|
|
input_text:
|
|
tony_custom_med_name_p1:
|
|
name: Tony Custom Med Name P1
|
|
icon: mdi:medication
|
|
tony_custom_med_name_p2:
|
|
name: Tony Custom Med Name P2
|
|
icon: mdi:medication
|
|
|
|
input_select:
|
|
tony_custom_meds_type_p1:
|
|
name: Tony Custom Meds Type P1
|
|
options:
|
|
- Wakeup
|
|
- Bedtime
|
|
- Other Time
|
|
- Interval
|
|
icon: mdi:medication
|
|
tony_custom_meds_type_p2:
|
|
name: Tony Custom Meds Type P2
|
|
options:
|
|
- Wakeup
|
|
- Bedtime
|
|
- Other Time
|
|
- Interval
|
|
icon: mdi:medication
|
|
|
|
sensor:
|
|
- platform: rest
|
|
name: Home Tech
|
|
method: GET
|
|
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
|
|
params:
|
|
project_id: 2285967948
|
|
headers:
|
|
Authorization: !secret todoist_api_token
|
|
value_template: '{{value_json[''project''][''id'']}}'
|
|
json_attributes:
|
|
- project
|
|
- 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
|