Page 2 sur 2

Re: PAs d'initialisation du plug-in Zigate en wifi

Publié : 13 janv. 2019, 20:30
par FCJean
Voila ... sur une fresh install ca marche !
Ce que je ne comprends pas très bien c'est que j'ai installé Python3.5.2, que pip3 -V me retourne

Code : Tout sélectionner

pip 8.1.1 from /usr/local/lib/python3.5/site-packages (python 3.5)
et que Domoticz utilise la version 3.4.2 ....

Code : Tout sélectionner

2019-01-13 20:19:46.135 Status: Domoticz V4.10353 (c)2012-2019 GizMoCuz
2019-01-13 20:19:46.136 Status: Build Hash: 0fa125f6, Date: 2019-01-12 23:12:34
2019-01-13 20:19:46.136 Status: Startup Path: /home/domoticz/
2019-01-13 20:19:46.868 Status: PluginSystem: Started, Python version '3.4.2'.
2019-01-13 20:19:46.938 Status: WebServer(HTTP) started on address: :: with port 8080
2019-01-13 20:19:46.949 Status: WebServer(SSL) started on address: :: with port 443
2019-01-13 20:19:46.950 Status: Proxymanager started.
2019-01-13 20:19:46.951 Status: RxQueue: queue worker started...
2019-01-13 20:19:46.951 Status: TCPServer: shared server started...
2019-01-13 20:19:48.951 Status: EventSystem: reset all events...
2019-01-13 20:19:48.968 Status: EventSystem: reset all device statuses...
2019-01-13 20:19:48.984 Status: Python EventSystem: Initalizing event module.
2019-01-13 20:19:48.984 Status: EventSystem: Queue thread started...
2019-01-13 20:19:48.984 Status: EventSystem: Started
2019-01-13 20:19:49.448 Status: PluginSystem: Entering work loop.
2019-01-13 20:21:48.173 Status: Incoming connection from: 192.168.0.9
2019-01-13 20:22:44.760 Status: (Zigate) Started.
2019-01-13 20:22:44.989 Status: (Zigate) Initialized version 4.0.6, author 'zaraki673 pipiche38'
2019-01-13 20:22:44.989 Status: (Zigate) onStart called - Zigate plugin V 4.0.6
2019-01-13 20:22:44.990 Status: (Zigate) load PluginConf
2019-01-13 20:22:44.990 Status: (Zigate) Entering work loop.
2019-01-13 20:22:44.990 Status: (Zigate) ZigateMode: ZigBee sendDelay: 0 reTransmit: 1 zTimeOut: 2
2019-01-13 20:22:44.990 Status: (Zigate) logFORMAT: 0 logLQI: 0 allowRemoveZigateDevice: 0
2019-01-13 20:22:44.990 Status: (Zigate) allowStoreDiscoveryFrames: 0 forceCreationDevice: 0 networkScan: 0 channel: ['0']
2019-01-13 20:22:44.992 Status: (Zigate) load ListOfDevice
2019-01-13 20:22:44.992 Status: (Zigate) Connection Name: Zigate, Transport: TCP/IP, Address: None:9999
2019-01-13 20:22:45.093 Status: (Zigate) onConnect called
2019-01-13 20:22:45.093 Status: (Zigate) ZigateConf - Setting UTC Time to : 1547407365
2019-01-13 20:22:45.093 Status: (Zigate) Start network
2019-01-13 20:22:45.093 Status: (Zigate) Zigate enter in discover mode for 254 Secs
2019-01-13 20:22:45.152 Status: (Zigate) Major Version Num: 0002
2019-01-13 20:22:45.152 Status: (Zigate) Installer Version Number: 030e
2019-01-13 20:22:45.203 Status: (Zigate) Decode8015 : Number of devices recently active in Zigate = 0
2019-01-13 20:22:45.305 Status: (Zigate) Decode8009 : Zigate addresses ieee: 00158d0001ed466c , short addr: ffff
2019-01-13 20:22:45.305 Status: (Zigate) Decode8009 - Network state UP, PANID: 7eea extPANID: 0x0000000000000000 Channel: 11
2019-01-13 20:22:47.813 Status: (Zigate) Decode8024 - Network joined / formed - IEEE: 00158d0001ed466c, NetworkID: 0000, Channel: 0b, Status: 01: Formed new network
2019-01-13 20:22:47.914 Status: (Zigate) Permit Join is On
2019-01-13 20:23:30.987 Status: (Zigate) [0] NEW OBJECT: 5b8b Device Annouce
2019-01-13 20:23:31.188 Status: (Zigate) [0] NEW OBJECT: 5b8b Device Annouce
2019-01-13 20:23:35.051 Status: (Zigate) [0] NEW OBJECT: 5b8b (re)Starting process
2019-01-13 20:23:40.015 Status: (Zigate) [0] NEW OBJECT: 5b8b Ox8045 received Infos
2019-01-13 20:23:40.015 Status: (Zigate) [0] NEW OBJECT: 5b8b Request Simple Descriptor for Ep: 01
2019-01-13 20:23:40.015 Status: (Zigate) [0] NEW OBJECT: 5b8b Request Attributes for Cluster 0x0001
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Simple Descriptor EP 01
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b ProfileID 0104
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b ZDeviceID 5f01
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster IN Count: 04
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster In 1: 0000
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster In 2: 0003
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster In 3: ffff
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster In 4: 0006
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster OUT Count: 03
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster Out 1: 0000
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster Out 2: 0004
2019-01-13 20:23:43.025 Status: (Zigate) [-] NEW OBJECT: 5b8b Cluster Out 3: ffff
2019-01-13 20:23:45.031 Status: (Zigate) [0] NEW OBJECT: 5b8b Ox8043 received Infos
2019-01-13 20:23:45.031 Status: (Zigate) [0] NEW OBJECT: 5b8b Trying to create Domoticz device(s)
MAis bon ca fonctionne, j'ai réussi à appairer un contacteur de porte Xiaomi en 10s.
Je vais voir si je tourne avec 2 instances Domoticz ou si je merge les 2 sur cette nouvelle (j'ai fait une partition root de 40 Go ... il devrait y avoir suffisamment de place pour les logs !

Encore merci pour ton aide !

Re: PAs d'initialisation du plug-in Zigate en wifi

Publié : 13 janv. 2019, 20:36
par pipiche
que se passe-t-il si tu lances :

Code : Tout sélectionner

python --version

Code : Tout sélectionner

python3 --version

Re: PAs d'initialisation du plug-in Zigate en wifi

Publié : 15 janv. 2019, 07:18
par FCJean
Sur l'instance Domoticz qui ne marche pas :

Code : Tout sélectionner

root@Domoticz8:/home/domoticz# python --version
Python 2.7.9

root@Domoticz8:/home/domoticz# python3 --version
Python 3.4.2
Sur l'instance qui fonctionne ...

Code : Tout sélectionner

root@Domoticz2:/home/domoticz# python --version
Python 2.7.9

root@Domoticz2:/home/domoticz# python3 --version
Python 3.5.2
Mais dans le log Domoticz on retrouve bien la référence à python 3.4.2 ....
Donc je vais rester avec ces 2 instances ou migrer mes devices et programmes shell, lua et python (j'ai d'ailleurs un programme python pour gérer ma chaudière De Dietrich qui plante parfois, peut-être que le passer sur cette instance améliorera les choses ... même si je pense que le problème vien de ModBus) car les plug-ins Python ont l'air très sensible à l'environnement Python et donc une clean install ne fait pas de mal.

Merci encore pour ton aide et pour le super boulot que tu fais pour nous permettre d'intégrer totalement le ZigBee dans nos configs

Re: PAs d'initialisation du plug-in Zigate en wifi

Publié : 15 janv. 2019, 07:45
par pipiche
Sur l’instance qui a python3.5 et qui affiche 3.4 dans le plugin. Cela peut-être lié avec une librairie python3.
En effet Domoticz lance le plugin via un appel de librairie python.

Pour creuser il faudrait poser la question dans le Forum Domoticz groupe python... peut-être que quelqu’un pourra répondre à ça.
Mais je pense à la piste d’une shared lib python 3.4