Skip to content

Commit

Permalink
Register connection in Kaleidescape System log (openhab#15820)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Lobstein <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
  • Loading branch information
mlobstein authored and austvik committed Mar 27, 2024
1 parent 310d351 commit 01da358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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_";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ private void scheduleReconnectJob() {
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,
Expand Down

0 comments on commit 01da358

Please sign in to comment.