| valve | Number:Dimensionless | R | Valve position in % | `thermostat` |
| mode | String | R/W | Mode: "auto", "heat" and "off" | `thermostat` |
| offset | Number | R | Temperature offset for sensor | `thermostat` |
-| alert | Switch | R/W | Turn alerts on/off | `warningdevice`, `lightgroup` |
+| alert | String | W | Turn alerts on. Allowed commands are `none`, `select` (short blinking), `lselect` (long blinking) | `warningdevice`, `lightgroup`, `dimmablelight`, `colorlight`, `extendedcolorlight`, `colortemperaturelight` |
| all_on | Switch | R | All lights in group are on | `lightgroup` |
| any_on | Switch | R | Any light in group is on | `lightgroup` |
| scene | String | W | Recall a scene. Allowed commands are set dynamically | `lightgroup` |
}
break;
case CHANNEL_ALERT:
- if (command instanceof OnOffType) {
- newGroupAction.alert = command == OnOffType.ON ? "alert" : "none";
+ if (command instanceof StringType) {
+ newGroupAction.alert = command.toString();
} else {
return;
}
switch (channelUID.getId()) {
case CHANNEL_ALERT:
- if (command instanceof OnOffType) {
- newLightState.alert = command == OnOffType.ON ? "alert" : "none";
+ if (command instanceof StringType) {
+ newLightState.alert = command.toString();
} else {
return;
}
switch (channelId) {
case CHANNEL_ALERT:
- updateState(channelId, "alert".equals(newState.alert) ? OnOffType.ON : OnOffType.OFF);
+ String alert = newState.alert;
+ if (alert != null) {
+ updateState(channelId, new StringType(alert));
+ }
break;
case CHANNEL_SWITCH:
case CHANNEL_LOCK:
</thing-type>
<channel-type id="alert">
- <item-type>Switch</item-type>
+ <item-type>String</item-type>
<label>Alert</label>
<category>Alarm</category>
+ <command>
+ <options>
+ <option value="none">No Alarm</option>
+ <option value="select">Blinking (short time)</option>
+ <option value="lselect">Blinking (long time)</option>
+ </options>
+ </command>
</channel-type>
<channel-type id="all_on">
<category>Lightbulb</category>
<channels>
<channel typeId="brightness" id="brightness"/>
+ <channel id="alert" typeId="alert"></channel>
</channels>
<representation-property>uid</representation-property>
<channels>
<channel typeId="brightness" id="brightness"/>
<channel typeId="ct" id="color_temperature"/>
+ <channel id="alert" typeId="alert"></channel>
</channels>
<representation-property>uid</representation-property>
<category>Lightbulb</category>
<channels>
<channel typeId="color" id="color"/>
+ <channel id="alert" typeId="alert"></channel>
</channels>
<representation-property>uid</representation-property>
<channels>
<channel typeId="color" id="color"/>
<channel typeId="ct" id="color_temperature"/>
+ <channel id="alert" typeId="alert"></channel>
</channels>
<representation-property>uid</representation-property>
</channel-type>
<channel-type id="alert">
- <item-type>Switch</item-type>
+ <item-type>String</item-type>
<label>Alert</label>
<category>Alarm</category>
+ <command>
+ <options>
+ <option value="none">No Alarm</option>
+ <option value="select">Blinking (short time)</option>
+ <option value="lselect">Blinking (long time)</option>
+ </options>
+ </command>
</channel-type>
<channel-type id="lock">