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 · 11 comments
Open

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

lordgiotto opened this issue Dec 5, 2024 · 11 comments

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

@JasonGoldenDDT
Copy link

Wanted to pass along some log data and screenshots to record these events in hope we can resolve this glitch.

Right now I have the Samsung TV off. The Home App shows it as on.
Screenshot 2024-12-18 at 9 32 53 AM

Controller for Home shows it as off:

Screenshot 2024-12-18 at 9 33 11 AM

But it does show it's "Sleep Discovery Mode" is "On"
Screenshot 2024-12-18 at 9 33 34 AM

This is what my debugging log shows during this time:

�[37m[12/18/2024, 8:53:07 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"results":[{"id":"redacted","status":"COMPLETED"}]}�[39m
�[37m[12/18/2024, 8:53:07 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices//states �[39m
�[37m[12/18/2024, 8:53:07 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"main":{"mnfv":{"value":"T-PTMCAKUC-0080-2011.0|ST_ENERGY"},"data":{"value":null},"di":{"value":""},"supportedInputSources":{"value":"[]"},"mnsl":{"value":""},"errorCode":{"value":null},"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":"1734539415"},"deviceConnectionState":{"value":null},"wifiUpdateSupport":{"value":null},"executableServiceList":{"value":null},"soundMode":{"value":"Standard"},"energySavingLevel":{"value":"1"},"playbackStatus":{"value":null},"mute":{"value":"unmuted"},"supportedModes":{"value":null},"supportedAmbientApps":{"value":"[\"weather\"]"},"mnmo":{"value":"QN65QN90CAFXZA"},"volume":{"value":"0","unit":"%"},"tvChannel":{"value":""},"energyType":{"value":"2.0"},"energySavingSupport":{"value":"true"},"drMaxDuration":{"value":"99999999","unit":"min"},"mnmn":{"value":"Samsung Electronics"},"imeAdvSupported":{"value":"true"},"mnml":{"value":""},"drlcStatus":{"value":"{\"drlcType\":1,\"drlcLevel\":0,\"start\":\"2024-12-18T16:30:05Z\",\"duration\":99999999,\"override\":false}"},"tvChannelName":{"value":""},"supportedModeMap":{"value":null},"selectedMode":{"value":null},"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":"false"},"switch":{"value":"on"},"mnpv":{"value":"8.0"},"requestId":{"value":null},"streamControl":{"value":null},"supportedSoundModes":{"value":"[\"Standard\"]"},"energySavingOperationSupport":{"value":"true"},"mediaOutputSupported":{"value":null},"st":{"value":"2024-12-09T04:19:35Z"},"powerConsumption":{"value":"{\"energy\":0,\"deltaEnergy\":0,\"power\":0,\"powerEnergy\":0,\"persistedEnergy\":0,\"energySaved\":0,\"persistedSavedEnergy\":0,\"start\":\"1970-01-01T00:00:00Z\",\"end\":\"2024-12-18T16:30:17Z\"}"},"pictureMode":{"value":"Optimized"},"supportedSoundModesMap":{"value":"[{\"id\":\"modeExternalStandard\",\"name\":\"Standard\"}]"},"disabledCapabilities":{"value":"[]"},"selectedAppId":{"value":null},"supportedTrackControlCommands":{"value":null},"mobileCamSupported":{"value":"true"},"supportedEnergySavingLevels":{"value":"[1]"},"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/18/2024, 8:53:19 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {�[39m
�[90m  method: 'ms.remote.control',�[39m
�[90m  params: {�[39m
�[90m    Cmd: 'Click',�[39m
�[90m    DataOfCmd: 'KEY_POWER',�[39m
�[90m    Option: false,�[39m
�[90m    TypeOfRemote: 'SendRemoteKey'�[39m
�[90m  }�[39m
�[90m}�[39m
�[37m[12/18/2024, 8:53:21 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {�[39m
�[90m  data: { clients: [ [Object] ], id: 'redacted' },�[39m
�[90m  event: 'ms.channel.connect'�[39m
�[90m}�[39m
�[37m[12/18/2024, 8:53:21 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {�[39m
�[37m[12/18/2024, 9:25:20 AM] �[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/18/2024, 9:25:22 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"results":[{"id":"redacted","status":"COMPLETED"}]}�[39m
�[37m[12/18/2024, 9:25:22 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/redacted/states �[39m
�[37m[12/18/2024, 9:25:22 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"main":{"mnfv":{"value":"T-PTMCAKUC-0080-2011.0|ST_ENERGY"},"data":{"value":null},"di":{"value":"redacted"},"supportedInputSources":{"value":"[]"},"mnsl":{"value":""},"errorCode":{"value":null},"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":"1734548023"},"deviceConnectionState":{"value":null},"wifiUpdateSupport":{"value":null},"executableServiceList":{"value":null},"soundMode":{"value":"Standard"},"energySavingLevel":{"value":"1"},"playbackStatus":{"value":null},"mute":{"value":"unmuted"},"supportedModes":{"value":null},"supportedAmbientApps":{"value":"[\"weather\"]"},"mnmo":{"value":"QN65QN90CAFXZA"},"volume":{"value":"0","unit":"%"},"tvChannel":{"value":""},"energyType":{"value":"2.0"},"energySavingSupport":{"value":"true"},"drMaxDuration":{"value":"99999999","unit":"min"},"mnmn":{"value":"Samsung Electronics"},"imeAdvSupported":{"value":"true"},"mnml":{"value":""},"drlcStatus":{"value":"{\"drlcType\":1,\"drlcLevel\":0,\"start\":\"2024-12-18T18:53:33Z\",\"duration\":99999999,\"override\":false}"},"tvChannelName":{"value":""},"supportedModeMap":{"value":null},"selectedMode":{"value":null},"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_589826\",\"name\":\"EyeComfort\"},{\"id\":\"modeIntelligent\",\"name\":\"Optimized\"}]"},"energySavingInfo":{"value":null},"error":{"value":null},"energySavingOperation":{"value":"false"},"switch":{"value":"off"},"mnpv":{"value":"8.0"},"requestId":{"value":null},"streamControl":{"value":null},"supportedSoundModes":{"value":"[\"Standard\"]"},"energySavingOperationSupport":{"value":"true"},"mediaOutputSupported":{"value":null},"st":{"value":"2024-12-09T04:19:35Z"},"powerConsumption":{"value":"{\"energy\":0,\"deltaEnergy\":0,\"power\":0,\"powerEnergy\":0,\"persistedEnergy\":0,\"energySaved\":0,\"persistedSavedEnergy\":0,\"start\":\"1970-01-01T00:00:00Z\",\"end\":\"2024-12-18T18:53:45Z\"}"},"pictureMode":{"value":"Optimized"},"supportedSoundModesMap":{"value":"[{\"id\":\"modeExternalStandard\",\"name\":\"Standard\"}]"},"disabledCapabilities":{"value":"[]"},"selectedAppId":{"value":null},"supportedTrackControlCommands":{"value":null},"mobileCamSupported":{"value":"true"},"supportedEnergySavingLevels":{"value":"[1]"},"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/18/2024, 9:29:48 AM] �[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/18/2024, 9:29:50 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"results":[{"id":"redacted","status":"COMPLETED"}]}�[39m
�[37m[12/18/2024, 9:29:50 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] https://api.smartthings.com/v1/devices/redacted/states �[39m
�[37m[12/18/2024, 9:29:50 AM] �[39m�[36m[Samsung TV]�[39m �[90m[DEBUG] {"main":{"mnfv":{"value":"T-PTMCAKUC-0080-2011.0|ST_ENERGY"},"data":{"value":null},"di":{"value":"redacted"},"supportedInputSources":{"value":"[]"},"mnsl":{"value":""},"errorCode":{"value":null},"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":"1734548023"},"deviceConnectionState":{"value":null},"wifiUpdateSupport":{"value":null},"executableServiceList":{"value":null},"soundMode":{"value":"Standard"},"energySavingLevel":{"value":"1"},"playbackStatus":{"value":null},"mute":{"value":"unmuted"},"supportedModes":{"value":null},"supportedAmbientApps":{"value":"[\"weather\"]"},"mnmo":{"value":"QN65QN90CAFXZA"},"volume":{"value":"0","unit":"%"},"tvChannel":{"value":""},"energyType":{"value":"2.0"},"energySavingSupport":{"value":"true"},"drMaxDuration":{"value":"99999999","unit":"min"},"mnmn":{"value":"Samsung Electronics"},"imeAdvSupported":{"value":"true"},"mnml":{"value":""},"drlcStatus":{"value":"{\"drlcType\":1,\"drlcLevel\":0,\"start\":\"2024-12-18T18:53:33Z\",\"duration\":99999999,\"override\":false}"},"tvChannelName":{"value":""},"supportedModeMap":{"value":null},"selectedMode":{"value":null},"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_589826\",\"name\":\"EyeComfort\"},{\"id\":\"modeIntelligent\",\"name\":\"Optimized\"}]"},"energySavingInfo":{"value":null},"error":{"value":null},"energySavingOperation":{"value":"false"},"switch":{"value":"off"},"mnpv":{"value":"8.0"},"requestId":{"value":null},"streamControl":{"value":null},"supportedSoundModes":{"value":"[\"Standard\"]"},"energySavingOperationSupport":{"value":"true"},"mediaOutputSupported":{"value":null},"st":{"value":"2024-12-09T04:19:35Z"},"powerConsumption":{"value":"{\"energy\":0,\"deltaEnergy\":0,\"power\":0,\"powerEnergy\":0,\"persistedEnergy\":0,\"energySaved\":0,\"persistedSavedEnergy\":0,\"start\":\"1970-01-01T00:00:00Z\",\"end\":\"2024-12-18T18:53:45Z\"}"},"pictureMode":{"value":"Optimized"},"supportedSoundModesMap":{"value":"[{\"id\":\"modeExternalStandard\",\"name\":\"Standard\"}]"},"disabledCapabilities":{"value":"[]"},"selectedAppId":{"value":null},"supportedTrackControlCommands":{"value":null},"mobileCamSupported":{"value":"true"},"supportedEnergySavingLevels":{"value":"[1]"},"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":""},"inputSource":{"value":"HDMI3"},"category":{"value":"tv"}}}�[39m

I'm enabling NodeJS:DataStream*,HAP-NodeJS:* to grab more detail over the next few days. LMK if I can provide any additional context.

Currently on Node 22.12.0

@tavicu
Copy link
Owner

tavicu commented Dec 18, 2024

@lordgiotto Yeah, if it comes empty then the current version will treat it like it's ON. However, it is strange that the answer is empty.

The new version will not look at the PowerState at all :). It should be much more reliable than the current "hacks".

@JasonGoldenDDT You said there is a high volume of errors but I don't see any, only debugs that don't help with this problem.

Right now the plugin checks the state by pinging the TV and if it responds, then it sends a http request to check the power state. In case the request fails, then the plugin will mark the TV as OFF.

There were some reports previously from people that had problems on their network and the request timed out, resulting in a fail response. The timeout is set to 500ms. If your TV takes longer to respond, then there's the problem.

But it's strange than in Home app appears ON while Controller appears OFF. Again, something is telling me there is a problem on your network somewhere because in Homebridge the status of tv is OFF but it's not updating in the home app.

Try to restart your devices, your apple tv (that is set as home hub) if you have one, hard restart your TV (keep the power button pressed on your remote until you see the Samsung logo).

Other than that ... don't know how to help you right now.

As I mentioned to @lordgiotto, the newer version of the plugin will have a new method that checks the state of TV, A more reliable method and without hacks trying to determine the correct state.

You can check how fast your TV responds with a curl command, more here: #535

@JasonGoldenDDT
Copy link

@tavicu Thank you for taking a moment to respond. I'm trying to collect as much data round the experience as I can, given I don't have background creating Homebridge Plugins.

I'm not sure, but at suspect there is an interaction with Node.js and this plugin that affects it's reliability. I noticed after changing my node install form 18 to 22 the plugin became less reliable.

After enabling HAP Node debugging messages, it looks like on refresh the device's status is getting updated erroneously. Telling Home the TV is "active" when it's off. IDK of this got cross wired with "Auto Discovery Enabled" or something else entirely.

These log files are difficult to mask for sharing purposes. Let me know what context I can provide to be helpful here.

What would be helpful from the log? I have adjusted my debugging to include HAP messages now, and the log can collect multiple days of activity.

From ControllerForHomeKit Log
Screenshot 2024-12-18 at 10 31 12 AM

Homebridge Debug w/-NodeJS:DataStream,HAP-NodeJS:**

2024-12-18T20:21:56.669Z HAP-NodeJS:EventedHTTPServer:Connection [Homebridge Server] Sending HAP event notifications [ { aid: 1, iid: 10, value: 1 } ]
2024-12-18T20:21:56.670Z HAP-NodeJS:EventedHTTPServer:Connection [unknown address%en0] Sending HAP event notifications [ { aid: 1, iid: 10, value: 1 } ]

I can provide more log data, just time consuming to mask to share here.

From "ControllerforHomeKit" Device Log - can export to JSON file

Screenshot 2024-12-18 at 10 47 21 AM

Screenshot 2024-12-18 at 10 19 54 AM
Screenshot 2024-12-18 at 9 57 28 AM

@JasonGoldenDDT
Copy link

Continuing to investigate the cause of this issue with my Samsung NQ90C TV falling out of sync with the Home App.

As mentioned I've enabled debugging with HAP-Node and I'm seeing a pattern emerge since going from Node 18 to Node 22 and this plugin.

A very high sampling rate of the device's data. I continue to see the TV appear as ON in the Home App hours after turning it off. It seems like there is a queue of outdated messages getting picked up by the Home App.

I see this with an LG TV as well. Let know what additional context I can provide, or messages I should look out for.

2024-12-18T19:43:20.093Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "0"
2024-12-18T19:43:23.165Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T19:43:27.738Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T19:43:30.823Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T19:48:43.441Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T20:03:09.054Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T20:38:43.385Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "0"
2024-12-18T20:38:46.638Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T20:41:16.237Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T21:02:43.888Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T21:04:08.134Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T21:09:08.499Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T21:55:39.055Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T23:25:24.262Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T23:27:54.838Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-18T23:49:17.758Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T01:22:59.846Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "0"
2024-12-19T01:30:41.417Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T02:21:52.159Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T03:59:36.052Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T04:32:26.017Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T05:14:28.472Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T05:15:04.568Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T05:20:03.603Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T05:53:03.015Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T06:28:40.760Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T07:00:09.628Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T07:02:07.808Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "0"
2024-12-19T13:48:42.975Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "0"
2024-12-19T13:56:38.734Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T15:24:36.097Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T16:39:06.081Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T17:13:31.219Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T17:26:33.466Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T19:14:28.599Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T19:14:57.537Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T19:40:17.664Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T19:45:02.912Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:00:25.371Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:01:41.284Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:08:28.815Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:11:34.772Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:11:47.969Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:13:12.782Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:17:12.129Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:20:18.310Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:20:23.846Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:20:49.838Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:20:55.409Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:20:58.742Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:21:04.366Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:21:10.923Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:22:30.635Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T20:22:35.912Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-19T21:10:34.036Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T00:01:50.878Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T00:08:02.768Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T00:18:34.310Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T00:21:51.567Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T01:06:32.295Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T01:29:27.106Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T01:39:48.198Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T03:00:42.963Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T03:01:10.980Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T05:06:59.995Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T05:36:57.794Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T08:11:59.053Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T09:09:21.570Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T10:46:00.338Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T12:17:01.051Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T12:18:01.121Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T15:38:17.818Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T15:41:53.721Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T15:56:37.670Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:14:48.898Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:15:51.878Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:15:55.116Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:19:42.389Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:25:49.748Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:29:37.094Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:59:50.175Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T16:59:53.403Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T17:01:07.017Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T17:24:13.899Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T17:54:18.076Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"
2024-12-20T18:37:38.168Z HAP-NodeJS:Accessory [Samsung TV C46F] Got Characteristic "Active Identifier" value: "1"

@alnavasa
Copy link

Same here,
Same tv is in Home assistant, where status is more stable.
Home assistant plug-in I am using: https://github.com/ollo69/ha-samsungtv-smart
Also smart things integration from Home assistant is reporting it right: https://www.home-assistant.io/integrations/smartthings

From what I read in other threads developers use Smart Things API to determine channels and TV status (On Off)
Other commands and inputs locally.
TV model is: TQ65QN85CATXXC

If I can help with any other information let me know, I would like to add tv to routines and automation, running away from home assistant and migrating everything to apple Home

@tavicu
Copy link
Owner

tavicu commented Dec 22, 2024

running away from home assistant and migrating everything to apple Home

Why would you want to do that? :) Home Assistant is miles ahead Homebridge

Also, using Smart Things API it's not the scope of the project, which is keeping basic functionality locally without requiring internet access.

@JasonGoldenDDT

Regarding the node version and everything you are reporting, there is not much I can do even if you find something (and until now I see no error in your logs or something, just basic things which reports changes or state). This is just a plugin that mostly uses Homebridge and HAP-NodeJS APK. So everything is provided by them, like setting the state, input, and so on.

The plugin logic is to determine the state of TV for example, and then report it to Homebridge. What homebridge is doing with this information ... it's their kitchen and nothing I can do.

@JasonGoldenDDT
Copy link

I just dropped a spreadsheet (numbers) on this thread about a similar issue I'm having with LG TV and AC.

nVuln/homebridge-lg-thinq#325 (comment)

The file includes all devices and their HAP-Node Activities and Values.
Screenshot 2024-12-22 at 10 55 45 AM

Gives some insight as to the volume of messages over a span of the last few days.

@tavicu the logs are massive, I'm working on capturing and masking data around my use case with these devices.

But I am seeking some odd behavior with HAP, take a look at the messages that are getting sent, Firmware is repeated significantly more than any other message.

I'll keep working on example debug data, but if you see a message you'd like me to drill down on I can.

I have automation that fires daily at specific times related to these devices, so it just takes time to capture and filter through the data. I suspect it's an interaction between Node and the plugin as I did notice changes in performance between 18 and 22 in my recent changes to troubleshoot version error messages in the log.

@alnavasa
Copy link

Why would you want to do that? :) Home Assistant is miles ahead Homebridge

Also, using Smart Things API it's not the scope of the project, which is keeping basic functionality locally without requiring internet access.

Having Home assistant for 3 years time now, need to re do the entire thing, maintaining it is killing a lot of time, doing so with 2 homes, (my parents and mine) I am at the point of completely rebuilding HA server, but for my parents at least I am considering migrating them to Apple home, Just trying. It all started becase I wanted to have the garage door remote on apple car play... But I am already starting to find limitations on it.

Anyway, I totally get the purpose of the project and staying away from cloud, makes sense!

@tavicu
Copy link
Owner

tavicu commented Dec 23, 2024

It all started becase I wanted to have the garage door remote on apple car play...

Home App is not reliable in my experience. I have migrated to Home Assistant 4 years ago and never looked back. In 4 years I didn't had to fix anything.

From Home Assistant you can expose your entities to Home app and have the garage door on car play. That's what I did, especially that my wife still prefers Home App (in her defence, even after 4 years I didn't had time to clean up the Home Assistant main dashboard :P).

@JasonGoldenDDT I understand and I appreciate it. But as I said in the previous message, you should probably post in Homebridge repo, not much we can do from the plugin.

@JasonGoldenDDT
Copy link

@tavicu I'm sharing my experience in the HAP-Node GitHub, as with these types of things no one really has the bandwidth to unpack what is actually happening for the user. Im just taking shots in the dark here hoping something draws attention to the technical issue causing this to happen.

I'll come back around to this after the holidays.

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

4 participants