home-assistant-configuration/sensors/house.yaml

174 lines
4.5 KiB
YAML
Raw Normal View History

- 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
2019-09-07 19:11:00 +00:00
entity_id: 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
2019-09-07 19:11:00 +00:00
entity_id: sensor.kat_driving
2019-07-14 01:38:53 +00:00
state: 'on'
type: time
end: '{{ now() }}'
duration:
days: 7
- platform: history_stats
name: Speech time
2019-09-07 19:11:00 +00:00
entity_id: media_player.guest_tv
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-09-07 19:11:00 +00:00
- platform: arlo
monitored_conditions:
- captured_today
- last_capture
- total_cameras
- battery_level
- signal_strength
- 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 -%}