mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Implement missing 'Light' device type (#14150)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
parent
47f5489d70
commit
de6ef7e8ae
@ -12,6 +12,7 @@ The easiest way is to open the Bond Home app on your mobile device, tap on your
|
|||||||
| bondFan | An RF or IR remote controlled ceiling fan with or without a light |
|
| bondFan | An RF or IR remote controlled ceiling fan with or without a light |
|
||||||
| bondFireplace | An RF or IR remote controlled fireplace with or without a fan |
|
| bondFireplace | An RF or IR remote controlled fireplace with or without a fan |
|
||||||
| bondGenericThing | A generic RF or IR remote controlled device |
|
| bondGenericThing | A generic RF or IR remote controlled device |
|
||||||
|
| bondLight | An RF or IR remote controlled light |
|
||||||
| bondShades | An RF or IR remote controlled motorized shade |
|
| bondShades | An RF or IR remote controlled motorized shade |
|
||||||
|
|
||||||
## Discovery
|
## Discovery
|
||||||
@ -102,4 +103,5 @@ Switch GreatFan_Switch "Great Room Fan" { channel="bondhome:bondFan:BD123456:0d1
|
|||||||
Dimmer GreatFan_Dimmer "Great Room Fan" { channel="bondhome:bondFan:BD123456:0d11f00:fan#speed" }
|
Dimmer GreatFan_Dimmer "Great Room Fan" { channel="bondhome:bondFan:BD123456:0d11f00:fan#speed" }
|
||||||
String GreatFan_Rotation "Great Room Fan Rotation" { channel="bondhome:bondFan:BD123456:0d11f00:fan#direction" }
|
String GreatFan_Rotation "Great Room Fan Rotation" { channel="bondhome:bondFan:BD123456:0d11f00:fan#direction" }
|
||||||
Switch GreatFanLight_Switch "Great Room Fan Light" { channel="bondhome:bondFan:BD123456:0d11f00:light#power" }
|
Switch GreatFanLight_Switch "Great Room Fan Light" { channel="bondhome:bondFan:BD123456:0d11f00:light#power" }
|
||||||
|
Switch RF_Outlet_Lamp "Remote Control Outlet" { channel="bondhome:bondLight:BD123456:ce1fe38:light#power" }
|
||||||
```
|
```
|
||||||
|
@ -36,12 +36,13 @@ public class BondHomeBindingConstants {
|
|||||||
public static final ThingTypeUID THING_TYPE_BOND_SHADES = new ThingTypeUID(BINDING_ID, "bondShades");
|
public static final ThingTypeUID THING_TYPE_BOND_SHADES = new ThingTypeUID(BINDING_ID, "bondShades");
|
||||||
public static final ThingTypeUID THING_TYPE_BOND_FIREPLACE = new ThingTypeUID(BINDING_ID, "bondFireplace");
|
public static final ThingTypeUID THING_TYPE_BOND_FIREPLACE = new ThingTypeUID(BINDING_ID, "bondFireplace");
|
||||||
public static final ThingTypeUID THING_TYPE_BOND_GENERIC = new ThingTypeUID(BINDING_ID, "bondGenericThing");
|
public static final ThingTypeUID THING_TYPE_BOND_GENERIC = new ThingTypeUID(BINDING_ID, "bondGenericThing");
|
||||||
|
public static final ThingTypeUID THING_TYPE_BOND_LIGHT = new ThingTypeUID(BINDING_ID, "bondLight");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The supported thing types.
|
* The supported thing types.
|
||||||
*/
|
*/
|
||||||
public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Set.of(THING_TYPE_BOND_FAN, THING_TYPE_BOND_SHADES,
|
public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Set.of(THING_TYPE_BOND_FAN, THING_TYPE_BOND_SHADES,
|
||||||
THING_TYPE_BOND_FIREPLACE, THING_TYPE_BOND_GENERIC);
|
THING_TYPE_BOND_FIREPLACE, THING_TYPE_BOND_GENERIC, THING_TYPE_BOND_LIGHT);
|
||||||
|
|
||||||
public static final Set<ThingTypeUID> SUPPORTED_BRIDGE_TYPES = Set.of(THING_TYPE_BOND_BRIDGE);
|
public static final Set<ThingTypeUID> SUPPORTED_BRIDGE_TYPES = Set.of(THING_TYPE_BOND_BRIDGE);
|
||||||
|
|
||||||
|
@ -34,8 +34,9 @@ public enum BondDeviceType {
|
|||||||
@SerializedName("FP")
|
@SerializedName("FP")
|
||||||
FIREPLACE(THING_TYPE_BOND_FIREPLACE),
|
FIREPLACE(THING_TYPE_BOND_FIREPLACE),
|
||||||
@SerializedName("GX")
|
@SerializedName("GX")
|
||||||
GENERIC_DEVICE(THING_TYPE_BOND_GENERIC);
|
GENERIC_DEVICE(THING_TYPE_BOND_GENERIC),
|
||||||
// TODO: add Light ("LT") type
|
@SerializedName("LT")
|
||||||
|
LIGHT(THING_TYPE_BOND_LIGHT);
|
||||||
|
|
||||||
private ThingTypeUID deviceTypeUid;
|
private ThingTypeUID deviceTypeUid;
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
xsi:schemaLocation="https://openhab.org/schemas/binding/v1.0.0 https://openhab.org/schemas/binding-1.0.0.xsd">
|
xsi:schemaLocation="https://openhab.org/schemas/binding/v1.0.0 https://openhab.org/schemas/binding-1.0.0.xsd">
|
||||||
|
|
||||||
<name>Bond Home Binding</name>
|
<name>Bond Home Binding</name>
|
||||||
<description>This is the binding for the Bond Bridge for Ceiling Fans and and other RF devices.</description>
|
<description>This is the binding for the Bond Bridge for Ceiling Fans and other RF devices.</description>
|
||||||
<author>Sara Geleskie Damiano</author>
|
|
||||||
|
|
||||||
</binding:binding>
|
</binding:binding>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# binding
|
# binding
|
||||||
|
|
||||||
binding.bondhome.name = Bond Home Binding
|
binding.bondhome.name = Bond Home Binding
|
||||||
binding.bondhome.description = This is the binding for the Bond Bridge for Ceiling Fans and and other RF devices.
|
binding.bondhome.description = This is the binding for the Bond Bridge for Ceiling Fans and other RF devices.
|
||||||
|
|
||||||
# thing types
|
# thing types
|
||||||
|
|
||||||
@ -13,6 +13,8 @@ thing-type.bondhome.bondFireplace.label = Bond Home Fireplace
|
|||||||
thing-type.bondhome.bondFireplace.description = An RF or IR remote controlled fireplace with or without a fan
|
thing-type.bondhome.bondFireplace.description = An RF or IR remote controlled fireplace with or without a fan
|
||||||
thing-type.bondhome.bondGenericThing.label = Bond Home Generic Remote
|
thing-type.bondhome.bondGenericThing.label = Bond Home Generic Remote
|
||||||
thing-type.bondhome.bondGenericThing.description = A generic RF or IR remote controlled device
|
thing-type.bondhome.bondGenericThing.description = A generic RF or IR remote controlled device
|
||||||
|
thing-type.bondhome.bondLight.label = Bond Home Light
|
||||||
|
thing-type.bondhome.bondLight.description = An RF or IR remote controlled light
|
||||||
thing-type.bondhome.bondShades.label = Bond Home Motorized Shades
|
thing-type.bondhome.bondShades.label = Bond Home Motorized Shades
|
||||||
thing-type.bondhome.bondShades.description = An RF or IR remote controlled motorized shade
|
thing-type.bondhome.bondShades.description = An RF or IR remote controlled motorized shade
|
||||||
|
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<thing:thing-descriptions bindingId="bondhome"
|
||||||
|
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">
|
||||||
|
|
||||||
|
<!-- A Light Thing -->
|
||||||
|
<thing-type id="bondLight">
|
||||||
|
<supported-bridge-type-refs>
|
||||||
|
<bridge-type-ref id="bondBridge"/>
|
||||||
|
</supported-bridge-type-refs>
|
||||||
|
|
||||||
|
<label>Bond Home Light</label>
|
||||||
|
<description>An RF or IR remote controlled light</description>
|
||||||
|
|
||||||
|
<channel-groups>
|
||||||
|
<channel-group id="light" typeId="lightChannelGroup"/>
|
||||||
|
</channel-groups>
|
||||||
|
|
||||||
|
<representation-property>deviceId</representation-property>
|
||||||
|
|
||||||
|
<config-description-ref uri="thing-type:bondhome:bonddevice"/>
|
||||||
|
|
||||||
|
</thing-type>
|
||||||
|
|
||||||
|
</thing:thing-descriptions>
|
Loading…
Reference in New Issue
Block a user