Register connection in Kaleidescape System log (#15820)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>pull/15828/head
parent
b3da0511b1
commit
45760bff62
|
@ -183,6 +183,7 @@ public class KaleidescapeBindingConstants {
|
|||
public static final String MUSIC_RANDOM_ON = "MUSIC_RANDOM_ON";
|
||||
public static final String MUSIC_RANDOM_OFF = "MUSIC_RANDOM_OFF";
|
||||
|
||||
public static final String SEND_TO_SYSLOG = "SEND_TO_SYSLOG:INFORMATION:";
|
||||
public static final String SEND_EVENT_VOLUME_CAPABILITIES_15 = "SEND_EVENT:VOLUME_CAPABILITIES=15";
|
||||
public static final String SEND_EVENT_VOLUME_LEVEL_EQ = "SEND_EVENT:VOLUME_LEVEL=";
|
||||
public static final String SEND_EVENT_MUTE = "SEND_EVENT:MUTE_";
|
||||
|
|
|
@ -339,6 +339,11 @@ public class KaleidescapeHandler extends BaseThingHandler implements Kaleidescap
|
|||
if (openConnection()) {
|
||||
try {
|
||||
cache.clear();
|
||||
|
||||
// register the connection in the Kaleidescape System log
|
||||
connector.sendCommand(SEND_TO_SYSLOG + "openHAB Kaleidescape Binding version "
|
||||
+ org.openhab.core.OpenHAB.getVersion());
|
||||
|
||||
Set<String> initialCommands = new HashSet<>(Arrays.asList(GET_DEVICE_TYPE_NAME,
|
||||
GET_FRIENDLY_NAME, GET_DEVICE_INFO, GET_SYSTEM_VERSION, GET_DEVICE_POWER_STATE,
|
||||
GET_CINEMASCAPE_MASK, GET_CINEMASCAPE_MODE, GET_SCALE_MODE, GET_SCREEN_MASK,
|
||||
|
|
Loading…
Reference in New Issue