Voici la config du plugin :
Jeedom Core : 4.3.12
Version JC : 1.6.0+ stable
DNS Jeedom : oui
Statut Démon : Stoppé - ()
Equipements :
JC_Piug : v1.6.0 stable sur android [os : 31] (polling)
J’ai continué mes tests, et me suis rendu compte que l’envoie du son en local, ne fonctionne que lorsque l’écran de mon téléphone est allumé (ou téléphone dévérouillé, je ne sais pas lequel des 2 implique l’autre)
Et voici les différents logs de JC associés aux différentes actions :
- Envoie d’un son depuis le widget, hors connexion internet, avec écran allumé, et donc qui fonctionne :
0034|[2023-01-05 14:26:54]DEBUG : removing actions - action::48
0035|[2023-01-05 14:26:54]DEBUG : send action [{"action":"playSound","sound":"\/var\/www\/html\/data\/bip.mp3"}]
- Envoie d’un son depuis le scénario, hors connexion internet, avec écran allumé, et donc qui fonctionne :
0046|[2023-01-05 14:29:02]DEBUG : removing actions - action::49
0047|[2023-01-05 14:29:02]DEBUG : send action [{"action":"playSound","sound":"\/var\/www\/html\/data\/bip.mp3"}]
- Envoie du son depuis le widget, hors connexion internet, écran éteint, donc qui ne fonctionne pas :
0056|[2023-01-05 14:32:11]INFO : Send notification with data {"type":"ACTIONS","payload":{"action":"playSound","sound":"\/var\/www\/html\/data\/bip.mp3","time":1672925531}}
0057|[2023-01-05 14:32:11]DEBUG : Send output : 2023/01/05 14:32:11 Post "https://fcm.googleapis.com/fcm/send": x509: certificate is valid for mabbox.bytel.fr, not fcm.googleapis.com
- Envoie du son depuis le scénario, hors connexion internet, écran éteint, donc qui ne fonctionne pas :
0054|[2023-01-05 14:31:01]INFO : Send notification with data {"type":"ACTIONS","payload":{"action":"playSound","sound":"\/var\/www\/html\/data\/bip.mp3","time":1672925461}}
0055|[2023-01-05 14:31:02]DEBUG : Send output : 2023/01/05 14:31:02 Post "https://fcm.googleapis.com/fcm/send": x509: certificate is valid for mabbox.bytel.fr, not fcm.googleapis.com
- Envoie du son depuis le widget, avec connexion internet, écran éteint :
0060|[2023-01-05 14:33:22]INFO : Send notification with data {"type":"ACTIONS","payload":{"action":"playSound","sound":"\/var\/www\/html\/data\/bip.mp3","time":1672925602}}
0061|[2023-01-05 14:33:22]DEBUG : Send output : 2023/01/05 14:33:22 {"multicast_id":8621922536753645634,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1672925602473452%5d4eda78f9fd7ecd"}]}
- Envoie du son depuis le scénario, avec connexion internet, écran éteint :
0062|[2023-01-05 14:35:02]INFO : Send notification with data {"type":"ACTIONS","payload":{"action":"playSound","sound":"\/var\/www\/html\/data\/bip.mp3","time":1672925702}}
0063|[2023-01-05 14:35:02]DEBUG : Send output : 2023/01/05 14:35:02 {"multicast_id":4598393047039581046,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1672925702299977%5d4eda78f9fd7ecd"}]}
Donc, au final il n’y a pas de différence entre scénario ou widget, mais entre écran éteint et écran allumé…