]> git.basschouten.com Git - openhab-addons.git/commitdiff
[rfxcom] Updates / small fixes (#12037)
authorMartin van Wingerden <martin@martinvw.nl>
Thu, 13 Jan 2022 13:12:19 +0000 (14:12 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Jan 2022 13:12:19 +0000 (14:12 +0100)
* [rfxcom] Updates / small fixes

Added support for:
 - CHIME - Alfawise, dBell
 - HUMIDITY - HUM3 - Inovalley S80 plant humidity sensor
 - LIGHTING1 - Oase Inscenio FM Master

Fixes #10251

Signed-off-by: Martin van Wingerden <martin@martinvw.nl>
bundles/org.openhab.binding.rfxcom/README.md
bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComChimeMessage.java
bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComLighting1Message.java
bundles/org.openhab.binding.rfxcom/src/main/resources/OH-INF/i18n/rfxcom.properties
bundles/org.openhab.binding.rfxcom/src/main/resources/OH-INF/thing/channels.xml
bundles/org.openhab.binding.rfxcom/src/main/resources/OH-INF/thing/chime.xml
bundles/org.openhab.binding.rfxcom/src/main/resources/OH-INF/thing/humidity.xml
bundles/org.openhab.binding.rfxcom/src/main/resources/OH-INF/thing/lighting1.xml

index 2931b23fb05991ce7be408356cfff193174b4d23..a931a37811d7ac8aa4244f4ce0d604eb68500a5a 100644 (file)
@@ -324,11 +324,12 @@ A Chime device
 *   subType - Sub Type
     *   Specifies device sub type.
 
-        *   BYRONSX - Byron SX
-        *   BYRONMP001 - Byron MP001
-        *   SELECTPLUS - SelectPlus
-        *   SELECTPLUS3 - SelectPlus3
-        *   ENVIVO - Envivo
+        * BYRONSX - Byron SX
+        * BYRONMP001 - Byron MP001
+        * SELECTPLUS - SelectPlus
+        * SELECTPLUS3 - SelectPlus3
+        * ENVIVO - Envivo
+        * ALFAWISE_DBELL - Alfawise, dBell
 
 
 ### current - RFXCOM Current Sensor
@@ -609,6 +610,7 @@ A Humidity device
 
         *   HUM1 - LaCrosse TX3
         *   HUM2 - LaCrosse WS2300
+        *   HUM3 - Inovalley S80 plant humidity sensor
 
 
 ### lighting1 - RFXCOM Lighting1 Actuator
@@ -642,18 +644,19 @@ A Lighting1 device
 *   subType - Sub Type
     *   Specifies device sub type.
 
-        *   X10 - X10 lighting
-        *   ARC - ARC
-        *   AB400D - ELRO AB400D (Flamingo)
-        *   WAVEMAN - Waveman
-        *   EMW200 - Chacon EMW200
-        *   IMPULS - IMPULS
-        *   RISINGSUN - RisingSun
-        *   PHILIPS - Philips SBC
-        *   ENERGENIE - Energenie ENER010
-        *   ENERGENIE\_5 - Energenie 5-gang
-        *   COCO - COCO GDR2-2000R
-        *   HQ\_COCO20 - HQ COCO-20
+        * X10 - X10 lighting
+        * ARC - ARC
+        * AB400D - ELRO AB400D (Flamingo)
+        * WAVEMAN - Waveman
+        * EMW200 - Chacon EMW200
+        * IMPULS - IMPULS
+        * RISINGSUN - RisingSun
+        * PHILIPS - Philips SBC
+        * ENERGENIE - Energenie ENER010
+        * ENERGENIE\_5 - Energenie 5-gang
+        * COCO - COCO GDR2-2000R
+        * HQ\_COCO20 - HQ COCO-20
+        * OASE_INSCENIO_FM_N - Oase Inscenio FM Master
 
 
 ### lighting2 - RFXCOM Lighting2 Actuator
index 4f16ac0339f541f033641eb8d7e949fd03a59fca..e4c2f04da1a0320000366a9af637517a7bc26426 100644 (file)
@@ -37,7 +37,8 @@ public class RFXComChimeMessage extends RFXComDeviceMessageImpl<RFXComChimeMessa
         BYRONMP001(1),
         SELECTPLUS(2),
         SELECTPLUS3(3),
-        ENVIVO(4);
+        ENVIVO(4),
+        ALFAWISE_DBELL(5);
 
         private final int subType;
 
@@ -91,6 +92,7 @@ public class RFXComChimeMessage extends RFXComDeviceMessageImpl<RFXComChimeMessa
             case SELECTPLUS:
             case SELECTPLUS3:
             case ENVIVO:
+            case ALFAWISE_DBELL:
                 sensorId = (data[4] & 0xFF) << 16 | (data[5] & 0xFF) << 8 | (data[6] & 0xFF);
                 chimeSound = 1;
                 break;
@@ -118,6 +120,7 @@ public class RFXComChimeMessage extends RFXComDeviceMessageImpl<RFXComChimeMessa
             case SELECTPLUS:
             case SELECTPLUS3:
             case ENVIVO:
+            case ALFAWISE_DBELL:
                 data[4] = (byte) ((sensorId & 0xFF0000) >> 16);
                 data[5] = (byte) ((sensorId & 0x00FF00) >> 8);
                 data[6] = (byte) ((sensorId & 0x0000FF));
index 27b6b0d54a1deabe25ff454a693adfa9ffd6f221..b839ab8d61db664f5d1ef94ce635ecbfa54a855f 100644 (file)
@@ -49,7 +49,8 @@ public class RFXComLighting1Message extends RFXComDeviceMessageImpl<RFXComLighti
         ENERGENIE(8),
         ENERGENIE_5(9),
         COCO(10),
-        HQ_COCO20(11);
+        HQ_COCO20(11),
+        OASE_INSCENIO_FM_N(12);
 
         private final int subType;
 
index 6afa47eb0088ff891642fee86759a2b501f09ed7..90f7bf96263d09dc8c469d441c63854a2aae0a4d 100644 (file)
@@ -119,6 +119,7 @@ thing-type.config.rfxcom.chime.subType.option.BYRONMP001 = Byron MP001
 thing-type.config.rfxcom.chime.subType.option.SELECTPLUS = SelectPlus
 thing-type.config.rfxcom.chime.subType.option.SELECTPLUS3 = SelectPlus3
 thing-type.config.rfxcom.chime.subType.option.ENVIVO = Envivo
+thing-type.config.rfxcom.chime.subType.option.ALFAWISE_DBELL = Alfawise, dBell
 thing-type.config.rfxcom.current.deviceId.description = Sensor Id. Example 5693
 thing-type.config.rfxcom.current.subType.option.ELEC1 = CM113
 thing-type.config.rfxcom.currentenergy.deviceId.description = Sensor Id. Example 47104
@@ -162,6 +163,7 @@ thing-type.config.rfxcom.homeconfort.deviceId.description = Device Id. Unit ID +
 thing-type.config.rfxcom.humidity.deviceId.description = Sensor Id. Example 5693
 thing-type.config.rfxcom.humidity.subType.option.HUM1 = LaCrosse TX3
 thing-type.config.rfxcom.humidity.subType.option.HUM2 = LaCrosse WS2300
+thing-type.config.rfxcom.humidity.subType.option.HUM3 = Inovalley S80 plant humidity sensor
 thing-type.config.rfxcom.lighting1.deviceId.description = Device Id. House code + unit code, separated by dot. Example A.1
 thing-type.config.rfxcom.lighting1.subType.option.X10 = X10 lighting
 thing-type.config.rfxcom.lighting1.subType.option.ARC = ARC
@@ -175,6 +177,7 @@ thing-type.config.rfxcom.lighting1.subType.option.ENERGENIE = Energenie ENER010
 thing-type.config.rfxcom.lighting1.subType.option.ENERGENIE_5 = Energenie 5-gang
 thing-type.config.rfxcom.lighting1.subType.option.COCO = COCO GDR2-2000R
 thing-type.config.rfxcom.lighting1.subType.option.HQ_COCO20 = HQ COCO-20
+thing-type.config.rfxcom.lighting1.subType.option.OASE_INSCENIO_FM_N = Oase Inscenio FM Master
 thing-type.config.rfxcom.lighting2.deviceId.description = Remote/switch/unit Id + unit code, separated by dot. Example 8773718.10
 thing-type.config.rfxcom.lighting2.subType.option.AC = AC
 thing-type.config.rfxcom.lighting2.subType.option.HOME_EASY_EU = HomeEasy EU
index e7eb71502f2630d73626d03b078c18e9f37e6e51..b656fd395961cd2bc9aa82d591303b4b99a9b854 100644 (file)
                <item-type>Number</item-type>
                <label>Total Usage</label>
                <description>Used energy in Watt hours</description>
-               <state pattern="%d Wh" readOnly="true"></state>
+               <state pattern="%.2f Wh" readOnly="true"></state>
        </channel-type>
 
        <channel-type id="instantamp" advanced="true">
index c3df94df5c0c42307b7e7ad239c644a443041c1c..e54f8e084347c9494d0b375a442fa57332f68828 100644 (file)
                                <label>@text/config.subType.label</label>
                                <description>@text/config.subType.description</description>
                                <options>
+                                       <option value="ALFAWISE_DBELL">Alfawise, dBell</option>
                                        <option value="BYRONSX">Byron SX</option>
                                        <option value="BYRONMP001">Byron MP001</option>
+                                       <option value="ENVIVO">Envivo</option>
                                        <option value="SELECTPLUS">SelectPlus</option>
                                        <option value="SELECTPLUS3">SelectPlus3</option>
-                                       <option value="ENVIVO">Envivo</option>
                                </options>
                        </parameter>
                </config-description>
index 6ac206868c7fd3057c122864fd92bfbc920b7c78..a5783e30a5fec3f72f158c3f1a967529453636c9 100644 (file)
@@ -34,6 +34,7 @@
                                <options>
                                        <option value="HUM1">LaCrosse TX3</option>
                                        <option value="HUM2">LaCrosse WS2300</option>
+                                       <option value="HUM3">Inovalley S80 plant humidity sensor</option>
                                </options>
                        </parameter>
                </config-description>
index 539e2203004b74e5bc2ca52897d53e7a56aca5ec..f8f556b90a5f6af8d787217128dc4a6380c9678d 100644 (file)
@@ -44,6 +44,7 @@
                                        <option value="ENERGENIE_5">Energenie 5-gang</option>
                                        <option value="COCO">COCO GDR2-2000R</option>
                                        <option value="HQ_COCO20">HQ COCO-20</option>
+                                       <option value="OASE_INSCENIO_FM_N">Oase Inscenio FM Master</option>
                                </options>
                        </parameter>
                </config-description>