-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig_example.yml
118 lines (111 loc) · 3.78 KB
/
config_example.yml
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
sources:
# Home Assistant
- hass:
url: "ws://your.HASS.API.URL.here"
auth_token: "your_token_here"
plugs:
# Scaled attribute (dimmer setting) example
- Kitchen_Lights:
alias: "Kitchen Lights"
entity_id: light.kitchen_main_lights
mac: 53:75:31:f6:4b:01
off_usage: 0
min_watts: 0
max_watts: 42
attribute_min: 0
attribute_max: 255
attribute: brightness
off_state_value: off
# Direct power usage reporting example
- Pump_Power_Meter:
alias: "Sump Pump Power Meter"
entity_id: sensor.sump_pump
mac: 53:75:31:f6:4b:02
# Or, if the power usage value is buried in the state update, something like:
# power_keypath: "state/usage/power"
# Example with an "off" vampire consumption
- Outdoor_Lights:
alias: "Outdoor Lights"
entity_id: light.outdoor_deck_lights
mac: 53:75:31:f6:4b:03
off_usage: 4 # Represents a vampire load when "off"
min_watts: 10
max_watts: 60
attribute_min: 0
attribute_max: 255
attribute: brightness
off_state_value: off
# Binary on/off state-based usage device
- Dehumidifier:
alias: "Dehumidifier"
entity_id: switch.dehumidifier
mac: 53:75:31:f6:4b:04
off_usage: 0
max_watts: 42 # Wattage used for 'on' state
on_state_value: "on"
off_state_value: "off"
# MQTT
- mqtt:
host: "your.mqtt.broker"
port: 1883 # Optional
username: admin # Optional
password: supersecret1 # Optional
plugs:
# Direct power reporting example
- UPS:
mac: 53:75:31:f6:4d:01
alias: "UPS Backup"
power_topic: server_ups/usage # Value at this topic should be numeric and units of watts!
# Direct power, with state
- VacuumCharger:
alias: "Vacuum Charger"
mac: 53:75:31:f6:4d:02
power_topic: vacuum/usage
state_topic: vacuum/charging_state
on_state_value: "charging"
off_state_value: "not charging"
off_usage: 1 # 1W vampire draw, reported when the state topic value is "not charging"
# Scaled attribute (dimmer setting) example
- Porch_Light:
alias: "Back Porch Light"
mac: 53:75:31:f6:4d:03
attribute_topic: "lights/porch/brightness"
attribute_min: 0
attribute_max: 255
min_watts: 0
max_watts: 120
timeout_duration: 3600 # Seconds
# Use If the device will normally publish updates on at least a regular interval, and you
# want to assume the "off" state if it misses that interval (*technically* this
# should be done via MQTT's Last Will & Testament feature...)
# Static
- static:
plugs:
- NAS:
mac: 53:75:31:f6:4c:01
max_watts: 15
alias: "NAS Server"
skip_rate: 3
- Fan:
mac: 53:75:31:f6:4c:02
max_watts: 5
alias: "Ceiling Fan"
# Mutable
- mutable:
plugs:
- mutable1:
alias: "Mutable 1"
mac: 53:75:31:f6:5c:02
power: 12
# Aggregate
- aggregate:
plugs:
- agg1:
alias: "Kitchen Aggregate"
mac: 50:c7:bf:f6:4e:01
# Specify plug ID values (keys) to aggregate and report as a single value
# Aggregate plug will update dynamically as the element reported powers change!
# Useful to stay under the ~20 plug Sense limit
elements:
- Fan
- Kitchen_Lights