forked from UbhiTS/ha-config-ataraxis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfg_sensor.yaml
149 lines (128 loc) · 4.55 KB
/
cfg_sensor.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /
- type: disk_use
arg: /
- type: disk_free
arg: /
- type: memory_use_percent
- type: memory_use
- type: memory_free
- type: swap_use_percent
- type: swap_use
- type: swap_free
- type: load_1m
- type: load_5m
- type: load_15m
- type: network_in
arg: eth0
- type: network_out
arg: eth0
- type: ipv4_address
arg: eth0
- type: processor_use
- type: last_boot
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
- 'time_utc'
- 'beat'
- platform: google_wifi
host: !secret google_wifi_host
- platform: uptime
- platform: qnap
host: !secret ubhinas_ip
port: !secret ubhinas_port
username: !secret ubhinas_username
password: !secret ubhinas_password
timeout: !secret ubhinas_timeout
ssl: !secret ubhinas_ssl
verify_ssl: !secret ubhinas_verify_ssl
monitored_conditions:
- status
- system_temp
- cpu_temp
- cpu_usage
- memory_free
- memory_used
- memory_percent_used
- network_link_status
- network_tx
- network_rx
- drive_smart_status
- drive_temp
- volume_size_free
- volume_size_used
- volume_percentage_used
- platform: template
sensors:
solar_power:
unit_of_measurement: kW
value_template: "{{ states('sensor.powerwall_solar_now') | float | abs | round(1) }}"
grid_power:
unit_of_measurement: kW
#value_template: "{{ states('sensor.powerwall_site_now') | float | round(1) }}"
value_template: >-
{% if states('sensor.powerwall_site_now') | float | abs == 0 %}
0
{% else %}
{{ states('sensor.powerwall_site_now') | float | round(1) }}
{% endif %}
grid_power_target:
unit_of_measurement: kW
value_template: "{{ states('sensor.powerwall_site_now') | float | abs | round(1) }}"
powerwall_power:
unit_of_measurement: kW
#value_template: "{{ states('sensor.powerwall_battery_now') | float | round(1) }}"
value_template: >-
{% if states('sensor.powerwall_battery_now') | float | abs == 0 %}
0
{% else %}
{{ states('sensor.powerwall_battery_now') | float | round(1) }}
{% endif %}
powerwall_power_target:
unit_of_measurement: kW
value_template: "{{ states('sensor.powerwall_battery_now') | float | abs | round(1) }}"
#value_template: "{{ states('sensor.powerwall_charge') | float / 12.5 | round(1) }}"
powerwall_power_name:
value_template: >-
{% if states('sensor.powerwall_charge') | float == 100 %}
batt
{% else %}
bat {{ states('sensor.powerwall_charge') }}%
{% endif %}
house_load:
unit_of_measurement: kW
value_template: "{{ states('sensor.powerwall_load_now') | float | round(1) }}"
fan_mode_master_bedroom:
value_template: '{{ (states.climate.thermostat_master_bedroom_mode.attributes.fan_mode) }}'
friendly_name: 'Master Bedroom'
icon_template: mdi:fan
fan_mode_living_room:
value_template: '{{ (states.climate.thermostat_living_room_mode.attributes.fan_mode) }}'
friendly_name: 'Living Room'
icon_template: mdi:fan
fan_mode_entertainment_room:
value_template: '{{ (states.climate.thermostat_entertainment_room_mode.attributes.fan_mode) }}'
friendly_name: 'Entertainment Room'
icon_template: mdi:fan
fan_mode_upper_big_bedroom:
value_template: '{{ (states.climate.thermostat_upper_big_bedroom_mode.attributes.fan_mode) }}'
friendly_name: 'Upper Big Bedroom'
icon_template: mdi:fan
fan_mode_upper_small_bedroom:
value_template: '{{ (states.climate.thermostat_upper_small_bedroom_mode.attributes.fan_mode) }}'
friendly_name: 'Upper Small Bedroom'
icon_template: mdi:fan
fan_mode_upper_guest_bedroom:
value_template: '{{ (states.climate.thermostat_upper_guest_bedroom_mode.attributes.fan_mode) }}'
friendly_name: 'Upper Guest Bedroom'
icon_template: mdi:fan
fan_mode_attic:
value_template: '{{ (states.climate.thermostat_attic_mode.attributes.fan_mode) }}'
friendly_name: 'Attic'
icon_template: mdi:fan