-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tplinksmarthome] Add new device: EP25 (#17377)
The EP25 appears to be a version of the KP125 that lacks the LED. Because of this, and per the comments in #16027, this commit mimics #11771 and simply copies the KP125, without the LED channel. Signed-off-by: Josh Proehl <josh@daedalusdreams.com>
- Loading branch information
1 parent
b96925d
commit bb28e6a
Showing
4 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/EP25.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="tplinksmarthome" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<thing-type id="ep25"> | ||
<label>EP25</label> | ||
<description>TP-Link EP25 Kasa Smart WiFi Plug Slim with Energy Monitoring</description> | ||
<category>PowerOutlet</category> | ||
|
||
<channels> | ||
<channel id="switch" typeId="system.power"/> | ||
<channel id="rssi" typeId="rssi"/> | ||
<channel id="power" typeId="power"/> | ||
<channel id="energyUsage" typeId="energy-usage"/> | ||
<channel id="current" typeId="current"/> | ||
<channel id="voltage" typeId="voltage"/> | ||
</channels> | ||
|
||
<representation-property>deviceId</representation-property> | ||
|
||
<config-description-ref uri="thing-type:tplinksmarthome:device-plug"/> | ||
</thing-type> | ||
</thing:thing-descriptions> |