GithubHelp home page GithubHelp logo

Comments (10)

doudz avatar doudz commented on July 18, 2024

Il me faudrait le log en entier, mais comme ça je dirais qu'il faudrait tenter un reset de la ZiGate

from jeedom-plugin-zigate.

Gl0ox avatar Gl0ox commented on July 18, 2024

J'y connais pas grand chose, merci à toi:

[DEBUG][root] : Message received in socket
[DEBUG][root] : b'{"action":"permit_join","args":"","apikey":"QZvgVCQ47mDuHUZsPNbDa9EMJ3M76Dtm"}'
[DEBUG][zigate] : REQUEST : 0x0049 FFFC1E00
[DEBUG][zigate] : Msg to send b'\x00I\x00\x04P\xff\xfc\x1e\x00'
[DEBUG][zigate] : Encoded Msg to send b'\x01\x02\x10I\x02\x10\x02\x14P\xff\xfc\x1e\x02\x10\x03'
[DEBUG][zigate] : Waiting for status message for command 0x0049
[DEBUG][zigate] : RESPONSE 0x8000 - Status response : status:128, sequence:0, packet_type:73, error:b'', rssi:0
[DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[ERROR][zigate] : Command 0x0049 failed Failed (ZigBee event codes) 128 : b''
[DEBUG][zigate] : STATUS code to command 0x0049:128
[DEBUG][root] : {'result': 128, 'success': True}
[DEBUG] : callZiGate Array

Est-ce que ça t'aide ?

from jeedom-plugin-zigate.

Gl0ox avatar Gl0ox commented on July 18, 2024

Sinon le log de quand je re-démarre le démon:

[2018-03-01 22:57:43][INFO] : Lancement démon zigate : /usr/bin/python3 /var/www/html/plugins/zigate/core/class/../../resources/zigated/zigated.py --device /dev/ttyUSB0 --loglevel debug --apikey QZvgVCQ47mDuHUZsPNbDa9EMJ3M76Dtm --pid /tmp/jeedom/zigate/daemon.pid --socket /tmp/jeedom/zigate/daemon.sock --callback http://127.0.0.1:80/plugins/zigate/core/php/jeeZiGate.php
[2018-03-01 22:57:43][INFO][root] : Start zigated
[2018-03-01 22:57:43][INFO][root] : Log level : debug
[2018-03-01 22:57:43][INFO][root] : Socket : /tmp/jeedom/zigate/daemon.sock
[2018-03-01 22:57:43][INFO][root] : PID file : /tmp/jeedom/zigate/daemon.pid
[2018-03-01 22:57:43][INFO][root] : Apikey : QZvgVCQ47mDuHUZsPNbDa9EMJ3M76Dtm
[2018-03-01 22:57:43][INFO][root] : Device : /dev/ttyUSB0
[2018-03-01 22:57:43][INFO][root] : Callback : http://127.0.0.1:80/plugins/zigate/core/php/jeeZiGate.php
[2018-03-01 22:57:43][DEBUG][root] : Writing PID 21246 to /tmp/jeedom/zigate/daemon.pid
[2018-03-01 22:57:43][DEBUG][root] : Send to test to jeedom
[2018-03-01 22:57:43][DEBUG][root] : Send to jeedom : {'action': 'test'}
[2018-03-01 22:57:43][DEBUG][requests.packages.urllib3.connectionpool] : Starting new HTTP connection (1): 127.0.0.1
[2018-03-01 22:57:43][DEBUG] : Array ( [action] => test )
[2018-03-01 22:57:43][DEBUG][requests.packages.urllib3.connectionpool] : http://127.0.0.1:80 "POST /plugins/zigate/core/php/jeeZiGate.php?apikey=QZvgVCQ47mDuHUZsPNbDa9EMJ3M76Dtm HTTP/1.1" 200 16
[2018-03-01 22:57:43][DEBUG][root] : Jeedom reply : {'success': True}
[2018-03-01 22:57:43][DEBUG][zigate] : REQUEST : 0x0010
[2018-03-01 22:57:43][DEBUG][zigate] : Msg to send b'\x00\x10\x00\x00\x10'
[2018-03-01 22:57:43][DEBUG][zigate] : Encoded Msg to send b'\x01\x02\x10\x10\x02\x10\x02\x10\x10\x03'
[2018-03-01 22:57:43][DEBUG][zigate] : Waiting for status message for command 0x0010
[2018-03-01 22:57:43][DEBUG][zigate] : RESPONSE 0x8000 - Status response : status:0, sequence:0, packet_type:16, error:b'', rssi:0
[2018-03-01 22:57:43][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:43][DEBUG][zigate] : RESPONSE 0x8010 - Version list : major:1, installer:30d, rssi:0, version:3.0d
[2018-03-01 22:57:43][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:43][DEBUG][zigate] : Do nothing special for response RESPONSE 0x8010 - Version list : major:1, installer:30d, rssi:0, version:3.0d
[2018-03-01 22:57:43][DEBUG][zigate] : STATUS code to command 0x0010:0
[2018-03-01 22:57:43][DEBUG][zigate] : Waiting for message 0x8010
[2018-03-01 22:57:43][DEBUG][zigate] : Stop waiting, got message 0x8010
[2018-03-01 22:57:43][DEBUG][zigate] : Try loading persistent file
[2018-03-01 22:57:43][DEBUG][zigate] : Load success
[2018-03-01 22:57:43][DEBUG][zigate] : REQUEST : 0x0021 0318C800
[2018-03-01 22:57:43][DEBUG][zigate] : Msg to send b'\x00!\x00\x04\xf6\x03\x18\xc8\x00'
[2018-03-01 22:57:43][DEBUG][zigate] : Encoded Msg to send b'\x01\x02\x10!\x02\x10\x02\x14\xf6\x02\x13\x18\xc8\x02\x10\x03'
[2018-03-01 22:57:43][DEBUG][zigate] : Waiting for status message for command 0x0021
[2018-03-01 22:57:43][DEBUG][zigate] : RESPONSE 0x8000 - Status response : status:0, sequence:0, packet_type:33, error:b'', rssi:0
[2018-03-01 22:57:43][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:43][DEBUG][zigate] : STATUS code to command 0x0021:0
[2018-03-01 22:57:43][DEBUG][zigate] : REQUEST : 0x0023 b'\x00'
[2018-03-01 22:57:43][DEBUG][zigate] : Msg to send b'\x00#\x00\x01"\x00'
[2018-03-01 22:57:43][DEBUG][zigate] : Encoded Msg to send b'\x01\x02\x10#\x02\x10\x02\x11"\x02\x10\x03'
[2018-03-01 22:57:43][DEBUG][zigate] : Waiting for status message for command 0x0023
[2018-03-01 22:57:43][DEBUG][zigate] : RESPONSE 0x8000 - Status response : status:0, sequence:0, packet_type:35, error:b'', rssi:0
[2018-03-01 22:57:43][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:43][DEBUG][zigate] : STATUS code to command 0x0023:0
[2018-03-01 22:57:43][DEBUG][zigate] : Check network state
[2018-03-01 22:57:43][DEBUG][zigate] : REQUEST : 0x0009
[2018-03-01 22:57:43][DEBUG][zigate] : Msg to send b'\x00 \x00\x00 '
[2018-03-01 22:57:43][DEBUG][zigate] : Encoded Msg to send b'\x01\x02\x10\x02\x19\x02\x10\x02\x10\x02\x19\x03'
[2018-03-01 22:57:43][DEBUG][zigate] : Waiting for status message for command 0x0009
[2018-03-01 22:57:44][DEBUG][zigate] : RESPONSE 0x8000 - Status response : status:0, sequence:0, packet_type:9, error:b'', rssi:0
[2018-03-01 22:57:44][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:44][DEBUG][zigate] : RESPONSE 0x8009 - Network state response : addr:ffff, ieee:158d0001b2a71c, pan:62459, extend_pan:0, channel:11, rssi:0
[2018-03-01 22:57:44][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:44][DEBUG][zigate] : Do nothing special for response RESPONSE 0x8009 - Network state response : addr:ffff, ieee:158d0001b2a71c, pan:62459, extend_pan:0, channel:11, rssi:0
[2018-03-01 22:57:44][DEBUG][zigate] : STATUS code to command 0x0009:0
[2018-03-01 22:57:44][DEBUG][zigate] : Waiting for message 0x8009
[2018-03-01 22:57:44][DEBUG][zigate] : Stop waiting, got message 0x8009
[2018-03-01 22:57:44][DEBUG][zigate] : REQUEST : 0x0015
[2018-03-01 22:57:44][DEBUG][zigate] : Msg to send b'\x00\x15\x00\x00\x15'
[2018-03-01 22:57:44][DEBUG][zigate] : Encoded Msg to send b'\x01\x02\x10\x15\x02\x10\x02\x10\x15\x03'
[2018-03-01 22:57:44][DEBUG][zigate] : Waiting for status message for command 0x0015
[2018-03-01 22:57:44][DEBUG][zigate] : RESPONSE 0x8000 - Status response : status:0, sequence:0, packet_type:21, error:b'', rssi:0
[2018-03-01 22:57:44][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:44][DEBUG][zigate] : RESPONSE 0x8015 - Device list : devices:[], rssi:0
[2018-03-01 22:57:44][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-01 22:57:44][DEBUG][zigate] : Known devices in zigate : set()
[2018-03-01 22:57:44][DEBUG][zigate] : Previous devices to delete : set()
[2018-03-01 22:57:44][DEBUG][zigate] : STATUS code to command 0x0015:0
[2018-03-01 22:57:44][DEBUG][zigate] : Waiting for message 0x8015
[2018-03-01 22:57:44][DEBUG][zigate] : Stop waiting, got message 0x8015
[2018-03-01 22:57:44][DEBUG][zigate] : Auto saving /var/www/html/plugins/zigate/core/class/../../resources/zigated/.zigate.json
[2018-03-01 22:57:44][INFO] : Démon zigate lancé
[2018-03-01 22:57:47][DEBUG] : callZiGate get_version_text
[2018-03-01 22:57:47][DEBUG][root] : Message received in socket
[2018-03-01 22:57:47][DEBUG][root] : b'{"action":"get_version_text","args":"","apikey":"QZvgVCQ47mDuHUZsPNbDa9EMJ3M76Dtm"}'
[2018-03-01 22:57:47][DEBUG][root] : {'result': '3.0d', 'success': True}
[2018-03-01 22:57:47][DEBUG] : callZiGate Array
[2018-03-01 22:57:54][DEBUG][requests.packages.urllib3.connectionpool] : Starting new HTTP connection (1): doudz.pythonanywhere.com
[2018-03-01 22:57:55][DEBUG][requests.packages.urllib3.connectionpool] : http://doudz.pythonanywhere.com:80 "POST / HTTP/1.1" 200 0

from jeedom-plugin-zigate.

doudz avatar doudz commented on July 18, 2024

from jeedom-plugin-zigate.

Gl0ox avatar Gl0ox commented on July 18, 2024

Sorry, voila le log...

[DEBUG] : callZiGate reset
[ERROR][zigate] : Bad length 5 != 41 : b'\x00\x00\x00\x11\x00\xff\x01\x80\x03\x00\x1e\x9b\x01\x01\x04\x00\x00\x00\x01\x00\x03\x00\x04\x00\x05\x00\x06\x00\x08\x00\x19\x01\x01\x10\x00\x03\x00\x02\x01\x02\x04'
[ERROR][zigate] : No response after command 0x0011
[DEBUG] : callZiGate Array

from jeedom-plugin-zigate.

doudz avatar doudz commented on July 18, 2024

Ce log est normal lors d'un reset.
Peux-tu retenter maintenant d'ajouter un périphérique ? (et si ça ne fonctionne pas me redonner le log entier)
Merci
Si ça ne fonctionne toujours pas, c'est peut-être que le réseau n'est pas établi bien que la zigate indique le contraire. si c'est le cas je modifierai le plugin en conséquence

from jeedom-plugin-zigate.

Gl0ox avatar Gl0ox commented on July 18, 2024

Merci à toi,

Cela ne fonctionne pas:
[2018-03-02 19:24:46][DEBUG] : callZiGate permit_join
[2018-03-02 19:24:46][DEBUG][root] : Message received in socket
[2018-03-02 19:24:46][DEBUG][root] : b'{"action":"permit_join","args":"","apikey":"QZvgVCQ47mDuHUZsPNbDa9EMJ3M76Dtm"}'
[2018-03-02 19:24:46][DEBUG][zigate] : REQUEST : 0x0049 FFFC1E00
[2018-03-02 19:24:46][DEBUG][zigate] : Msg to send b'\x00I\x00\x04P\xff\xfc\x1e\x00'
[2018-03-02 19:24:46][DEBUG][zigate] : Encoded Msg to send b'\x01\x02\x10I\x02\x10\x02\x14P\xff\xfc\x1e\x02\x10\x03'
[2018-03-02 19:24:46][DEBUG][zigate] : Waiting for status message for command 0x0049
[2018-03-02 19:24:46][DEBUG][zigate] : RESPONSE 0x8000 - Status response : status:128, sequence:0, packet_type:73, error:b'', rssi:0
[2018-03-02 19:24:46][DEBUG][zigate] : Dispatch ZIGATE_RESPONSE_RECEIVED
[2018-03-02 19:24:46][ERROR][zigate] : Command 0x0049 failed Failed (ZigBee event codes) 128 : b''
[2018-03-02 19:24:46][DEBUG][zigate] : STATUS code to command 0x0049:128
[2018-03-02 19:24:46][DEBUG][root] : {'success': True, 'result': 128}
[2018-03-02 19:24:46][DEBUG] : callZiGate Array

En parallèle je regarde avec le marchand pour savoir si le défaut peut venir de la ZiGate.

from jeedom-plugin-zigate.

doudz avatar doudz commented on July 18, 2024

J'ai poussé une petite mise à jour, merci de me dire si cela corrige le problème ?

from jeedom-plugin-zigate.

Gl0ox avatar Gl0ox commented on July 18, 2024

YESSSS !!!

Merci beaucoup Doudz

from jeedom-plugin-zigate.

doudz avatar doudz commented on July 18, 2024

Ya pas de quoi ^^

from jeedom-plugin-zigate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.