[openwebnet] add support for Energy Meter (#10191)

Signed-off-by: Andrea Conte <andrea@conte.com>
This commit is contained in:
Conte Andrea
2021-03-21 20:26:21 +01:00
committed by GitHub
parent 65b7467e56
commit 2e770a375e
12 changed files with 217 additions and 9 deletions

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="openwebnet"
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 for BUS Energy Management Central Unit (BTicino F52x) -->
<thing-type id="bus_energy_meter">
<supported-bridge-type-refs>
<bridge-type-ref id="bus_gateway"/>
</supported-bridge-type-refs>
<label>Energy Meter</label>
<description>A OpenWebNet BUS/SCS Energy Meter. BTicino models: F52x</description>
<channels>
<channel id="power" typeId="power"/>
</channels>
<properties>
<property name="vendor">BTicino/Legrand</property>
<property name="model">BTI-F52x</property>
<property name="ownDeviceType">1830</property>
</properties>
<representation-property>ownId</representation-property>
<config-description>
<parameter name="where" type="text" required="true">
<label>OpenWebNet Address</label>
<description>Example: 5N with N=[1-255]</description>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>

View File

@@ -37,4 +37,12 @@
</tags>
</channel-type>
<!-- Energy channels -->
<channel-type id="power">
<item-type>Number:Power</item-type>
<label>Power</label>
<description>Current active power</description>
<category>Energy</category>
<state readOnly="true" pattern="%.0f %unit%"></state>
</channel-type>
</thing:thing-descriptions>