sensors.yaml 8.67 KB
Newer Older
Rainer Sokoll's avatar
Rainer Sokoll committed
1
2
3
4
5
6
7
8
9
10
11
#- platform: transmission
#  host: 192.168.1.15
#  port: 9091
#  monitored_variables:
#    - 'current_status'
#    - 'download_speed'
#    - 'upload_speed'
#    - 'active_torrents'
#  name: Transmission auf dockstar
#  username: !secret transmission_username
#  password: !secret transmission_password
Rainer Sokoll's avatar
Rainer Sokoll committed
12

Rainer Sokoll's avatar
Rainer Sokoll committed
13
14
15
16
17
18
- platform: rest
  resource: !secret tankerkoenig_url
  name: Diesel
  unit_of_measurement: '€'
  value_template: '{{ value_json.prices["66f063b7-8883-4951-bc5c-f0754b48ce18"].diesel }}'
  scan_interval: 900
Rainer Sokoll's avatar
Rainer Sokoll committed
19

Rainer Sokoll's avatar
Rainer Sokoll committed
20
21
22
23
24
25
26
27
28
- platform: rest
  resource: !secret tankerkoenig_url
  name: E10
  unit_of_measurement: '€'
  value_template: '{{ value_json.prices["66f063b7-8883-4951-bc5c-f0754b48ce18"].e10 }}'
  scan_interval: 900

- platform: template
  sensors:
Rainer Sokoll's avatar
Rainer Sokoll committed
29
30
    windfang_bewegungsmelder_batteriestand:
      value_template: '{{ states.sensor.windfang_bewegungsmelder.state }}'
Rainer Sokoll's avatar
Rainer Sokoll committed
31
32
33
      friendly_name: 'Bewegungsmelder Windfang'
      unit_of_measurement: '%'
      icon_template: >-
Rainer Sokoll's avatar
Rainer Sokoll committed
34
        {% set battery_level = states('sensor.windfang_bewegungsmelder')|int('unknown') %}
Rainer Sokoll's avatar
Rainer Sokoll committed
35
36
37
38
39
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
Rainer Sokoll's avatar
Rainer Sokoll committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}
    hwr_bewegungsmelder_batteriestand:
      value_template: '{{ states.sensor.hwr_bewegungsmelder.state }}'
      friendly_name: 'Bewegungsmelder HWR'
      unit_of_measurement: '%'
      icon_template: >-
        {% set battery_level = states('sensor.hwr_bewegungsmelder')|int('unknown') %}
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
Rainer Sokoll's avatar
Rainer Sokoll committed
58
59
60
61
62
63
64
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}
Rainer Sokoll's avatar
Rainer Sokoll committed
65
66
    arbeitszimmer_fernbedienung_batteriestand:
      value_template: '{{ states.sensor.arbeitszimmer_fernbedienung.state }}'
67
      friendly_name: 'FB Arbeitszimmer'
Rainer Sokoll's avatar
Rainer Sokoll committed
68
69
      unit_of_measurement: '%'
      icon_template: >-
Rainer Sokoll's avatar
Rainer Sokoll committed
70
        {% set battery_level = states('sensor.arbeitszimmer_fernbedienung')|int('unknown') %}
Rainer Sokoll's avatar
Rainer Sokoll committed
71
72
73
74
75
76
77
78
79
80
81
82
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}
Rainer Sokoll's avatar
Rainer Sokoll committed
83
84
    moritz_fernbedienung_batteriestand:
      value_template: '{{ states.sensor.moritz_fernbedienung.state }}'
Rainer Sokoll's avatar
Rainer Sokoll committed
85
86
87
      friendly_name: 'FB Moritz'
      unit_of_measurement: '%'
      icon_template: >-
Rainer Sokoll's avatar
Rainer Sokoll committed
88
        {% set battery_level = states('sensor.moritz_fernbedienung')|int('unknown') %}
Rainer Sokoll's avatar
Rainer Sokoll committed
89
90
91
92
93
94
95
96
97
98
99
100
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}
Rainer Sokoll's avatar
Rainer Sokoll committed
101
102
    sophia_fernbedienung_batteriestand:
      value_template: '{{ states.sensor.sophia_fernbedienung.state }}'
Rainer Sokoll's avatar
Rainer Sokoll committed
103
104
105
      friendly_name: 'FB Sophia'
      unit_of_measurement: '%'
      icon_template: >-
Rainer Sokoll's avatar
Rainer Sokoll committed
106
        {% set battery_level = states('sensor.sophia_fernbedienung')|int('unknown') %}
Rainer Sokoll's avatar
Rainer Sokoll committed
107
108
109
110
111
112
113
114
115
116
117
118
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}
Rainer Sokoll's avatar
Rainer Sokoll committed
119
120
    wohnzimmer_fernbedienung_batteriestand:
      value_template: '{{ states.sensor.wohnzimmer_fernbedienung.state }}'
Rainer Sokoll's avatar
Rainer Sokoll committed
121
122
123
      friendly_name: 'FB Wohnzimmer'
      unit_of_measurement: '%'
      icon_template: >-
Rainer Sokoll's avatar
Rainer Sokoll committed
124
        {% set battery_level = states('sensor.wohnzimmer_fernbedienung')|int('unknown') %}
Rainer Sokoll's avatar
Rainer Sokoll committed
125
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
Rainer Sokoll's avatar
Rainer Sokoll committed
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}
    schlafzimmer_fernbedienung_bine_batteriestand:
      value_template: '{{ states.sensor.schlafzimmer_fernbedienung_bine.state }}'
      friendly_name: 'FB Nachttisch Bine'
      unit_of_measurement: '%'
      icon_template: >-
        {% set battery_level = states('sensor.schlafzimmer_fernbedienung_bine')|int('unknown') %}
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}
    schlafzimmer_fernbedienung_rainer_batteriestand:
      value_template: '{{ states.sensor.schlafzimmer_fernbedienung_rainer.state }}'
      friendly_name: 'FB Nachttisch Rainer'
      unit_of_measurement: '%'
      icon_template: >-
        {% set battery_level = states('sensor.schlafzimmer_fernbedienung_rainer')|int('unknown') %}
        {% set battery_round = (battery_level|int / 10)|int * 10 %}
Rainer Sokoll's avatar
Rainer Sokoll committed
162
163
164
165
166
167
168
169
170
171
172
173
        {% if battery_level == 'unknown' %}
          mdi:battery-unknown
        {% else %}
          {% if battery_round >= 100 %}
            mdi:battery
          {% elif battery_round > 0 %}
            mdi:battery-{{ battery_round }}
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% endif %}

Rainer Sokoll's avatar
Pluggit    
Rainer Sokoll committed
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
- platform: modbus
  scan_interval: 10
  registers:
    - name: Außentemperatur
      hub: pluggit
      slave: 1
      register: 133
      unit_of_measurement: '°C'
      count: 2
      data_type: float

- platform: modbus
  scan_interval: 10
  registers:
    - name: Raumzuluft
      hub: pluggit
      slave: 1
      register: 135
      count: 2
      unit_of_measurement: '°C'
      data_type: float

- platform: modbus
  scan_interval: 10
  registers:
    - name: Raumabluft
      hub: pluggit
      slave: 1
      register: 137
      unit_of_measurement: '°C'
      count: 2
      data_type: float

- platform: modbus
  scan_interval: 10
  registers:
    - name: Außenabluft
      hub: pluggit
      slave: 1
      register: 139
      unit_of_measurement: '°C'
      count: 2
      data_type: float

- platform: modbus
  scan_interval: 10
  registers:
    - name: Bypass Status
      hub: pluggit
      slave: 1
      register: 198   #40199
      unit_of_measurement: status
      count: 1
      data_type: uint

- platform: modbus
  scan_interval: 10
  registers:
    - name: Bypass_State_REQ
      hub: pluggit
      slave: 1
      register: 168   #40169
      unit_of_measurement: Register_Value
      count: 1
      data_type: uint
 
- platform: modbus
  scan_interval: 10
  registers:
    - name: Bypass_remaining_time
      hub: pluggit
      slave: 1
      register: 264   #40265
      unit_of_measurement: minutes
      count: 1
      data_type: uint
 
- platform: modbus
  scan_interval: 10
  registers:
    - name: Lüfterstufe
      hub: pluggit
      slave: 1
      register: 324   #40325
      count: 1
      data_type: int
 
- platform: modbus
  scan_interval: 10
  registers:
    - name: Fan1_Speed
      hub: pluggit
      slave: 1
      register: 101 #40101
      unit_of_measurement: rpm
      count: 2
      data_type: float
 
- platform: modbus
  scan_interval: 10
  registers:
    - name: Fan2_Speed
      hub: pluggit
      slave: 1
      register: 103 #40103
      unit_of_measurement: rpm
      count: 2
      data_type: float
 
- platform: modbus
  scan_interval: 10
  registers:
    - name: VOC
      hub: pluggit
      slave: 1
      register: 430 #40431
      unit_of_measurement: ppm
      count: 1
      data_type: uint
 
- platform: modbus
  scan_interval: 10
  registers:
    - name: Feuchte
      hub: pluggit
      slave: 1
      register: 196 #40197
      unit_of_measurement: RH%
      count: 1
      data_type: uint