home-assistant-configuration/config/sensors/house.yaml

225 lines
5.6 KiB
YAML
Raw Normal View History

2020-04-02 23:16:50 +00:00
# MQTT Sensor for Washing Machine Status.
- platform: mqtt
name: "Washer Status"
state_topic: "house/washer/status"
2020-04-02 23:16:50 +00:00
2020-06-15 00:42:01 +00:00
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
entity_id: media_player.ha_speaker
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
2020-06-09 11:43:51 +00:00
entity_id: media_player.home_theater
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
- platform: statistics
2019-07-12 20:35:36 +00:00
name: Outside Temp Stats
2019-11-26 02:28:44 +00:00
entity_id: sensor.accurite_back_porch_temperature
2019-12-09 13:27:07 +00:00
sampling_size: 500
- platform: statistics
2019-07-12 20:35:36 +00:00
name: Garage Temp Stats
2019-11-26 02:28:44 +00:00
entity_id: sensor.accurite_garage_temperature
2019-12-09 13:27:07 +00:00
sampling_size: 500
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
- 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
- platform: statistics
2020-04-02 23:16:50 +00:00
name: Wind Speed Stats
entity_id: sensor.nws_current_windspeed
2019-12-09 13:27:07 +00:00
sampling_size: 500
- platform: statistics
name: Visibility Stats
2020-04-02 23:16:50 +00:00
entity_id: sensor.nws_current_visibility
sampling_size: 500
- platform: statistics
name: Temperature Stats
entity_id: sensor.nws_current_temperature
sampling_size: 500
- platform: statistics
name: Humidity Stats
entity_id: sensor.nws_current_humidity
sampling_size: 500
- platform: statistics
name: Washer Power Stats
entity_id: sensor.washer_power
2019-12-09 13:27:07 +00:00
sampling_size: 500
- platform: history_stats
name: Cooling Last Month
entity_id: sensor.hvac_action
state: 'cooling'
type: time
end: '{{ now() }}'
duration:
days: 30
- platform: aarlo
monitored_conditions:
- last_capture
- total_cameras
- battery_level
- captured_today
- signal_strength
2020-06-15 00:42:01 +00:00
- platform: template
sensors:
sensor_count:
friendly_name: 'Number of Sensors'
entity_id: []
value_template: >-
{{ states.sensor | list | count }}
automation_count:
friendly_name: 'Number of Automations'
entity_id: []
value_template: >-
{{ states.automation| list | count }}
script_count:
friendly_name: 'Number of Scripts'
entity_id: []
value_template: >-
{{ states.script | list | count }}
binary_sensor_count:
friendly_name: 'Number of Binary Sensors'
entity_id: []
value_template: >-
{{ states.binary_sensor | list | count }}
tracker_count:
friendly_name: 'Number of Devices'
entity_id: []
value_template: >-
{{ states.device_tracker| list | count }}
lights_count:
friendly_name: 'Number of Lights'
entity_id: []
value_template: >-
{{ states.light | list | count }}
camera_count:
friendly_name: 'Number of online Cameras'
entity_id: []
value_template: >-
{{ states.camera | list | count }}
2020-06-09 11:43:51 +00:00
entities_count:
friendly_name: 'Number of Entities'
entity_id: []
value_template: >-
{{ states | length }}
hvac_action:
friendly_name: 'HVAC Action'
2020-06-09 11:43:51 +00:00
entity_id: []
value_template: "{{states.climate.home.attributes.hvac_action}}"
today_is:
friendly_name: 'Today is'
2020-06-09 11:43:51 +00:00
entity_id: []
value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}"
holiday:
friendly_name: 'Holiday'
2020-06-09 11:43:51 +00:00
entity_id: []
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
{% endif %}
school_tomorrow:
friendly_name: 'School Tomorrow'
2020-06-09 11:43:51 +00:00
entity_id: []
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 %}