Vizio TV Binding

I have not seen this behavior with my vizio tv but admittedly I do not use this particular tv very much. I agree that the offline status reporting is too aggressive and have submitted a PR to improve it. Now the polling must fail three times in a row before the status changes to offline. If you want to try out these changes, you can use this compiled jar: https://github.com/mlobstein/openhab-addons/releases/download/v4.2.1/org.openhab.binding.vizio-4.2.0-SNAPSHOT.jar

1 Like

Thank you for the quick fix. I just installed the jar and will let you know how it goes.

Looks good! Thanks!

2024-01-17 19:08:51.606 [TRACE] [rnal.communication.VizioCommunicator] - GET url: https://10.0.5.45:7345/state/device/power_mode, response: {"STATUS":{"RESULT":"SUCCESS","DETAIL":"Success"},"URI":"/state/device/power_mode","ITEMS":[{"NAME":"Power Mode","CNAME":"power_mode","TYPE":"T_VALUE_V1","VALUE":0}]}
2024-01-17 19:08:55.659 [TRACE] [rnal.communication.VizioCommunicator] - GET url: https://10.0.5.45:7345/menu_native/dynamic/tv_settings/devices/name_input, response: {"STATUS":{"RESULT":"SUCCESS","DETAIL":"Success"},"URI":"/menu_native/dynamic/tv_settings/devices/name_input","PARAMETERS":{"HASHONLY":"FALSE","FLAT":"TRUE","HELPTEXT":"FALSE"},"ITEMS":[{"CNAME":"cast","TYPE":"T_DEVICE_V1","NAME":"CAST","VALUE":{"METADATA":"","NAME":"SMARTCAST"},"READONLY":"TRUE","ENABLED":"FALSE","HASHVAL":1541296275},{"CNAME":"hdmi1","TYPE":"T_DEVICE_V1","NAME":"HDMI-1","VALUE":{"METADATA":"","NAME":"HDMI-1"},"ENABLED":"FALSE","HASHVAL":1118785733},{"CNAME":"hdmi2","TYPE":"T_DEVICE_V1","NAME":"HDMI-2","VALUE":{"METADATA":"","NAME":"HDMI-2"},"ENABLED":"FALSE","HASHVAL":478241065},{"CNAME":"hdmi3","TYPE":"T_DEVICE_V1","NAME":"HDMI-3","VALUE":{"METADATA":"","NAME":"HDMI-3"},"ENABLED":"FALSE","HASHVAL":3561985501},{"CNAME":"comp","TYPE":"T_DEVICE_V1","NAME":"COMP","VALUE":{"METADATA":"","NAME":"COMP"},"ENABLED":"FALSE","HASHVAL":3372802964},{"CNAME":"tuner","TYPE":"T_DEVICE_V1","NAME":"TV","VALUE":{"METADATA":"","NAME":"TV"},"READONLY":"TRUE","ENABLED":"FALSE","HASHVAL":3845225872}],"NAME":"Name Input","TYPE":"T_MENU_V1","CNAME":"name_input","GROUP":"G_DEVICES","HASHLIST":[637993237,4114950605,2289440932]}
2024-01-17 19:09:01.611 [DEBUG] [.vizio.internal.handler.VizioHandler] - Unable to retrieve Vizio TV power mode info. Exception: Error executing vizio GET command, URL: https://10.0.5.45:7345/state/device/power_mode java.io.EOFException: HttpConnectionOverHTTP@1bd2ebd5::DecryptedEndPoint@2aa26251{l=/10.0.5.30:34998,r=/10.0.5.45:7345,OPEN,fill=-,flush=-,to=5951/0}
org.openhab.binding.vizio.internal.VizioException: Error executing vizio GET command, URL: https://10.0.5.45:7345/state/device/power_mode java.io.EOFException: HttpConnectionOverHTTP@1bd2ebd5::DecryptedEndPoint@2aa26251{l=/10.0.5.30:34998,r=/10.0.5.45:7345,OPEN,fill=-,flush=-,to=5951/0}
	at org.openhab.binding.vizio.internal.communication.VizioCommunicator.getCommand(VizioCommunicator.java:244) ~[?:?]
	at org.openhab.binding.vizio.internal.communication.VizioCommunicator.getPowerMode(VizioCommunicator.java:97) ~[?:?]
	at org.openhab.binding.vizio.internal.handler.VizioHandler.refreshVizioState(VizioHandler.java:206) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]
2024-01-17 19:09:11.706 [TRACE] [rnal.communication.VizioCommunicator] - GET url: https://10.0.5.45:7345/state/device/power_mode, response: {"STATUS":{"RESULT":"SUCCESS","DETAIL":"Success"},"URI":"/state/device/power_mode","ITEMS":[{"NAME":"Power Mode","CNAME":"power_mode","TYPE":"T_VALUE_V1","VALUE":0}]}
1 Like