forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regex fixes, and better labels for things
- Loading branch information
Showing
6 changed files
with
95 additions
and
104 deletions.
There are no files selected for viewing
13 changes: 6 additions & 7 deletions
13
addons/binding/org.openhab.binding.hdmicec/ESH-INF/binding/binding.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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<binding:binding id="hdmicec" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:binding="http://eclipse.org/smarthome/schemas/binding/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/binding/v1.0.0 http://eclipse.org/smarthome/schemas/binding-1.0.0.xsd"> | ||
<binding:binding id="hdmicec" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:binding="http://eclipse.org/smarthome/schemas/binding/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/binding/v1.0.0 http://eclipse.org/smarthome/schemas/binding-1.0.0.xsd"> | ||
|
||
<name>HdmiCec Binding</name> | ||
<description>Binding for cec-client.</description> | ||
<author>David Masshardt</author> | ||
<name>HdmiCec Binding</name> | ||
<description>Binding for cec-client.</description> | ||
<author>David Masshardt</author> | ||
|
||
</binding:binding> |
24 changes: 0 additions & 24 deletions
24
addons/binding/org.openhab.binding.hdmicec/ESH-INF/thing/bridge.xml
This file was deleted.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
addons/binding/org.openhab.binding.hdmicec/ESH-INF/thing/hdmi-cec-things.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,76 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<thing:thing-descriptions bindingId="hdmicec" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- HDMI CEC Bridge --> | ||
<bridge-type id="bridge" listed="true"> | ||
<label>HDMI-CEC Bridge</label> | ||
<description>The HDMI-CEC Bridge.</description> | ||
|
||
<config-description> | ||
<parameter name="cecClientPath" type="text" required="true"> | ||
<label>cec-client executable path</label> | ||
<description>e.g. /usr/local/bin/cec-client</description> | ||
</parameter> | ||
<parameter name="comPort" type="text" required="true"> | ||
<label>Device com port</label> | ||
<description>e.g. /dev/ttyACM0</description> | ||
</parameter> | ||
</config-description> | ||
</bridge-type> | ||
|
||
<thing-type id="equipment" listed="true"> | ||
<supported-bridge-type-refs> | ||
<bridge-type-ref id="bridge" /> | ||
</supported-bridge-type-refs> | ||
<label>HDMI-CEC Equipment</label> | ||
<description>Represents your TV, Home Theater, Blu-Ray, etc. that speaks HDMI CEC</description> | ||
|
||
<channels> | ||
<channel id="power" typeId="power" /> | ||
<channel id="activeSource" typeId="activeSource" /> | ||
<channel id="event" typeId="event" /> | ||
<channel id="send" typeId="send" /> | ||
</channels> | ||
|
||
<config-description> | ||
<parameter name="device" type="text" required="true"> | ||
<label>device</label> | ||
<description>CEC Device, a single HEX value such as 0, 1, 2, E (0 is TV)</description> | ||
</parameter> | ||
<parameter name="address" type="text" required="true"> | ||
<label>address</label> | ||
<description>CEC Address, of the form 0.0.0.0</description> | ||
</parameter> | ||
</config-description> | ||
</thing-type> | ||
|
||
<channel-type id="power"> | ||
<item-type>Switch</item-type> | ||
<label>Power</label> | ||
<description>Power on/off your device</description> | ||
</channel-type> | ||
|
||
<channel-type id="activeSource"> | ||
<item-type>Switch</item-type> | ||
<label>Active Source</label> | ||
<description>Make source active/inactive</description> | ||
</channel-type> | ||
|
||
<!-- Event Channel Type --> | ||
<channel-type id="event"> | ||
<kind>trigger</kind> | ||
<label>Traffic Event</label> | ||
<description>Triggers when something happens</description> | ||
</channel-type> | ||
|
||
<!-- Transmit Channel Type --> | ||
<channel-type id="send"> | ||
<item-type>String</item-type> | ||
<label>Send Command</label> | ||
<description>Used to send CEC commands</description> | ||
</channel-type> | ||
|
||
</thing:thing-descriptions> |
57 changes: 0 additions & 57 deletions
57
addons/binding/org.openhab.binding.hdmicec/ESH-INF/thing/thing-types.xml
This file was deleted.
Oops, something went wrong.
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
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