Deconz - Tradfri - Interupteur modifie etat prise dans jeedom mais pas sur deconz

Tags: #<Tag:0x00007f385161f8d8>

Bonjour à tous,
Après une lutte acharnée j’ai réussi à integrer 3 prises IKEA et ce matin l’interupteur ON/OFF (celui vendu avec une prise). Un peu compliqué car l’interface de deconz manque d’explications mais ce n’est pas le sujet ici.

Mon problème est que ;
Dans deconz j’ai supprimé tous les groupes etc. car je veux l’utiliser comme simple gateway rien de plus.
Dans jeedom je vois bien mes prises et la télécommande.
J’ai affiché tout ce petit monde sur le dashboard pour voir les valeurs etc.
Tout semble bon je pilote mes prises, etc. et la je teste la télécommande :
Quand j’appuie sur le 0, dans jeedom ca indique que mes prises s’éteignent, idem si je fais le 1 pour jeedom mes prises s’allument, alors que non et que dans deconz non plus il n’y a que jeedom qui me remontent ça.
Sur un appui il prend la valeur 1002, sur l’autre la valeur 2002, ce qui est normal mais pourquoi cela impact le statut des prises alors que rien de n’est supposé le faire et que c’est dans deconz ce n’est pas le cas ?

Merci à vous.

Alors pour les groupes c’est plus compliqué que ça, les télécommandes ikea ont des groupes spéciaux qui sont cachés depuis quelques versions, longue histoire …
Ensuite il ne faut pas confondre deconz (l’application qui gère la conbee et que a mon avis tu ne vois pas car il faut un OS avec desktop) et phoscon qui est une application annexe.
Si tu ne vois pas de réaction dans phoscon je dirais que le probleme vient de jeedom, les 2 applications récupèrent les infos en même temps, de la même manière via le websocket (le démon dans jeedom). Pas normal qu’une réagisse et pas la seconde.

Tu pourrais regarder dans les logs du démon, en montant le niveau de log ?

En passant par l’ancienne application Phoscon tu peux accéder aux groupes créés par les télécommandes et ainsi y retirer les équipements liés directement aux télécommandes.
Recherche sur ce site pour trouver l’URL d’accès à l’ancienne application Phoscon car je n’ai pas accès à mes machines pour te donner plus de détails… de tete retire de l’url Phoscon le pwa.

Hello,
Merci à tous les deux pour vos réponses !
Effectivement merci de la correction car je ne faisais pas la distinction, donc je parle bien de Phoscon App.
Pour Yves19 ; Merci du tuyau, malheureusement je n’arrive pas me connecter sur la vieille interface, il suffit visiblement de faire http://IP_SERVEUR/login.html mais je me tape un login incorrect…

Mon setup est le suivant :

  • Un conteneur sur un serveur - 192.168.2.17:80
  • Plugin deconz sur Jeedom V4 qui vient taper sur le container Phoscon App.
    Je viens de monter le niveau de log mais attention ça en crache vraiment beaucoup alors je viens de prendre la séquence incluant seulement le laps de temps avec les deux appuis sur le bouton de la télécommande.
[2020-08-06 23:18:08.105][DEBUG] : Received message from gateway 192.168.2.17 : {"attr":{"lastannounced":"2020-08-03T17:39:59Z","lastseen":"2020-08-06T21:18:08Z","manufacturername":"IKEA of Sweden","modelid":"TRADFRI control outlet","name":"On/Off plug-in unit 2","swversion":"2.0.022","type":"On/Off plug-in unit","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"},"e":"changed","id":"2","r":"lights","t":"event","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"}
[2020-08-06 23:18:08.106][DEBUG] : Send to jeedom :  {'00212EFFFF05A733': {'attr': {'lastannounced': '2020-08-03T17:39:59Z', 'lastseen': '2020-08-06T21:18:08Z', 'manufacturername': 'IKEA of Sweden', 'modelid': 'TRADFRI control outlet', 'name': 'On/Off plug-in unit 2', 'swversion': '2.0.022', 'type': 'On/Off plug-in unit', 'uniqueid': '68:0a:e2:ff:fe:6f:e4:74-01'}, 'e': 'changed', 'id': '2', 'r': 'lights', 't': 'event', 'uniqueid': '68:0a:e2:ff:fe:6f:e4:74-01'}}
[2020-08-06 23:18:08.106][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-08-06 23:18:08][DEBUG] : {"00212EFFFF05A733":{"attr":{"lastannounced":"2020-08-03T17:39:59Z","lastseen":"2020-08-06T21:18:08Z","manufacturername":"IKEA of Sweden","modelid":"TRADFRI control outlet","name":"On\/Off plug-in unit 2","swversion":"2.0.022","type":"On\/Off plug-in unit","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"},"e":"changed","id":"2","r":"lights","t":"event","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"}}
[2020-08-06 23:18:08][DEBUG] : Something received and no value updated, performing sync to create commands if needed
[2020-08-06 23:18:08][DEBUG] : 192.168.2.17:80/api/F9009717FF/sensors type : POST
[2020-08-06 23:18:08][DEBUG] : {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"8d19cc4ea030fe99a2601d94fe0b16c7","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"dark":true,"daylight":false,"lastupdated":"2020-08-06T20:49:42.698","status":220,"sunrise":"2020-08-06T04:34:29","sunset":"2020-08-06T19:26:06"},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"},"3":{"config":{"alert":"none","battery":null,"group":"3","on":true,"reachable":true},"ep":1,"etag":"f115955bb589b7e605b44ec4356b5b0d","lastseen":"2020-08-06T21:16:14.774","manufacturername":"IKEA of Sweden","mode":1,"modelid":"TRADFRI on\/off switch","name":"TRADFRI on\/off switch ","state":{"buttonevent":2002,"lastupdated":"2020-08-06T21:16:14.775"},"swversion":"2.2.010","type":"ZHASwitch","uniqueid":"68:0a:e2:ff:fe:7a:b4:ab-01-1000"}}
[2020-08-06 23:18:08][DEBUG] : 192.168.2.17:80/api/F9009717FF/lights type : POST
[2020-08-06 23:18:08][DEBUG] : {"1":{"etag":"df62f894a46d3d56a1a78ff309ab2180","hascolor":false,"lastannounced":null,"lastseen":"2020-08-06T21:18:05Z","manufacturername":"dresden elektronik","modelid":"ConBee II","name":"Configuration tool 1","state":{"reachable":true},"swversion":"0x26580700","type":"Configuration tool","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"},"2":{"etag":"a6c72b5ecad0a661d8ba7e5450bc4ba8","hascolor":false,"lastannounced":"2020-08-03T17:39:59Z","lastseen":"2020-08-06T21:18:08Z","manufacturername":"IKEA of Sweden","modelid":"TRADFRI control outlet","name":"On\/Off plug-in unit 2","state":{"alert":"none","on":false,"reachable":true},"swversion":"2.0.022","type":"On\/Off plug-in unit","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"},"3":{"etag":"f115955bb589b7e605b44ec4356b5b0d","hascolor":false,"lastannounced":"2020-08-03T17:39:41Z","lastseen":"2020-08-06T14:05:27Z","manufacturername":"IKEA of Sweden","modelid":"TRADFRI control outlet","name":"On\/Off plug-in unit 3","state":{"alert":"none","on":false,"reachable":false},"swversion":"2.0.022","type":"On\/Off plug-in unit","uniqueid":"68:0a:e2:ff:fe:77:59:88-01"}}
[2020-08-06 23:18:08.118][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=Mgu398QergXnQ9Obcwn8IqbJiTP6AmWm HTTP/1.1" 200 0
[2020-08-06 23:18:08.879][DEBUG] : Received message from gateway 192.168.2.17 : {"e":"changed","id":"3","r":"sensors","state":{"buttonevent":2002,"lastupdated":"2020-08-06T21:18:08.878"},"t":"event","uniqueid":"68:0a:e2:ff:fe:7a:b4:ab-01-1000"}
[2020-08-06 23:18:08.879][DEBUG] : Send to jeedom :  {'00212EFFFF05A733': {'e': 'changed', 'id': '3', 'r': 'sensors', 'state': {'buttonevent': 2002, 'lastupdated': '2020-08-06T21:18:08.878'}, 't': 'event', 'uniqueid': '68:0a:e2:ff:fe:7a:b4:ab-01-1000'}}
[2020-08-06 23:18:08.880][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-08-06 23:18:08][DEBUG] : {"00212EFFFF05A733":{"e":"changed","id":"3","r":"sensors","state":{"buttonevent":2002,"lastupdated":"2020-08-06T21:18:08.878"},"t":"event","uniqueid":"68:0a:e2:ff:fe:7a:b4:ab-01-1000"}}
[2020-08-06 23:18:08.887][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=Mgu398QergXnQ9Obcwn8IqbJiTP6AmWm HTTP/1.1" 200 0
[2020-08-06 23:18:10.288][DEBUG] : Received message from gateway 192.168.2.17 : {"e":"changed","id":"2","r":"lights","state":{"alert":null,"on":true,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"}
[2020-08-06 23:18:10.288][DEBUG] : Send to jeedom :  {'00212EFFFF05A733': {'e': 'changed', 'id': '2', 'r': 'lights', 'state': {'alert': None, 'on': True, 'reachable': True}, 't': 'event', 'uniqueid': '68:0a:e2:ff:fe:6f:e4:74-01'}}
[2020-08-06 23:18:10.289][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-08-06 23:18:10][DEBUG] : {"00212EFFFF05A733":{"e":"changed","id":"2","r":"lights","state":{"alert":null,"on":true,"reachable":true},"t":"event","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"}}
[2020-08-06 23:18:10.296][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=Mgu398QergXnQ9Obcwn8IqbJiTP6AmWm HTTP/1.1" 200 0
[2020-08-06 23:18:10.308][DEBUG] : Received message from gateway 192.168.2.17 : {"e":"changed","id":"3","r":"lights","state":{"alert":null,"on":true,"reachable":false},"t":"event","uniqueid":"68:0a:e2:ff:fe:77:59:88-01"}
[2020-08-06 23:18:10.308][DEBUG] : Send to jeedom :  {'00212EFFFF05A733': {'e': 'changed', 'id': '3', 'r': 'lights', 'state': {'alert': None, 'on': True, 'reachable': False}, 't': 'event', 'uniqueid': '68:0a:e2:ff:fe:77:59:88-01'}}
[2020-08-06 23:18:10.309][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-08-06 23:18:10][DEBUG] : {"00212EFFFF05A733":{"e":"changed","id":"3","r":"lights","state":{"alert":null,"on":true,"reachable":false},"t":"event","uniqueid":"68:0a:e2:ff:fe:77:59:88-01"}}
[2020-08-06 23:18:10.317][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=Mgu398QergXnQ9Obcwn8IqbJiTP6AmWm HTTP/1.1" 200 0
[2020-08-06 23:18:10.329][DEBUG] : Received message from gateway 192.168.2.17 : {"e":"changed","id":"3","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2020-08-06T21:18:10.286"},"t":"event","uniqueid":"68:0a:e2:ff:fe:7a:b4:ab-01-1000"}
[2020-08-06 23:18:10.329][DEBUG] : Send to jeedom :  {'00212EFFFF05A733': {'e': 'changed', 'id': '3', 'r': 'sensors', 'state': {'buttonevent': 1002, 'lastupdated': '2020-08-06T21:18:10.286'}, 't': 'event', 'uniqueid': '68:0a:e2:ff:fe:7a:b4:ab-01-1000'}}
[2020-08-06 23:18:10.330][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-08-06 23:18:10][DEBUG] : {"00212EFFFF05A733":{"e":"changed","id":"3","r":"sensors","state":{"buttonevent":1002,"lastupdated":"2020-08-06T21:18:10.286"},"t":"event","uniqueid":"68:0a:e2:ff:fe:7a:b4:ab-01-1000"}}
[2020-08-06 23:18:10.336][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=Mgu398QergXnQ9Obcwn8IqbJiTP6AmWm HTTP/1.1" 200 0
[2020-08-06 23:18:10.349][DEBUG] : Received message from gateway 192.168.2.17 : {"e":"changed","id":"65520","r":"groups","state":{"all_on":true,"any_on":true},"t":"event"}
[2020-08-06 23:18:10.349][DEBUG] : Send to jeedom :  {'00212EFFFF05A733': {'e': 'changed', 'id': '65520', 'r': 'groups', 'state': {'all_on': True, 'any_on': True}, 't': 'event'}}
[2020-08-06 23:18:10.350][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-08-06 23:18:10][DEBUG] : {"00212EFFFF05A733":{"e":"changed","id":"65520","r":"groups","state":{"all_on":true,"any_on":true},"t":"event"}}
[2020-08-06 23:18:10.353][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=Mgu398QergXnQ9Obcwn8IqbJiTP6AmWm HTTP/1.1" 200 0
[2020-08-06 23:18:11.401][DEBUG] : Received message from gateway 192.168.2.17 : {"attr":{"lastannounced":null,"lastseen":"2020-08-06T21:18:11Z","manufacturername":"dresden elektronik","modelid":"ConBee II","name":"Configuration tool 1","swversion":"0x26580700","type":"Configuration tool","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"},"e":"changed","id":"1","r":"lights","t":"event","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"}
[2020-08-06 23:18:11.402][DEBUG] : Send to jeedom :  {'00212EFFFF05A733': {'attr': {'lastannounced': None, 'lastseen': '2020-08-06T21:18:11Z', 'manufacturername': 'dresden elektronik', 'modelid': 'ConBee II', 'name': 'Configuration tool 1', 'swversion': '0x26580700', 'type': 'Configuration tool', 'uniqueid': '00:21:2e:ff:ff:05:a7:33-01'}, 'e': 'changed', 'id': '1', 'r': 'lights', 't': 'event', 'uniqueid': '00:21:2e:ff:ff:05:a7:33-01'}}
[2020-08-06 23:18:11.403][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-08-06 23:18:11][DEBUG] : {"00212EFFFF05A733":{"attr":{"lastannounced":null,"lastseen":"2020-08-06T21:18:11Z","manufacturername":"dresden elektronik","modelid":"ConBee II","name":"Configuration tool 1","swversion":"0x26580700","type":"Configuration tool","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"},"e":"changed","id":"1","r":"lights","t":"event","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"}}
[2020-08-06 23:18:11][DEBUG] : Something received and no value updated, performing sync to create commands if needed
[2020-08-06 23:18:11][DEBUG] : 192.168.2.17:80/api/F9009717FF/sensors type : POST
[2020-08-06 23:18:11][DEBUG] : {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"8d19cc4ea030fe99a2601d94fe0b16c7","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"dark":true,"daylight":false,"lastupdated":"2020-08-06T20:49:42.698","status":220,"sunrise":"2020-08-06T04:34:29","sunset":"2020-08-06T19:26:06"},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"},"3":{"config":{"alert":"none","battery":null,"group":"3","on":true,"reachable":true},"ep":1,"etag":"91188eb6180b7e409392854af11c43ab","lastseen":"2020-08-06T21:18:10.286","manufacturername":"IKEA of Sweden","mode":1,"modelid":"TRADFRI on\/off switch","name":"TRADFRI on\/off switch ","state":{"buttonevent":1002,"lastupdated":"2020-08-06T21:18:10.286"},"swversion":"2.2.010","type":"ZHASwitch","uniqueid":"68:0a:e2:ff:fe:7a:b4:ab-01-1000"}}
[2020-08-06 23:18:11][DEBUG] : 192.168.2.17:80/api/F9009717FF/lights type : POST
[2020-08-06 23:18:11][DEBUG] : {"1":{"etag":"8132577526d72ea86382d7f00c8a2d7f","hascolor":false,"lastannounced":null,"lastseen":"2020-08-06T21:18:11Z","manufacturername":"dresden elektronik","modelid":"ConBee II","name":"Configuration tool 1","state":{"reachable":true},"swversion":"0x26580700","type":"Configuration tool","uniqueid":"00:21:2e:ff:ff:05:a7:33-01"},"2":{"etag":"91188eb6180b7e409392854af11c43ab","hascolor":false,"lastannounced":"2020-08-03T17:39:59Z","lastseen":"2020-08-06T21:18:08Z","manufacturername":"IKEA of Sweden","modelid":"TRADFRI control outlet","name":"On\/Off plug-in unit 2","state":{"alert":"none","on":true,"reachable":true},"swversion":"2.0.022","type":"On\/Off plug-in unit","uniqueid":"68:0a:e2:ff:fe:6f:e4:74-01"},"3":{"etag":"91188eb6180b7e409392854af11c43ab","hascolor":false,"lastannounced":"2020-08-03T17:39:41Z","lastseen":"2020-08-06T14:05:27Z","manufacturername":"IKEA of Sweden","modelid":"TRADFRI control outlet","name":"On\/Off plug-in unit 3","state":{"alert":"none","on":true,"reachable":false},"swversion":"2.0.022","type":"On\/Off plug-in unit","uniqueid":"68:0a:e2:ff:fe:77:59:88-01"}}
[2020-08-06 23:18:11.409][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=Mgu398QergXnQ9Obcwn8IqbJiTP6AmWm HTTP/1.1" 200 0


Login : delight
Password : delight (si tu ne pas pas encore changé )

Merci ! C’était le login qui me manquait !
Je dois admettre que je trouve que l’ancienne interface était mieux mais bon.
Dans l’ancienne interface je vois que lors de l’appui sur la telecommande l état des prises changent.
Je viens donc de supprimer la télécommande de Phoscon et quand j’appuies dessus l’état des prises changent encore :open_mouth: mais les prises ne changent pas d’état dans la réalité (la lumière blanche de la prise reste allumée en permanence)
En plus de la suppression, faut-il faire une sorte d’exclusion ? Car si sans controleur le bouton parle aux prises (alors que je fais la tentative de découverte à côté de la clé conbee et à moins 5 mètres des prises je suis surpris :slight_smile: )

C’est bon le problème est résolu.
En fait il faut faire le process d’inclusion de l’inter en choisissant ‹ Other › et non pas Ikea.
Dans mon cas c’est ce qui a résolu le problème, piste trouvée en tombant sur cette issue ; https://github.com/dresden-elektronik/deconz-rest-plugin/issues/853

En fait il fait retirer tous les équipements du groupe de chaque télécommande iikea dans supprimer poir autant le groupe.