-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensor.yaml
86 lines (81 loc) · 2.8 KB
/
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
#######################################################
### Sensor Configuration Settings ###
#######################################################
### Weather prediction using darksky ###
- platform: darksky
api_key: !secret darksky_api_key
forecast:
- 3
monitored_conditions:
- summary
- icon
- temperature
### HA Uptime Sensor ###
- platform: uptime
name: "HA runtime in minutes"
unit_of_measurement: minutes
### Manually add MQTT Devices ###
## Add Sensors for Dryer Outlet
- platform: mqtt
name: "S31 Dryer Voltage"
state_topic: "sonoff/s31-dryer/tele/SENSOR"
value_template: "{{ value_json['ENERGY'].Voltage }}"
unit_of_measurement: "V"
availability_topic: "sonoff/s31-dryer/tele/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "S31 Dryer Current"
state_topic: "sonoff/s31-dryer/tele/SENSOR"
value_template: "{{ value_json['ENERGY'].Current | round(2) }}"
unit_of_measurement: "A"
availability_topic: "sonoff/s31-dryer/tele/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "S31 Dryer Power"
state_topic: "sonoff/s31-dryer/tele/SENSOR"
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "W"
availability_topic: "sonoff/s31-dryer/tele/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
force_update: true
- platform: mqtt
name: "S31 Dryer Power Factor"
state_topic: "sonoff/s31-dryer/tele/SENSOR"
value_template: "{{ value_json['ENERGY'].Factor }}"
availability_topic: "sonoff/s31-dryer/tele/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "S31 Dryer Energy Today"
state_topic: "sonoff/s31-dryer/tele/SENSOR"
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "kWh"
availability_topic: "sonoff/s31-dryer/tele/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "S31 Dryer Energy Yesterday"
state_topic: "sonoff/s31-dryer/tele/SENSOR"
value_template: "{{ value_json['ENERGY'].Yesterday }}"
unit_of_measurement: "kWh"
availability_topic: "sonoff/s31-dryer/tele/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "S31 Dryer Energy Total"
state_topic: "sonoff/s31-dryer/tele/SENSOR"
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "kWh"
availability_topic: "sonoff/s31-dryer/tele/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"