@morph166955 I have done another test with WOL from network binding and without sending power on command to TV. Just to watch the status of the thing when TV goes out of deep sleep mode.
Enable GoogleTV = ON:
TV in deep sleep mode (0.3W)
Send wake up command to network binding:
var wolAction = actions.Things.getActions("network","network:pingdevice:881e749a1e");
wolAction.sendWakeOnLanPacketViaMac();
TV wakes up immediately (~8W)
Thing status does not go Online. The status stays somehow in:
Yup, exactly what I was expecting to see. The health monitor definitely saw you do the WOL and is firing off the connection when the port opens. It’s this “StandbyKeep” state. Not sure where that came from but it’s throwing the protocol from online to offline inside of a split second. I think if you were to send a power on once GTV comes up it would power up as expected and the thing would come online.
Everything looks fine from what I can see other than that. I think if I can tune up some of the timers and add StandbyKeep it should clean this up. I have a few ideas, just haven’t had the time to do the code yet. Maybe this afternoon, been a busy week.
2023-08-30 06:22:47.701 [DEBUG] [philipstv.PhilipsTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: false - Logged In: false
2023-08-30 06:22:50.178 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: false - Logged In: false - Mode: NORMAL
2023-08-30 06:22:53.126 [DEBUG] [philipstv.PhilipsTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: true - Logged In: false
2023-08-30 06:22:53.126 [DEBUG] [philipstv.PhilipsTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device is back online. Attempting reconnection.
2023-08-30 06:22:53.197 [TRACE] [philipstv.PhilipsTVConnectionManager] - postUpdateThing ONLINE NONE online.online
2023-08-30 06:22:53.198 [DEBUG] [philipstv.PhilipsTVConnectionManager] - Refresh Scheduler already started for Philips TV F00DBABE_AA5E_BABA_DADA_70af241424b4, terminating.
2023-08-30 06:22:53.200 [DEBUG] [philipstv.PhilipsTVConnectionManager] - Starting Refresh Scheduler for Philips TV F00DBABE_AA5E_BABA_DADA_70af241424b4 with refresh rate of 10.
2023-08-30 06:22:53.201 [TRACE] [nternal.AndroidTVTranslationProvider] - Translated: online.online as Online
2023-08-30 06:22:53.202 [TRACE] [philipstv.PhilipsTVConnectionManager] - setStatus to true online.online Online
2023-08-30 06:22:53.203 [DEBUG] [protocol.philipstv.ConnectionManager] - Target Uri is: https://192.168.1.57:1926/6/powerstate
2023-08-30 06:22:53.738 [DEBUG] [protocol.philipstv.ConnectionManager] - ----------------------------------------
2023-08-30 06:22:53.739 [DEBUG] [protocol.philipstv.ConnectionManager] - HTTP/1.1 200 OK
2023-08-30 06:22:53.739 [DEBUG] [protocol.philipstv.ConnectionManager] - {"powerstate":"StandbyKeep"}
2023-08-30 06:22:53.740 [TRACE] [philipstv.PhilipsTVConnectionManager] - postUpdateThing OFFLINE NONE
2023-08-30 06:22:53.740 [DEBUG] [philipstv.PhilipsTVConnectionManager] - Stopping Refresh Scheduler for Philips TV: F00DBABE_AA5E_BABA_DADA_70af241424b4
2023-08-30 06:22:53.741 [TRACE] [philipstv.PhilipsTVConnectionManager] - Updating status to OFFLINE NONE
2023-08-30 06:22:53.743 [TRACE] [nternal.AndroidTVTranslationProvider] - Failed to translate:
2023-08-30 06:22:53.743 [TRACE] [philipstv.PhilipsTVConnectionManager] - setStatus to false
2023-08-30 06:22:55.181 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: true - Logged In: false - Mode: NORMAL
2023-08-30 06:22:55.182 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device is back online. Attempting reconnection.
2023-08-30 06:22:55.183 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Attempting to reconnect to the GoogleTV
2023-08-30 06:22:55.272 [INFO ] [tocol.googletv.GoogleTVMessageParser] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Login Successful
2023-08-30 06:22:55.273 [TRACE] [nternal.AndroidTVTranslationProvider] - Translated: online.online as Online
2023-08-30 06:22:55.279 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Setting power to false
2023-08-30 06:22:55.898 [DEBUG] [l.googletv.GoogleTVConnectionManager] - I/O error while reading from stream: Connection reset
2023-08-30 06:22:55.900 [TRACE] [nternal.AndroidTVTranslationProvider] - Translated: offline.io-error as I/O Error
2023-08-30 06:22:55.902 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Message reader thread exiting 6466
2023-08-30 06:22:59.245 [DEBUG] [philipstv.PhilipsTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: false - Logged In: false
2023-08-30 06:22:59.246 [DEBUG] [philipstv.PhilipsTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device is offline.
2023-08-30 06:22:59.247 [TRACE] [philipstv.PhilipsTVConnectionManager] - postUpdateThing OFFLINE COMMUNICATION_ERROR offline.communication-error-will-try-to-reconnect
2023-08-30 06:22:59.248 [TRACE] [philipstv.PhilipsTVConnectionManager] - Updating status to OFFLINE COMMUNICATION_ERROR offline.communication-error-will-try-to-reconnect
2023-08-30 06:22:59.250 [TRACE] [nternal.AndroidTVTranslationProvider] - Translated: offline.communication-error-will-try-to-reconnect as Communication error, will try to reconnect
2023-08-30 06:22:59.251 [TRACE] [philipstv.PhilipsTVConnectionManager] - setStatus to false offline.communication-error-will-try-to-reconnect Communication error, will try to reconnect
2023-08-30 06:23:00.733 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: false - Logged In: false - Mode: NORMAL
2023-08-30 06:23:04.254 [DEBUG] [philipstv.PhilipsTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: true - Logged In: false
2023-08-30 06:23:04.254 [DEBUG] [philipstv.PhilipsTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device is back online. Attempting reconnection.
2023-08-30 06:23:04.319 [TRACE] [philipstv.PhilipsTVConnectionManager] - postUpdateThing ONLINE NONE online.online
2023-08-30 06:23:04.320 [DEBUG] [philipstv.PhilipsTVConnectionManager] - Refresh Scheduler already started for Philips TV F00DBABE_AA5E_BABA_DADA_70af241424b4, terminating.
2023-08-30 06:23:04.321 [DEBUG] [philipstv.PhilipsTVConnectionManager] - Starting Refresh Scheduler for Philips TV F00DBABE_AA5E_BABA_DADA_70af241424b4 with refresh rate of 10.
2023-08-30 06:23:04.321 [TRACE] [nternal.AndroidTVTranslationProvider] - Translated: online.online as Online
2023-08-30 06:23:04.322 [TRACE] [philipstv.PhilipsTVConnectionManager] - setStatus to true online.online Online
2023-08-30 06:23:04.324 [DEBUG] [protocol.philipstv.ConnectionManager] - Target Uri is: https://192.168.1.57:1926/6/powerstate
2023-08-30 06:23:04.470 [DEBUG] [protocol.philipstv.ConnectionManager] - ----------------------------------------
2023-08-30 06:23:04.470 [DEBUG] [protocol.philipstv.ConnectionManager] - HTTP/1.1 200 OK
2023-08-30 06:23:04.471 [DEBUG] [protocol.philipstv.ConnectionManager] - {"powerstate":"StandbyKeep"}
2023-08-30 06:23:04.471 [TRACE] [philipstv.PhilipsTVConnectionManager] - postUpdateThing OFFLINE NONE
2023-08-30 06:23:04.473 [DEBUG] [philipstv.PhilipsTVConnectionManager] - Stopping Refresh Scheduler for Philips TV: F00DBABE_AA5E_BABA_DADA_70af241424b4
2023-08-30 06:23:04.475 [TRACE] [philipstv.PhilipsTVConnectionManager] - Updating status to OFFLINE NONE
2023-08-30 06:23:04.476 [TRACE] [nternal.AndroidTVTranslationProvider] - Failed to translate:
2023-08-30 06:23:04.476 [TRACE] [philipstv.PhilipsTVConnectionManager] - setStatus to false
2023-08-30 06:23:05.735 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device Health - Online: true - Logged In: false - Mode: NORMAL
2023-08-30 06:23:05.736 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Device is back online. Attempting reconnection.
2023-08-30 06:23:05.736 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Attempting to reconnect to the GoogleTV
2023-08-30 06:23:05.804 [INFO ] [tocol.googletv.GoogleTVMessageParser] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Login Successful
2023-08-30 06:23:05.806 [TRACE] [nternal.AndroidTVTranslationProvider] - Translated: online.online as Online
2023-08-30 06:23:05.813 [DEBUG] [l.googletv.GoogleTVConnectionManager] - F00DBABE_AA5E_BABA_DADA_70af241424b4 - Setting power to false
We track “StandbyKeep” as the message received after it comes online from low power after a WOL. This should bring the thing online.
We now track that the user requested a power on. In the event that the WOL takes more than the 10 second timer (which was observed in a few of the logs), when the device does come online we send an extra power on command.
The moment a power-on is sent, if the device is in low power (basically if it’s offline), we change the health monitor from 5 seconds to 1 second to get a faster response time. In theory we should see that device come up much quicker now.
I could see different behaviour with latest jar and have done different trace logs. Sometimes Thing did go online and all good. But I could also see that Thing did go Online and then Offline again with GoogleTV Status “I/O:Error”:
Please don’t expect too much support with this little information. I’m working in a technical support role and the worst thing when people ask for help is “it does not work”.
Well, it’s not about strictly following the template line by line, but it’s about providing as much information as possible (detailed steps you did, screenshots, log files, etc).
I did quickly double check in my system and have re-added the PhilipsTV-Thing:
It should be OK to add PhilipsTV and do Pin-Process with this Setting:
For GoogleTV you don’t need to do the pin process separately.
But before you delete the thing and add it again, you should first delete the credentials and pin in the command line., e.g.:
sudo rm -R /var/lib/openhab/androidtv
Could be that path is different in your system.
If this does not work, you should definitively share TRACE or DEBUG log files. How to create log files is described in the documentation: Logging | openHAB
Console e.g.
log:set TRACE org.openhab.binding.androidtv
Last point: Not all models have beed tested in the past. What model do you have?
I reinstall thing from inside the HAB and it works.
However I have another one question - did the string channel (like searchContent) support the russian lang? At the moment when I try to send something on tv I receive only “???”
Was the addon from marketplace ok for philipstv or?
Cause its not finding my tv atm, i deleted the androidtv folder, and restarted a couple of times, but still not finding the tv, also cannot add it manually or scan from the add things thingy.
Im on 4.1.0M2 btw.
2023-10-19 00:00:43.264 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/openhab/addons/org.openhab.binding.androidtv-4.1.0-SNAPSHOT-40ebd69.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.androidtv [307]
Unresolved requirement: Import-Package: org.openhab.core.config.discovery.upnp
After installing the upnp binding, it installs, and i can scan for tv’s.
Still doesn’t find a philips tv, only a googletv, i can add it manually and pair it manually, but its not syncing between items and tv.
Deleted jar file, installed marketplace binding, deleted and unlinked all old items, and it seems to work now.