Débuter avec deconz

recherche = découverte?

Oui recherche=decouverte

ok, toujours rien pour l’instant (en débug toujours)

Rien dans les logs Deconz et DeconzServer ?

Log déconz

Résumé

Options:
[…] send signal to every listed
-, -s, --signal
specify the to be sent
-l, --list=[] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
kill: (332): Opération non permise
kill: (332): Operation not permitted
kill: (332): Operation not permitted
kill: (332): Operation not permitted
Exception in thread deconz_undefined:
Traceback (most recent call last):
File « /usr/lib/python3.7/threading.py », line 917, in _bootstrap_inner
self.run()
File « /usr/lib/python3.7/threading.py », line 865, in run
self._target(*self._args, **self._kwargs)
File « /var/www/html/plugins/deconz/resources/deconzd/deconzd.py », line 133, in wshandling
globals.WS[str(gatewayInfos[‹ internalipaddress ›])] = create_connection(« ws:// » + str(gatewayInfos[‹ internalipaddress ›]) + « : » + str(gatewayInfos[‹ websocketport ›]))
File « /usr/local/lib/python3.7/dist-packages/websocket/_core.py », line 515, in create_connection
websock.connect(url, **options)
File « /usr/local/lib/python3.7/dist-packages/websocket/_core.py », line 223, in connect
options.pop(‹ socket ›, None))
File « /usr/local/lib/python3.7/dist-packages/websocket/_http.py », line 108, in connect
hostname, port, resource, is_secure = parse_url(url)
File « /usr/local/lib/python3.7/dist-packages/websocket/_url.py », line 51, in parse_url
if parsed.port:
File « /usr/lib/python3.7/urllib/parse.py », line 169, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10: ‹ undefined ›
[2020-12-20 00:52:10.680][ERROR] : ‹ name ›
[2020-12-20 00:52:55][DEBUG] : Found gateway : []
[2020-12-20 00:53:01][DEBUG] : Found gateway : []
[2020-12-20 00:53:04][DEBUG] : Found gateway : []
[2020-12-20 00:53:08][DEBUG] : Found gateway : []
[2020-12-20 00:54:28][DEBUG] : Found gateway : []
[2020-12-20 00:54:42][INFO] : Lancement démon deconz : /usr/bin/python3 /var/www/html/plugins/deconz/resources/deconzd/deconzd.py --loglevel debug --socketport 55088 --callback http://127.0.0.1:80/plugins/deconz/core/php/jeeDeconz.php --apikey tNiOrWsF3ZROpj4ccje2g3FF23fCYAfk --cycle 0 --pid /tmp/jeedom/deconz/deamon.pid
[2020-12-20 00:54:45.741][INFO] : Start deconzd
[2020-12-20 00:54:45.741][INFO] : Log level : debug
[2020-12-20 00:54:45.741][INFO] : Socket port : 55088
[2020-12-20 00:54:45.741][INFO] : Socket host : localhost
[2020-12-20 00:54:45.742][INFO] : PID file : /tmp/jeedom/deconz/deamon.pid
[2020-12-20 00:54:45.742][INFO] : Apikey : tNiOrWsF3ZROpj4ccje2g3FF23fCYAfk
[2020-12-20 00:54:45.742][INFO] : Callback : http://127.0.0.1:80/plugins/deconz/core/php/jeeDeconz.php
[2020-12-20 00:54:45.742][INFO] : Cycle : 0.0
[2020-12-20 00:54:45.742][DEBUG] : Writing PID 31791 to /tmp/jeedom/deconz/deamon.pid
[2020-12-20 00:54:45.743][DEBUG] : Init request module v2.21.0
[2020-12-20 00:54:45.750][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-12-20 00:54:45.763][DEBUG] : http://127.0.0.1:80 « GET /plugins/deconz/core/php/jeeDeconz.php?apikey=tNiOrWsF3ZROpj4ccje2g3FF23fCYAfk HTTP/1.1 » 200 0
[2020-12-20 00:54:45.766][DEBUG] : Start listening…
[2020-12-20 00:54:45.767][DEBUG] : Socket interface started
[2020-12-20 00:54:45.768][DEBUG] : LoopNetServer Thread started
[2020-12-20 00:54:45.768][DEBUG] : Listening on: [localhost:55088]
[2020-12-20 00:54:45.769][INFO] : Local DeconZ found
[2020-12-20 00:54:45.769][INFO] : Launching local DeconZ
[2020-12-20 00:54:45.769][INFO] : Kill all deCONZ process
kill: (332): Operation not permitted
[2020-12-20 00:54:45.810][INFO] : Log level deconz deamon debug
[2020-12-20 00:54:45.811][INFO] : Opt deconz deamon [‹ sudo ›, ‹ deCONZ ›, ‹ –auto-connect=1 ›, ‹ –dbg-error=1 ›, ‹ –http-port=8484 ›, ‹ –ws-port=20877 ›, ‹ –upnp=0 ›, ‹ -platform ›, ‹ minimal ›, ‹ –dbg-aps=2 ›, ‹ –dbg-info=2 ›, ‹ –dbg-zcl=2 ›, ‹ –dbg-zdp=2 ›, ‹ –dbg-http=2 ›]
[2020-12-20 00:54:45.819][INFO] : Launched DeconZ with pid 31802
[2020-12-20 00:54:45.820][DEBUG] : Start socket thread
[2020-12-20 00:54:51.236][DEBUG] : Client connected to [127.0.0.1:47836]
[2020-12-20 00:54:51.236][DEBUG] : Message read from socket: b’{« apikey »:« tNiOrWsF3ZROpj4ccje2g3FF23fCYAfk »,« cmd »:« addgateway »,« gateways »:[]}’
[2020-12-20 00:54:51.237][DEBUG] : Client disconnected from [127.0.0.1:47836]
[2020-12-20 00:54:51.238][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2020-12-20 00:54:51.238][DEBUG] : Closing All Websockets
[2020-12-20 00:55:05][DEBUG] : Found gateway : []
[2020-12-20 00:55:08][DEBUG] : Found gateway : []
[2020-12-20 00:55:11][DEBUG] : Found gateway : []
[2020-12-20 00:55:13][DEBUG] : Found gateway : []
[2020-12-20 00:55:16][DEBUG] : Found gateway : []
[2020-12-20 00:55:20][DEBUG] : Found gateway : []
[2020-12-20 00:56:44][DEBUG] : Found gateway : []
[2020-12-20 00:56:55][DEBUG] : Found gateway : []
[2020-12-20 00:56:58][DEBUG] : Found gateway : []
[2020-12-20 01:01:59][DEBUG] : Found gateway : []

Log DeconzServer

Résumé

00:05:11:915 APS-DATA.indication srcAddr: 0x0000, srcEp: 0x00 dstAddrMode: 2, profile: 0x0000, cluster: 0x8031, lqi: 221, rssi: 30
00:05:11:915 asdu: 6800000000
00:05:11:915 APS-DATA.indication request id: 214 → finished
00:05:11:915 APS-DATA.request id: 214 erase from queue
00:05:11:915 ZDP status = 0x00 → SUCCESS
00:05:11:915 void deCONZ::zmNode::setFetched(deCONZ::RequestId, bool) fetched item: 8, node:
0x0000
00:05:11:915 ZDP Mgmt_Lqi_rsp zdpSeq: 104 from 0x00212EFFFF060D75 total: 0, startIndex: 0, listCount: 0
00:05:12:562 enqueue event config/localtime for /config/
00:05:13:562 enqueue event config/localtime for /config/
00:05:14:298 Mgmt_Lqi_req zdpSeq: 105 to 0x00212EFFFF060D75 start index 0
00:05:14:298 APS-DATA.request id: 216, addrmode: 0x03, addr: 0x00212effff060d75, profile: 0x0000, cluster: 0x0031, ep: 0x00 → 0x00 queue: 0 len: 2 tx.options 0x00
00:05:14:307 APS-DATA.confirm id: 216, status: 0x00 SUCCESS
00:05:14:307 APS-DATA.confirm request id: 216 → confirmed, timeout 9244752
00:05:14:310 APS-DATA.indication srcAddr: 0x0000, srcEp: 0x00 dstAddrMode: 2, profile: 0x0000, cluster: 0x8031, lqi: 221, rssi: 30
00:05:14:310 asdu: 6900000000
00:05:14:310 APS-DATA.indication request id: 216 → finished
00:05:14:310 APS-DATA.request id: 216 erase from queue
00:05:14:310 ZDP status = 0x00 → SUCCESS
00:05:14:310 void deCONZ::zmNode::setFetched(deCONZ::RequestId, bool) fetched item: 8, node: 0x0000
00:05:14:310 ZDP Mgmt_Lqi_rsp zdpSeq: 105 from 0x00212EFFFF060D75 total: 0, startIndex: 0, listCount: 0
00:05:14:562 enqueue event config/localtime for /config/
00:05:14:614 HTTP client hdr detected:
GET /api/235159C37F/sensors/new?=1608421875130 HTTP/1.1
Host: 192.168.1.164:8484
Connection: keep-alive
Access-Control-Allow-Origin: *
Accept: vnd.ddel.v1
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Referer: http://192.168.1.164:8484/pwa/devices-sensors.html?v=ef2490db4af3aa72f263cc508edfedc869c4df5b,11,0,0&gwid=00212EFFFF060D75
Accept-Encoding: gzip, deflate
Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
Cookie: PHPSESSID=4usu6hfggqdptm0u5cfcf4v6r9
00:05:14:614 HTTP API GET /api/235159C37F/sensors/new?
=1608421875130 - 192.168.1.31
00:05:14:614 ApiMode: 0
00:05:14:614 {« lastscan »:« none »}
00:05:15:562 enqueue event config/localtime for /config/
00:05:16:061 Daylight now: nadir, status: 100, daylight: 0, dark: 1
00:05:16:561 enqueue event config/localtime for /config/
00:05:16:604 HTTP client hdr detected:
GET /api/235159C37F/config?
=1608421875131 HTTP/1.1
Host: 192.168.1.164:8484
Connection: keep-alive
Access-Control-Allow-Origin: *
Accept: vnd.ddel.v1
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Referer: http://192.168.1.164:8484/pwa/devices-sensors.html?v=ef2490db4af3aa72f263cc508edfedc869c4df5b,11,0,0&gwid=00212EFFFF060D75
Accept-Encoding: gzip, deflate
Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
Cookie: PHPSESSID=4usu6hfggqdptm0u5cfcf4v6r9
00:05:16:605 HTTP API GET /api/235159C37F/config?
=1608421875131 - 192.168.1.31
00:05:16:605 ApiMode: 0
00:05:16:608 {« UTC »:« 2020-12-20T00:05:16 »,« announceinterval »:45,« announceurl »:« https://phoscon.de/discover",« apiversion »:« 2.07.01 »,« bridgeid »:« 00212EFFFF060D75 »,« datastoreversion »:« 93 »,« devicename »:"ConBee II »,« dhcp »:true,« disablePermitJoinAutoOff »:false,« discovery »:true,« factorynew »:false,« fwneedupdate »:false,« fwupdatestate »:« idle »,« fwversion »:« 0x26680700 »,« gateway »:« 192.168.1.1 »,« groupdelay »:50,« homebridge »:« not-managed »,« homebridgepin »:null,« homebridgeupdate »:false,« homebridgeupdateversion »:null,« homebridgeversion »:null,« ipaddress »:« 192.168.1.164 »,« linkbutton »:false,« localtime »:« 2020-12-20T00:05:16 »,« mac »:« b8:27:eb:45:12:21 »,« modelid »:« deCONZ »,« name »:« Phoscon-GW »,« netmask »:« 255.255.255.0 »,« networkopenduration »:180,« ntp »:« synced »,« otauactive »:false,« otaustate »:« off »,« panid »:44250,« permitjoin »:0,« permitjoinfull »:0,« port »:8484,« portalservices »:false,« proxyaddress »:« none »,« proxyport »:0,« replacesbridgeid »:null,« rfconnected »:true,« runmode »:« normal »,« starterkitid »:"",« swcommit »:« ef2490db4af3aa72f263cc508edfedc869c4df5b »,« swupdate »:{« notify »:false,« text »:"",« updatestate »:0,« url »:"",« version »:« 2.04.35 »},« swupdate2 »:{« autoinstall »:{« on »:false,« updatetime »:""},« bridge »:{« lastinstall »:« 2020-12-08T22:14:37 »,« state »:« allr
eadytoinstall »},« checkforupdate »:false,« install »:false,« lastchange »:"",« lastinstall »:"",« state »:« allreadytoinstall »},« swversion »:« 2.07.01 »,« system »:« linux-gw »,« timeformat »:« 24h »,« timezone »:« Etc/GMT »,« updatechannel »:« stable »,« uuid »:« 8a39f4be-490a-4e88-a459-78ed86c8da43 »,« websocketnotifyall »:true,« websocketport »:20877,« whitelist »:{« 235159C37F »:{« create date »:« 2020-12-17T14:41:13 »,« last use date »:« 2020-12-20T00:05:16 »,« name »:« Phoscon#B1536x722 »},« 543A74931B »:{« create date »:« 2020-12-15T10:34:21 »,« last use date »:« 2020-12-17T13:02:36 »,« name »:« Phoscon »},« E4618457B9 »:{« create date »:« 2020-12-15T01:21:40 »,« last use date »:« 2020-12-18T23:00:03 »,« name »:« Phoscon#B1920x1057 »}},« wifi »:« not-configured »,« wifiavailable »:[],« wifichannel »:« 1 »,« wificlientname »:null,« wifiip »:« 192.168.8.1 »,« wifimgmt »:0,« wifiname »:null,« wifitype »:« accesspoint »,« zigbeechannel »:15}
00:05:16:698 Mgmt_Lqi_req zdpSeq: 106 to 0x00212EFFFF060D75 start index 0
00:05:16:698 APS-DATA.request id: 218, addrmode: 0x03, addr: 0x00212effff060d75, profile: 0x0000, cluster: 0x0031, ep: 0x00 → 0x00 queue: 0 len: 2 tx.options 0x00
00:05:16:711 APS-DATA.confirm id: 218, status: 0x00 SUCCESS
00:05:16:711 APS-DATA.confirm request id: 218 → confirmed, timeout 8622072
00:05:16:716 APS-DATA.indication srcAddr: 0x0000, srcEp: 0x00 dstAddrMode: 2, profile: 0x0000, cluster: 0x8031, lqi: 221, rssi: 30
00:05:16:716 asdu: 6a00000000
00:05:16:716 APS-DATA.indication request id: 218 → finished
00:05:16:716 APS-DATA.request id: 218 erase from queue
00:05:16:716 ZDP status = 0x00 → SUCCESS
00:05:16:716 void deCONZ::zmNode::setFetched(deCONZ::RequestId, bool) fetched item: 8, node: 0x0000
00:05:16:716 ZDP Mgmt_Lqi_rsp zdpSeq: 106 from 0x00212EFFFF060D75 total: 0, startIndex: 0, listCount: 0
00:05:17:562 enqueue event config/localtime for /config/
00:05:18:562 enqueue event config/localtime for /config/
00:05:19:057 HTTP client hdr detected:
GET /api/config HTTP/1.1
Host: 127.0.0.1:8484
User-Agent: curl/7.64.0
Accept: /
00:05:19:057 HTTP API GET /api/config - 127.0.0.1
00:05:19:057 {« apiversion »:« 1.16.0 »,« bridgeid »:« 00212EFFFF060D75 »,« datastoreversion »:« 93 »,« devicename »:« ConBee II »,« factorynew »:false,« mac »:« b8:27:eb:45:12:21 »,« modelid »:« deCONZ »,« name »:« Phoscon-GW »,« replacesbridgeid »:null,« starterkitid »:"",« swversion »:« 2.7.1 »}
00:05:19:058 http client (127.0.0.1) handled 1 requests
00:05:19:058 ~http client 0x0x3e2fe8
00:05:19:097 Mgmt_Lqi_req zdpSeq: 107 to 0x00212EFFFF060D75 start index 0
00:05:19:098 APS-DATA.request id: 220, addrmode: 0x03, addr: 0x00212effff060d75, profile: 0x0000, cluster: 0x0031, ep: 0x00 → 0x00 queue: 0 len: 2 tx.options 0x00
00:05:19:107 APS-DATA.confirm id: 220, status: 0x00 SUCCESS
00:05:19:107 APS-DATA.confirm request id: 220 → confirmed, timeout 8622072
00:05:19:110 APS-DATA.indication srcAddr: 0x0000, srcEp: 0x00 dstAddrMode: 2, profile: 0x0000, cluster: 0x8031, lqi: 221, rssi: 30
00:05:19:110 asdu: 6b00000000
00:05:19:110 APS-DATA.indication request id: 220 → finished
00:05:19:110 APS-DATA.request id: 220 erase from queue
00:05:19:110 ZDP status = 0x00 → SUCCESS
00:05:19:110 void deCONZ::zmNode::setFetched(deCONZ::RequestId, bool) fetched item: 8, node: 0x0000
00:05:19:110 ZDP Mgmt_Lqi_rsp zdpSeq: 107 from 0x00212EFFFF060D75 total: 0, startIndex: 0, listCount: 0
00:05:19:563 enqueue event config/localtime for /config/
00:05:20:562 enqueue event config/localtime for /config/
00:05:20:600 HTTP client hdr detected:
GET /api/235159C37F/sensors/new?_=1608421875132 HTTP/1.1
Host: 192.168.1.164:8484
Connection: keep-alive
Access-Control-Allow-Origin: *
Accept: vnd.ddel.v1
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Referer: http://192.168.1.164:8484/pwa/devices-sensors.html?v=ef2490db4af3aa72f263cc508edfedc869c4df5b,11,0,0&gwid=00212EFFFF060D75
Accept-Encoding: gzip, deflate
Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
Cookie: PHPSESSID=4usu6hfggqdptm0u5cfcf4v6r9
00:05:20:600 HTTP API GET /api/235159C37F/sensors/new?
=1

Dons les échanges fonctionnent mais la Gateway n’est pas trouvée !
Tjrs rien dans la fenêtre de découverte ?

non, rien.
j’essaie en direct sans hub?
Et en relançant le Demon si j’ai bien suivi?
toujours en débug?

Reste sur le Hub car cela n’est pas en lien avec le pb qui est interne désormais à la box entre Jeedom et la gateway Phoscon.

Arrête le démon Deconz et réinstalle les dépendances.
Puis désactive le plug in.
Réactive le plug in
redémarre le démon
Relance la découverte

C,est fait, mais ça change rien

Dans Phoscon ça marche! :heart_eyes:

Tu es bien en Jeedom V4.061 ?
C’est étrange que la Gateway ne soit pas découverte . il y a qqch qui doit rester dans la configuration qui n’est pas correct et qui m’échappe pour l’instant.

Oui Phoscon pas de soucis mais Jeedom si. ET c’est là que ça coince

on trouve où la version de Jeedom?
c’est bon, V4.0.61

Centre de mise à jour

Capture écran complet au cas où tu voies un truc louche

Avec GCFFlasher_internal -l vérifie que la clef est tjrs OK
Si c’est le cas ajoute une gateway (bouton en vert) puis relance une découverte

pi@jeedom:~ $ GCFFlasher_internal -l
GCFFlasher V3_17 (c) dresden elektronik ingenieurtechnik gmbh
Path | Vendor | Product | Serial | Type
-----------------±-------±--------±-----------±------
/dev/ttyAMA0 | 0x0000 | 0x0000 | | RaspBee
/dev/ttyACM0 | 0x1CF1 | 0x0030 | DE2231529 | ConBee II
pi@jeedom:~ $
Ok pour la clé, j’ai ajouté et relancé, j’attends un peu avec f5, rien pour l’instant

Saisis dans ce cas à la main dans les cases :
IP => 127.0.0.1
Port => 8484
Port Socket => 20877 (si pas déjà renseigné automatiquement)

Puis lance sous Phoscon l’authentification et dans la minute qui suit lance la récupération de clef API dans Deconz.

j’ai tout renseigné, déco de Phoscon, reco Phoscon (avec mdp, j’espère que c’est bien ça que ça voulait dire) puis recup clé api : pas de résultat sauf que les cases renseignées se sont vidées