Bonjour,
- Télévision : UE65NU8005.
- TvDomSamsung à jour en version stable.
- Jeedom : Version 4.0.61
Problème :
J’arrive a contrôler la télévision mais j’ai un souci avec le WOL.
Quand je souhaite allumer la TV qui est éteinte depuis un petit moment (mais c’est pareil si elle est éteinte depuis 1 ou 2 minutes seulement), impossible de l’allumer. Mais si elle vient de s’éteindre, je peux l’allumer par le plugin.
De ce que je vois dans les logs, la différence c’est que dans le premier cas il passe vraiment par le WOL et dans le second il passe par une requête WSS.
Exemple :
- Je lance un allumage alors que la TV est éteinte depuis 2/3 minutes (il passe par le WoL) mais la TV s’allume pas.
[2020-11-04 11:49:07][DEBUG] : Exec commande OnOff
[2020-11-04 11:49:07][DEBUG] : eqLogic.cmd -> fn sendKey ( 1 touche) -> KEY_POWER
[2020-11-04 11:49:07][DEBUG] : TvConnector::getInstance() -> class ConnectorImpl_Tizen_Modeles_K
[2020-11-04 11:49:07][DEBUG] : creation connector modele -> ConnectorImpl
[2020-11-04 11:49:07][DEBUG] : before send [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:49:07][DEBUG] : websocket delai 500000
[2020-11-04 11:49:12][DEBUG] : $_status avant affect erreur [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:49:12][DEBUG] : websocket Could not connect to : wss://192.168.60.102:8002/api/v2/channels/samsung.remote.control?name=amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n&token=10963546 error: Timed out after 5 seconds
[2020-11-04 11:49:12][DEBUG] : $_status apres affect erreur [status : 1 reception-Timed out after 5 seconds] code_err socket : 0 - - - 0]
[2020-11-04 11:49:12][DEBUG] : retour $_status [status : 1 reception-Timed out after 5 seconds] code_err socket : 0 - - - 0]
[2020-11-04 11:49:12][DEBUG] : commStatus after send [status : 1 reception-Timed out after 5 seconds] code_err socket : 0 - - - 0]
[2020-11-04 11:49:12][DEBUG] : canWake - wol : [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:49:12][DEBUG] : test avec KEY_POWER Comm.status = '1' canWakeOnLan = 'true'
[2020-11-04 11:49:12][DEBUG] : canWake - wol : [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:49:12][DEBUG] : Tv en erreur et WOL on ==> activation WOL
[2020-11-04 11:49:12][DEBUG] : WOL IP '192.168.60.255'
[2020-11-04 11:49:12][DEBUG] : WOL MAC 'c0:48:e6:22:9d:1b'
[2020-11-04 11:49:12][DEBUG] : retour WOL success
[2020-11-04 11:49:12][DEBUG] : sendToTv.$communicationStatus: [status : 0 wol-success] code_err socket : 0 - - - 0]
- Par contre, si je lance une commande WOL en CLI avec le binaire wakeonlan, ca marche la TV s’allume.
- J’éteins la TV avec le plugin ca marche
[2020-11-04 11:51:33][DEBUG] : Exec commande OnOff
[2020-11-04 11:51:33][DEBUG] : eqLogic.cmd -> fn sendKey ( 1 touche) -> KEY_POWER
[2020-11-04 11:51:33][DEBUG] : TvConnector::getInstance() -> class ConnectorImpl_Tizen_Modeles_K
[2020-11-04 11:51:33][DEBUG] : creation connector modele -> ConnectorImpl
[2020-11-04 11:51:33][DEBUG] : before send [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:51:33][DEBUG] : websocket delai 500000
[2020-11-04 11:51:33][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487093170,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"4cf1fdba-6678-41b3-946b-ea791e232edd","isHost":false}],"id":"4cf1fdba-6678-41b3-946b-ea791e232edd"},"event":"ms.channel.connect"}
[2020-11-04 11:51:33][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:51:33][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWER", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:51:34][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:51:34][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:51:34][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:51:34][DEBUG] : commStatus after send [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:51:34][DEBUG] : canWake - wol : [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:51:34][DEBUG] : test avec KEY_POWER Comm.status = '0' canWakeOnLan = 'true'
[2020-11-04 11:51:34][DEBUG] : websocket delai 500000
[2020-11-04 11:51:34][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487093767,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"1f6afceb-265a-4d76-a338-db963e4d9f6e","isHost":false}],"id":"1f6afceb-265a-4d76-a338-db963e4d9f6e"},"event":"ms.channel.connect"}
[2020-11-04 11:51:34][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:51:34][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWEROFF", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:51:34][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:51:34][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:51:34][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:51:34][DEBUG] : sendToTv.$communicationStatus: [status : 0 reception-] code_err socket : 0 - - - 0]
- Je la démarre avec le plugin, ca marche. Et je la ré-éteint
[2020-11-04 11:52:23][DEBUG] : Exec commande OnOff
[2020-11-04 11:52:23][DEBUG] : eqLogic.cmd -> fn sendKey ( 1 touche) -> KEY_POWER
[2020-11-04 11:52:23][DEBUG] : TvConnector::getInstance() -> class ConnectorImpl_Tizen_Modeles_K
[2020-11-04 11:52:23][DEBUG] : creation connector modele -> ConnectorImpl
[2020-11-04 11:52:23][DEBUG] : before send [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:52:23][DEBUG] : websocket delai 500000
[2020-11-04 11:52:23][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487143422,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"8cb9327d-b69a-48bd-af23-d4623adf1773","isHost":false}],"id":"8cb9327d-b69a-48bd-af23-d4623adf1773"},"event":"ms.channel.connect"}
[2020-11-04 11:52:23][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:52:23][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWER", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:52:24][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:52:24][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:52:24][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:52:24][DEBUG] : commStatus after send [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:52:24][DEBUG] : canWake - wol : [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:52:24][DEBUG] : test avec KEY_POWER Comm.status = '0' canWakeOnLan = 'true'
[2020-11-04 11:52:24][DEBUG] : websocket delai 500000
[2020-11-04 11:52:24][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487144095,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"b1d9fd7e-df87-4ce3-9db5-9343402cd52c","isHost":false}],"id":"b1d9fd7e-df87-4ce3-9db5-9343402cd52c"},"event":"ms.channel.connect"}
[2020-11-04 11:52:24][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:52:24][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWEROFF", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:52:24][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:52:24][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:52:24][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:52:24][DEBUG] : sendToTv.$communicationStatus: [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:53:07][DEBUG] : Exec commande OnOff
[2020-11-04 11:53:07][DEBUG] : eqLogic.cmd -> fn sendKey ( 1 touche) -> KEY_POWER
[2020-11-04 11:53:07][DEBUG] : TvConnector::getInstance() -> class ConnectorImpl_Tizen_Modeles_K
[2020-11-04 11:53:07][DEBUG] : creation connector modele -> ConnectorImpl
[2020-11-04 11:53:07][DEBUG] : before send [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:53:07][DEBUG] : websocket delai 500000
[2020-11-04 11:53:07][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487187033,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"124f79e1-c1f7-41e9-b79b-829e5a8318f","isHost":false}],"id":"124f79e1-c1f7-41e9-b79b-829e5a8318f"},"event":"ms.channel.connect"}
[2020-11-04 11:53:07][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:53:07][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWER", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:53:08][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:53:08][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:53:08][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:53:08][DEBUG] : commStatus after send [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:53:08][DEBUG] : canWake - wol : [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:53:08][DEBUG] : test avec KEY_POWER Comm.status = '0' canWakeOnLan = 'true'
[2020-11-04 11:53:08][DEBUG] : websocket delai 500000
[2020-11-04 11:53:08][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487187886,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"60fe6c32-bb7-4d3-89c6-32fa6738a56d","isHost":false}],"id":"60fe6c32-bb7-4d3-89c6-32fa6738a56d"},"event":"ms.channel.connect"}
[2020-11-04 11:53:08][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:53:08][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWEROFF", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:53:08][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:53:08][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:53:08][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:53:08][DEBUG] : sendToTv.$communicationStatus: [status : 0 reception-] code_err socket : 0 - - - 0]
- Après quelques minutes, le plugin ne peut plus la rallumer car il repart en WOL
[2020-11-04 11:57:45][DEBUG] : Exec commande OnOff
[2020-11-04 11:57:45][DEBUG] : eqLogic.cmd -> fn sendKey ( 1 touche) -> KEY_POWER
[2020-11-04 11:57:45][DEBUG] : TvConnector::getInstance() -> class ConnectorImpl_Tizen_Modeles_K
[2020-11-04 11:57:45][DEBUG] : creation connector modele -> ConnectorImpl
[2020-11-04 11:57:45][DEBUG] : before send [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:57:45][DEBUG] : websocket delai 500000
[2020-11-04 11:57:45][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487465626,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"872c4a9e-eb7c-4461-bc17-c16d765b8895","isHost":false}],"id":"872c4a9e-eb7c-4461-bc17-c16d765b8895"},"event":"ms.channel.connect"}
[2020-11-04 11:57:45][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:57:45][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWER", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:57:46][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:57:46][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:57:46][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:57:46][DEBUG] : commStatus after send [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:57:46][DEBUG] : canWake - wol : [eqLogicId : 252][remote : 192.168.60.102:8002], [tvApp : jeedom.tizen.app.samsung], [modele_tv : tizen], [sub_modele_tv : 0], [modele_k_delai : 0], [ssl : 1], [wol : 1], [mac tv : c0:48:e6:22:9d:1b], [tokenAuth : 10963546]
[2020-11-04 11:57:46][DEBUG] : test avec KEY_POWER Comm.status = '0' canWakeOnLan = 'true'
[2020-11-04 11:57:46][DEBUG] : websocket delai 500000
[2020-11-04 11:57:46][DEBUG] : websocket msg reçu -> {"data":{"clients":[{"attributes":{"name":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","token":"10963546"},"connectTime":1604487466225,"deviceName":"amVlZG9tLnRpemVuLmFwcC5zYW1zdW5n","id":"ca2bd73f-a565-47b-b9f1-80866d81c424","isHost":false}],"id":"ca2bd73f-a565-47b-b9f1-80866d81c424"},"event":"ms.channel.connect"}
[2020-11-04 11:57:46][DEBUG] : websocket event -> ms.channel.connect
[2020-11-04 11:57:46][DEBUG] : websocket send data to Tv -> { "method": "ms.remote.control","params": { "Cmd": "Click", "DataOfCmd": "KEY_POWEROFF", "Option": "false", "TypeOfRemote": "SendRemoteKey"}}
[2020-11-04 11:57:46][DEBUG] : websocket exec sleep + client->close()
[2020-11-04 11:57:46][DEBUG] : websocket Connection closed (code:1000 - raison:)
[2020-11-04 11:57:46][DEBUG] : retour $_status [status : 0 reception-] code_err socket : 0 - - - 0]
[2020-11-04 11:57:46][DEBUG] : sendToTv.$communicationStatus: [status : 0 reception-] code_err socket : 0 - - - 0]
Conclusion :
Le WoL du plugin ne fonctionne pas dans mon cas. Mais le WoL de la TV marche bien car j’arrive a déclenché le WOL autrement que par le plugin.
Questions :
- Pourquoi le log du WoL me dit success alors qu’il a pas démarré la TV ?
- Pourquoi une commande wakeonlan arrive a démarrer la TV alors que le plugin non ? J’ai vu que le WOL du plugin s’appuyé sur une librairie tierce.
- Comment résoudre cela ?
Merci d’avance pour votre aide.