mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
parent
e3ca3b01bf
commit
378a037df9
@ -18,7 +18,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.digitaldan</groupId>
|
||||
<artifactId>jomnilink</artifactId>
|
||||
<version>1.4.2</version>
|
||||
<version>1.4.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -104,7 +104,7 @@ public class OmnilinkBindingConstants {
|
||||
public static final String CHANNEL_ROOM_SCENE_D = "scene_d";
|
||||
public static final String CHANNEL_ROOM_STATE = "state";
|
||||
|
||||
public static final String CHANNEL_SYSTEMDATE = "system_date";
|
||||
public static final String CHANNEL_SYSTEM_DATE = "system_date";
|
||||
public static final String CHANNEL_EVENT_LOG = "last_log";
|
||||
|
||||
// buttons
|
||||
|
@ -178,7 +178,7 @@ public class OmnilinkBridgeHandler extends BaseBridgeHandler implements Notifica
|
||||
}
|
||||
|
||||
switch (channelUID.getId()) {
|
||||
case CHANNEL_SYSTEMDATE:
|
||||
case CHANNEL_SYSTEM_DATE:
|
||||
if (command instanceof DateTimeType) {
|
||||
ZonedDateTime zdt = ((DateTimeType) command).getZonedDateTime();
|
||||
boolean inDaylightSavings = zdt.getZone().getRules().isDaylightSavings(zdt.toInstant());
|
||||
@ -492,7 +492,7 @@ public class OmnilinkBridgeHandler extends BaseBridgeHandler implements Notifica
|
||||
.append(String.format("%02d", status.getHour())).append(":")
|
||||
.append(String.format("%02d", status.getMinute())).append(":")
|
||||
.append(String.format("%02d", status.getSecond())).toString();
|
||||
updateState(CHANNEL_SYSTEMDATE, new DateTimeType(dateString));
|
||||
updateState(CHANNEL_SYSTEM_DATE, new DateTimeType(dateString));
|
||||
}
|
||||
|
||||
public Message reqObjectProperties(int objectType, int objectNum, int direction, int filter1, int filter2,
|
||||
|
Loading…
Reference in New Issue
Block a user