Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After some time, TV appears to be on even if it's in standby #702

Open
lordgiotto opened this issue Dec 5, 2024 · 1 comment
Open

After some time, TV appears to be on even if it's in standby #702

lordgiotto opened this issue Dec 5, 2024 · 1 comment

Comments

@lordgiotto
Copy link

Hi, first of all, thanks for this plugin: I tried many both in HB and in HA, and yours is the most reliable :)

I'm opening this issue because, within a few hours after I turn off my Samsung S90CA OLED TV, the accessory appears to be on in Homebridge, while the TV is still off. And it stays that way until I turn it on and off again.

Not sure if it's related, but by checking the /api/v2/ GET endpoint when that happens, I noticed that the PowerState value is set to an empty string (see attachment below).

image

Have you ever experienced this kind of bug? Do you know if there is a solution to this, or if maybe the upcoming version you're working on will handle this edge case?

Thanks :)

@JasonGoldenDDT
Copy link

@tavicu where should we capture context around this issue? I'm finding the plugin becoming more unstable with latest node (22.12.0) version. Hosting HB on 15.2 MacOS

Screenshot 2024-12-11 at 9 19 04 AM

What context would be helpful to share?

Here are recent debug logs from my end. As this user notices, the TV falls out of sync frequently resulting in the TV turning on/off inadvertently.

I'm noticing a high volume of errors in my debug log data:
Screenshot 2024-12-11 at 9 15 11 AM

�[37m[12/10/2024, 6:32:04 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"results":[{"id":"6d17240f-374e-49ba-9bf3-375baa3e4bb6","status":"FAILED"}]}�[39m
�[37m[12/10/2024, 6:32:04 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/Redacted/states �[39m
�[37m[12/10/2024, 6:32:05 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"main":{"mnfv":{"value":"T-PTMCAKUC-2000.2|ST_ENERGY"},"data":{"value":null},"di":{"value":"Redacted"},"supportedInputSources":{"value":"[]"},"mnsl":{"value":""},"dmv":{"value":"res.1.1.0,sh.1.1.0"},"notificationTemplateID":{"value":null},"vid":{"value":"VD-STV-2023"},"supportedPictureModes":{"value":"[\"EyeComfort\",\"Optimized\"]"},"firmwareVersion":{"value":"3.5.1"},"icv":{"value":"core.1.1.0"},"updatedTime":{"value":"1727025712"},"deviceConnectionState":{"value":null},"wifiUpdateSupport":{"value":null},"executableServiceList":{"value":null},"soundMode":{"value":"Standard"},"energySavingLevel":{"value":null},"playbackStatus":{"value":null},"mute":{"value":"muted"},"supportedAmbientApps":{"value":"[\"weather\"]"},"mnmo":{"value":"QN65QN90CAFXZA"},"volume":{"value":"28","unit":"%"},"tvChannel":{"value":""},"energyType":{"value":null},"energySavingSupport":{"value":null},"drMaxDuration":{"value":null},"mnmn":{"value":"Samsung Electronics"},"imeAdvSupported":{"value":"true"},"mnml":{"value":""},"drlcStatus":{"value":null},"tvChannelName":{"value":""},"status":{"value":"Idle"},"mndt":{"value":"2023-01-01"},"supportsPowerOnByOcf":{"value":"true"},"mnhw":{"value":""},"supportedPlaybackCommands":{"value":"[\"play\",\"pause\",\"stop\",\"fastForward\",\"rewind\"]"},"remotelessSupported":{"value":null},"supportedPictureModesMap":{"value":"[{\"id\":\"modeGen_589827\",\"name\":\"EyeComfort\"},{\"id\":\"modeIntelligentHDR\",\"name\":\"Optimized\"}]"},"energySavingInfo":{"value":null},"error":{"value":null},"energySavingOperation":{"value":null},"switch":{"value":"on"},"mnpv":{"value":"7.0"},"supportedSoundModes":{"value":"[\"Standard\"]"},"energySavingOperationSupport":{"value":null},"mediaOutputSupported":{"value":null},"st":{"value":"2024-06-26T20:30:52Z"},"powerConsumption":{"value":null},"pictureMode":{"value":"Optimized"},"supportedSoundModesMap":{"value":"[{\"id\":\"modeExternalStandard\",\"name\":\"Standard\"}]"},"disabledCapabilities":{"value":"[\"powerConsumptionReport\"]"},"supportedTrackControlCommands":{"value":null},"mobileCamSupported":{"value":"true"},"supportedEnergySavingLevels":{"value":null},"n":{"value":"Samsung"},"supportedInputSourcesMap":{"value":"[{\"id\":\"dtv\",\"name\":\"TV\"},{\"id\":\"HDMI3\",\"name\":\"Apple TV\"},{\"id\":\"HDMI4\",\"name\":\"XBOX SeriesX|S\"}]"},"mnos":{"value":"Tizen"},"pi":{"value":"Redacted"},"inputSource":{"value":"HDMI3"},"category":{"value":"tv"}}}�[39m

37m[12/10/2024, 6:49:32 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/Redacted/commands {"commands":[{"component":"main","capability":"refresh","command":"refresh"}]}�[39m
�[37m[12/10/2024, 6:49:33 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"results":[{"id":"ed5d28f5-2268-4cc6-91b5-25bd05214d54","status":"FAILED"}]}�[39m
�[37m[12/10/2024, 6:49:33 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/Redacted/states �[39m
�[37m[12/10/2024, 6:49:33 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"main":{"mnfv":{"value":"T-PTMCAKUC-2000.2|ST_ENERGY"},"data":{"value":null},"di":{"value":"Redacted"},"supportedInputSources":{"value":"[]"},"mnsl":{"value":""},"dmv":{"value":"res.1.1.0,sh.1.1.0"},"notificationTemplateID":{"value":null},"vid":{"value":"VD-STV-2023"},"supportedPictureModes":{"value":"[\"EyeComfort\",\"Optimized\"]"},"firmwareVersion":{"value":"3.5.1"},"icv":{"value":"core.1.1.0"},"updatedTime":{"value":"1727025712"},"deviceConnectionState":{"value":null},"wifiUpdateSupport":{"value":null},"executableServiceList":{"value":null},"soundMode":{"value":"Standard"},"energySavingLevel":{"value":null},"playbackStatus":{"value":null},"mute":{"value":"muted"},"supportedAmbientApps":{"value":"[\"weather\"]"},"mnmo":{"value":"QN65QN90CAFXZA"},"volume":{"value":"28","unit":"%"},"tvChannel":{"value":""},"energyType":{"value":null},"energySavingSupport":{"value":null},"drMaxDuration":{"value":null},"mnmn":{"value":"Samsung Electronics"},"imeAdvSupported":{"value":"true"},"mnml":{"value":""},"drlcStatus":{"value":null},"tvChannelName":{"value":""},"status":{"value":"Idle"},"mndt":{"value":"2023-01-01"},"supportsPowerOnByOcf":{"value":"true"},"mnhw":{"value":""},"supportedPlaybackCommands":{"value":"[\"play\",\"pause\",\"stop\",\"fastForward\",\"rewind\"]"},"remotelessSupported":{"value":null},"supportedPictureModesMap":{"value":"[{\"id\":\"modeGen_589827\",\"name\":\"EyeComfort\"},{\"id\":\"modeIntelligentHDR\",\"name\":\"Optimized\"}]"},"energySavingInfo":{"value":null},"error":{"value":null},"energySavingOperation":{"value":null},"switch":{"value":"on"},"mnpv":{"value":"7.0"},"supportedSoundModes":{"value":"[\"Standard\"]"},"energySavingOperationSupport":{"value":null},"mediaOutputSupported":{"value":null},"st":{"value":"2024-06-26T20:30:52Z"},"powerConsumption":{"value":null},"pictureMode":{"value":"Optimized"},"supportedSoundModesMap":{"value":"[{\"id\":\"modeExternalStandard\",\"name\":\"Standard\"}]"},"disabledCapabilities":{"value":"[\"powerConsumptionReport\"]"},"supportedTrackControlCommands":{"value":null},"mobileCamSupported":{"value":"true"},"supportedEnergySavingLevels":{"value":null},"n":{"value":"Samsung"},"supportedInputSourcesMap":{"value":"[{\"id\":\"dtv\",\"name\":\"TV\"},{\"id\":\"HDMI3\",\"name\":\"Apple TV\"},{\"id\":\"HDMI4\",\"name\":\"XBOX SeriesX|S\"}]"},"mnos":{"value":"Tizen"},"pi":{"value":"Redacted"},"inputSource":{"value":"HDMI3"},"category":{"value":"tv"}}}�[39m


[37m[12/10/2024, 7:42:48 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/Redacted/commands {"commands":[{"component":"main","capability":"refresh","command":"refresh"}]}�[39m
�[37m[12/10/2024, 7:42:49 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"results":[{"id":"e6597ece-347e-490d-9c68-8d61f3056358","status":"FAILED"}]}�[39m
�[37m[12/10/2024, 7:42:49 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/Redacted/states �[39m
�[37m[12/10/2024, 7:42:49 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"main":{"mnfv":{"value":"T-PTMCAKUC-2000.2|ST_ENERGY"},"data":{"value":null},"di":{"value":"Redacted"},"supportedInputSources":{"value":"[]"},"mnsl":{"value":""},"dmv":{"value":"res.1.1.0,sh.1.1.0"},"notificationTemplateID":{"value":null},"vid":{"value":"VD-STV-2023"},"supportedPictureModes":{"value":"[\"EyeComfort\",\"Optimized\"]"},"firmwareVersion":{"value":"3.5.1"},"icv":{"value":"core.1.1.0"},"updatedTime":{"value":"1727025712"},"deviceConnectionState":{"value":null},"wifiUpdateSupport":{"value":null},"executableServiceList":{"value":null},"soundMode":{"value":"Standard"},"energySavingLevel":{"value":null},"playbackStatus":{"value":null},"mute":{"value":"muted"},"supportedAmbientApps":{"value":"[\"weather\"]"},"mnmo":{"value":"QN65QN90CAFXZA"},"volume":{"value":"28","unit":"%"},"tvChannel":{"value":""},"energyType":{"value":null},"energySavingSupport":{"value":null},"drMaxDuration":{"value":null},"mnmn":{"value":"Samsung Electronics"},"imeAdvSupported":{"value":"true"},"mnml":{"value":""},"drlcStatus":{"value":null},"tvChannelName":{"value":""},"status":{"value":"Idle"},"mndt":{"value":"2023-01-01"},"supportsPowerOnByOcf":{"value":"true"},"mnhw":{"value":""},"supportedPlaybackCommands":{"value":"[\"play\",\"pause\",\"stop\",\"fastForward\",\"rewind\"]"},"remotelessSupported":{"value":null},"supportedPictureModesMap":{"value":"[{\"id\":\"modeGen_589827\",\"name\":\"EyeComfort\"},{\"id\":\"modeIntelligentHDR\",\"name\":\"Optimized\"}]"},"energySavingInfo":{"value":null},"error":{"value":null},"energySavingOperation":{"value":null},"switch":{"value":"on"},"mnpv":{"value":"7.0"},"supportedSoundModes":{"value":"[\"Standard\"]"},"energySavingOperationSupport":{"value":null},"mediaOutputSupported":{"value":null},"st":{"value":"2024-06-26T20:30:52Z"},"powerConsumption":{"value":null},"pictureMode":{"value":"Optimized"},"supportedSoundModesMap":{"value":"[{\"id\":\"modeExternalStandard\",\"name\":\"Standard\"}]"},"disabledCapabilities":{"value":"[\"powerConsumptionReport\"]"},"supportedTrackControlCommands":{"value":null},"mobileCamSupported":{"value":"true"},"supportedEnergySavingLevels":{"value":null},"n":{"value":"Samsung"},"supportedInputSourcesMap":{"value":"[{\"id\":\"dtv\",\"name\":\"TV\"},{\"id\":\"HDMI3\",\"name\":\"Apple TV\"},{\"id\":\"HDMI4\",\"name\":\"XBOX SeriesX|S\"}]"},"mnos":{"value":"Tizen"},"pi":{"value":"Redacted"},"inputSource":{"value":"HDMI3"},"category":{"value":"tv"}}}�[39m
�[37m[12/10/2024, 7:42:52 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/Redacted/commands {"commands":[{"component":"main","capability":"refresh","command":"refresh"}]}�[39m
[37m[12/10/2024, 7:42:52 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"results":[{"id":"a861cb98-97e6-473b-8ee1-52dbf6320058","status":"ACCEPTED"}]}�[39m
�[37m[12/10/2024, 7:42:52 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/Redacted/states �[39m
�[37m[12/10/2024, 7:42:53 PM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"main":{"mnfv":{"value":"T-PTMCAKUC-2000.2|ST_ENERGY"},"data":{"value":null},"di":{"value":"Redacted"},"supportedInputSources":{"value":"[]"},"mnsl":{"value":""},"dmv":{"value":"res.1.1.0,sh.1.1.0"},"notificationTemplateID":{"value":null},"vid":{"value":"VD-STV-2023"},"supportedPictureModes":{"value":"[\"EyeComfort\",\"Optimized\"]"},"firmwareVersion":{"value":"3.5.1"},"icv":{"value":"core.1.1.0"},"updatedTime":{"value":"1727025712"},"deviceConnectionState":{"value":null},"wifiUpdateSupport":{"value":null},"executableServiceList":{"value":null},"soundMode":{"value":"Standard"},"energySavingLevel":{"value":null},"playbackStatus":{"value":null},"mute":{"value":"muted"},"supportedAmbientApps":{"value":"[\"weather\"]"},"mnmo":{"value":"QN65QN90CAFXZA"},"volume":{"value":"28","unit":"%"},"tvChannel":{"value":""},"energyType":{"value":null},"energySavingSupport":{"value":null},"drMaxDuration":{"value":null},"mnmn":{"value":"Samsung Electronics"},"imeAdvSupported":{"value":"true"},"mnml":{"value":""},"drlcStatus":{"value":null},"tvChannelName":{"value":""},"status":{"value":"Idle"},"mndt":{"value":"2023-01-01"},"supportsPowerOnByOcf":{"value":"true"},"mnhw":{"value":""},"supportedPlaybackCommands":{"value":"[\"play\",\"pause\",\"stop\",\"fastForward\",\"rewind\"]"},"remotelessSupported":{"value":null},"supportedPictureModesMap":{"value":"[{\"id\":\"modeGen_589827\",\"name\":\"EyeComfort\"},{\"id\":\"modeIntelligentHDR\",\"name\":\"Optimized\"}]"},"energySavingInfo":{"value":null},"error":{"value":null},"energySavingOperation":{"value":null},"switch":{"value":"on"},"mnpv":{"value":"7.0"},"supportedSoundModes":{"value":"[\"Standard\"]"},"energySavingOperationSupport":{"value":null},"mediaOutputSupported":{"value":null},"st":{"value":"2024-06-26T20:30:52Z"},"powerConsumption":{"value":null},"pictureMode":{"value":"Optimized"},"supportedSoundModesMap":{"value":"[{\"id\":\"modeExternalStandard\",\"name\":\"Standard\"}]"},"disabledCapabilities":{"value":"[\"powerConsumptionReport\"]"},"supportedTrackControlCommands":{"value":null},"mobileCamSupported":{"value":"true"},"supportedEnergySavingLevels":{"value":null},"n":{"value":"Samsung"},"supportedInputSourcesMap":{"value":"[{\"id\":\"dtv\",\"name\":\"TV\"},{\"id\":\"HDMI3\",\"name\":\"Apple TV\"},{\"id\":\"HDMI4\",\"name\":\"XBOX SeriesX|S\"}]"},"mnos":{"value":"Tizen"},"pi":{"value":"Redacted"},"inputSource":{"value":"HDMI3"},"category":{"value":"tv"}}}�[39m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants