-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplates.yaml
35 lines (35 loc) · 1.56 KB
/
templates.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
- sensor:
- name: "Russell Home Status"
state: "{{is_state('device_tracker.russell_s_pixel_7a','home') or is_state('device_tracker.pixel_7a_2','home')}}"
- name: "Ana Home Status"
state: "{{is_state('device_tracker.device_tracker.pixel_7a_3','home')}}"
- name: "Anyone Home"
state: "{% if is_state('sensor.russell_home_status', 'True') or is_state('sensor.ana_home_status', 'True')-%}home{%else%}not_home{% endif %}"
- name: "Rack Output Power"
device_class: power
unit_of_measurement: W
state_class: measurement
state: >
{% if states('sensor.rack_status_data') in ['OL', 'OL CHRG'] -%}
{{ (states('sensor.rack_output_current')|float) * (states('sensor.rack_output_voltage')|float) }}
{% else -%}
0
{%- endif %}
- name: Thermostat
unit_of_measurement: '°C'
state: "{{ state_attr('climate.thermostat_1', 'current_temperature') }}"
- name: Office TRV Temp
unit_of_measurement: '°C'
state: "{{ state_attr('climate.office_trv', 'current_temperature') }}"
- name: Kitchen TRV Temp
unit_of_measurement: '°C'
state: "{{ state_attr('climate.kitchen_trv', 'current_temperature') }}"
- name: Lounge Window TRV Temp
unit_of_measurement: '°C'
state: "{{ state_attr('climate.lounge_trv1', 'current_temperature') }}"
- name: Lounge Sofa TRV Temp
unit_of_measurement: '°C'
state: "{{ state_attr('climate.lounge_trv2', 'current_temperature') }}"
- name: Dining Room TRV Temp
unit_of_measurement: '°C'
state: "{{ state_attr('climate.dining_room_trv', 'current_temperature') }}"