/
sensors.yaml
85 lines (75 loc) · 3.07 KB
/
sensors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
####################################################
# Template Sensors #
####################################################
- platform: template
sensors:
sun_template:
friendly_name: "Sun"
value_template: "{{ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom('%H:%M', True) }} • {{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom('%H:%M', True) }}"
icon_template: "{% if is_state('sun.sun', 'above_horizon') %}mdi:weather-sunny{% else %}mdi:weather-night{% endif %}"
# WH5 Portable Temperature and Humidity Sensors
portable_sensor_2_temperature:
value_template: "{{ (states('sensor.temp_humid_2_temperature') | float - 40) | round(1) }}"
unit_of_measurement: '°C'
friendly_name: "Temperature (Living Room)"
portable_sensor_3_temperature:
value_template: "{{ (states('sensor.temp_humid_3_temperature') | float - 40) | round(1) }}"
unit_of_measurement: '°C'
friendly_name: "Temperature (Fraser)"
portable_sensor_5_temperature:
value_template: "{{ (states('sensor.temp_humid_5_temperature') | float - 40) | round(1) }}"
unit_of_measurement: '°C'
friendly_name: "Temperature (Morgan)"
# Tera PC State
tera_powered_on:
friendly_name: "PC Tera Powered On"
value_template: "{{ not(is_state('switch.shutdown', 'unavailable')) }}"
####################################################
# Component Sensors #
####################################################
# Owl Energy Monitor
- platform: owlintuition
host: 192.168.200.45
port: 32000
mode: triphase
cost_icon: 'mdi:currency-gbp'
cost_unit_of_measurement: GBP
monitored_conditions:
- electricity
- solar
# REST Sensors - https://www.home-assistant.io/integrations/sensor.rest/
# - platform: rest
# resource: http://localhost:8123/homeassistant/api/states/sensor.argon_one_addon_fan_speed
# method: POST
# payload: {}
###################################################
# History Statistics #
####################################################
- platform: history_stats
name: Ensuite Shower Uses Today
entity_id: binary_sensor.ensuite_shower_active
type: count
state: 'on'
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: Family Bathroom Shower Uses Today
entity_id: binary_sensor.family_bathroom_shower_active
type: count
state: 'on'
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: Ensuite Shower Time Today
entity_id: binary_sensor.ensuite_shower_active
type: time
state: 'on'
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: Family Bathroom Shower Time Today
entity_id: binary_sensor.family_bathroom_shower_active
type: time
state: 'on'
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'