Skip to content

Configuring the plugin

Jordy van den Aardweg edited this page Dec 14, 2022 · 7 revisions

(this page is a work in progress)

Energy Sockets

work in progress

Use Outlet In Use

When enabled, the "Outlet In Use" characteristic will be shown as "Yes" if the device plugged in the Energy Socket is consuming a certain amount of power. You can trigger automations based on this characteristic. Learn more about it in the Wiki.

When outletInUse.isActive = true the plugin will track the current power consumption of the Energy Socket and sets the OutletInUse characteristic to Yes if the active power usage is higher than the threshold for the thresholdDuration duration. When it falls below the threshold for the thresholdDuration then OutletInUse will be set to No.

Config options

Option Type Description
isActive boolean Set to true to enable setting the OutletInUse characteristic. Set to false to disable. It defaults to false.
threshold number The threshold in watts. When the power consumption is higher than this threshold, the "Outlet In Use" characteristic will be shown as "Yes" in the Home app. Otherwise it shows "No". Only works when isActive is true. Defaults to 5 watt.
thresholdDuration number The duration in seconds. When the power consumption is higher than the threshold for this duration, the "Outlet In Use" characteristic will be shown as "Yes" in the Home app. Otherwise it shows "No". Only works when isActive is true. Defaults to 10 seconds.