[plugwiseha] Use system channel types (#18325)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
pull/18343/head
lsiepel 2025-02-28 14:46:44 +01:00 committed by GitHub
parent efc103c464
commit 64616a0c55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 88 additions and 40 deletions

View File

@ -9,14 +9,23 @@ thing-type.plugwiseha.appliance_boiler.label = Boiler
thing-type.plugwiseha.appliance_boiler.description = A Plugwise Home Automation controlled boiler
thing-type.plugwiseha.appliance_pump.label = Central Heating Pump
thing-type.plugwiseha.appliance_pump.description = A Plugwise Home Automation smart plug switch connected to a central heating pump
thing-type.plugwiseha.appliance_pump.channel.power.label = Power
thing-type.plugwiseha.appliance_pump.channel.power.description = Switch the Plugwise Smart plug ON or OFF
thing-type.plugwiseha.appliance_pump.channel.powerUsage.label = Power Usage
thing-type.plugwiseha.appliance_thermostat.label = Plugwise Room Thermostat
thing-type.plugwiseha.appliance_thermostat.description = A Plugwise Home Automation room thermostat
thing-type.plugwiseha.appliance_thermostat.channel.temperature.label = Zone Temperature
thing-type.plugwiseha.appliance_thermostat.channel.temperature.description = Gets the temperature of this zone
thing-type.plugwiseha.appliance_valve.label = Plugwise Radiator Valve
thing-type.plugwiseha.appliance_valve.description = A Plugwise Home Automation radiator valve
thing-type.plugwiseha.appliance_valve.channel.temperature.label = Zone Temperature
thing-type.plugwiseha.appliance_valve.channel.temperature.description = Gets the temperature of this zone
thing-type.plugwiseha.gateway.label = Plugwise Home Automation Bridge
thing-type.plugwiseha.gateway.description = The Plugwise Home Automation Bridge is needed to connect to the Adam boiler gateway
thing-type.plugwiseha.zone.label = Plugwise Zone
thing-type.plugwiseha.zone.description = A Plugwise Home Automation heating zone
thing-type.plugwiseha.zone.channel.temperature.label = Zone Temperature
thing-type.plugwiseha.zone.channel.temperature.description = Gets the temperature of this zone
# thing types config
@ -89,9 +98,6 @@ channel-type.plugwiseha.otAppFaultCode.label = Opentherm Application Faultcode
channel-type.plugwiseha.otAppFaultCode.description = Gets the Opentherm application fault code of this boiler
channel-type.plugwiseha.otOEMFaultCode.label = OEM Fault Code
channel-type.plugwiseha.otOEMFaultCode.description = Gets the OEM fault code of this boiler
channel-type.plugwiseha.power.label = Power
channel-type.plugwiseha.power.description = Switch the Plugwise Smart plug ON or OFF
channel-type.plugwiseha.powerUsage.label = Power Usage
channel-type.plugwiseha.preHeat.label = Preheat
channel-type.plugwiseha.preHeat.description = Switch the preheating of a zone ON or OFF
channel-type.plugwiseha.presetScene.label = Preset Scene
@ -110,8 +116,6 @@ channel-type.plugwiseha.returnWaterTemperature.label = Return Water Temperature
channel-type.plugwiseha.returnWaterTemperature.description = Gets the temperature of the return water
channel-type.plugwiseha.setpointTemperature.label = Setpoint Temperature
channel-type.plugwiseha.setpointTemperature.description = Gets or sets the set point of this zone
channel-type.plugwiseha.temperature.label = Zone Temperature
channel-type.plugwiseha.temperature.description = Gets the temperature of this zone
channel-type.plugwiseha.valvePosition.label = Valve Position
channel-type.plugwiseha.valvePosition.description = Gets the position of the valve (0% closed, 100% open)
channel-type.plugwiseha.waterPressure.label = Water Pressure

View File

@ -16,18 +16,6 @@
<state min="0.0" max="35.0" step="0.5" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="temperature">
<item-type>Number:Temperature</item-type>
<label>Zone Temperature</label>
<description>Gets the temperature of this zone</description>
<category>heating</category>
<tags>
<tag>Measurement</tag>
<tag>Temperature</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="offsetTemperature">
<item-type>Number:Temperature</item-type>
<label>Thermostat Temperature Offset</label>
@ -64,13 +52,6 @@
</state>
</channel-type>
<channel-type id="power">
<item-type>Switch</item-type>
<label>Power</label>
<description>Switch the Plugwise Smart plug ON or OFF</description>
<category>switch</category>
</channel-type>
<channel-type id="lock">
<item-type>Switch</item-type>
<label>Lock</label>
@ -78,16 +59,6 @@
<category>switch</category>
</channel-type>
<channel-type id="powerUsage">
<item-type>Number:Power</item-type>
<label>Power Usage</label>
<tags>
<tag>Measurement</tag>
<tag>Power</tag>
</tags>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="chState">
<item-type>Switch</item-type>
<label>Central Heating Active</label>

View File

@ -65,13 +65,20 @@
<channels>
<channel id="setpointTemperature" typeId="setpointTemperature"/>
<channel id="temperature" typeId="temperature"/>
<channel id="temperature" typeId="system.indoor-temperature">
<label>Zone Temperature</label>
<description>Gets the temperature of this zone</description>
</channel>
<channel id="presetScene" typeId="presetScene"/>
<channel id="preHeat" typeId="preHeat"/>
<channel id="coolingAllowed" typeId="coolingAllowed"/>
<channel id="regulationControl" typeId="regulationControl"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<representation-property>id</representation-property>
<config-description-ref uri="thing-type:plugwiseha:zone"/>
@ -88,12 +95,15 @@
<channels>
<channel id="setpointTemperature" typeId="setpointTemperature"/>
<channel id="temperature" typeId="temperature"/>
<channel id="temperature" typeId="system.indoor-temperature">
<label>Zone Temperature</label>
<description>Gets the temperature of this zone</description>
</channel>
<channel id="valvePosition" typeId="valvePosition"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
<property name="thingTypeVersion">2</property>
</properties>
<representation-property>id</representation-property>
@ -111,11 +121,20 @@
<description>A Plugwise Home Automation smart plug switch connected to a central heating pump</description>
<channels>
<channel id="power" typeId="power"/>
<channel id="power" typeId="system.power">
<label>Power</label>
<description>Switch the Plugwise Smart plug ON or OFF</description>
</channel>
<channel id="lock" typeId="lock"/>
<channel id="powerUsage" typeId="powerUsage"/>
<channel id="powerUsage" typeId="system.electric-power">
<label>Power Usage</label>
</channel>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<representation-property>id</representation-property>
<config-description-ref uri="thing-type:plugwiseha:appliance_pump"/>
@ -132,10 +151,17 @@
<channels>
<channel id="setpointTemperature" typeId="setpointTemperature"/>
<channel id="temperature" typeId="temperature"/>
<channel id="temperature" typeId="system.indoor-temperature">
<label>Zone Temperature</label>
<description>Gets the temperature of this zone</description>
</channel>
<channel id="offsetTemperature" typeId="offsetTemperature"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<representation-property>id</representation-property>
<config-description-ref uri="thing-type:plugwiseha:appliance_thermostat"/>

View File

@ -28,6 +28,18 @@
</thing-type>
<thing-type uid="plugwiseha:zone">
<instruction-set targetVersion="1">
<update-channel id="temperature">
<type>system:indoor-temperature</type>
<label>Zone Temperature</label>
<description>Gets the temperature of this zone</description>
</update-channel>
</instruction-set>
</thing-type>
<thing-type uid="plugwiseha:appliance_valve">
<instruction-set targetVersion="1">
@ -36,5 +48,40 @@
</update-channel>
</instruction-set>
<instruction-set targetVersion="2">
<update-channel id="temperature">
<type>system:indoor-temperature</type>
<label>Zone Temperature</label>
<description>Gets the temperature of this zone</description>
</update-channel>
</instruction-set>
</thing-type>
<thing-type uid="plugwiseha:appliance_pump">
<instruction-set targetVersion="1">
<update-channel id="power">
<type>system:power</type>
<label>Power</label>
<description>Switch the pump ON or OFF</description>
</update-channel>
<update-channel id="powerUsage">
<type>system:electric-power</type>
<label>Power Usage</label>
</update-channel>
</instruction-set>
</thing-type>
<thing-type uid="plugwiseha:appliance_thermostat">
<instruction-set targetVersion="1">
<update-channel id="temperature">
<type>system:indoor-temperature</type>
<label>Zone Temperature</label>
<description>Gets the temperature of this zone</description>
</update-channel>
</instruction-set>
</thing-type>
</update:update-descriptions>