mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-31 13:34:22 +02:00
Resolves issue where power state is set incorrectly (#18263)
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
This commit is contained in:
+5
-4
@@ -531,10 +531,11 @@ public class PhilipsTVConnectionManager implements DiscoveryListener {
|
||||
public synchronized void postUpdateThing(ThingStatus status, ThingStatusDetail statusDetail, String msg) {
|
||||
logger.trace("postUpdateThing {} {} {}", status, statusDetail, msg);
|
||||
if (status == ThingStatus.ONLINE) {
|
||||
if (msg.equalsIgnoreCase(STANDBY_MSG)) {
|
||||
handler.updateChannelState(CHANNEL_POWER, OnOffType.OFF);
|
||||
} else {
|
||||
handler.updateChannelState(CHANNEL_POWER, OnOffType.ON);
|
||||
PhilipsTVService powerService = channelServices.get(CHANNEL_POWER);
|
||||
if (powerService != null) {
|
||||
powerService.handleCommand(CHANNEL_POWER, RefreshType.REFRESH);
|
||||
}
|
||||
if (!msg.equalsIgnoreCase(STANDBY_MSG)) {
|
||||
startDeviceHealthJob(5, TimeUnit.SECONDS);
|
||||
pendingPowerOn = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user