[openwebnet] add support for Thermoregulation (standalone thermostat and sensors) (#10756)

Signed-off-by: Conte Andrea <andrea@conte.com>

Signed-off-by: Massimo Valla <mvcode00@gmail.com>

Co-authored-by: Massimo Valla <mvcode00@gmail.com>
This commit is contained in:
Conte Andrea
2021-06-05 19:26:52 +02:00
committed by GitHub
parent 8e4cb48a57
commit 3dc7b9ed25
12 changed files with 703 additions and 62 deletions

View File

@@ -0,0 +1,35 @@
<?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 Temperature Sensor -->
<thing-type id="bus_temp_sensor">
<supported-bridge-type-refs>
<bridge-type-ref id="bus_gateway"/>
</supported-bridge-type-refs>
<label>Temperature Sensor</label>
<description>A OpenWebNet BUS/SCS temperature sensor. BTicino models: L/N/NT4577 etc.</description>
<channels>
<channel id="temperature" typeId="temperature"/>
</channels>
<properties>
<property name="vendor">BTicino/Legrand</property>
<property name="model">BTI-L/N/NT4577 etc.</property>
<property name="ownDeviceType">---</property>
</properties>
<representation-property>ownId</representation-property>
<config-description>
<parameter name="where" type="text" required="true">
<label>OpenWebNet Device Address</label>
<description>Example: Zone 2 --> where=2. For external sensors: sensor 5 --> where=500</description>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,45 @@
<?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 Thermostat (BTicino xxx/xxx/...) -->
<thing-type id="bus_thermostat">
<supported-bridge-type-refs>
<bridge-type-ref id="bus_gateway"/>
</supported-bridge-type-refs>
<label>Thermostat (stand-alone)</label>
<description>A OpenWebNet BUS/SCS zone stand-alone thermostat. BTicino models: LN4691.</description>
<channels>
<!-- read only -->
<channel id="temperature" typeId="temperature"/>
<channel id="conditioningValve" typeId="conditioningValve"/>
<channel id="heatingValve" typeId="heatingValve"/>
<channel id="actuator" typeId="actuator"/>
<!-- read/write -->
<channel id="setpointTemperature" typeId="setpointTemperature"/>
<channel id="function" typeId="function"/>
<channel id="mode" typeId="mode"/>
<channel id="speedFanCoil" typeId="speedFanCoil"/>
</channels>
<properties>
<property name="vendor">BTicino/Legrand</property>
<property name="model">BTI-LN4691</property>
<property name="ownDeviceType">410/420/430</property>
</properties>
<representation-property>ownId</representation-property>
<config-description>
<parameter name="where" type="text" required="true">
<label>OpenWebNet Device Address</label>
<description>Example: Zone 2 --> where=2.</description>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>

View File

@@ -29,7 +29,7 @@
<!-- Shutter Channel -->
<channel-type id="shutter">
<item-type>Rollershutter</item-type>
<label>Roller shutter</label>
<label>Roller Shutter</label>
<description>Control the roller shutter position</description>
<category>Blinds</category>
<tags>
@@ -37,6 +37,135 @@
</tags>
</channel-type>
<!-- Thermo channels -->
<channel-type id="temperature">
<item-type>Number:Temperature</item-type>
<label>Temperature</label>
<description>Current temperature (read only)</description>
<category>Temperature</category>
<tags>
<tag>CurrentTemperature</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="function">
<item-type>String</item-type>
<label>Thermo Function</label>
<description>Thermo function of the thermostat (read/write)</description>
<state>
<options>
<option value="HEATING">Heating</option>
<option value="COOLING">Cooling</option>
<option value="GENERIC">Generic</option>
</options>
</state>
</channel-type>
<channel-type id="setpointTemperature">
<item-type>Number:Temperature</item-type>
<label>Setpoint Temperature</label>
<description>Setpoint temperature (read/write)</description>
<category>Temperature</category>
<tags>
<tag>TargetTemperature</tag>
</tags>
<state pattern="%.1f %unit%" step="0.5"/>
</channel-type>
<channel-type id="mode">
<item-type>String</item-type>
<label>Mode</label>
<description>Set mode of the thermostat (read/write)</description>
<state>
<options>
<option value="MANUAL">Manual</option>
<option value="PROTECTION">Protection</option>
<option value="OFF">Off</option>
</options>
</state>
</channel-type>
<channel-type id="speedFanCoil">
<item-type>String</item-type>
<label>Set Fan Speed</label>
<description>Set speed of the Fan Coil (read/write)</description>
<state>
<options>
<option value="AUTO">Auto</option>
<option value="SPEED_1">Fan speed 1</option>
<option value="SPEED_2">Fan speed 2</option>
<option value="SPEED_3">Fan speed 3</option>
</options>
</state>
</channel-type>
<channel-type id="conditioningValve" advanced="true">
<item-type>String</item-type>
<label>Conditioning Valve</label>
<description>Conditioning Valve status (read only)</description>
<state readOnly="true">
<options>
<option value="OFF">OFF</option>
<option value="ON">ON</option>
<option value="OPENED">Opened</option>
<option value="CLOSED">Closed</option>
<option value="STOP">Stop</option>
<option value="OFF_FAN_COIL">OFF Fan Coil</option>
<option value="ON_SPEED_1">ON speed 1</option>
<option value="ON_SPEED_2">ON speed 2</option>
<option value="ON_SPEED_3">ON speed 3</option>
<option value="OFF_SPEED_1">OFF speed 1</option>
<option value="OFF_SPEED_2">OFF speed 2</option>
<option value="OFF_SPEED_3">OFF speed 3</option>
</options>
</state>
</channel-type>
<channel-type id="heatingValve" advanced="true">
<item-type>String</item-type>
<label>Heating Valve</label>
<description>Heating Valve status (read only)</description>
<state readOnly="true">
<options>
<option value="OFF">OFF</option>
<option value="ON">ON</option>
<option value="OPENED">Opened</option>
<option value="CLOSED">Closed</option>
<option value="STOP">Stop</option>
<option value="OFF_FAN_COIL">OFF Fan Coil</option>
<option value="ON_SPEED_1">ON speed 1</option>
<option value="ON_SPEED_2">ON speed 2</option>
<option value="ON_SPEED_3">ON speed 3</option>
<option value="OFF_SPEED_1">OFF speed 1</option>
<option value="OFF_SPEED_2">OFF speed 2</option>
<option value="OFF_SPEED_3">OFF speed 3</option>
</options>
</state>
</channel-type>
<channel-type id="actuator" advanced="true">
<item-type>String</item-type>
<label>Actuator Status</label>
<description>Actuator status (read only)</description>
<state readOnly="true">
<options>
<option value="OFF">OFF</option>
<option value="ON">ON</option>
<option value="OPENED">Opened</option>
<option value="CLOSED">Closed</option>
<option value="STOP">Stop</option>
<option value="OFF_FAN_COIL">OFF Fan Coil</option>
<option value="ON_SPEED_1">ON speed 1</option>
<option value="ON_SPEED_2">ON speed 2</option>
<option value="ON_SPEED_3">ON speed 3</option>
<option value="OFF_SPEED_1">OFF speed 1</option>
<option value="OFF_SPEED_2">OFF speed 2</option>
<option value="OFF_SPEED_3">OFF speed 3</option>
</options>
</state>
</channel-type>
<!-- Energy channels -->
<channel-type id="power">
<item-type>Number:Power</item-type>