]> git.basschouten.com Git - openhab-addons.git/commitdiff
[dsmr] Fix delivery demand labels (#16739)
authorlsiepel <leosiepel@gmail.com>
Sun, 19 May 2024 08:36:33 +0000 (10:36 +0200)
committerGitHub <noreply@github.com>
Sun, 19 May 2024 08:36:33 +0000 (10:36 +0200)
* Fix delivery demand labels
* Add upgrade instructions

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/i18n/dsmr.properties
bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/thing/channeltypes_electricity.xml
bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/thing/meter_device_emucs_v1_0.xml
bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/thing/meter_electricity_emucs_v1_0.xml
bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/update/instructions.xml [new file with mode: 0644]

index 54b9fa79d18aebc0de303e9ddf06971249b7cacf..7e9ca2d7ece78d9dbf8ba2ab009ad9667309db7a 100644 (file)
@@ -23,6 +23,7 @@ thing-type.dsmr.electricity_ace4000.label = Electricity Meter (ACE4000)
 thing-type.dsmr.electricity_ace4000.description = This is an electricity meter that complies to the ACE4000 GTMM Mk3 specification.
 thing-type.dsmr.electricity_emucs_v1_0.label = Electricity Meter (e-MUCS V1.0)
 thing-type.dsmr.electricity_emucs_v1_0.description = This is an electricity meter that complies to the e-MUCS V1.0 specification.
+thing-type.dsmr.electricity_emucs_v1_0.channel.emeter_maximum_demand_current_month.label = Power Demand Current Month
 thing-type.dsmr.electricity_smarty_v1_0.label = Electricity Meter (Smarty V1.0)
 thing-type.dsmr.electricity_smarty_v1_0.description = This is an electricity meter that complies to the Luxembourg's Smarty V1.0 specification.
 thing-type.dsmr.electricity_smarty_v1_0_austria.label = Electricity Meter Austria
@@ -133,8 +134,8 @@ channel-type.dsmr.activeImportPowerType.label = Aggregate Active Import Power
 channel-type.dsmr.activeImportPowerType.description = The aggregate active import power.
 channel-type.dsmr.activeThresholdSmax.label = Active Threshold
 channel-type.dsmr.activeThresholdSmax.description = Active threshold (SMAX).
-channel-type.dsmr.actualDeliveryBelgiumType.label = Actual Power Delivery
-channel-type.dsmr.actualDeliveryBelgiumType.description = The current power delivery.
+channel-type.dsmr.actualDeliveryBelgiumType.label = Actual Power Demand
+channel-type.dsmr.actualDeliveryBelgiumType.description = The current power delivery demand.
 channel-type.dsmr.actualDeliveryType.label = Actual Power Delivery
 channel-type.dsmr.actualDeliveryType.description = The current power delivery.
 channel-type.dsmr.actualFuseThresholdAType.label = Actual Fuse Threshold
index 2de77d41e6875853a6791116999b6b396ec2efc0..2eee46285c3e8cbc552800e61dc2640ffffa3ece 100644 (file)
        </channel-type>
        <channel-type id="actualDeliveryBelgiumType">
                <item-type>Number:Power</item-type>
-               <label>Actual Power Delivery</label>
-               <description>The current power delivery.</description>
+               <label>Actual Power Demand</label>
+               <description>The current power delivery demand.</description>
                <state pattern="%.3f %unit%" readOnly="true"/>
        </channel-type>
        <channel-type id="actualProductionType" advanced="true">
index 513479e788c2af28888159ed8a7e38bb5177a054..f845f5d20c294f2907def8a1dc44cdc193d47903 100644 (file)
@@ -17,6 +17,7 @@
                        <channel id="p1_emucs_version_output" typeId="p1VersionType"/>
                        <channel id="p1_timestamp" typeId="p1TimestampType"/>
                </channels>
+
                <config-description-ref uri="thing-type:dsmr:meterdescriptor"/>
        </thing-type>
 </thing:thing-descriptions>
index 74c1307ced973b418f5228d4027f6d6a03667e1b..045fc7227fedf55203b1ca9f67e60ff2b1a059fa 100644 (file)
@@ -23,7 +23,7 @@
                        <channel id="emeter_actual_production" typeId="actualProductionType"/>
                        <channel id="emeter_actual_demand" typeId="actualDeliveryBelgiumType"/>
                        <channel id="emeter_maximum_demand_current_month" typeId="actualDeliveryBelgiumType">
-                               <label>Power Delivery Current Month</label>
+                               <label>Power Demand Current Month</label>
                        </channel>
                        <channel id="emeter_switch_position" typeId="switchPositionType"/>
                        <channel id="emeter_fuse_threshold_a" typeId="actualFuseThresholdAType"/>
                        <channel id="emeter_instant_voltage_l2" typeId="instantVoltageL2Type"/>
                        <channel id="emeter_instant_voltage_l3" typeId="instantVoltageL3Type"/>
                </channels>
+
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
+
                <config-description-ref uri="thing-type:dsmr:meterdescriptor"/>
        </thing-type>
 </thing:thing-descriptions>
diff --git a/bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/update/instructions.xml b/bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/update/instructions.xml
new file mode 100644 (file)
index 0000000..0cdcac7
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
+       xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">
+
+       <thing-type uid="dsmr:device_emucs_v1_0">
+               <instruction-set targetVersion="1">
+                       <add-channel id="emeter_actual_demand">
+                               <type>dsmr:actualDeliveryBelgiumType</type>
+                       </add-channel>
+                       <add-channel id="emeter_maximum_demand_current_month">
+                               <type>dsmr:actualDeliveryBelgiumType</type>
+                               <label>Power Demand Current Month</label>
+                       </add-channel>
+               </instruction-set>
+       </thing-type>
+</update:update-descriptions>