111 lines
3.3 KiB
YAML
111 lines
3.3 KiB
YAML
- platform: template
|
|
sensors:
|
|
sensor_count:
|
|
friendly_name: 'Number of Sensors'
|
|
value_template: >-
|
|
{{ states.sensor | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
automation_count:
|
|
friendly_name: 'Number of Automations'
|
|
value_template: >-
|
|
{{ states.automation| rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
script_count:
|
|
friendly_name: 'Number of Scripts'
|
|
value_template: >-
|
|
{{ states.script | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
binary_sensor_count:
|
|
friendly_name: 'Number of Binary Sensors'
|
|
value_template: >-
|
|
{{ states.binary_sensor | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
tracker_count:
|
|
friendly_name: 'Number of Devices'
|
|
value_template: >-
|
|
{{ states.device_tracker| rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
lights_count:
|
|
friendly_name: 'Number of Lights'
|
|
value_template: >-
|
|
{{ states.light | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
switches_count:
|
|
friendly_name: 'Number of Switches'
|
|
value_template: >-
|
|
{{ states.switch | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
camera_count:
|
|
friendly_name: 'Number of online Cameras'
|
|
value_template: >-
|
|
{{ states.camera | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
|
entities_count:
|
|
friendly_name: 'Number of Entities'
|
|
value_template: >-
|
|
{{ states | rejectattr('state', 'eq', 'unavailable') | list | count}}
|
|
na_entities_count:
|
|
friendly_name: 'Number of NA Entities'
|
|
value_template: >-
|
|
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
|
|
|
|
- platform: uptime
|
|
name: Last Boot
|
|
|
|
- platform: history_stats
|
|
name: Basement TV Time
|
|
entity_id: media_player.basement_tv
|
|
state: 'playing'
|
|
type: time
|
|
end: '{{ now() }}'
|
|
duration:
|
|
hours: 24
|
|
- platform: history_stats
|
|
name: Basement TV Chromecast Time
|
|
entity_id: media_player.basement_tv_chromecast
|
|
state: 'playing'
|
|
type: time
|
|
end: '{{ now() }}'
|
|
duration:
|
|
hours: 24
|
|
- platform: history_stats
|
|
name: Living Room TV Time
|
|
entity_id: media_player.living_room_tv
|
|
state: 'playing'
|
|
type: time
|
|
end: '{{ now() }}'
|
|
duration:
|
|
hours: 24
|
|
- platform: history_stats
|
|
name: Living Room TV Chromecast Time
|
|
entity_id: media_player.living_room_tv_chromecast
|
|
state: 'playing'
|
|
type: time
|
|
end: '{{ now() }}'
|
|
duration:
|
|
hours: 24
|
|
- platform: history_stats
|
|
name: Master Bedroom TV Time
|
|
entity_id: media_player.master_bedroom_firetv
|
|
state: 'playing'
|
|
type: time
|
|
end: '{{ now() }}'
|
|
duration:
|
|
hours: 24
|
|
- platform: history_stats
|
|
name: Living Room Xbox One Time
|
|
entity_id: media_player.xboxone
|
|
state: 'playing'
|
|
type: time
|
|
end: '{{ now() }}'
|
|
duration:
|
|
hours: 24
|
|
- platform: history_stats
|
|
name: Outside Lights
|
|
entity_id: light.outside_lights
|
|
state: 'on'
|
|
type: time
|
|
end: '{{ now() }}'
|
|
duration:
|
|
hours: 24
|
|
|
|
# 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"
|