voici un retour. ça m'a l'air pas mal déja. J'au juste 2 cas qui arrivent:
Soit il existe déja un groupe, donc un leader, et si je choisi le bouton groupe sur le player leader, ça fonctionne, j'ai bien la modale qui s'ouvre.
Extrait des logs ok:
Code : Tout sélectionner
[2019-06-24 20:06:16][DEBUG] : BEGIN executeCommand / $cmd = heos://player/get_players
[2019-06-24 20:06:16][DEBUG] : CONNECTED (IP : 192.168.0.198, PORT : 1255)
[2019-06-24 20:06:16][DEBUG] : EXEC COMMAND / $exec = heos://player/get_players
[2019-06-24 20:06:16][DEBUG] : RESULT : {"heos": {"command": "player/get_players", "result": "success", "message": ""}, "payload": [{"name": "Couloir", "pid": 1604608987, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.198", "network": "wifi", "lineout": 0}, {"name": "Cuisine", "pid": -132715005, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.187", "network": "wifi", "lineout": 0, "serial": "AMWG9180752079"}, {"name": "Salon", "pid": -153743646, "model": "HEOS AVR", "version": "1.505.140", "ip": "192.168.0.174", "network": "wired", "lineout": 0, "serial": "xxxxxxxxxx"}]}
[2019-06-24 20:06:16][DEBUG] : CLOSING CONNECTION
[2019-06-24 20:06:16][DEBUG] : CLOSED
[2019-06-24 20:06:16][DEBUG] : END executeCommand
[2019-06-24 20:06:16][DEBUG] : GET PLAYERS LIST : {"heos": {"command": "player/get_players", "result": "success", "message": ""}, "payload": [{"name": "Couloir", "pid": 1604608987, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.198", "network": "wifi", "lineout": 0}, {"name": "Cuisine", "pid": -132715005, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.187", "network": "wifi", "lineout": 0, "serial": "xxxxxxxxxx"}, {"name": "Salon", "pid": -153743646, "model": "HEOS AVR", "version": "1.505.140", "ip": "192.168.0.174", "network": "wired", "lineout": 0, "serial": "ACA12170604061"}]}
[2019-06-24 20:06:16][DEBUG] : BEGIN executeCommand / $cmd = heos://group/get_groups
[2019-06-24 20:06:16][DEBUG] : CONNECTED (IP : 192.168.0.198, PORT : 1255)
[2019-06-24 20:06:16][DEBUG] : EXEC COMMAND / $exec = heos://group/get_groups
[2019-06-24 20:06:16][DEBUG] : RESULT : {"heos": {"command": "group/get_groups", "result": "success", "message": ""}, "payload": [{"name": "Couloir + Cuisine", "gid": 1604608987, "players": [{"name": "Couloir", "pid": 1604608987, "role": "leader"}, {"name": "Cuisine", "pid": -132715005, "role": "member"}]}]}
[2019-06-24 20:06:16][DEBUG] : CLOSING CONNECTION
[2019-06-24 20:06:16][DEBUG] : CLOSED
[2019-06-24 20:06:16][DEBUG] : END executeCommand
[2019-06-24 20:06:16][DEBUG] : GET GROUPS LITS : {"heos": {"command": "group/get_groups", "result": "success", "message": ""}, "payload": [{"name": "Couloir + Cuisine", "gid": 1604608987, "players": [{"name": "Couloir", "pid": 1604608987, "role": "leader"}, {"name": "Cuisine", "pid": -132715005, "role": "member"}]}]}
Soit je n'ai pas de leader (donc pas de groupe en cours) ou si je clique sur l'icone groupe d'un player qui n'est pas leader, dans ces cas, j'ai la roue crantée de jeedom qui tourne indéfiniement.
Extrai des logs dans ce cas:
Code : Tout sélectionner
[2019-06-24 20:10:50][DEBUG] : BEGIN executeCommand / $cmd = heos://player/get_players
[2019-06-24 20:10:50][DEBUG] : CONNECTED (IP : 192.168.0.187, PORT : 1255)
[2019-06-24 20:10:50][DEBUG] : EXEC COMMAND / $exec = heos://player/get_players
[2019-06-24 20:10:50][DEBUG] : RESULT : {"heos": {"command": "player/get_players", "result": "success", "message": ""}, "payload": [{"name": "Cuisine", "pid": -132715005, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.187", "network": "wifi", "lineout": 0, "serial": "xxxxxx"}, {"name": "Couloir", "pid": 1604608987, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.198", "network": "wifi", "lineout": 0}, {"name": "Salon", "pid": -153743646, "model": "HEOS AVR", "version": "1.505.140", "ip": "192.168.0.174", "network": "wired", "lineout": 0, "serial": "ACA12170604061"}]}
[2019-06-24 20:10:50][DEBUG] : CLOSING CONNECTION
[2019-06-24 20:10:50][DEBUG] : CLOSED
[2019-06-24 20:10:50][DEBUG] : END executeCommand
[2019-06-24 20:10:50][DEBUG] : GET PLAYERS LIST : {"heos": {"command": "player/get_players", "result": "success", "message": ""}, "payload": [{"name": "Cuisine", "pid": -132715005, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.187", "network": "wifi", "lineout": 0, "serial": "xxxxx"}, {"name": "Couloir", "pid": 1604608987, "gid": 1604608987, "model": "HEOS 1", "version": "1.505.140", "ip": "192.168.0.198", "network": "wifi", "lineout": 0}, {"name": "Salon", "pid": -153743646, "model": "HEOS AVR", "version": "1.505.140", "ip": "192.168.0.174", "network": "wired", "lineout": 0, "serial": "ACA12170604061"}]}
[2019-06-24 20:10:50][DEBUG] : BEGIN executeCommand / $cmd = heos://group/get_groups
[2019-06-24 20:10:50][DEBUG] : CONNECTED (IP : 192.168.0.187, PORT : 1255)
[2019-06-24 20:10:50][DEBUG] : EXEC COMMAND / $exec = heos://group/get_groups
[2019-06-24 20:10:50][DEBUG] : RESULT : {"heos": {"command": "group/get_groups", "result": "success", "message": ""}, "payload": [{"name": "Couloir + Cuisine", "gid": 1604608987, "players": [{"name": "Cuisine", "pid": -132715005, "role": "member"}, {"name": "Couloir", "pid": 1604608987, "role": "leader"}]}]}
[2019-06-24 20:10:50][DEBUG] : CLOSING CONNECTION
[2019-06-24 20:10:50][DEBUG] : CLOSED
[2019-06-24 20:10:50][DEBUG] : END executeCommand
[2019-06-24 20:10:50][DEBUG] : GET GROUPS LITS : {"heos": {"command": "group/get_groups", "result": "success", "message": ""}, "payload": [{"name": "Couloir + Cuisine", "gid": 1604608987, "players": [{"name": "Cuisine", "pid": -132715005, "role": "member"}, {"name": "Couloir", "pid": 1604608987, "role": "leader"}]}]}
En tout cas ça me parait bien le principe des cases à cocher. Juste un truc, je pense que les boutons groupe/favoris etc pourrait être plus gros pour pouvoir être bien utilisé en tactile.