added migrated 2.x add-ons

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer
2020-09-21 01:58:32 +02:00
parent bbf1a7fd29
commit 6df6783b60
11662 changed files with 1302875 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="milight" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:binding="https://openhab.org/schemas/binding/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/binding/v1.0.0 https://openhab.org/schemas/binding-1.0.0.xsd">
<name>Milight Binding</name>
<description>A binding for Milight/Easybulb/compatible white, color and color+white bulbs.</description>
<author>David Gräff</author>
</binding:binding>

View File

@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="milight"
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">
<channel-type id="lednightmode">
<item-type>Switch</item-type>
<label>Nightmode</label>
<description>Switch to night mode, a very dimmed brightness mode</description>
<state>
<options>
<option value="ON">Nightmode</option>
</options>
</state>
</channel-type>
<channel-type id="ledwhitemode">
<item-type>Switch</item-type>
<label>Whitemode</label>
<description>Switch to white mode, which basically sets the saturation to 0 (turns off the color leds)</description>
<state>
<options>
<option value="ON">Whitemode</option>
</options>
</state>
</channel-type>
<channel-type id="ledlink" advanced="true">
<item-type>Switch</item-type>
<label>Link Bulb</label>
<description>Sync bulb to this zone within 3 seconds of light bulb socket power on</description>
</channel-type>
<channel-type id="ledunlink" advanced="true">
<item-type>Switch</item-type>
<label>Unlink Bulb</label>
<description>Clear bulb from this zone within 3 seconds of light bulb socket power on</description>
</channel-type>
<channel-type id="ledcolor">
<item-type>Color</item-type>
<label>Color</label>
<description>Color of the LED. Bind to a Dimmer to just set the brightness, bind to a Color chooser for the full
control and bind to a Switch for turning the led on or off.
</description>
<category>ColorLight</category>
<tags>
<tag>ColorLighting</tag>
<tag>Lighting</tag>
</tags>
</channel-type>
<channel-type id="ledbrightness">
<item-type>Dimmer</item-type>
<label>Brightness</label>
<description>The brightness can be set in 16 steps for RGBW/White leds and in 64 steps for RGBWW leds</description>
<category>Light</category>
<tags>
<tag>Lighting</tag>
</tags>
<state min="0" max="100" step="1" pattern="%d"></state>
</channel-type>
<channel-type id="ledsaturation" advanced="true">
<item-type>Dimmer</item-type>
<label>Saturation</label>
<description>The saturation can be set in 64 steps for RGBWW leds</description>
<state min="0" max="100" step="1" pattern="%d"></state>
</channel-type>
<channel-type id="ledtemperature">
<item-type>Dimmer</item-type>
<label>Color Temperature</label>
<description>White leds and RGBWW allow to change between a cold and a warm color temperature. White support 16, RGBWW
support 64 steps
</description>
<category>DimmableLight</category>
<state min="0" max="100" step="1" pattern="%d"></state>
</channel-type>
<channel-type id="animation_speed_relative">
<item-type>Dimmer</item-type>
<label>Animation Speed</label>
<description>The speed of some animations can be increased or decreased</description>
</channel-type>
<channel-type id="animation_mode_relative">
<item-type>Dimmer</item-type>
<label>Animation Mode</label>
<description>Switch to the next/previous animation mode of your RGBW or white LED. Bind this to a Next/Previous
channel type.
</description>
</channel-type>
<channel-type id="animation_mode">
<item-type>Number</item-type>
<label>Animation Mode</label>
<description>Animation mode of your LED. RGBWW leds support 9 animation modes.</description>
<category>Light</category>
<state>
<options>
<option value="1">Animation 1</option>
<option value="2">Animation 2</option>
<option value="3">Animation 3</option>
<option value="4">Animation 4</option>
<option value="5">Animation 5</option>
<option value="6">Animation 6</option>
<option value="7">Animation 7</option>
<option value="8">Animation 8</option>
<option value="9">Animation 9</option>
</options>
</state>
</channel-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="milight"
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">
<thing-type id="rgbv2Led">
<supported-bridge-type-refs>
<bridge-type-ref id="bridgeV3"/>
</supported-bridge-type-refs>
<label>Color Bulb (old)</label>
<description>The oldest produced color bulb. Without a white channel. No saturation support.</description>
<category>Lightbulb</category>
<channels>
<channel id="ledbrightness" typeId="ledbrightness"/>
<channel id="ledcolor" typeId="ledcolor"/>
<channel id="animation_mode_relative" typeId="animation_mode_relative"/>
</channels>
<config-description>
<parameter name="zone" type="integer" required="true">
<label>Zone</label>
<description>A milight bulb can be assigned to zone 0-4. zone 0 controls all bulbs of that type.
</description>
<default>1</default>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="milight"
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">
<bridge-type id="bridgeV3">
<label>Milight Bridge (first Edition)</label>
<description>A Milight/Easybulb bridge. This bridge cannot handle newer light bulbs (2016+) of the aforementioned
manufacturers.</description>
<config-description>
<parameter name="host" type="text">
<label>IP or Host Name</label>
<description>You either need an IP/Hostname or the Bridge ID.</description>
<context>network-address</context>
</parameter>
<parameter name="repeat" type="integer" required="false" min="0" max="5">
<label>Repeat Commands</label>
<description>Usually the bridge receives all commands albeit UDP is used. But the actual bulbs might be slightly out
of bridge radio range and it sometimes helps to send commands multiple times.
</description>
<default>1</default>
<advanced>true</advanced>
</parameter>
<parameter name="delayTime" type="integer" required="false" min="0" max="400">
<label>Wait Between Commands (ms)</label>
<description>Time to wait before sending another command to the bridge. It is safe to have a wait time of 1/10s but
usually sufficient to just wait 50ms. If the value is too high, commands queue up.
</description>
<default>100</default>
<advanced>true</advanced>
</parameter>
<parameter name="port" type="integer" required="false">
<label>Custom Port</label>
<description>You can set a custom port that will take precedence over the default port which is selected depending
on the bridge version: Version 6 uses 5987, Version 3/4/5 uses 8899. Version 2 uses 50000.
</description>
<advanced>true</advanced>
</parameter>
<parameter name="bridgeid" type="text">
<label>Bridge ID</label>
<description>The mac address of the bridge in upper case letters without delimiter.
Use this parameter and leave the
IP/Hostname empty for DHCP environments where IPs may often change over time.
The Bridge ID is also used to check if
a given IP corresponds to the right device.
The bridge is set offline if the device does not respond with the
correct Bridge ID and a re-detection is started.
</description>
<advanced>true</advanced>
</parameter>
<parameter name="refreshTime" type="integer" min="5" max="300">
<label>Refresh Interval</label>
<description>Interval in seconds to check for device presence. The Bridge ID is used to check if the IP is still the
right one.
</description>
<default>10</default>
<advanced>true</advanced>
</parameter>
</config-description>
</bridge-type>
<thing-type id="rgbLed">
<supported-bridge-type-refs>
<bridge-type-ref id="bridgeV3"/>
</supported-bridge-type-refs>
<label>Color Bulb (first Edition)</label>
<description>RGB bulb with white channel. No saturation control. If the set saturation is below a threshold of 50%,
the bulb turns into white mode.</description>
<category>Lightbulb</category>
<channels>
<channel id="lednightmode" typeId="lednightmode"/>
<channel id="ledwhitemode" typeId="ledwhitemode"/>
<channel id="ledbrightness" typeId="ledbrightness"/>
<channel id="ledcolor" typeId="ledcolor"/>
<channel id="animation_speed_relative" typeId="animation_speed_relative"/>
<channel id="animation_mode_relative" typeId="animation_mode_relative"/>
</channels>
<config-description>
<parameter name="zone" type="integer" required="true">
<label>Zone</label>
<description>A milight bulb can be assigned to zone 0-4. zone 0 controls all bulbs of that type.
</description>
<default>1</default>
</parameter>
</config-description>
</thing-type>
<thing-type id="whiteLed">
<supported-bridge-type-refs>
<bridge-type-ref id="bridgeV3"/>
</supported-bridge-type-refs>
<label>Cold/warm White Bulb (first Edition)</label>
<description>White bulb for the older bridge (up to 2016)</description>
<category>Lightbulb</category>
<channels>
<channel id="lednightmode" typeId="lednightmode"/>
<channel id="ledbrightness" typeId="ledbrightness"/>
<channel id="ledtemperature" typeId="ledtemperature"/>
<channel id="animation_mode_relative" typeId="animation_mode_relative"/>
</channels>
<config-description>
<parameter name="zone" type="integer" required="true">
<label>Zone</label>
<description>A milight bulb can be assigned to zone 0-4. zone 0 controls all bulbs of that type.
</description>
<default>1</default>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,173 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="milight"
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">
<bridge-type id="bridgeV6">
<label>Milight Bridge (iBox)</label>
<description>A bridge for all newer light bulbs (2016+) of the Milight/Easybulb system.</description>
<properties>
<property name="sessionid">N/A</property>
<property name="sessionid_last_refresh">N/A</property>
</properties>
<config-description>
<parameter name="host" type="text" required="true">
<label>IP or Host Name</label>
<description>Will be resolved by discovery if auto configured
</description>
<context>network-address</context>
</parameter>
<parameter name="passwordByte1" type="integer" required="true" min="0" max="255">
<label>Password Byte 1</label>
<description>Bridge V6 allows to set two password bytes. A value from 0-255 is allowed.
</description>
<context>password</context>
<default>0</default>
</parameter>
<parameter name="passwordByte2" type="integer" required="true" min="0" max="255">
<label>Password Byte 2</label>
<description>Bridge V6 allows to set two password bytes. A value from 0-255 is allowed.
</description>
<context>password</context>
<default>0</default>
</parameter>
<parameter name="repeat" type="integer" required="false" min="0" max="5">
<label>Repeat Commands</label>
<description>Usually the bridge receives all commands albeit UDP is used. But the actual bulbs might be slightly out
of bridge radio range and it sometimes helps to send commands multiple times.
</description>
<default>1</default>
<advanced>true</advanced>
</parameter>
<parameter name="delayTime" type="integer" required="false" min="0" max="400">
<label>Wait Between Commands (ms)</label>
<description>Time to wait before sending another command to the bridge. It is safe to have a wait time of 1/10s but
usually sufficient to just wait 50ms. If the value is too high, commands queue up.
</description>
<default>100</default>
<advanced>true</advanced>
</parameter>
<parameter name="port" type="integer" required="false">
<label>Custom Port</label>
<description>You can set a custom port that will take precedence over the default port which is selected depending
on the bridge version: Version 6 uses 5987, Version 3/4/5 uses 8899. Version 2 uses 50000.
</description>
<advanced>true</advanced>
</parameter>
<parameter name="bridgeid" type="text" required="true">
<label>Bridge ID</label>
<description>The mac address of the bridge in upper case letters without delimiter.
This is used to check if the
given IP corresponds to the right device. The bridge is set offline if the device
does not respond with the correct
Bride ID and a re-detection is started. Useful for DHCP environments where
IPs may change over time, after power
outage etc. Will be resolved by discovery if auto configured.
</description>
<advanced>true</advanced>
</parameter>
<parameter name="refreshTime" type="integer" min="100" max="10000" required="true">
<label>Keep Alive Interval</label>
<description>Interval in milliseconds to send a keep alive ping. If the value is too high, a session may expire and
the bridge and all devices could go offline for a few seconds.
</description>
<default>5000</default>
<advanced>true</advanced>
</parameter>
</config-description>
</bridge-type>
<thing-type id="rgbiboxLed">
<supported-bridge-type-refs>
<bridge-type-ref id="bridgeV6"/>
</supported-bridge-type-refs>
<label>Integrated Bulb (iBox)</label>
<description>Integrated bulb of the ibox bridge with no dedicated white channel and therefore no saturation control
</description>
<category>Lightbulb</category>
<channels>
<channel id="ledwhitemode" typeId="ledwhitemode"/>
<channel id="ledbrightness" typeId="ledbrightness"/>
<channel id="ledcolor" typeId="ledcolor"/>
<channel id="animation_speed_relative" typeId="animation_speed_relative"/>
<channel id="animation_mode" typeId="animation_mode"/>
<channel id="animation_mode_relative" typeId="animation_mode_relative"/>
</channels>
<config-description>
<parameter name="zone" type="integer" required="true">
<label>Zone</label>
<description>A milight bulb can be assigned to zone 0-4. zone 0 controls all bulbs of that type.
</description>
<default>1</default>
</parameter>
</config-description>
</thing-type>
<thing-type id="rgbwLed">
<supported-bridge-type-refs>
<bridge-type-ref id="bridgeV6"/>
</supported-bridge-type-refs>
<label>Color Bulb with Cold White (iBox)</label>
<description>Color bulb with white channel for the new Milight/Easybulb system.</description>
<category>Lightbulb</category>
<channels>
<channel id="ledlink" typeId="ledlink"/>
<channel id="ledunlink" typeId="ledunlink"/>
<channel id="lednightmode" typeId="lednightmode"/>
<channel id="ledwhitemode" typeId="ledwhitemode"/>
<channel id="ledbrightness" typeId="ledbrightness"/>
<channel id="ledcolor" typeId="ledcolor"/>
<channel id="animation_speed_relative" typeId="animation_speed_relative"/>
<channel id="animation_mode" typeId="animation_mode"/>
<channel id="animation_mode_relative" typeId="animation_mode_relative"/>
</channels>
<config-description>
<parameter name="zone" type="integer" required="true">
<label>Zone</label>
<description>A milight bulb can be assigned to zone 0-4. zone 0 controls all bulbs of that type.
</description>
<default>1</default>
</parameter>
</config-description>
</thing-type>
<thing-type id="rgbwwLed">
<supported-bridge-type-refs>
<bridge-type-ref id="bridgeV6"/>
</supported-bridge-type-refs>
<label>Color Bulb with Cold/warm White (iBox)</label>
<description>Color bulb with warm and cold white support for the new Milight/Easybulb system.</description>
<category>Lightbulb</category>
<channels>
<channel id="ledlink" typeId="ledlink"/>
<channel id="ledunlink" typeId="ledunlink"/>
<channel id="lednightmode" typeId="lednightmode"/>
<channel id="ledwhitemode" typeId="ledwhitemode"/>
<channel id="ledtemperature" typeId="ledtemperature"/>
<channel id="ledbrightness" typeId="ledbrightness"/>
<channel id="ledsaturation" typeId="ledsaturation"/>
<channel id="ledcolor" typeId="ledcolor"/>
<channel id="animation_speed_relative" typeId="animation_speed_relative"/>
<channel id="animation_mode" typeId="animation_mode"/>
<channel id="animation_mode_relative" typeId="animation_mode_relative"/>
</channels>
<config-description>
<parameter name="zone" type="integer" required="true">
<label>Zone</label>
<description>A milight bulb can be assigned to zone 0-4. zone 0 controls all bulbs of that type.
</description>
<default>1</default>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>