-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensor.yaml
44 lines (40 loc) · 971 Bytes
/
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
#- platform: wunderground
# api_key: !secret wu_key
# monitored_conditions:
# - alerts
# - temp_f
# - feelslike_f
# - temp_high_1d_f
# - relative_humidity
# - wind_dir
# - wind_mph
#- platform: darksky
# apikey: !secret ds_key
# - platform: dht
# sensor: DHT11
# pin: 4
# monitored_conditions:
# - temperature
# - humidity
- platform: mqtt
name: "Temperature"
state_topic: "tele/sonoff-a/SENSOR"
value_template: "{{ value_json['DHT11'].Temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "Humidity"
state_topic: "tele/sonoff-a/SENSOR"
value_template: "{{ value_json['DHT11'].Humidity }}"
unit_of_measurement: "%"
#- platform: systemmonitor
# resources:
# - type: swap_use_percent
# - type: disk_use_percent
# arg: /
# - type: memory_use_percent
# - type: load_1m
# - type: load_5m
# - type: load_15m
# - type: ipv4_address
# arg: wlan0
# - type: processor_use