This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented configuration status handling for hue bridge. (#1819)
Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>
- Loading branch information
1 parent
6ab0d1c
commit 85a2c00
Showing
6 changed files
with
101 additions
and
3 deletions.
There are no files selected for viewing
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
1 change: 1 addition & 0 deletions
1
extensions/binding/org.eclipse.smarthome.binding.hue/ESH-INF/i18n/hue.properties
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 @@ | ||
config-status.error.missing-ip-address-configuration=No IP address for the hue bridge has been provided. |
1 change: 1 addition & 0 deletions
1
extensions/binding/org.eclipse.smarthome.binding.hue/ESH-INF/i18n/hue_de.properties
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 @@ | ||
config-status.error.missing-ip-address-configuration=Es wurde keine IP Adresse f\u00FCr die Hue Bridge angegeben. |
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
31 changes: 31 additions & 0 deletions
31
....hue/src/main/java/org/eclipse/smarthome/binding/hue/internal/HueConfigStatusMessage.java
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,31 @@ | ||
/** | ||
* Copyright (c) 2014-2016 by the respective copyright holders. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.eclipse.smarthome.binding.hue.internal; | ||
|
||
import org.eclipse.smarthome.config.core.status.ConfigStatusMessage; | ||
|
||
/** | ||
* The {@link HueConfigStatusMessage} defines | ||
* the keys to be used for {@link ConfigStatusMessage}s. | ||
* | ||
* @author Alexander Kostadinov - Initial contribution | ||
* | ||
*/ | ||
public enum HueConfigStatusMessage { | ||
IP_ADDRESS_MISSING("missing-ip-address-configuration"); | ||
|
||
private String messageKey; | ||
|
||
private HueConfigStatusMessage(String messageKey) { | ||
this.messageKey = messageKey; | ||
} | ||
|
||
public String getMessageKey() { | ||
return messageKey; | ||
} | ||
} |