2021-11-12 03:13:36 +00:00
|
|
|
- platform: mqtt
|
|
|
|
name: "daily_agenda_raw"
|
|
|
|
state_topic: "house/daily/events"
|
2019-07-14 01:38:53 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Jeff Driving Time
|
2021-08-04 19:57:44 +00:00
|
|
|
entity_id: binary_sensor.jeff_driving
|
2019-07-14 01:38:53 +00:00
|
|
|
state: 'on'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
days: 7
|
|
|
|
- platform: history_stats
|
|
|
|
name: Kat Driving Time
|
2021-08-04 19:57:44 +00:00
|
|
|
entity_id: binary_sensor.kat_driving
|
2019-07-14 01:38:53 +00:00
|
|
|
state: 'on'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
days: 7
|
2019-07-11 11:47:51 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Speech time
|
2021-11-12 03:13:36 +00:00
|
|
|
entity_id: media_player.ha_blue
|
2019-07-11 11:47:51 +00:00
|
|
|
state: 'playing'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
2020-04-24 18:36:42 +00:00
|
|
|
days: 8
|
2019-07-12 20:35:36 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: AppleTV time
|
2022-02-25 04:23:08 +00:00
|
|
|
entity_id: media_player.apple_tv
|
2020-06-09 11:43:51 +00:00
|
|
|
state: 'playing'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
hours: 24
|
|
|
|
- platform: history_stats
|
|
|
|
name: Game time
|
|
|
|
entity_id: media_player.playstation_4
|
2019-07-12 20:35:36 +00:00
|
|
|
state: 'playing'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
hours: 24
|
|
|
|
- platform: history_stats
|
|
|
|
name: Roku time
|
|
|
|
entity_id: media_player.bedroom
|
|
|
|
state: 'playing'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
hours: 24
|
2019-11-11 03:45:45 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Roku Theater time
|
|
|
|
entity_id: media_player.roku_premiere
|
|
|
|
state: 'playing'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
hours: 24
|
2019-07-12 20:35:36 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Washer Time
|
|
|
|
entity_id: sensor.washer_status
|
|
|
|
state: 'running'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
2019-07-14 01:38:53 +00:00
|
|
|
days: 7
|
2019-11-26 02:25:57 +00:00
|
|
|
- platform: statistics
|
2019-07-12 20:35:36 +00:00
|
|
|
name: Outside Temp Stats
|
2021-05-24 15:49:58 +00:00
|
|
|
entity_id: sensor.acurite_6045m_3078_t
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2019-12-09 13:27:07 +00:00
|
|
|
sampling_size: 500
|
2019-11-26 02:25:57 +00:00
|
|
|
- platform: statistics
|
2019-07-12 20:35:36 +00:00
|
|
|
name: Garage Temp Stats
|
2021-05-24 15:49:58 +00:00
|
|
|
entity_id: sensor.acurite_tower_10968_t
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2019-12-09 13:27:07 +00:00
|
|
|
sampling_size: 500
|
2021-08-04 19:57:44 +00:00
|
|
|
|
|
|
|
- platform: statistics
|
|
|
|
entity_id: sensor.craft_room_temperature
|
|
|
|
name: "Craft Room Temp Sats"
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2021-08-04 19:57:44 +00:00
|
|
|
- platform: statistics
|
|
|
|
entity_id: sensor.kitchen_temperature
|
2021-12-18 15:27:53 +00:00
|
|
|
name: "Kitchen Temp Sats"
|
|
|
|
state_characteristic: mean
|
2021-08-04 19:57:44 +00:00
|
|
|
- platform: statistics
|
|
|
|
entity_id: sensor.living_room_temperature
|
|
|
|
name: "Living Room Temp Sats"
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2021-08-04 19:57:44 +00:00
|
|
|
- platform: statistics
|
|
|
|
entity_id: sensor.master_bedroom_temperature
|
|
|
|
name: "MAster Bedroom Temp Sats"
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2021-08-04 19:57:44 +00:00
|
|
|
- platform: statistics
|
|
|
|
entity_id: sensor.skylar_room_temperature
|
|
|
|
name: "Skylar Room Temp Sats"
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2019-07-12 20:35:36 +00:00
|
|
|
- platform: min_max
|
|
|
|
name: Inside Temp Stats
|
|
|
|
entity_ids:
|
|
|
|
- sensor.craft_room_temperature
|
|
|
|
- sensor.kitchen_temperature
|
|
|
|
- sensor.living_room_temperature
|
|
|
|
- sensor.master_bedroom_temperature
|
|
|
|
- sensor.skylar_room_temperature
|
2022-02-25 04:23:08 +00:00
|
|
|
type: mean
|
2019-11-11 04:43:48 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Outside Lights
|
|
|
|
entity_id: group.outside_lights
|
|
|
|
state: 'on'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
hours: 24
|
|
|
|
- platform: history_stats
|
|
|
|
name: Heating Last Day
|
|
|
|
entity_id: sensor.hvac_action
|
|
|
|
state: 'heating'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
hours: 24
|
|
|
|
- platform: history_stats
|
|
|
|
name: Heating Last Month
|
|
|
|
entity_id: sensor.hvac_action
|
|
|
|
state: 'heating'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
days: 30
|
|
|
|
- platform: history_stats
|
|
|
|
name: Cooling Last Day
|
|
|
|
entity_id: sensor.hvac_action
|
|
|
|
state: 'cooling'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
hours: 24
|
2019-11-26 02:25:57 +00:00
|
|
|
- platform: statistics
|
2020-04-02 23:16:50 +00:00
|
|
|
name: Wind Speed Stats
|
2022-03-06 23:38:00 +00:00
|
|
|
entity_id: sensor.pirateweather_wind_speed
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2019-12-09 13:27:07 +00:00
|
|
|
sampling_size: 500
|
2019-11-26 02:25:57 +00:00
|
|
|
- platform: statistics
|
|
|
|
name: Visibility Stats
|
2020-04-02 23:16:50 +00:00
|
|
|
entity_id: sensor.nws_current_visibility
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2020-04-02 23:16:50 +00:00
|
|
|
sampling_size: 500
|
|
|
|
- platform: statistics
|
|
|
|
name: Temperature Stats
|
2022-03-06 23:38:00 +00:00
|
|
|
entity_id: sensor.pirateweather_temperature
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2020-04-02 23:16:50 +00:00
|
|
|
sampling_size: 500
|
|
|
|
- platform: statistics
|
|
|
|
name: Humidity Stats
|
2022-03-06 23:38:00 +00:00
|
|
|
entity_id: sensor.pirateweather_humidity
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2020-04-02 23:16:50 +00:00
|
|
|
sampling_size: 500
|
|
|
|
- platform: statistics
|
|
|
|
name: Washer Power Stats
|
2021-08-04 19:57:44 +00:00
|
|
|
entity_id: sensor.washer_switch_electric_consumed_kwh
|
2021-12-18 15:27:53 +00:00
|
|
|
state_characteristic: mean
|
2019-12-09 13:27:07 +00:00
|
|
|
sampling_size: 500
|
2019-11-11 04:43:48 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Cooling Last Month
|
|
|
|
entity_id: sensor.hvac_action
|
|
|
|
state: 'cooling'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
days: 30
|
2021-08-04 19:57:44 +00:00
|
|
|
|
2020-12-13 01:51:17 +00:00
|
|
|
# Amazon Polly Sensors to see last message and location of audible notification
|
|
|
|
- platform: mqtt
|
|
|
|
name: "Jarvis Last Msg"
|
|
|
|
state_topic: "house/polly/lastmsg"
|
|
|
|
- platform: mqtt
|
|
|
|
name: "Jarvis Last Location"
|
|
|
|
state_topic: "house/polly/lastloc"
|
|
|
|
|
|
|
|
|
2019-07-11 11:47:51 +00:00
|
|
|
- platform: template
|
|
|
|
sensors:
|
|
|
|
sensor_count:
|
|
|
|
friendly_name: 'Number of Sensors'
|
2019-10-06 00:42:30 +00:00
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.sensor | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2019-07-11 11:47:51 +00:00
|
|
|
automation_count:
|
|
|
|
friendly_name: 'Number of Automations'
|
2019-10-06 00:42:30 +00:00
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.automation| rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2019-07-11 11:47:51 +00:00
|
|
|
script_count:
|
|
|
|
friendly_name: 'Number of Scripts'
|
2019-10-06 00:42:30 +00:00
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.script | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2019-07-11 11:47:51 +00:00
|
|
|
binary_sensor_count:
|
|
|
|
friendly_name: 'Number of Binary Sensors'
|
2019-10-06 00:42:30 +00:00
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.binary_sensor | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2019-07-11 11:47:51 +00:00
|
|
|
tracker_count:
|
|
|
|
friendly_name: 'Number of Devices'
|
2019-10-06 00:42:30 +00:00
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.device_tracker| rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2019-07-11 11:47:51 +00:00
|
|
|
lights_count:
|
|
|
|
friendly_name: 'Number of Lights'
|
2019-10-06 00:42:30 +00:00
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.light | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2020-09-23 16:52:23 +00:00
|
|
|
switches_count:
|
|
|
|
friendly_name: 'Number of Switches'
|
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.switch | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2019-07-11 11:47:51 +00:00
|
|
|
camera_count:
|
|
|
|
friendly_name: 'Number of online Cameras'
|
2019-10-06 00:42:30 +00:00
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states.camera | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
2020-06-09 11:43:51 +00:00
|
|
|
entities_count:
|
|
|
|
friendly_name: 'Number of Entities'
|
|
|
|
value_template: >-
|
2020-12-13 01:51:17 +00:00
|
|
|
{{ states | rejectattr('state', 'eq', 'unavailable') | list | count}}
|
2021-11-12 03:13:36 +00:00
|
|
|
# na_entities:
|
|
|
|
# friendly_name: 'NA Entities'
|
|
|
|
# value_template: >-
|
|
|
|
# {{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | truncate(250, False) }}
|
2021-05-24 15:49:58 +00:00
|
|
|
na_entities_count:
|
|
|
|
friendly_name: 'Number of NA Entities'
|
|
|
|
value_template: >-
|
|
|
|
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
|
2019-11-11 04:43:48 +00:00
|
|
|
hvac_action:
|
|
|
|
friendly_name: 'HVAC Action'
|
2020-03-18 02:48:41 +00:00
|
|
|
value_template: "{{states.climate.home.attributes.hvac_action}}"
|
2020-04-04 01:56:28 +00:00
|
|
|
today_is:
|
|
|
|
friendly_name: 'Today is'
|
2021-05-24 15:49:58 +00:00
|
|
|
value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}"
|
|
|
|
month_is:
|
|
|
|
friendly_name: 'Month is'
|
|
|
|
value_template: "{{ ['January','February','March','April','May','June','August','September','October','November','December'][now().month-1] }}"
|
2020-04-14 02:17:05 +00:00
|
|
|
holiday:
|
|
|
|
friendly_name: 'Holiday'
|
|
|
|
value_template: >-
|
|
|
|
{% if states.calendar.holidays_in_united_states.state == 'on' %}
|
|
|
|
{{ states.calendar.holidays_in_united_states.attributes.message }}
|
|
|
|
{% elif states.calendar.anchorage_holidays.state == 'on' %}
|
|
|
|
{{ states.calendar.anchorage_holidays.attributes.message }}
|
|
|
|
{% else %}
|
|
|
|
none
|
2020-05-18 01:29:52 +00:00
|
|
|
{% endif %}
|
|
|
|
school_tomorrow:
|
|
|
|
friendly_name: 'School Tomorrow'
|
|
|
|
value_template: >-
|
|
|
|
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
|
|
|
|
{% if states.calendar.skylar_school.attributes.start_time == test + " 07:35:00" %}
|
|
|
|
on
|
|
|
|
{% else %}
|
|
|
|
off
|
|
|
|
{% endif %}
|