-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make dim buttons of the Philips Dimmer Switch usable. (#352)
* Make dim buttons of the Philips Dim Switch usable. Signed-off-by: Raik Bieniek <[email protected]> * add battery information to the static thing definion for the Philips dimmer switch. Signed-off-by: Raik Bieniek <[email protected]> * Fix the thing-type id for the philips dimmer switch. Signed-off-by: Raik Bieniek <[email protected]>
- Loading branch information
Showing
2 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
org.openhab.binding.zigbee/ESH-INF/thing/philips/rwl021.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" | ||
bindingId="zigbee" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
<thing-type id="philips_rwl021"> | ||
<label>Hue Dimmer Switch</label> | ||
<channels> | ||
<channel id="buttonI" typeId="system.button"> | ||
<label>Button I</label> | ||
<description>Top Button 'I'</description> | ||
<properties> | ||
<property name="zigbee_endpoint">1</property> | ||
<property name="zigbee_shortpress_cluster_id">0x0006</property> | ||
<property name="zigbee_shortpress_command_id">0x01</property> | ||
</properties> | ||
</channel> | ||
<channel id="buttonO" typeId="system.button"> | ||
<label>Button O</label> | ||
<description>Bottom Button 'O'</description> | ||
<properties> | ||
<property name="zigbee_endpoint">1</property> | ||
<property name="zigbee_shortpress_cluster_id">0x0006</property> | ||
<property name="zigbee_shortpress_command_id">0x40</property> | ||
</properties> | ||
</channel> | ||
<channel id="dimUp" typeId="system.button"> | ||
<label>Button Dim Up</label> | ||
<description>Button with the brighter light</description> | ||
<properties> | ||
<property name="zigbee_endpoint">1</property> | ||
<property name="zigbee_shortpress_cluster_id">0x0008</property> | ||
<property name="zigbee_shortpress_command_id">0x02</property> | ||
<property name="zigbee_shortpress_parameter_name">stepMode</property> | ||
<property name="zigbee_shortpress_parameter_value">0</property> | ||
</properties> | ||
</channel> | ||
<channel id="dimDown" typeId="system.button"> | ||
<label>Button Dim Down</label> | ||
<description>Button with the darker light</description> | ||
<properties> | ||
<property name="zigbee_endpoint">1</property> | ||
<property name="zigbee_shortpress_cluster_id">0x0008</property> | ||
<property name="zigbee_shortpress_command_id">0x02</property> | ||
<property name="zigbee_shortpress_parameter_name">stepMode</property> | ||
<property name="zigbee_shortpress_parameter_value">1</property> | ||
</properties> | ||
</channel> | ||
<!-- This channel works but it isn't very usefull as long as long press start and short press can not be distinguished. | ||
<channel id="dimStop" typeId="system.button"> | ||
<label>Dim Buttons released</label> | ||
<description>Triggered when the dim up or the dim down button is released after beeing long pressed.</description> | ||
<properties> | ||
<property name="zigbee_endpoint">1</property> | ||
<property name="zigbee_shortpress_cluster_id">0x0008</property> | ||
<property name="zigbee_shortpress_command_id">0x03</property> | ||
</properties> | ||
</channel>--> | ||
|
||
<channel id="batteryLevel" typeId="system.battery-level"> | ||
<properties> | ||
<property name="zigbee_endpoint">2</property> | ||
</properties> | ||
</channel> | ||
<channel id="batteryVoltage" typeId="battery_voltage"> | ||
<properties> | ||
<property name="zigbee_endpoint">2</property> | ||
</properties> | ||
</channel> | ||
<!-- TODO find out if this is supported | ||
<channel id="batteryAlarm" typeId="battery_alarm"> | ||
<properties> | ||
<property name="zigbee_endpoint">2</property> | ||
</properties> | ||
</channel>--> | ||
</channels> | ||
<config-description> | ||
<parameter name="zigbee_macaddress" | ||
type="text" | ||
readOnly="true" | ||
required="true"> | ||
<label>MAC Address</label> | ||
</parameter> | ||
</config-description> | ||
</thing-type> | ||
</thing:thing-descriptions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
philips_sml001,vendor=Philips,modelId=SML001 | ||
philips_rwl021,vendor=Philips,modelId=RWL021 | ||
smartthings_motionv4,vendor=SmartThings,modelId=motionv4 | ||
bitron-video-902010-23,vendor=Bitron Home,modelId=902010/23 | ||
bitron-video-av2010-34,vendor=Bitron Video,modelId=AV2010/34 | ||
xiaomi_lumisensorht,modelId=lumi.sensor_ht | ||
innr-rc-110,vendor=innr,modelId=RC 110 | ||
innr-rc-110,vendor=innr,modelId=RC 110 |