2019-03-09 02:52:37 +00:00
|
|
|
- platform: mqtt
|
|
|
|
name: "Washer Status"
|
|
|
|
state_topic: "house/washer/status"
|
2019-07-14 01:38:53 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Jeff Driving Time
|
|
|
|
entity_id: sesnor.jeff_driving
|
|
|
|
state: 'on'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
days: 7
|
|
|
|
- platform: history_stats
|
|
|
|
name: Kat Driving Time
|
|
|
|
entity_id: sesnor.kat_driving
|
|
|
|
state: 'on'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
|
|
|
days: 7
|
2019-07-11 11:47:51 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: Speech time
|
2019-07-12 20:35:36 +00:00
|
|
|
entity_id: media_player.hass_speaker
|
2019-07-11 11:47:51 +00:00
|
|
|
state: 'playing'
|
|
|
|
type: time
|
|
|
|
end: '{{ now() }}'
|
|
|
|
duration:
|
2019-07-14 01:38:53 +00:00
|
|
|
days: 7
|
2019-07-12 20:35:36 +00:00
|
|
|
- platform: history_stats
|
|
|
|
name: AppleTV time
|
|
|
|
entity_id: media_player.apple_tv
|
|
|
|
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
|
|
|
|
- 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-07-12 20:35:36 +00:00
|
|
|
- platform: min_max
|
|
|
|
name: Outside Temp Stats
|
|
|
|
entity_ids:
|
|
|
|
- sensor.accurite_back_porch_temperature
|
|
|
|
- platform: min_max
|
|
|
|
name: Garage Temp Stats
|
|
|
|
entity_ids:
|
|
|
|
- sensor.accurite_garage_temperature
|
|
|
|
- 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
|
2019-07-11 11:47:51 +00:00
|
|
|
- platform: template
|
|
|
|
sensors:
|
|
|
|
sensor_count:
|
|
|
|
friendly_name: 'Number of Sensors'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{%- set domains = ['sensor'] -%}
|
|
|
|
{%- for domain in domains -%}
|
|
|
|
{%- for item in states[domain] -%}
|
|
|
|
{% if loop.first %}
|
|
|
|
{{loop.length}}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
automation_count:
|
|
|
|
friendly_name: 'Number of Automations'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{%- set domains = ['automation'] -%}
|
|
|
|
{%- for domain in domains -%}
|
|
|
|
{%- for item in states[domain] -%}
|
|
|
|
{% if loop.first %}
|
|
|
|
{{loop.length}}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
script_count:
|
|
|
|
friendly_name: 'Number of Scripts'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{%- set domains = ['script'] -%}
|
|
|
|
{%- for domain in domains -%}
|
|
|
|
{%- for item in states[domain] -%}
|
|
|
|
{% if loop.first %}
|
|
|
|
{{loop.length}}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
binary_sensor_count:
|
|
|
|
friendly_name: 'Number of Binary Sensors'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{%- set domains = ['binary_sensor'] -%}
|
|
|
|
{%- for domain in domains -%}
|
|
|
|
{%- for item in states[domain] -%}
|
|
|
|
{% if loop.first %}
|
|
|
|
{{loop.length}}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
tracker_count:
|
|
|
|
friendly_name: 'Number of Devices'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{%- set domains = ['device_tracker'] -%}
|
|
|
|
{%- for domain in domains -%}
|
|
|
|
{%- for item in states[domain] -%}
|
|
|
|
{% if loop.first %}
|
|
|
|
{{loop.length}}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
lights_count:
|
|
|
|
friendly_name: 'Number of Lights'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{%- set domains = ['light'] -%}
|
|
|
|
{%- for domain in domains -%}
|
|
|
|
{%- for item in states[domain] -%}
|
|
|
|
{% if loop.first %}
|
|
|
|
{{loop.length}}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
protect_count:
|
|
|
|
friendly_name: 'Number of Smoke Detectors'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{% if states('group.protects') == 'on' %}
|
|
|
|
{% for e in states.group.protects.attributes.entity_id if states(e) == 'on' %}
|
|
|
|
{% if loop.last %}
|
|
|
|
{{ loop.index }}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
{% else %}
|
|
|
|
0
|
|
|
|
{% endif %}
|
|
|
|
camera_count:
|
|
|
|
friendly_name: 'Number of online Cameras'
|
|
|
|
entity_id: []
|
|
|
|
value_template: >
|
|
|
|
{%- set domains = ['camera'] -%}
|
|
|
|
{%- for domain in domains -%}
|
|
|
|
{%- for item in states[domain] -%}
|
|
|
|
{% if loop.first %}
|
|
|
|
{{loop.length}}
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
2019-07-12 20:35:36 +00:00
|
|
|
{%- endfor -%}
|